@platzio/sdk 0.6.0-beta.3 → 0.7.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/release.yaml +17 -5
- package/AGENTS.md +9 -0
- package/dist/index.d.mts +586 -5347
- package/dist/index.d.ts +586 -5347
- package/dist/index.js +262 -435
- package/dist/index.mjs +258 -432
- package/openapi.yaml +1461 -1596
- package/package.json +3 -3
- package/src/.openapi-generator/FILES +190 -0
- package/src/.openapi-generator/VERSION +1 -1
- package/src/api.ts +565 -5536
- package/src/base.ts +0 -24
- package/src/common.ts +19 -42
- package/src/configuration.ts +32 -21
- package/src/docs/AuthenticationApi.md +147 -0
- package/src/docs/Bot.md +24 -0
- package/src/docs/BotToken.md +26 -0
- package/src/docs/BotTokensApi.md +215 -0
- package/src/docs/BotsApi.md +164 -0
- package/src/docs/ChartExt.md +30 -0
- package/src/docs/ChartExtActionEndpoint.md +8 -0
- package/src/docs/ChartExtActionMethod.md +16 -0
- package/src/docs/ChartExtActionTarget.md +24 -0
- package/src/docs/ChartExtActionUserDeploymentRole.md +10 -0
- package/src/docs/ChartExtActionV0.md +40 -0
- package/src/docs/ChartExtActionV1Beta1.md +24 -0
- package/src/docs/ChartExtActions.md +22 -0
- package/src/docs/ChartExtActionsV0.md +22 -0
- package/src/docs/ChartExtCardinality.md +10 -0
- package/src/docs/ChartExtDeploymentDisplay.md +22 -0
- package/src/docs/ChartExtDeploymentDisplayIcon.md +20 -0
- package/src/docs/ChartExtDeploymentDisplayName.md +20 -0
- package/src/docs/ChartExtDeploymentDisplayNameInputField.md +20 -0
- package/src/docs/ChartExtDeploymentDisplayNameOneOf.md +20 -0
- package/src/docs/ChartExtFeatures.md +36 -0
- package/src/docs/ChartExtFeaturesSpec.md +32 -0
- package/src/docs/ChartExtFeaturesV0.md +30 -0
- package/src/docs/ChartExtFeaturesV1Beta1.md +24 -0
- package/src/docs/ChartExtFeaturesV1Beta2.md +24 -0
- package/src/docs/ChartExtIngress.md +22 -0
- package/src/docs/ChartExtIngressHostnameFormat.md +10 -0
- package/src/docs/ChartExtKindAction.md +8 -0
- package/src/docs/ChartExtKindFeatures.md +8 -0
- package/src/docs/ChartExtKindResourceType.md +8 -0
- package/src/docs/ChartExtKindValuesUi.md +8 -0
- package/src/docs/ChartExtResourceLifecycleActionV1Beta1.md +22 -0
- package/src/docs/ChartExtResourceLifecycleV1Beta1.md +24 -0
- package/src/docs/ChartExtResourceTypeV1Beta1.md +26 -0
- package/src/docs/ChartExtResourceTypeV1Beta1Spec.md +30 -0
- package/src/docs/ChartExtStatusFeature.md +24 -0
- package/src/docs/ChartExtVersionV1Beta1.md +8 -0
- package/src/docs/ChartExtVersionV1Beta2.md +8 -0
- package/src/docs/ChartMetadata.md +28 -0
- package/src/docs/CreateBotToken.md +20 -0
- package/src/docs/CreateDeploymentTask.md +24 -0
- package/src/docs/CreateUserToken.md +20 -0
- package/src/docs/CreatedBotToken.md +20 -0
- package/src/docs/CreatedUserToken.md +20 -0
- package/src/docs/DbEvent.md +24 -0
- package/src/docs/DbEventData.md +20 -0
- package/src/docs/DbEventOperation.md +12 -0
- package/src/docs/DbTable.md +40 -0
- package/src/docs/DbTableOrDeploymentResource.md +22 -0
- package/src/docs/DbTableOrDeploymentResourceOneOf.md +22 -0
- package/src/docs/Deployment.md +46 -0
- package/src/docs/DeploymentInstallTask.md +24 -0
- package/src/docs/DeploymentInvokeActionTask.md +24 -0
- package/src/docs/DeploymentKind.md +24 -0
- package/src/docs/DeploymentKindsApi.md +164 -0
- package/src/docs/DeploymentPermission.md +30 -0
- package/src/docs/DeploymentPermissionsApi.md +212 -0
- package/src/docs/DeploymentRecreaseTask.md +26 -0
- package/src/docs/DeploymentReinstallTask.md +20 -0
- package/src/docs/DeploymentReportedMetric.md +26 -0
- package/src/docs/DeploymentReportedNotice.md +22 -0
- package/src/docs/DeploymentReportedNoticeLevel.md +12 -0
- package/src/docs/DeploymentReportedStatus.md +26 -0
- package/src/docs/DeploymentReportedStatusColor.md +16 -0
- package/src/docs/DeploymentReportedStatusContent.md +26 -0
- package/src/docs/DeploymentReportedStatusSummary.md +22 -0
- package/src/docs/DeploymentResource.md +36 -0
- package/src/docs/DeploymentResourceSyncStatus.md +16 -0
- package/src/docs/DeploymentResourceType.md +30 -0
- package/src/docs/DeploymentResourceTypesApi.md +115 -0
- package/src/docs/DeploymentResourcesApi.md +267 -0
- package/src/docs/DeploymentRestartK8sResourceTask.md +22 -0
- package/src/docs/DeploymentStatus.md +24 -0
- package/src/docs/DeploymentTask.md +48 -0
- package/src/docs/DeploymentTaskOperation.md +32 -0
- package/src/docs/DeploymentTaskOperationOneOf.md +20 -0
- package/src/docs/DeploymentTaskOperationOneOf1.md +20 -0
- package/src/docs/DeploymentTaskOperationOneOf2.md +20 -0
- package/src/docs/DeploymentTaskOperationOneOf3.md +20 -0
- package/src/docs/DeploymentTaskOperationOneOf4.md +20 -0
- package/src/docs/DeploymentTaskOperationOneOf5.md +20 -0
- package/src/docs/DeploymentTaskOperationOneOf6.md +20 -0
- package/src/docs/DeploymentTaskStatus.md +16 -0
- package/src/docs/DeploymentTasksApi.md +164 -0
- package/src/docs/DeploymentUpgradeTask.md +28 -0
- package/src/docs/DeploymentsApi.md +276 -0
- package/src/docs/Env.md +30 -0
- package/src/docs/EnvUserPermission.md +28 -0
- package/src/docs/EnvUserPermissionsApi.md +212 -0
- package/src/docs/EnvUserRole.md +10 -0
- package/src/docs/EnvsApi.md +270 -0
- package/src/docs/FinishGoogleLoginResponse.md +20 -0
- package/src/docs/HelmChart.md +50 -0
- package/src/docs/HelmChartsApi.md +112 -0
- package/src/docs/HelmRegistriesApi.md +167 -0
- package/src/docs/HelmRegistry.md +34 -0
- package/src/docs/HelmRegistryProvider.md +10 -0
- package/src/docs/HelmTagFormat.md +24 -0
- package/src/docs/HelmTagFormatsApi.md +212 -0
- package/src/docs/K8sCluster.md +48 -0
- package/src/docs/K8sResource.md +36 -0
- package/src/docs/KubernetesClustersApi.md +218 -0
- package/src/docs/KubernetesResourcesApi.md +118 -0
- package/src/docs/MeResponse.md +24 -0
- package/src/docs/MeResponseOneOf.md +20 -0
- package/src/docs/MeResponseOneOf1.md +20 -0
- package/src/docs/MeResponseOneOf2.md +20 -0
- package/src/docs/MeResponseOneOf2Deployment.md +22 -0
- package/src/docs/NewDeployment.md +30 -0
- package/src/docs/NewDeploymentPermission.md +26 -0
- package/src/docs/NewDeploymentResource.md +32 -0
- package/src/docs/NewEnv.md +22 -0
- package/src/docs/NewEnvUserPermission.md +24 -0
- package/src/docs/NewHelmTagFormat.md +20 -0
- package/src/docs/NewSecret.md +26 -0
- package/src/docs/OAuth2Response.md +20 -0
- package/src/docs/PaginatedBot.md +26 -0
- package/src/docs/PaginatedBotItemsInner.md +24 -0
- package/src/docs/PaginatedBotToken.md +26 -0
- package/src/docs/PaginatedBotTokenItemsInner.md +26 -0
- package/src/docs/PaginatedDeployment.md +26 -0
- package/src/docs/PaginatedDeploymentItemsInner.md +46 -0
- package/src/docs/PaginatedDeploymentKind.md +26 -0
- package/src/docs/PaginatedDeploymentKindItemsInner.md +24 -0
- package/src/docs/PaginatedDeploymentPermission.md +26 -0
- package/src/docs/PaginatedDeploymentPermissionItemsInner.md +30 -0
- package/src/docs/PaginatedDeploymentResource.md +26 -0
- package/src/docs/PaginatedDeploymentResourceItemsInner.md +36 -0
- package/src/docs/PaginatedDeploymentResourceType.md +26 -0
- package/src/docs/PaginatedDeploymentResourceTypeItemsInner.md +30 -0
- package/src/docs/PaginatedDeploymentTask.md +26 -0
- package/src/docs/PaginatedDeploymentTaskItemsInner.md +48 -0
- package/src/docs/PaginatedEnv.md +26 -0
- package/src/docs/PaginatedEnvItemsInner.md +30 -0
- package/src/docs/PaginatedEnvUserPermission.md +26 -0
- package/src/docs/PaginatedEnvUserPermissionItemsInner.md +28 -0
- package/src/docs/PaginatedHelmChart.md +26 -0
- package/src/docs/PaginatedHelmChartItemsInner.md +50 -0
- package/src/docs/PaginatedHelmRegistry.md +26 -0
- package/src/docs/PaginatedHelmRegistryItemsInner.md +34 -0
- package/src/docs/PaginatedHelmTagFormat.md +26 -0
- package/src/docs/PaginatedHelmTagFormatItemsInner.md +24 -0
- package/src/docs/PaginatedK8sCluster.md +26 -0
- package/src/docs/PaginatedK8sClusterItemsInner.md +48 -0
- package/src/docs/PaginatedK8sResource.md +26 -0
- package/src/docs/PaginatedK8sResourceItemsInner.md +36 -0
- package/src/docs/PaginatedSecret.md +26 -0
- package/src/docs/PaginatedSecretItemsInner.md +30 -0
- package/src/docs/PaginatedUser.md +26 -0
- package/src/docs/PaginatedUserItemsInner.md +30 -0
- package/src/docs/PaginatedUserToken.md +26 -0
- package/src/docs/PaginatedUserTokenItemsInner.md +24 -0
- package/src/docs/Secret.md +30 -0
- package/src/docs/SecretsApi.md +273 -0
- package/src/docs/SerializedUiSchemaInputType.md +24 -0
- package/src/docs/ServerApi.md +51 -0
- package/src/docs/ServerInfo.md +20 -0
- package/src/docs/StartGoogleLoginResponse.md +20 -0
- package/src/docs/UiSchema.md +26 -0
- package/src/docs/UiSchemaFieldValuePair.md +22 -0
- package/src/docs/UiSchemaInput.md +50 -0
- package/src/docs/UiSchemaInputFieldOption.md +24 -0
- package/src/docs/UiSchemaInputFieldValue.md +22 -0
- package/src/docs/UiSchemaInputRef.md +22 -0
- package/src/docs/UiSchemaInputRefField.md +20 -0
- package/src/docs/UiSchemaInputRefOneOf.md +20 -0
- package/src/docs/UiSchemaInputRefOneOf1.md +20 -0
- package/src/docs/UiSchemaInputRefProperty.md +22 -0
- package/src/docs/UiSchemaInputSingleType.md +20 -0
- package/src/docs/UiSchemaInputSingleTypeOneOf.md +20 -0
- package/src/docs/UiSchemaInputSingleTypeOneOfCollectionSelect.md +20 -0
- package/src/docs/UiSchemaInputType.md +22 -0
- package/src/docs/UiSchemaOutputValue.md +22 -0
- package/src/docs/UiSchemaOutputs.md +22 -0
- package/src/docs/UiSchemaV0.md +22 -0
- package/src/docs/UiSchemaV1Beta1.md +26 -0
- package/src/docs/UpdateBot.md +20 -0
- package/src/docs/UpdateDeployment.md +32 -0
- package/src/docs/UpdateDeploymentKind.md +20 -0
- package/src/docs/UpdateDeploymentResource.md +22 -0
- package/src/docs/UpdateEnv.md +26 -0
- package/src/docs/UpdateHelmRegistry.md +20 -0
- package/src/docs/UpdateK8sCluster.md +32 -0
- package/src/docs/UpdateSecret.md +22 -0
- package/src/docs/UpdateUser.md +22 -0
- package/src/docs/User.md +30 -0
- package/src/docs/UserDeploymentRole.md +10 -0
- package/src/docs/UserToken.md +24 -0
- package/src/docs/UserTokensApi.md +212 -0
- package/src/docs/UsersApi.md +170 -0
- package/tsconfig.json +1 -0
package/dist/index.mjs
CHANGED
|
@@ -90,7 +90,7 @@ var setBearerAuthToObject = function(object, configuration) {
|
|
|
90
90
|
function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
91
91
|
if (parameter == null) return;
|
|
92
92
|
if (typeof parameter === "object") {
|
|
93
|
-
if (Array.isArray(parameter)) {
|
|
93
|
+
if (Array.isArray(parameter) || parameter instanceof Set) {
|
|
94
94
|
parameter.forEach((item) => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
95
95
|
} else {
|
|
96
96
|
Object.keys(parameter).forEach(
|
|
@@ -110,10 +110,17 @@ var setSearchParams = function(url, ...objects) {
|
|
|
110
110
|
setFlattenedQueryParams(searchParams, objects);
|
|
111
111
|
url.search = searchParams.toString();
|
|
112
112
|
};
|
|
113
|
+
var replaceWithSerializableTypeIfNeeded = function(key, value) {
|
|
114
|
+
if (value instanceof Set) {
|
|
115
|
+
return Array.from(value);
|
|
116
|
+
} else {
|
|
117
|
+
return value;
|
|
118
|
+
}
|
|
119
|
+
};
|
|
113
120
|
var serializeDataIfNeeded = function(value, requestOptions, configuration) {
|
|
114
121
|
const nonString = typeof value !== "string";
|
|
115
122
|
const needsSerialization = nonString && configuration && configuration.isJsonMime ? configuration.isJsonMime(requestOptions.headers["Content-Type"]) : nonString;
|
|
116
|
-
return needsSerialization ? JSON.stringify(value !== void 0 ? value : {}) : value || "";
|
|
123
|
+
return needsSerialization ? JSON.stringify(value !== void 0 ? value : {}, replaceWithSerializableTypeIfNeeded) : value || "";
|
|
117
124
|
};
|
|
118
125
|
var toPathString = function(url) {
|
|
119
126
|
return url.pathname + url.search + url.hash;
|
|
@@ -232,6 +239,10 @@ var EnvUserRole = {
|
|
|
232
239
|
Admin: "Admin",
|
|
233
240
|
User: "User"
|
|
234
241
|
};
|
|
242
|
+
var HelmRegistryProvider = {
|
|
243
|
+
Ecr: "Ecr",
|
|
244
|
+
Oci: "Oci"
|
|
245
|
+
};
|
|
235
246
|
var UserDeploymentRole = {
|
|
236
247
|
Owner: "Owner",
|
|
237
248
|
Maintainer: "Maintainer"
|
|
@@ -243,7 +254,7 @@ var AuthenticationApiAxiosParamCreator = function(configuration) {
|
|
|
243
254
|
* @param {*} [options] Override http request option.
|
|
244
255
|
* @throws {RequiredError}
|
|
245
256
|
*/
|
|
246
|
-
authMe: (..._0) => __async(
|
|
257
|
+
authMe: (..._0) => __async(null, [..._0], function* (options = {}) {
|
|
247
258
|
const localVarPath = `/api/v2/auth/me`;
|
|
248
259
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
249
260
|
let baseOptions;
|
|
@@ -255,6 +266,7 @@ var AuthenticationApiAxiosParamCreator = function(configuration) {
|
|
|
255
266
|
const localVarQueryParameter = {};
|
|
256
267
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
257
268
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
269
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
258
270
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
259
271
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
260
272
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -269,7 +281,7 @@ var AuthenticationApiAxiosParamCreator = function(configuration) {
|
|
|
269
281
|
* @param {*} [options] Override http request option.
|
|
270
282
|
* @throws {RequiredError}
|
|
271
283
|
*/
|
|
272
|
-
finishGoogleLogin: (_0, ..._1) => __async(
|
|
284
|
+
finishGoogleLogin: (_0, ..._1) => __async(null, [_0, ..._1], function* (oAuth2Response, options = {}) {
|
|
273
285
|
assertParamExists("finishGoogleLogin", "oAuth2Response", oAuth2Response);
|
|
274
286
|
const localVarPath = `/api/v2/auth/google/callback`;
|
|
275
287
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -281,6 +293,7 @@ var AuthenticationApiAxiosParamCreator = function(configuration) {
|
|
|
281
293
|
const localVarHeaderParameter = {};
|
|
282
294
|
const localVarQueryParameter = {};
|
|
283
295
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
296
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
284
297
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
285
298
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
286
299
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -295,7 +308,7 @@ var AuthenticationApiAxiosParamCreator = function(configuration) {
|
|
|
295
308
|
* @param {*} [options] Override http request option.
|
|
296
309
|
* @throws {RequiredError}
|
|
297
310
|
*/
|
|
298
|
-
startGoogleLogin: (..._0) => __async(
|
|
311
|
+
startGoogleLogin: (..._0) => __async(null, [..._0], function* (options = {}) {
|
|
299
312
|
const localVarPath = `/api/v2/auth/google`;
|
|
300
313
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
301
314
|
let baseOptions;
|
|
@@ -305,6 +318,7 @@ var AuthenticationApiAxiosParamCreator = function(configuration) {
|
|
|
305
318
|
const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
|
|
306
319
|
const localVarHeaderParameter = {};
|
|
307
320
|
const localVarQueryParameter = {};
|
|
321
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
308
322
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
309
323
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
310
324
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -398,7 +412,6 @@ var AuthenticationApi = class extends BaseAPI {
|
|
|
398
412
|
*
|
|
399
413
|
* @param {*} [options] Override http request option.
|
|
400
414
|
* @throws {RequiredError}
|
|
401
|
-
* @memberof AuthenticationApi
|
|
402
415
|
*/
|
|
403
416
|
authMe(options) {
|
|
404
417
|
return AuthenticationApiFp(this.configuration).authMe(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -408,7 +421,6 @@ var AuthenticationApi = class extends BaseAPI {
|
|
|
408
421
|
* @param {AuthenticationApiFinishGoogleLoginRequest} requestParameters Request parameters.
|
|
409
422
|
* @param {*} [options] Override http request option.
|
|
410
423
|
* @throws {RequiredError}
|
|
411
|
-
* @memberof AuthenticationApi
|
|
412
424
|
*/
|
|
413
425
|
finishGoogleLogin(requestParameters, options) {
|
|
414
426
|
return AuthenticationApiFp(this.configuration).finishGoogleLogin(requestParameters.oAuth2Response, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -417,7 +429,6 @@ var AuthenticationApi = class extends BaseAPI {
|
|
|
417
429
|
*
|
|
418
430
|
* @param {*} [options] Override http request option.
|
|
419
431
|
* @throws {RequiredError}
|
|
420
|
-
* @memberof AuthenticationApi
|
|
421
432
|
*/
|
|
422
433
|
startGoogleLogin(options) {
|
|
423
434
|
return AuthenticationApiFp(this.configuration).startGoogleLogin(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -429,12 +440,10 @@ var BotTokensApiAxiosParamCreator = function(configuration) {
|
|
|
429
440
|
*
|
|
430
441
|
* @param {string | null} [botId]
|
|
431
442
|
* @param {string | null} [createdByUserId]
|
|
432
|
-
* @param {number | null} [page]
|
|
433
|
-
* @param {number | null} [perPage]
|
|
434
443
|
* @param {*} [options] Override http request option.
|
|
435
444
|
* @throws {RequiredError}
|
|
436
445
|
*/
|
|
437
|
-
allBotTokens: (_0, _1, _2
|
|
446
|
+
allBotTokens: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (botId, createdByUserId, options = {}) {
|
|
438
447
|
const localVarPath = `/api/v2/bot-tokens`;
|
|
439
448
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
440
449
|
let baseOptions;
|
|
@@ -451,12 +460,7 @@ var BotTokensApiAxiosParamCreator = function(configuration) {
|
|
|
451
460
|
if (createdByUserId !== void 0) {
|
|
452
461
|
localVarQueryParameter["created_by_user_id"] = createdByUserId;
|
|
453
462
|
}
|
|
454
|
-
|
|
455
|
-
localVarQueryParameter["page"] = page;
|
|
456
|
-
}
|
|
457
|
-
if (perPage !== void 0) {
|
|
458
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
459
|
-
}
|
|
463
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
460
464
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
461
465
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
462
466
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -471,7 +475,7 @@ var BotTokensApiAxiosParamCreator = function(configuration) {
|
|
|
471
475
|
* @param {*} [options] Override http request option.
|
|
472
476
|
* @throws {RequiredError}
|
|
473
477
|
*/
|
|
474
|
-
createBotToken: (_0, ..._1) => __async(
|
|
478
|
+
createBotToken: (_0, ..._1) => __async(null, [_0, ..._1], function* (createBotToken, options = {}) {
|
|
475
479
|
assertParamExists("createBotToken", "createBotToken", createBotToken);
|
|
476
480
|
const localVarPath = `/api/v2/bot-tokens`;
|
|
477
481
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -484,6 +488,7 @@ var BotTokensApiAxiosParamCreator = function(configuration) {
|
|
|
484
488
|
const localVarQueryParameter = {};
|
|
485
489
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
486
490
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
491
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
487
492
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
488
493
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
489
494
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -499,9 +504,9 @@ var BotTokensApiAxiosParamCreator = function(configuration) {
|
|
|
499
504
|
* @param {*} [options] Override http request option.
|
|
500
505
|
* @throws {RequiredError}
|
|
501
506
|
*/
|
|
502
|
-
deleteBotToken: (_0, ..._1) => __async(
|
|
507
|
+
deleteBotToken: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
503
508
|
assertParamExists("deleteBotToken", "id", id);
|
|
504
|
-
const localVarPath = `/api/v2/bot-tokens/{id}`.replace(
|
|
509
|
+
const localVarPath = `/api/v2/bot-tokens/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
505
510
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
506
511
|
let baseOptions;
|
|
507
512
|
if (configuration) {
|
|
@@ -525,9 +530,9 @@ var BotTokensApiAxiosParamCreator = function(configuration) {
|
|
|
525
530
|
* @param {*} [options] Override http request option.
|
|
526
531
|
* @throws {RequiredError}
|
|
527
532
|
*/
|
|
528
|
-
getBotToken: (_0, ..._1) => __async(
|
|
533
|
+
getBotToken: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
529
534
|
assertParamExists("getBotToken", "id", id);
|
|
530
|
-
const localVarPath = `/api/v2/bot-tokens/{id}`.replace(
|
|
535
|
+
const localVarPath = `/api/v2/bot-tokens/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
531
536
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
532
537
|
let baseOptions;
|
|
533
538
|
if (configuration) {
|
|
@@ -537,6 +542,7 @@ var BotTokensApiAxiosParamCreator = function(configuration) {
|
|
|
537
542
|
const localVarHeaderParameter = {};
|
|
538
543
|
const localVarQueryParameter = {};
|
|
539
544
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
545
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
540
546
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
541
547
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
542
548
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -554,15 +560,13 @@ var BotTokensApiFp = function(configuration) {
|
|
|
554
560
|
*
|
|
555
561
|
* @param {string | null} [botId]
|
|
556
562
|
* @param {string | null} [createdByUserId]
|
|
557
|
-
* @param {number | null} [page]
|
|
558
|
-
* @param {number | null} [perPage]
|
|
559
563
|
* @param {*} [options] Override http request option.
|
|
560
564
|
* @throws {RequiredError}
|
|
561
565
|
*/
|
|
562
|
-
allBotTokens(botId, createdByUserId,
|
|
566
|
+
allBotTokens(botId, createdByUserId, options) {
|
|
563
567
|
return __async(this, null, function* () {
|
|
564
568
|
var _a2, _b, _c;
|
|
565
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allBotTokens(botId, createdByUserId,
|
|
569
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allBotTokens(botId, createdByUserId, options);
|
|
566
570
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
567
571
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["BotTokensApi.allBotTokens"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
568
572
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -625,7 +629,7 @@ var BotTokensApiFactory = function(configuration, basePath, axios) {
|
|
|
625
629
|
* @throws {RequiredError}
|
|
626
630
|
*/
|
|
627
631
|
allBotTokens(requestParameters = {}, options) {
|
|
628
|
-
return localVarFp.allBotTokens(requestParameters.botId, requestParameters.createdByUserId,
|
|
632
|
+
return localVarFp.allBotTokens(requestParameters.botId, requestParameters.createdByUserId, options).then((request) => request(axios, basePath));
|
|
629
633
|
},
|
|
630
634
|
/**
|
|
631
635
|
*
|
|
@@ -662,17 +666,15 @@ var BotTokensApi = class extends BaseAPI {
|
|
|
662
666
|
* @param {BotTokensApiAllBotTokensRequest} requestParameters Request parameters.
|
|
663
667
|
* @param {*} [options] Override http request option.
|
|
664
668
|
* @throws {RequiredError}
|
|
665
|
-
* @memberof BotTokensApi
|
|
666
669
|
*/
|
|
667
670
|
allBotTokens(requestParameters = {}, options) {
|
|
668
|
-
return BotTokensApiFp(this.configuration).allBotTokens(requestParameters.botId, requestParameters.createdByUserId,
|
|
671
|
+
return BotTokensApiFp(this.configuration).allBotTokens(requestParameters.botId, requestParameters.createdByUserId, options).then((request) => request(this.axios, this.basePath));
|
|
669
672
|
}
|
|
670
673
|
/**
|
|
671
674
|
*
|
|
672
675
|
* @param {BotTokensApiCreateBotTokenRequest} requestParameters Request parameters.
|
|
673
676
|
* @param {*} [options] Override http request option.
|
|
674
677
|
* @throws {RequiredError}
|
|
675
|
-
* @memberof BotTokensApi
|
|
676
678
|
*/
|
|
677
679
|
createBotToken(requestParameters, options) {
|
|
678
680
|
return BotTokensApiFp(this.configuration).createBotToken(requestParameters.createBotToken, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -682,7 +684,6 @@ var BotTokensApi = class extends BaseAPI {
|
|
|
682
684
|
* @param {BotTokensApiDeleteBotTokenRequest} requestParameters Request parameters.
|
|
683
685
|
* @param {*} [options] Override http request option.
|
|
684
686
|
* @throws {RequiredError}
|
|
685
|
-
* @memberof BotTokensApi
|
|
686
687
|
*/
|
|
687
688
|
deleteBotToken(requestParameters, options) {
|
|
688
689
|
return BotTokensApiFp(this.configuration).deleteBotToken(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -692,7 +693,6 @@ var BotTokensApi = class extends BaseAPI {
|
|
|
692
693
|
* @param {BotTokensApiGetBotTokenRequest} requestParameters Request parameters.
|
|
693
694
|
* @param {*} [options] Override http request option.
|
|
694
695
|
* @throws {RequiredError}
|
|
695
|
-
* @memberof BotTokensApi
|
|
696
696
|
*/
|
|
697
697
|
getBotToken(requestParameters, options) {
|
|
698
698
|
return BotTokensApiFp(this.configuration).getBotToken(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -703,12 +703,10 @@ var BotsApiAxiosParamCreator = function(configuration) {
|
|
|
703
703
|
/**
|
|
704
704
|
*
|
|
705
705
|
* @param {string | null} [displayName]
|
|
706
|
-
* @param {number | null} [page]
|
|
707
|
-
* @param {number | null} [perPage]
|
|
708
706
|
* @param {*} [options] Override http request option.
|
|
709
707
|
* @throws {RequiredError}
|
|
710
708
|
*/
|
|
711
|
-
allBots: (_0, _1
|
|
709
|
+
allBots: (_0, ..._1) => __async(null, [_0, ..._1], function* (displayName, options = {}) {
|
|
712
710
|
const localVarPath = `/api/v2/bots`;
|
|
713
711
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
714
712
|
let baseOptions;
|
|
@@ -723,12 +721,7 @@ var BotsApiAxiosParamCreator = function(configuration) {
|
|
|
723
721
|
if (displayName !== void 0) {
|
|
724
722
|
localVarQueryParameter["display_name"] = displayName;
|
|
725
723
|
}
|
|
726
|
-
|
|
727
|
-
localVarQueryParameter["page"] = page;
|
|
728
|
-
}
|
|
729
|
-
if (perPage !== void 0) {
|
|
730
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
731
|
-
}
|
|
724
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
732
725
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
733
726
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
734
727
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -743,9 +736,9 @@ var BotsApiAxiosParamCreator = function(configuration) {
|
|
|
743
736
|
* @param {*} [options] Override http request option.
|
|
744
737
|
* @throws {RequiredError}
|
|
745
738
|
*/
|
|
746
|
-
getBot: (_0, ..._1) => __async(
|
|
739
|
+
getBot: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
747
740
|
assertParamExists("getBot", "id", id);
|
|
748
|
-
const localVarPath = `/api/v2/bots/{id}`.replace(
|
|
741
|
+
const localVarPath = `/api/v2/bots/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
749
742
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
750
743
|
let baseOptions;
|
|
751
744
|
if (configuration) {
|
|
@@ -756,6 +749,7 @@ var BotsApiAxiosParamCreator = function(configuration) {
|
|
|
756
749
|
const localVarQueryParameter = {};
|
|
757
750
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
758
751
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
752
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
759
753
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
760
754
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
761
755
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -771,10 +765,10 @@ var BotsApiAxiosParamCreator = function(configuration) {
|
|
|
771
765
|
* @param {*} [options] Override http request option.
|
|
772
766
|
* @throws {RequiredError}
|
|
773
767
|
*/
|
|
774
|
-
updateBot: (_0, _1, ..._2) => __async(
|
|
768
|
+
updateBot: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (id, updateBot, options = {}) {
|
|
775
769
|
assertParamExists("updateBot", "id", id);
|
|
776
770
|
assertParamExists("updateBot", "updateBot", updateBot);
|
|
777
|
-
const localVarPath = `/api/v2/bots/{id}`.replace(
|
|
771
|
+
const localVarPath = `/api/v2/bots/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
778
772
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
779
773
|
let baseOptions;
|
|
780
774
|
if (configuration) {
|
|
@@ -786,6 +780,7 @@ var BotsApiAxiosParamCreator = function(configuration) {
|
|
|
786
780
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
787
781
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
788
782
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
783
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
789
784
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
790
785
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
791
786
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -803,15 +798,13 @@ var BotsApiFp = function(configuration) {
|
|
|
803
798
|
/**
|
|
804
799
|
*
|
|
805
800
|
* @param {string | null} [displayName]
|
|
806
|
-
* @param {number | null} [page]
|
|
807
|
-
* @param {number | null} [perPage]
|
|
808
801
|
* @param {*} [options] Override http request option.
|
|
809
802
|
* @throws {RequiredError}
|
|
810
803
|
*/
|
|
811
|
-
allBots(displayName,
|
|
804
|
+
allBots(displayName, options) {
|
|
812
805
|
return __async(this, null, function* () {
|
|
813
806
|
var _a2, _b, _c;
|
|
814
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allBots(displayName,
|
|
807
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allBots(displayName, options);
|
|
815
808
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
816
809
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["BotsApi.allBots"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
817
810
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -860,7 +853,7 @@ var BotsApiFactory = function(configuration, basePath, axios) {
|
|
|
860
853
|
* @throws {RequiredError}
|
|
861
854
|
*/
|
|
862
855
|
allBots(requestParameters = {}, options) {
|
|
863
|
-
return localVarFp.allBots(requestParameters.displayName,
|
|
856
|
+
return localVarFp.allBots(requestParameters.displayName, options).then((request) => request(axios, basePath));
|
|
864
857
|
},
|
|
865
858
|
/**
|
|
866
859
|
*
|
|
@@ -888,17 +881,15 @@ var BotsApi = class extends BaseAPI {
|
|
|
888
881
|
* @param {BotsApiAllBotsRequest} requestParameters Request parameters.
|
|
889
882
|
* @param {*} [options] Override http request option.
|
|
890
883
|
* @throws {RequiredError}
|
|
891
|
-
* @memberof BotsApi
|
|
892
884
|
*/
|
|
893
885
|
allBots(requestParameters = {}, options) {
|
|
894
|
-
return BotsApiFp(this.configuration).allBots(requestParameters.displayName,
|
|
886
|
+
return BotsApiFp(this.configuration).allBots(requestParameters.displayName, options).then((request) => request(this.axios, this.basePath));
|
|
895
887
|
}
|
|
896
888
|
/**
|
|
897
889
|
*
|
|
898
890
|
* @param {BotsApiGetBotRequest} requestParameters Request parameters.
|
|
899
891
|
* @param {*} [options] Override http request option.
|
|
900
892
|
* @throws {RequiredError}
|
|
901
|
-
* @memberof BotsApi
|
|
902
893
|
*/
|
|
903
894
|
getBot(requestParameters, options) {
|
|
904
895
|
return BotsApiFp(this.configuration).getBot(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -908,7 +899,6 @@ var BotsApi = class extends BaseAPI {
|
|
|
908
899
|
* @param {BotsApiUpdateBotRequest} requestParameters Request parameters.
|
|
909
900
|
* @param {*} [options] Override http request option.
|
|
910
901
|
* @throws {RequiredError}
|
|
911
|
-
* @memberof BotsApi
|
|
912
902
|
*/
|
|
913
903
|
updateBot(requestParameters, options) {
|
|
914
904
|
return BotsApiFp(this.configuration).updateBot(requestParameters.id, requestParameters.updateBot, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -919,12 +909,10 @@ var DeploymentKindsApiAxiosParamCreator = function(configuration) {
|
|
|
919
909
|
/**
|
|
920
910
|
*
|
|
921
911
|
* @param {string | null} [name]
|
|
922
|
-
* @param {number | null} [page]
|
|
923
|
-
* @param {number | null} [perPage]
|
|
924
912
|
* @param {*} [options] Override http request option.
|
|
925
913
|
* @throws {RequiredError}
|
|
926
914
|
*/
|
|
927
|
-
allDeploymentKinds: (_0, _1
|
|
915
|
+
allDeploymentKinds: (_0, ..._1) => __async(null, [_0, ..._1], function* (name, options = {}) {
|
|
928
916
|
const localVarPath = `/api/v2/deployment-kinds`;
|
|
929
917
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
930
918
|
let baseOptions;
|
|
@@ -939,12 +927,7 @@ var DeploymentKindsApiAxiosParamCreator = function(configuration) {
|
|
|
939
927
|
if (name !== void 0) {
|
|
940
928
|
localVarQueryParameter["name"] = name;
|
|
941
929
|
}
|
|
942
|
-
|
|
943
|
-
localVarQueryParameter["page"] = page;
|
|
944
|
-
}
|
|
945
|
-
if (perPage !== void 0) {
|
|
946
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
947
|
-
}
|
|
930
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
948
931
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
949
932
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
950
933
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -959,9 +942,9 @@ var DeploymentKindsApiAxiosParamCreator = function(configuration) {
|
|
|
959
942
|
* @param {*} [options] Override http request option.
|
|
960
943
|
* @throws {RequiredError}
|
|
961
944
|
*/
|
|
962
|
-
getDeploymentKind: (_0, ..._1) => __async(
|
|
945
|
+
getDeploymentKind: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
963
946
|
assertParamExists("getDeploymentKind", "id", id);
|
|
964
|
-
const localVarPath = `/api/v2/deployment-kinds/{id}`.replace(
|
|
947
|
+
const localVarPath = `/api/v2/deployment-kinds/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
965
948
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
966
949
|
let baseOptions;
|
|
967
950
|
if (configuration) {
|
|
@@ -972,6 +955,7 @@ var DeploymentKindsApiAxiosParamCreator = function(configuration) {
|
|
|
972
955
|
const localVarQueryParameter = {};
|
|
973
956
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
974
957
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
958
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
975
959
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
976
960
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
977
961
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -987,10 +971,10 @@ var DeploymentKindsApiAxiosParamCreator = function(configuration) {
|
|
|
987
971
|
* @param {*} [options] Override http request option.
|
|
988
972
|
* @throws {RequiredError}
|
|
989
973
|
*/
|
|
990
|
-
updateDeploymentKind: (_0, _1, ..._2) => __async(
|
|
974
|
+
updateDeploymentKind: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (id, updateDeploymentKind, options = {}) {
|
|
991
975
|
assertParamExists("updateDeploymentKind", "id", id);
|
|
992
976
|
assertParamExists("updateDeploymentKind", "updateDeploymentKind", updateDeploymentKind);
|
|
993
|
-
const localVarPath = `/api/v2/deployment-kinds/{id}`.replace(
|
|
977
|
+
const localVarPath = `/api/v2/deployment-kinds/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
994
978
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
995
979
|
let baseOptions;
|
|
996
980
|
if (configuration) {
|
|
@@ -1002,6 +986,7 @@ var DeploymentKindsApiAxiosParamCreator = function(configuration) {
|
|
|
1002
986
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1003
987
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
1004
988
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
989
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1005
990
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1006
991
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1007
992
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1019,15 +1004,13 @@ var DeploymentKindsApiFp = function(configuration) {
|
|
|
1019
1004
|
/**
|
|
1020
1005
|
*
|
|
1021
1006
|
* @param {string | null} [name]
|
|
1022
|
-
* @param {number | null} [page]
|
|
1023
|
-
* @param {number | null} [perPage]
|
|
1024
1007
|
* @param {*} [options] Override http request option.
|
|
1025
1008
|
* @throws {RequiredError}
|
|
1026
1009
|
*/
|
|
1027
|
-
allDeploymentKinds(name,
|
|
1010
|
+
allDeploymentKinds(name, options) {
|
|
1028
1011
|
return __async(this, null, function* () {
|
|
1029
1012
|
var _a2, _b, _c;
|
|
1030
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeploymentKinds(name,
|
|
1013
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeploymentKinds(name, options);
|
|
1031
1014
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
1032
1015
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DeploymentKindsApi.allDeploymentKinds"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
1033
1016
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1076,7 +1059,7 @@ var DeploymentKindsApiFactory = function(configuration, basePath, axios) {
|
|
|
1076
1059
|
* @throws {RequiredError}
|
|
1077
1060
|
*/
|
|
1078
1061
|
allDeploymentKinds(requestParameters = {}, options) {
|
|
1079
|
-
return localVarFp.allDeploymentKinds(requestParameters.name,
|
|
1062
|
+
return localVarFp.allDeploymentKinds(requestParameters.name, options).then((request) => request(axios, basePath));
|
|
1080
1063
|
},
|
|
1081
1064
|
/**
|
|
1082
1065
|
*
|
|
@@ -1104,17 +1087,15 @@ var DeploymentKindsApi = class extends BaseAPI {
|
|
|
1104
1087
|
* @param {DeploymentKindsApiAllDeploymentKindsRequest} requestParameters Request parameters.
|
|
1105
1088
|
* @param {*} [options] Override http request option.
|
|
1106
1089
|
* @throws {RequiredError}
|
|
1107
|
-
* @memberof DeploymentKindsApi
|
|
1108
1090
|
*/
|
|
1109
1091
|
allDeploymentKinds(requestParameters = {}, options) {
|
|
1110
|
-
return DeploymentKindsApiFp(this.configuration).allDeploymentKinds(requestParameters.name,
|
|
1092
|
+
return DeploymentKindsApiFp(this.configuration).allDeploymentKinds(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
1111
1093
|
}
|
|
1112
1094
|
/**
|
|
1113
1095
|
*
|
|
1114
1096
|
* @param {DeploymentKindsApiGetDeploymentKindRequest} requestParameters Request parameters.
|
|
1115
1097
|
* @param {*} [options] Override http request option.
|
|
1116
1098
|
* @throws {RequiredError}
|
|
1117
|
-
* @memberof DeploymentKindsApi
|
|
1118
1099
|
*/
|
|
1119
1100
|
getDeploymentKind(requestParameters, options) {
|
|
1120
1101
|
return DeploymentKindsApiFp(this.configuration).getDeploymentKind(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1124,7 +1105,6 @@ var DeploymentKindsApi = class extends BaseAPI {
|
|
|
1124
1105
|
* @param {DeploymentKindsApiUpdateDeploymentKindRequest} requestParameters Request parameters.
|
|
1125
1106
|
* @param {*} [options] Override http request option.
|
|
1126
1107
|
* @throws {RequiredError}
|
|
1127
|
-
* @memberof DeploymentKindsApi
|
|
1128
1108
|
*/
|
|
1129
1109
|
updateDeploymentKind(requestParameters, options) {
|
|
1130
1110
|
return DeploymentKindsApiFp(this.configuration).updateDeploymentKind(requestParameters.id, requestParameters.updateDeploymentKind, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1135,12 +1115,10 @@ var DeploymentPermissionsApiAxiosParamCreator = function(configuration) {
|
|
|
1135
1115
|
/**
|
|
1136
1116
|
*
|
|
1137
1117
|
* @param {string | null} [envId]
|
|
1138
|
-
* @param {number | null} [page]
|
|
1139
|
-
* @param {number | null} [perPage]
|
|
1140
1118
|
* @param {*} [options] Override http request option.
|
|
1141
1119
|
* @throws {RequiredError}
|
|
1142
1120
|
*/
|
|
1143
|
-
allDeploymentPermissions: (_0, _1
|
|
1121
|
+
allDeploymentPermissions: (_0, ..._1) => __async(null, [_0, ..._1], function* (envId, options = {}) {
|
|
1144
1122
|
const localVarPath = `/api/v2/deployment-permissions`;
|
|
1145
1123
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1146
1124
|
let baseOptions;
|
|
@@ -1155,12 +1133,7 @@ var DeploymentPermissionsApiAxiosParamCreator = function(configuration) {
|
|
|
1155
1133
|
if (envId !== void 0) {
|
|
1156
1134
|
localVarQueryParameter["env_id"] = envId;
|
|
1157
1135
|
}
|
|
1158
|
-
|
|
1159
|
-
localVarQueryParameter["page"] = page;
|
|
1160
|
-
}
|
|
1161
|
-
if (perPage !== void 0) {
|
|
1162
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
1163
|
-
}
|
|
1136
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1164
1137
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1165
1138
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1166
1139
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1175,7 +1148,7 @@ var DeploymentPermissionsApiAxiosParamCreator = function(configuration) {
|
|
|
1175
1148
|
* @param {*} [options] Override http request option.
|
|
1176
1149
|
* @throws {RequiredError}
|
|
1177
1150
|
*/
|
|
1178
|
-
createDeploymentPermission: (_0, ..._1) => __async(
|
|
1151
|
+
createDeploymentPermission: (_0, ..._1) => __async(null, [_0, ..._1], function* (newDeploymentPermission, options = {}) {
|
|
1179
1152
|
assertParamExists("createDeploymentPermission", "newDeploymentPermission", newDeploymentPermission);
|
|
1180
1153
|
const localVarPath = `/api/v2/deployment-permissions`;
|
|
1181
1154
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1189,6 +1162,7 @@ var DeploymentPermissionsApiAxiosParamCreator = function(configuration) {
|
|
|
1189
1162
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1190
1163
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
1191
1164
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1165
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1192
1166
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1193
1167
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1194
1168
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1204,9 +1178,9 @@ var DeploymentPermissionsApiAxiosParamCreator = function(configuration) {
|
|
|
1204
1178
|
* @param {*} [options] Override http request option.
|
|
1205
1179
|
* @throws {RequiredError}
|
|
1206
1180
|
*/
|
|
1207
|
-
deleteDeploymentPermission: (_0, ..._1) => __async(
|
|
1181
|
+
deleteDeploymentPermission: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
1208
1182
|
assertParamExists("deleteDeploymentPermission", "id", id);
|
|
1209
|
-
const localVarPath = `/api/v2/deployment-permissions/{id}`.replace(
|
|
1183
|
+
const localVarPath = `/api/v2/deployment-permissions/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
1210
1184
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1211
1185
|
let baseOptions;
|
|
1212
1186
|
if (configuration) {
|
|
@@ -1231,9 +1205,9 @@ var DeploymentPermissionsApiAxiosParamCreator = function(configuration) {
|
|
|
1231
1205
|
* @param {*} [options] Override http request option.
|
|
1232
1206
|
* @throws {RequiredError}
|
|
1233
1207
|
*/
|
|
1234
|
-
getDeploymentPermission: (_0, ..._1) => __async(
|
|
1208
|
+
getDeploymentPermission: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
1235
1209
|
assertParamExists("getDeploymentPermission", "id", id);
|
|
1236
|
-
const localVarPath = `/api/v2/deployment-permissions/{id}`.replace(
|
|
1210
|
+
const localVarPath = `/api/v2/deployment-permissions/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
1237
1211
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1238
1212
|
let baseOptions;
|
|
1239
1213
|
if (configuration) {
|
|
@@ -1244,6 +1218,7 @@ var DeploymentPermissionsApiAxiosParamCreator = function(configuration) {
|
|
|
1244
1218
|
const localVarQueryParameter = {};
|
|
1245
1219
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1246
1220
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
1221
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1247
1222
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1248
1223
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1249
1224
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1260,15 +1235,13 @@ var DeploymentPermissionsApiFp = function(configuration) {
|
|
|
1260
1235
|
/**
|
|
1261
1236
|
*
|
|
1262
1237
|
* @param {string | null} [envId]
|
|
1263
|
-
* @param {number | null} [page]
|
|
1264
|
-
* @param {number | null} [perPage]
|
|
1265
1238
|
* @param {*} [options] Override http request option.
|
|
1266
1239
|
* @throws {RequiredError}
|
|
1267
1240
|
*/
|
|
1268
|
-
allDeploymentPermissions(envId,
|
|
1241
|
+
allDeploymentPermissions(envId, options) {
|
|
1269
1242
|
return __async(this, null, function* () {
|
|
1270
1243
|
var _a2, _b, _c;
|
|
1271
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeploymentPermissions(envId,
|
|
1244
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeploymentPermissions(envId, options);
|
|
1272
1245
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
1273
1246
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DeploymentPermissionsApi.allDeploymentPermissions"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
1274
1247
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1331,7 +1304,7 @@ var DeploymentPermissionsApiFactory = function(configuration, basePath, axios) {
|
|
|
1331
1304
|
* @throws {RequiredError}
|
|
1332
1305
|
*/
|
|
1333
1306
|
allDeploymentPermissions(requestParameters = {}, options) {
|
|
1334
|
-
return localVarFp.allDeploymentPermissions(requestParameters.envId,
|
|
1307
|
+
return localVarFp.allDeploymentPermissions(requestParameters.envId, options).then((request) => request(axios, basePath));
|
|
1335
1308
|
},
|
|
1336
1309
|
/**
|
|
1337
1310
|
*
|
|
@@ -1368,17 +1341,15 @@ var DeploymentPermissionsApi = class extends BaseAPI {
|
|
|
1368
1341
|
* @param {DeploymentPermissionsApiAllDeploymentPermissionsRequest} requestParameters Request parameters.
|
|
1369
1342
|
* @param {*} [options] Override http request option.
|
|
1370
1343
|
* @throws {RequiredError}
|
|
1371
|
-
* @memberof DeploymentPermissionsApi
|
|
1372
1344
|
*/
|
|
1373
1345
|
allDeploymentPermissions(requestParameters = {}, options) {
|
|
1374
|
-
return DeploymentPermissionsApiFp(this.configuration).allDeploymentPermissions(requestParameters.envId,
|
|
1346
|
+
return DeploymentPermissionsApiFp(this.configuration).allDeploymentPermissions(requestParameters.envId, options).then((request) => request(this.axios, this.basePath));
|
|
1375
1347
|
}
|
|
1376
1348
|
/**
|
|
1377
1349
|
*
|
|
1378
1350
|
* @param {DeploymentPermissionsApiCreateDeploymentPermissionRequest} requestParameters Request parameters.
|
|
1379
1351
|
* @param {*} [options] Override http request option.
|
|
1380
1352
|
* @throws {RequiredError}
|
|
1381
|
-
* @memberof DeploymentPermissionsApi
|
|
1382
1353
|
*/
|
|
1383
1354
|
createDeploymentPermission(requestParameters, options) {
|
|
1384
1355
|
return DeploymentPermissionsApiFp(this.configuration).createDeploymentPermission(requestParameters.newDeploymentPermission, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1388,7 +1359,6 @@ var DeploymentPermissionsApi = class extends BaseAPI {
|
|
|
1388
1359
|
* @param {DeploymentPermissionsApiDeleteDeploymentPermissionRequest} requestParameters Request parameters.
|
|
1389
1360
|
* @param {*} [options] Override http request option.
|
|
1390
1361
|
* @throws {RequiredError}
|
|
1391
|
-
* @memberof DeploymentPermissionsApi
|
|
1392
1362
|
*/
|
|
1393
1363
|
deleteDeploymentPermission(requestParameters, options) {
|
|
1394
1364
|
return DeploymentPermissionsApiFp(this.configuration).deleteDeploymentPermission(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1398,7 +1368,6 @@ var DeploymentPermissionsApi = class extends BaseAPI {
|
|
|
1398
1368
|
* @param {DeploymentPermissionsApiGetDeploymentPermissionRequest} requestParameters Request parameters.
|
|
1399
1369
|
* @param {*} [options] Override http request option.
|
|
1400
1370
|
* @throws {RequiredError}
|
|
1401
|
-
* @memberof DeploymentPermissionsApi
|
|
1402
1371
|
*/
|
|
1403
1372
|
getDeploymentPermission(requestParameters, options) {
|
|
1404
1373
|
return DeploymentPermissionsApiFp(this.configuration).getDeploymentPermission(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1411,12 +1380,10 @@ var DeploymentResourceTypesApiAxiosParamCreator = function(configuration) {
|
|
|
1411
1380
|
* @param {string | null} [envId]
|
|
1412
1381
|
* @param {string | null} [deploymentKindId]
|
|
1413
1382
|
* @param {string | null} [key]
|
|
1414
|
-
* @param {number | null} [page]
|
|
1415
|
-
* @param {number | null} [perPage]
|
|
1416
1383
|
* @param {*} [options] Override http request option.
|
|
1417
1384
|
* @throws {RequiredError}
|
|
1418
1385
|
*/
|
|
1419
|
-
allDeploymentResourceTypes: (_0, _1, _2, _3
|
|
1386
|
+
allDeploymentResourceTypes: (_0, _1, _2, ..._3) => __async(null, [_0, _1, _2, ..._3], function* (envId, deploymentKindId, key, options = {}) {
|
|
1420
1387
|
const localVarPath = `/api/v2/deployment-resource-types`;
|
|
1421
1388
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1422
1389
|
let baseOptions;
|
|
@@ -1437,12 +1404,7 @@ var DeploymentResourceTypesApiAxiosParamCreator = function(configuration) {
|
|
|
1437
1404
|
if (key !== void 0) {
|
|
1438
1405
|
localVarQueryParameter["key"] = key;
|
|
1439
1406
|
}
|
|
1440
|
-
|
|
1441
|
-
localVarQueryParameter["page"] = page;
|
|
1442
|
-
}
|
|
1443
|
-
if (perPage !== void 0) {
|
|
1444
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
1445
|
-
}
|
|
1407
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1446
1408
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1447
1409
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1448
1410
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1457,9 +1419,9 @@ var DeploymentResourceTypesApiAxiosParamCreator = function(configuration) {
|
|
|
1457
1419
|
* @param {*} [options] Override http request option.
|
|
1458
1420
|
* @throws {RequiredError}
|
|
1459
1421
|
*/
|
|
1460
|
-
getDeploymentResourceType: (_0, ..._1) => __async(
|
|
1422
|
+
getDeploymentResourceType: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
1461
1423
|
assertParamExists("getDeploymentResourceType", "id", id);
|
|
1462
|
-
const localVarPath = `/api/v2/deployment-resource-types/{id}`.replace(
|
|
1424
|
+
const localVarPath = `/api/v2/deployment-resource-types/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
1463
1425
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1464
1426
|
let baseOptions;
|
|
1465
1427
|
if (configuration) {
|
|
@@ -1470,6 +1432,7 @@ var DeploymentResourceTypesApiAxiosParamCreator = function(configuration) {
|
|
|
1470
1432
|
const localVarQueryParameter = {};
|
|
1471
1433
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1472
1434
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
1435
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1473
1436
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1474
1437
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1475
1438
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1488,15 +1451,13 @@ var DeploymentResourceTypesApiFp = function(configuration) {
|
|
|
1488
1451
|
* @param {string | null} [envId]
|
|
1489
1452
|
* @param {string | null} [deploymentKindId]
|
|
1490
1453
|
* @param {string | null} [key]
|
|
1491
|
-
* @param {number | null} [page]
|
|
1492
|
-
* @param {number | null} [perPage]
|
|
1493
1454
|
* @param {*} [options] Override http request option.
|
|
1494
1455
|
* @throws {RequiredError}
|
|
1495
1456
|
*/
|
|
1496
|
-
allDeploymentResourceTypes(envId, deploymentKindId, key,
|
|
1457
|
+
allDeploymentResourceTypes(envId, deploymentKindId, key, options) {
|
|
1497
1458
|
return __async(this, null, function* () {
|
|
1498
1459
|
var _a2, _b, _c;
|
|
1499
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeploymentResourceTypes(envId, deploymentKindId, key,
|
|
1460
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeploymentResourceTypes(envId, deploymentKindId, key, options);
|
|
1500
1461
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
1501
1462
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DeploymentResourceTypesApi.allDeploymentResourceTypes"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
1502
1463
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1529,7 +1490,7 @@ var DeploymentResourceTypesApiFactory = function(configuration, basePath, axios)
|
|
|
1529
1490
|
* @throws {RequiredError}
|
|
1530
1491
|
*/
|
|
1531
1492
|
allDeploymentResourceTypes(requestParameters = {}, options) {
|
|
1532
|
-
return localVarFp.allDeploymentResourceTypes(requestParameters.envId, requestParameters.deploymentKindId, requestParameters.key,
|
|
1493
|
+
return localVarFp.allDeploymentResourceTypes(requestParameters.envId, requestParameters.deploymentKindId, requestParameters.key, options).then((request) => request(axios, basePath));
|
|
1533
1494
|
},
|
|
1534
1495
|
/**
|
|
1535
1496
|
*
|
|
@@ -1548,17 +1509,15 @@ var DeploymentResourceTypesApi = class extends BaseAPI {
|
|
|
1548
1509
|
* @param {DeploymentResourceTypesApiAllDeploymentResourceTypesRequest} requestParameters Request parameters.
|
|
1549
1510
|
* @param {*} [options] Override http request option.
|
|
1550
1511
|
* @throws {RequiredError}
|
|
1551
|
-
* @memberof DeploymentResourceTypesApi
|
|
1552
1512
|
*/
|
|
1553
1513
|
allDeploymentResourceTypes(requestParameters = {}, options) {
|
|
1554
|
-
return DeploymentResourceTypesApiFp(this.configuration).allDeploymentResourceTypes(requestParameters.envId, requestParameters.deploymentKindId, requestParameters.key,
|
|
1514
|
+
return DeploymentResourceTypesApiFp(this.configuration).allDeploymentResourceTypes(requestParameters.envId, requestParameters.deploymentKindId, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
|
|
1555
1515
|
}
|
|
1556
1516
|
/**
|
|
1557
1517
|
*
|
|
1558
1518
|
* @param {DeploymentResourceTypesApiGetDeploymentResourceTypeRequest} requestParameters Request parameters.
|
|
1559
1519
|
* @param {*} [options] Override http request option.
|
|
1560
1520
|
* @throws {RequiredError}
|
|
1561
|
-
* @memberof DeploymentResourceTypesApi
|
|
1562
1521
|
*/
|
|
1563
1522
|
getDeploymentResourceType(requestParameters, options) {
|
|
1564
1523
|
return DeploymentResourceTypesApiFp(this.configuration).getDeploymentResourceType(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1569,12 +1528,10 @@ var DeploymentResourcesApiAxiosParamCreator = function(configuration) {
|
|
|
1569
1528
|
/**
|
|
1570
1529
|
*
|
|
1571
1530
|
* @param {string | null} [typeId]
|
|
1572
|
-
* @param {number | null} [page]
|
|
1573
|
-
* @param {number | null} [perPage]
|
|
1574
1531
|
* @param {*} [options] Override http request option.
|
|
1575
1532
|
* @throws {RequiredError}
|
|
1576
1533
|
*/
|
|
1577
|
-
allDeploymentResources: (_0, _1
|
|
1534
|
+
allDeploymentResources: (_0, ..._1) => __async(null, [_0, ..._1], function* (typeId, options = {}) {
|
|
1578
1535
|
const localVarPath = `/api/v2/deployment-resources`;
|
|
1579
1536
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1580
1537
|
let baseOptions;
|
|
@@ -1589,12 +1546,7 @@ var DeploymentResourcesApiAxiosParamCreator = function(configuration) {
|
|
|
1589
1546
|
if (typeId !== void 0) {
|
|
1590
1547
|
localVarQueryParameter["type_id"] = typeId;
|
|
1591
1548
|
}
|
|
1592
|
-
|
|
1593
|
-
localVarQueryParameter["page"] = page;
|
|
1594
|
-
}
|
|
1595
|
-
if (perPage !== void 0) {
|
|
1596
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
1597
|
-
}
|
|
1549
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1598
1550
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1599
1551
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1600
1552
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1609,7 +1561,7 @@ var DeploymentResourcesApiAxiosParamCreator = function(configuration) {
|
|
|
1609
1561
|
* @param {*} [options] Override http request option.
|
|
1610
1562
|
* @throws {RequiredError}
|
|
1611
1563
|
*/
|
|
1612
|
-
createDeploymentResource: (_0, ..._1) => __async(
|
|
1564
|
+
createDeploymentResource: (_0, ..._1) => __async(null, [_0, ..._1], function* (newDeploymentResource, options = {}) {
|
|
1613
1565
|
assertParamExists("createDeploymentResource", "newDeploymentResource", newDeploymentResource);
|
|
1614
1566
|
const localVarPath = `/api/v2/deployment-resources`;
|
|
1615
1567
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1623,6 +1575,7 @@ var DeploymentResourcesApiAxiosParamCreator = function(configuration) {
|
|
|
1623
1575
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1624
1576
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
1625
1577
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1578
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1626
1579
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1627
1580
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1628
1581
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1638,9 +1591,9 @@ var DeploymentResourcesApiAxiosParamCreator = function(configuration) {
|
|
|
1638
1591
|
* @param {*} [options] Override http request option.
|
|
1639
1592
|
* @throws {RequiredError}
|
|
1640
1593
|
*/
|
|
1641
|
-
deleteDeploymentResource: (_0, ..._1) => __async(
|
|
1594
|
+
deleteDeploymentResource: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
1642
1595
|
assertParamExists("deleteDeploymentResource", "id", id);
|
|
1643
|
-
const localVarPath = `/api/v2/deployment-resources/{id}`.replace(
|
|
1596
|
+
const localVarPath = `/api/v2/deployment-resources/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
1644
1597
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1645
1598
|
let baseOptions;
|
|
1646
1599
|
if (configuration) {
|
|
@@ -1665,9 +1618,9 @@ var DeploymentResourcesApiAxiosParamCreator = function(configuration) {
|
|
|
1665
1618
|
* @param {*} [options] Override http request option.
|
|
1666
1619
|
* @throws {RequiredError}
|
|
1667
1620
|
*/
|
|
1668
|
-
getDeploymentResource: (_0, ..._1) => __async(
|
|
1621
|
+
getDeploymentResource: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
1669
1622
|
assertParamExists("getDeploymentResource", "id", id);
|
|
1670
|
-
const localVarPath = `/api/v2/deployment-resources/{id}`.replace(
|
|
1623
|
+
const localVarPath = `/api/v2/deployment-resources/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
1671
1624
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1672
1625
|
let baseOptions;
|
|
1673
1626
|
if (configuration) {
|
|
@@ -1678,6 +1631,7 @@ var DeploymentResourcesApiAxiosParamCreator = function(configuration) {
|
|
|
1678
1631
|
const localVarQueryParameter = {};
|
|
1679
1632
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1680
1633
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
1634
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1681
1635
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1682
1636
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1683
1637
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1693,10 +1647,10 @@ var DeploymentResourcesApiAxiosParamCreator = function(configuration) {
|
|
|
1693
1647
|
* @param {*} [options] Override http request option.
|
|
1694
1648
|
* @throws {RequiredError}
|
|
1695
1649
|
*/
|
|
1696
|
-
updateDeploymentResource: (_0, _1, ..._2) => __async(
|
|
1650
|
+
updateDeploymentResource: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (id, updateDeploymentResource, options = {}) {
|
|
1697
1651
|
assertParamExists("updateDeploymentResource", "id", id);
|
|
1698
1652
|
assertParamExists("updateDeploymentResource", "updateDeploymentResource", updateDeploymentResource);
|
|
1699
|
-
const localVarPath = `/api/v2/deployment-resources/{id}`.replace(
|
|
1653
|
+
const localVarPath = `/api/v2/deployment-resources/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
1700
1654
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1701
1655
|
let baseOptions;
|
|
1702
1656
|
if (configuration) {
|
|
@@ -1708,6 +1662,7 @@ var DeploymentResourcesApiAxiosParamCreator = function(configuration) {
|
|
|
1708
1662
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1709
1663
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
1710
1664
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1665
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1711
1666
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1712
1667
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1713
1668
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1725,15 +1680,13 @@ var DeploymentResourcesApiFp = function(configuration) {
|
|
|
1725
1680
|
/**
|
|
1726
1681
|
*
|
|
1727
1682
|
* @param {string | null} [typeId]
|
|
1728
|
-
* @param {number | null} [page]
|
|
1729
|
-
* @param {number | null} [perPage]
|
|
1730
1683
|
* @param {*} [options] Override http request option.
|
|
1731
1684
|
* @throws {RequiredError}
|
|
1732
1685
|
*/
|
|
1733
|
-
allDeploymentResources(typeId,
|
|
1686
|
+
allDeploymentResources(typeId, options) {
|
|
1734
1687
|
return __async(this, null, function* () {
|
|
1735
1688
|
var _a2, _b, _c;
|
|
1736
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeploymentResources(typeId,
|
|
1689
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeploymentResources(typeId, options);
|
|
1737
1690
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
1738
1691
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DeploymentResourcesApi.allDeploymentResources"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
1739
1692
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1812,7 +1765,7 @@ var DeploymentResourcesApiFactory = function(configuration, basePath, axios) {
|
|
|
1812
1765
|
* @throws {RequiredError}
|
|
1813
1766
|
*/
|
|
1814
1767
|
allDeploymentResources(requestParameters = {}, options) {
|
|
1815
|
-
return localVarFp.allDeploymentResources(requestParameters.typeId,
|
|
1768
|
+
return localVarFp.allDeploymentResources(requestParameters.typeId, options).then((request) => request(axios, basePath));
|
|
1816
1769
|
},
|
|
1817
1770
|
/**
|
|
1818
1771
|
*
|
|
@@ -1858,17 +1811,15 @@ var DeploymentResourcesApi = class extends BaseAPI {
|
|
|
1858
1811
|
* @param {DeploymentResourcesApiAllDeploymentResourcesRequest} requestParameters Request parameters.
|
|
1859
1812
|
* @param {*} [options] Override http request option.
|
|
1860
1813
|
* @throws {RequiredError}
|
|
1861
|
-
* @memberof DeploymentResourcesApi
|
|
1862
1814
|
*/
|
|
1863
1815
|
allDeploymentResources(requestParameters = {}, options) {
|
|
1864
|
-
return DeploymentResourcesApiFp(this.configuration).allDeploymentResources(requestParameters.typeId,
|
|
1816
|
+
return DeploymentResourcesApiFp(this.configuration).allDeploymentResources(requestParameters.typeId, options).then((request) => request(this.axios, this.basePath));
|
|
1865
1817
|
}
|
|
1866
1818
|
/**
|
|
1867
1819
|
*
|
|
1868
1820
|
* @param {DeploymentResourcesApiCreateDeploymentResourceRequest} requestParameters Request parameters.
|
|
1869
1821
|
* @param {*} [options] Override http request option.
|
|
1870
1822
|
* @throws {RequiredError}
|
|
1871
|
-
* @memberof DeploymentResourcesApi
|
|
1872
1823
|
*/
|
|
1873
1824
|
createDeploymentResource(requestParameters, options) {
|
|
1874
1825
|
return DeploymentResourcesApiFp(this.configuration).createDeploymentResource(requestParameters.newDeploymentResource, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1878,7 +1829,6 @@ var DeploymentResourcesApi = class extends BaseAPI {
|
|
|
1878
1829
|
* @param {DeploymentResourcesApiDeleteDeploymentResourceRequest} requestParameters Request parameters.
|
|
1879
1830
|
* @param {*} [options] Override http request option.
|
|
1880
1831
|
* @throws {RequiredError}
|
|
1881
|
-
* @memberof DeploymentResourcesApi
|
|
1882
1832
|
*/
|
|
1883
1833
|
deleteDeploymentResource(requestParameters, options) {
|
|
1884
1834
|
return DeploymentResourcesApiFp(this.configuration).deleteDeploymentResource(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1888,7 +1838,6 @@ var DeploymentResourcesApi = class extends BaseAPI {
|
|
|
1888
1838
|
* @param {DeploymentResourcesApiGetDeploymentResourceRequest} requestParameters Request parameters.
|
|
1889
1839
|
* @param {*} [options] Override http request option.
|
|
1890
1840
|
* @throws {RequiredError}
|
|
1891
|
-
* @memberof DeploymentResourcesApi
|
|
1892
1841
|
*/
|
|
1893
1842
|
getDeploymentResource(requestParameters, options) {
|
|
1894
1843
|
return DeploymentResourcesApiFp(this.configuration).getDeploymentResource(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1898,7 +1847,6 @@ var DeploymentResourcesApi = class extends BaseAPI {
|
|
|
1898
1847
|
* @param {DeploymentResourcesApiUpdateDeploymentResourceRequest} requestParameters Request parameters.
|
|
1899
1848
|
* @param {*} [options] Override http request option.
|
|
1900
1849
|
* @throws {RequiredError}
|
|
1901
|
-
* @memberof DeploymentResourcesApi
|
|
1902
1850
|
*/
|
|
1903
1851
|
updateDeploymentResource(requestParameters, options) {
|
|
1904
1852
|
return DeploymentResourcesApiFp(this.configuration).updateDeploymentResource(requestParameters.id, requestParameters.updateDeploymentResource, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1910,12 +1858,10 @@ var DeploymentTasksApiAxiosParamCreator = function(configuration) {
|
|
|
1910
1858
|
*
|
|
1911
1859
|
* @param {string | null} [clusterId]
|
|
1912
1860
|
* @param {string | null} [deploymentId]
|
|
1913
|
-
* @param {number | null} [page]
|
|
1914
|
-
* @param {number | null} [perPage]
|
|
1915
1861
|
* @param {*} [options] Override http request option.
|
|
1916
1862
|
* @throws {RequiredError}
|
|
1917
1863
|
*/
|
|
1918
|
-
allDeploymentTasks: (_0, _1, _2
|
|
1864
|
+
allDeploymentTasks: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (clusterId, deploymentId, options = {}) {
|
|
1919
1865
|
const localVarPath = `/api/v2/deployment-tasks`;
|
|
1920
1866
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1921
1867
|
let baseOptions;
|
|
@@ -1933,12 +1879,7 @@ var DeploymentTasksApiAxiosParamCreator = function(configuration) {
|
|
|
1933
1879
|
if (deploymentId !== void 0) {
|
|
1934
1880
|
localVarQueryParameter["deployment_id"] = deploymentId;
|
|
1935
1881
|
}
|
|
1936
|
-
|
|
1937
|
-
localVarQueryParameter["page"] = page;
|
|
1938
|
-
}
|
|
1939
|
-
if (perPage !== void 0) {
|
|
1940
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
1941
|
-
}
|
|
1882
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1942
1883
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1943
1884
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1944
1885
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1953,7 +1894,7 @@ var DeploymentTasksApiAxiosParamCreator = function(configuration) {
|
|
|
1953
1894
|
* @param {*} [options] Override http request option.
|
|
1954
1895
|
* @throws {RequiredError}
|
|
1955
1896
|
*/
|
|
1956
|
-
createDeploymentTask: (_0, ..._1) => __async(
|
|
1897
|
+
createDeploymentTask: (_0, ..._1) => __async(null, [_0, ..._1], function* (createDeploymentTask, options = {}) {
|
|
1957
1898
|
assertParamExists("createDeploymentTask", "createDeploymentTask", createDeploymentTask);
|
|
1958
1899
|
const localVarPath = `/api/v2/deployment-tasks`;
|
|
1959
1900
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1967,6 +1908,7 @@ var DeploymentTasksApiAxiosParamCreator = function(configuration) {
|
|
|
1967
1908
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1968
1909
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
1969
1910
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1911
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1970
1912
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1971
1913
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1972
1914
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1982,9 +1924,9 @@ var DeploymentTasksApiAxiosParamCreator = function(configuration) {
|
|
|
1982
1924
|
* @param {*} [options] Override http request option.
|
|
1983
1925
|
* @throws {RequiredError}
|
|
1984
1926
|
*/
|
|
1985
|
-
getDeploymentTask: (_0, ..._1) => __async(
|
|
1927
|
+
getDeploymentTask: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
1986
1928
|
assertParamExists("getDeploymentTask", "id", id);
|
|
1987
|
-
const localVarPath = `/api/v2/deployment-tasks/{id}`.replace(
|
|
1929
|
+
const localVarPath = `/api/v2/deployment-tasks/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
1988
1930
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1989
1931
|
let baseOptions;
|
|
1990
1932
|
if (configuration) {
|
|
@@ -1995,6 +1937,7 @@ var DeploymentTasksApiAxiosParamCreator = function(configuration) {
|
|
|
1995
1937
|
const localVarQueryParameter = {};
|
|
1996
1938
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1997
1939
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
1940
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1998
1941
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1999
1942
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2000
1943
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2012,15 +1955,13 @@ var DeploymentTasksApiFp = function(configuration) {
|
|
|
2012
1955
|
*
|
|
2013
1956
|
* @param {string | null} [clusterId]
|
|
2014
1957
|
* @param {string | null} [deploymentId]
|
|
2015
|
-
* @param {number | null} [page]
|
|
2016
|
-
* @param {number | null} [perPage]
|
|
2017
1958
|
* @param {*} [options] Override http request option.
|
|
2018
1959
|
* @throws {RequiredError}
|
|
2019
1960
|
*/
|
|
2020
|
-
allDeploymentTasks(clusterId, deploymentId,
|
|
1961
|
+
allDeploymentTasks(clusterId, deploymentId, options) {
|
|
2021
1962
|
return __async(this, null, function* () {
|
|
2022
1963
|
var _a2, _b, _c;
|
|
2023
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeploymentTasks(clusterId, deploymentId,
|
|
1964
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeploymentTasks(clusterId, deploymentId, options);
|
|
2024
1965
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
2025
1966
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DeploymentTasksApi.allDeploymentTasks"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
2026
1967
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2068,7 +2009,7 @@ var DeploymentTasksApiFactory = function(configuration, basePath, axios) {
|
|
|
2068
2009
|
* @throws {RequiredError}
|
|
2069
2010
|
*/
|
|
2070
2011
|
allDeploymentTasks(requestParameters = {}, options) {
|
|
2071
|
-
return localVarFp.allDeploymentTasks(requestParameters.clusterId, requestParameters.deploymentId,
|
|
2012
|
+
return localVarFp.allDeploymentTasks(requestParameters.clusterId, requestParameters.deploymentId, options).then((request) => request(axios, basePath));
|
|
2072
2013
|
},
|
|
2073
2014
|
/**
|
|
2074
2015
|
*
|
|
@@ -2096,17 +2037,15 @@ var DeploymentTasksApi = class extends BaseAPI {
|
|
|
2096
2037
|
* @param {DeploymentTasksApiAllDeploymentTasksRequest} requestParameters Request parameters.
|
|
2097
2038
|
* @param {*} [options] Override http request option.
|
|
2098
2039
|
* @throws {RequiredError}
|
|
2099
|
-
* @memberof DeploymentTasksApi
|
|
2100
2040
|
*/
|
|
2101
2041
|
allDeploymentTasks(requestParameters = {}, options) {
|
|
2102
|
-
return DeploymentTasksApiFp(this.configuration).allDeploymentTasks(requestParameters.clusterId, requestParameters.deploymentId,
|
|
2042
|
+
return DeploymentTasksApiFp(this.configuration).allDeploymentTasks(requestParameters.clusterId, requestParameters.deploymentId, options).then((request) => request(this.axios, this.basePath));
|
|
2103
2043
|
}
|
|
2104
2044
|
/**
|
|
2105
2045
|
*
|
|
2106
2046
|
* @param {DeploymentTasksApiCreateDeploymentTaskRequest} requestParameters Request parameters.
|
|
2107
2047
|
* @param {*} [options] Override http request option.
|
|
2108
2048
|
* @throws {RequiredError}
|
|
2109
|
-
* @memberof DeploymentTasksApi
|
|
2110
2049
|
*/
|
|
2111
2050
|
createDeploymentTask(requestParameters, options) {
|
|
2112
2051
|
return DeploymentTasksApiFp(this.configuration).createDeploymentTask(requestParameters.createDeploymentTask, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2116,7 +2055,6 @@ var DeploymentTasksApi = class extends BaseAPI {
|
|
|
2116
2055
|
* @param {DeploymentTasksApiGetDeploymentTaskRequest} requestParameters Request parameters.
|
|
2117
2056
|
* @param {*} [options] Override http request option.
|
|
2118
2057
|
* @throws {RequiredError}
|
|
2119
|
-
* @memberof DeploymentTasksApi
|
|
2120
2058
|
*/
|
|
2121
2059
|
getDeploymentTask(requestParameters, options) {
|
|
2122
2060
|
return DeploymentTasksApiFp(this.configuration).getDeploymentTask(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2130,12 +2068,10 @@ var DeploymentsApiAxiosParamCreator = function(configuration) {
|
|
|
2130
2068
|
* @param {string | null} [kindId]
|
|
2131
2069
|
* @param {string | null} [clusterId]
|
|
2132
2070
|
* @param {boolean | null} [enabled]
|
|
2133
|
-
* @param {number | null} [page]
|
|
2134
|
-
* @param {number | null} [perPage]
|
|
2135
2071
|
* @param {*} [options] Override http request option.
|
|
2136
2072
|
* @throws {RequiredError}
|
|
2137
2073
|
*/
|
|
2138
|
-
allDeployments: (_0, _1, _2, _3, _4
|
|
2074
|
+
allDeployments: (_0, _1, _2, _3, ..._4) => __async(null, [_0, _1, _2, _3, ..._4], function* (name, kindId, clusterId, enabled, options = {}) {
|
|
2139
2075
|
const localVarPath = `/api/v2/deployments`;
|
|
2140
2076
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2141
2077
|
let baseOptions;
|
|
@@ -2159,12 +2095,7 @@ var DeploymentsApiAxiosParamCreator = function(configuration) {
|
|
|
2159
2095
|
if (enabled !== void 0) {
|
|
2160
2096
|
localVarQueryParameter["enabled"] = enabled;
|
|
2161
2097
|
}
|
|
2162
|
-
|
|
2163
|
-
localVarQueryParameter["page"] = page;
|
|
2164
|
-
}
|
|
2165
|
-
if (perPage !== void 0) {
|
|
2166
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
2167
|
-
}
|
|
2098
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2168
2099
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2169
2100
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2170
2101
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2179,7 +2110,7 @@ var DeploymentsApiAxiosParamCreator = function(configuration) {
|
|
|
2179
2110
|
* @param {*} [options] Override http request option.
|
|
2180
2111
|
* @throws {RequiredError}
|
|
2181
2112
|
*/
|
|
2182
|
-
createDeployment: (_0, ..._1) => __async(
|
|
2113
|
+
createDeployment: (_0, ..._1) => __async(null, [_0, ..._1], function* (newDeployment, options = {}) {
|
|
2183
2114
|
assertParamExists("createDeployment", "newDeployment", newDeployment);
|
|
2184
2115
|
const localVarPath = `/api/v2/deployments`;
|
|
2185
2116
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2193,6 +2124,7 @@ var DeploymentsApiAxiosParamCreator = function(configuration) {
|
|
|
2193
2124
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2194
2125
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
2195
2126
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2127
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2196
2128
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2197
2129
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2198
2130
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2208,9 +2140,9 @@ var DeploymentsApiAxiosParamCreator = function(configuration) {
|
|
|
2208
2140
|
* @param {*} [options] Override http request option.
|
|
2209
2141
|
* @throws {RequiredError}
|
|
2210
2142
|
*/
|
|
2211
|
-
deleteDeployment: (_0, ..._1) => __async(
|
|
2143
|
+
deleteDeployment: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
2212
2144
|
assertParamExists("deleteDeployment", "id", id);
|
|
2213
|
-
const localVarPath = `/api/v2/deployments/{id}`.replace(
|
|
2145
|
+
const localVarPath = `/api/v2/deployments/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
2214
2146
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2215
2147
|
let baseOptions;
|
|
2216
2148
|
if (configuration) {
|
|
@@ -2235,9 +2167,9 @@ var DeploymentsApiAxiosParamCreator = function(configuration) {
|
|
|
2235
2167
|
* @param {*} [options] Override http request option.
|
|
2236
2168
|
* @throws {RequiredError}
|
|
2237
2169
|
*/
|
|
2238
|
-
getDeployment: (_0, ..._1) => __async(
|
|
2170
|
+
getDeployment: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
2239
2171
|
assertParamExists("getDeployment", "id", id);
|
|
2240
|
-
const localVarPath = `/api/v2/deployments/{id}`.replace(
|
|
2172
|
+
const localVarPath = `/api/v2/deployments/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
2241
2173
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2242
2174
|
let baseOptions;
|
|
2243
2175
|
if (configuration) {
|
|
@@ -2248,6 +2180,7 @@ var DeploymentsApiAxiosParamCreator = function(configuration) {
|
|
|
2248
2180
|
const localVarQueryParameter = {};
|
|
2249
2181
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2250
2182
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
2183
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2251
2184
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2252
2185
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2253
2186
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2263,10 +2196,10 @@ var DeploymentsApiAxiosParamCreator = function(configuration) {
|
|
|
2263
2196
|
* @param {*} [options] Override http request option.
|
|
2264
2197
|
* @throws {RequiredError}
|
|
2265
2198
|
*/
|
|
2266
|
-
updateDeployment: (_0, _1, ..._2) => __async(
|
|
2199
|
+
updateDeployment: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (id, updateDeployment, options = {}) {
|
|
2267
2200
|
assertParamExists("updateDeployment", "id", id);
|
|
2268
2201
|
assertParamExists("updateDeployment", "updateDeployment", updateDeployment);
|
|
2269
|
-
const localVarPath = `/api/v2/deployments/{id}`.replace(
|
|
2202
|
+
const localVarPath = `/api/v2/deployments/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
2270
2203
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2271
2204
|
let baseOptions;
|
|
2272
2205
|
if (configuration) {
|
|
@@ -2278,6 +2211,7 @@ var DeploymentsApiAxiosParamCreator = function(configuration) {
|
|
|
2278
2211
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2279
2212
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
2280
2213
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2214
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2281
2215
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2282
2216
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2283
2217
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2298,15 +2232,13 @@ var DeploymentsApiFp = function(configuration) {
|
|
|
2298
2232
|
* @param {string | null} [kindId]
|
|
2299
2233
|
* @param {string | null} [clusterId]
|
|
2300
2234
|
* @param {boolean | null} [enabled]
|
|
2301
|
-
* @param {number | null} [page]
|
|
2302
|
-
* @param {number | null} [perPage]
|
|
2303
2235
|
* @param {*} [options] Override http request option.
|
|
2304
2236
|
* @throws {RequiredError}
|
|
2305
2237
|
*/
|
|
2306
|
-
allDeployments(name, kindId, clusterId, enabled,
|
|
2238
|
+
allDeployments(name, kindId, clusterId, enabled, options) {
|
|
2307
2239
|
return __async(this, null, function* () {
|
|
2308
2240
|
var _a2, _b, _c;
|
|
2309
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeployments(name, kindId, clusterId, enabled,
|
|
2241
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeployments(name, kindId, clusterId, enabled, options);
|
|
2310
2242
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
2311
2243
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DeploymentsApi.allDeployments"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
2312
2244
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2385,7 +2317,7 @@ var DeploymentsApiFactory = function(configuration, basePath, axios) {
|
|
|
2385
2317
|
* @throws {RequiredError}
|
|
2386
2318
|
*/
|
|
2387
2319
|
allDeployments(requestParameters = {}, options) {
|
|
2388
|
-
return localVarFp.allDeployments(requestParameters.name, requestParameters.kindId, requestParameters.clusterId, requestParameters.enabled,
|
|
2320
|
+
return localVarFp.allDeployments(requestParameters.name, requestParameters.kindId, requestParameters.clusterId, requestParameters.enabled, options).then((request) => request(axios, basePath));
|
|
2389
2321
|
},
|
|
2390
2322
|
/**
|
|
2391
2323
|
*
|
|
@@ -2431,17 +2363,15 @@ var DeploymentsApi = class extends BaseAPI {
|
|
|
2431
2363
|
* @param {DeploymentsApiAllDeploymentsRequest} requestParameters Request parameters.
|
|
2432
2364
|
* @param {*} [options] Override http request option.
|
|
2433
2365
|
* @throws {RequiredError}
|
|
2434
|
-
* @memberof DeploymentsApi
|
|
2435
2366
|
*/
|
|
2436
2367
|
allDeployments(requestParameters = {}, options) {
|
|
2437
|
-
return DeploymentsApiFp(this.configuration).allDeployments(requestParameters.name, requestParameters.kindId, requestParameters.clusterId, requestParameters.enabled,
|
|
2368
|
+
return DeploymentsApiFp(this.configuration).allDeployments(requestParameters.name, requestParameters.kindId, requestParameters.clusterId, requestParameters.enabled, options).then((request) => request(this.axios, this.basePath));
|
|
2438
2369
|
}
|
|
2439
2370
|
/**
|
|
2440
2371
|
*
|
|
2441
2372
|
* @param {DeploymentsApiCreateDeploymentRequest} requestParameters Request parameters.
|
|
2442
2373
|
* @param {*} [options] Override http request option.
|
|
2443
2374
|
* @throws {RequiredError}
|
|
2444
|
-
* @memberof DeploymentsApi
|
|
2445
2375
|
*/
|
|
2446
2376
|
createDeployment(requestParameters, options) {
|
|
2447
2377
|
return DeploymentsApiFp(this.configuration).createDeployment(requestParameters.newDeployment, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2451,7 +2381,6 @@ var DeploymentsApi = class extends BaseAPI {
|
|
|
2451
2381
|
* @param {DeploymentsApiDeleteDeploymentRequest} requestParameters Request parameters.
|
|
2452
2382
|
* @param {*} [options] Override http request option.
|
|
2453
2383
|
* @throws {RequiredError}
|
|
2454
|
-
* @memberof DeploymentsApi
|
|
2455
2384
|
*/
|
|
2456
2385
|
deleteDeployment(requestParameters, options) {
|
|
2457
2386
|
return DeploymentsApiFp(this.configuration).deleteDeployment(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2461,7 +2390,6 @@ var DeploymentsApi = class extends BaseAPI {
|
|
|
2461
2390
|
* @param {DeploymentsApiGetDeploymentRequest} requestParameters Request parameters.
|
|
2462
2391
|
* @param {*} [options] Override http request option.
|
|
2463
2392
|
* @throws {RequiredError}
|
|
2464
|
-
* @memberof DeploymentsApi
|
|
2465
2393
|
*/
|
|
2466
2394
|
getDeployment(requestParameters, options) {
|
|
2467
2395
|
return DeploymentsApiFp(this.configuration).getDeployment(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2471,7 +2399,6 @@ var DeploymentsApi = class extends BaseAPI {
|
|
|
2471
2399
|
* @param {DeploymentsApiUpdateDeploymentRequest} requestParameters Request parameters.
|
|
2472
2400
|
* @param {*} [options] Override http request option.
|
|
2473
2401
|
* @throws {RequiredError}
|
|
2474
|
-
* @memberof DeploymentsApi
|
|
2475
2402
|
*/
|
|
2476
2403
|
updateDeployment(requestParameters, options) {
|
|
2477
2404
|
return DeploymentsApiFp(this.configuration).updateDeployment(requestParameters.id, requestParameters.updateDeployment, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2482,12 +2409,10 @@ var EnvUserPermissionsApiAxiosParamCreator = function(configuration) {
|
|
|
2482
2409
|
/**
|
|
2483
2410
|
*
|
|
2484
2411
|
* @param {string | null} [envId]
|
|
2485
|
-
* @param {number | null} [page]
|
|
2486
|
-
* @param {number | null} [perPage]
|
|
2487
2412
|
* @param {*} [options] Override http request option.
|
|
2488
2413
|
* @throws {RequiredError}
|
|
2489
2414
|
*/
|
|
2490
|
-
allEnvUserPermissions: (_0, _1
|
|
2415
|
+
allEnvUserPermissions: (_0, ..._1) => __async(null, [_0, ..._1], function* (envId, options = {}) {
|
|
2491
2416
|
const localVarPath = `/api/v2/env-user-permissions`;
|
|
2492
2417
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2493
2418
|
let baseOptions;
|
|
@@ -2502,12 +2427,7 @@ var EnvUserPermissionsApiAxiosParamCreator = function(configuration) {
|
|
|
2502
2427
|
if (envId !== void 0) {
|
|
2503
2428
|
localVarQueryParameter["env_id"] = envId;
|
|
2504
2429
|
}
|
|
2505
|
-
|
|
2506
|
-
localVarQueryParameter["page"] = page;
|
|
2507
|
-
}
|
|
2508
|
-
if (perPage !== void 0) {
|
|
2509
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
2510
|
-
}
|
|
2430
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2511
2431
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2512
2432
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2513
2433
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2522,7 +2442,7 @@ var EnvUserPermissionsApiAxiosParamCreator = function(configuration) {
|
|
|
2522
2442
|
* @param {*} [options] Override http request option.
|
|
2523
2443
|
* @throws {RequiredError}
|
|
2524
2444
|
*/
|
|
2525
|
-
createEnvUserPermission: (_0, ..._1) => __async(
|
|
2445
|
+
createEnvUserPermission: (_0, ..._1) => __async(null, [_0, ..._1], function* (newEnvUserPermission, options = {}) {
|
|
2526
2446
|
assertParamExists("createEnvUserPermission", "newEnvUserPermission", newEnvUserPermission);
|
|
2527
2447
|
const localVarPath = `/api/v2/env-user-permissions`;
|
|
2528
2448
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2536,6 +2456,7 @@ var EnvUserPermissionsApiAxiosParamCreator = function(configuration) {
|
|
|
2536
2456
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2537
2457
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
2538
2458
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2459
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2539
2460
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2540
2461
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2541
2462
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2551,9 +2472,9 @@ var EnvUserPermissionsApiAxiosParamCreator = function(configuration) {
|
|
|
2551
2472
|
* @param {*} [options] Override http request option.
|
|
2552
2473
|
* @throws {RequiredError}
|
|
2553
2474
|
*/
|
|
2554
|
-
deleteEnvUserPermission: (_0, ..._1) => __async(
|
|
2475
|
+
deleteEnvUserPermission: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
2555
2476
|
assertParamExists("deleteEnvUserPermission", "id", id);
|
|
2556
|
-
const localVarPath = `/api/v2/env-user-permissions/{id}`.replace(
|
|
2477
|
+
const localVarPath = `/api/v2/env-user-permissions/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
2557
2478
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2558
2479
|
let baseOptions;
|
|
2559
2480
|
if (configuration) {
|
|
@@ -2578,9 +2499,9 @@ var EnvUserPermissionsApiAxiosParamCreator = function(configuration) {
|
|
|
2578
2499
|
* @param {*} [options] Override http request option.
|
|
2579
2500
|
* @throws {RequiredError}
|
|
2580
2501
|
*/
|
|
2581
|
-
getEnvUserPermission: (_0, ..._1) => __async(
|
|
2502
|
+
getEnvUserPermission: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
2582
2503
|
assertParamExists("getEnvUserPermission", "id", id);
|
|
2583
|
-
const localVarPath = `/api/v2/env-user-permissions/{id}`.replace(
|
|
2504
|
+
const localVarPath = `/api/v2/env-user-permissions/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
2584
2505
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2585
2506
|
let baseOptions;
|
|
2586
2507
|
if (configuration) {
|
|
@@ -2591,6 +2512,7 @@ var EnvUserPermissionsApiAxiosParamCreator = function(configuration) {
|
|
|
2591
2512
|
const localVarQueryParameter = {};
|
|
2592
2513
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2593
2514
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
2515
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2594
2516
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2595
2517
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2596
2518
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2607,15 +2529,13 @@ var EnvUserPermissionsApiFp = function(configuration) {
|
|
|
2607
2529
|
/**
|
|
2608
2530
|
*
|
|
2609
2531
|
* @param {string | null} [envId]
|
|
2610
|
-
* @param {number | null} [page]
|
|
2611
|
-
* @param {number | null} [perPage]
|
|
2612
2532
|
* @param {*} [options] Override http request option.
|
|
2613
2533
|
* @throws {RequiredError}
|
|
2614
2534
|
*/
|
|
2615
|
-
allEnvUserPermissions(envId,
|
|
2535
|
+
allEnvUserPermissions(envId, options) {
|
|
2616
2536
|
return __async(this, null, function* () {
|
|
2617
2537
|
var _a2, _b, _c;
|
|
2618
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allEnvUserPermissions(envId,
|
|
2538
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allEnvUserPermissions(envId, options);
|
|
2619
2539
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
2620
2540
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["EnvUserPermissionsApi.allEnvUserPermissions"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
2621
2541
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2678,7 +2598,7 @@ var EnvUserPermissionsApiFactory = function(configuration, basePath, axios) {
|
|
|
2678
2598
|
* @throws {RequiredError}
|
|
2679
2599
|
*/
|
|
2680
2600
|
allEnvUserPermissions(requestParameters = {}, options) {
|
|
2681
|
-
return localVarFp.allEnvUserPermissions(requestParameters.envId,
|
|
2601
|
+
return localVarFp.allEnvUserPermissions(requestParameters.envId, options).then((request) => request(axios, basePath));
|
|
2682
2602
|
},
|
|
2683
2603
|
/**
|
|
2684
2604
|
*
|
|
@@ -2715,17 +2635,15 @@ var EnvUserPermissionsApi = class extends BaseAPI {
|
|
|
2715
2635
|
* @param {EnvUserPermissionsApiAllEnvUserPermissionsRequest} requestParameters Request parameters.
|
|
2716
2636
|
* @param {*} [options] Override http request option.
|
|
2717
2637
|
* @throws {RequiredError}
|
|
2718
|
-
* @memberof EnvUserPermissionsApi
|
|
2719
2638
|
*/
|
|
2720
2639
|
allEnvUserPermissions(requestParameters = {}, options) {
|
|
2721
|
-
return EnvUserPermissionsApiFp(this.configuration).allEnvUserPermissions(requestParameters.envId,
|
|
2640
|
+
return EnvUserPermissionsApiFp(this.configuration).allEnvUserPermissions(requestParameters.envId, options).then((request) => request(this.axios, this.basePath));
|
|
2722
2641
|
}
|
|
2723
2642
|
/**
|
|
2724
2643
|
*
|
|
2725
2644
|
* @param {EnvUserPermissionsApiCreateEnvUserPermissionRequest} requestParameters Request parameters.
|
|
2726
2645
|
* @param {*} [options] Override http request option.
|
|
2727
2646
|
* @throws {RequiredError}
|
|
2728
|
-
* @memberof EnvUserPermissionsApi
|
|
2729
2647
|
*/
|
|
2730
2648
|
createEnvUserPermission(requestParameters, options) {
|
|
2731
2649
|
return EnvUserPermissionsApiFp(this.configuration).createEnvUserPermission(requestParameters.newEnvUserPermission, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2735,7 +2653,6 @@ var EnvUserPermissionsApi = class extends BaseAPI {
|
|
|
2735
2653
|
* @param {EnvUserPermissionsApiDeleteEnvUserPermissionRequest} requestParameters Request parameters.
|
|
2736
2654
|
* @param {*} [options] Override http request option.
|
|
2737
2655
|
* @throws {RequiredError}
|
|
2738
|
-
* @memberof EnvUserPermissionsApi
|
|
2739
2656
|
*/
|
|
2740
2657
|
deleteEnvUserPermission(requestParameters, options) {
|
|
2741
2658
|
return EnvUserPermissionsApiFp(this.configuration).deleteEnvUserPermission(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2745,7 +2662,6 @@ var EnvUserPermissionsApi = class extends BaseAPI {
|
|
|
2745
2662
|
* @param {EnvUserPermissionsApiGetEnvUserPermissionRequest} requestParameters Request parameters.
|
|
2746
2663
|
* @param {*} [options] Override http request option.
|
|
2747
2664
|
* @throws {RequiredError}
|
|
2748
|
-
* @memberof EnvUserPermissionsApi
|
|
2749
2665
|
*/
|
|
2750
2666
|
getEnvUserPermission(requestParameters, options) {
|
|
2751
2667
|
return EnvUserPermissionsApiFp(this.configuration).getEnvUserPermission(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2757,12 +2673,10 @@ var EnvsApiAxiosParamCreator = function(configuration) {
|
|
|
2757
2673
|
*
|
|
2758
2674
|
* @param {string | null} [name]
|
|
2759
2675
|
* @param {boolean | null} [autoAddNewUsers]
|
|
2760
|
-
* @param {number | null} [page]
|
|
2761
|
-
* @param {number | null} [perPage]
|
|
2762
2676
|
* @param {*} [options] Override http request option.
|
|
2763
2677
|
* @throws {RequiredError}
|
|
2764
2678
|
*/
|
|
2765
|
-
allEnvs: (_0, _1, _2
|
|
2679
|
+
allEnvs: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (name, autoAddNewUsers, options = {}) {
|
|
2766
2680
|
const localVarPath = `/api/v2/envs`;
|
|
2767
2681
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2768
2682
|
let baseOptions;
|
|
@@ -2780,12 +2694,7 @@ var EnvsApiAxiosParamCreator = function(configuration) {
|
|
|
2780
2694
|
if (autoAddNewUsers !== void 0) {
|
|
2781
2695
|
localVarQueryParameter["auto_add_new_users"] = autoAddNewUsers;
|
|
2782
2696
|
}
|
|
2783
|
-
|
|
2784
|
-
localVarQueryParameter["page"] = page;
|
|
2785
|
-
}
|
|
2786
|
-
if (perPage !== void 0) {
|
|
2787
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
2788
|
-
}
|
|
2697
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2789
2698
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2790
2699
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2791
2700
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2800,7 +2709,7 @@ var EnvsApiAxiosParamCreator = function(configuration) {
|
|
|
2800
2709
|
* @param {*} [options] Override http request option.
|
|
2801
2710
|
* @throws {RequiredError}
|
|
2802
2711
|
*/
|
|
2803
|
-
createEnv: (_0, ..._1) => __async(
|
|
2712
|
+
createEnv: (_0, ..._1) => __async(null, [_0, ..._1], function* (newEnv, options = {}) {
|
|
2804
2713
|
assertParamExists("createEnv", "newEnv", newEnv);
|
|
2805
2714
|
const localVarPath = `/api/v2/envs`;
|
|
2806
2715
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2814,6 +2723,7 @@ var EnvsApiAxiosParamCreator = function(configuration) {
|
|
|
2814
2723
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2815
2724
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
2816
2725
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2726
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2817
2727
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2818
2728
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2819
2729
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2829,9 +2739,9 @@ var EnvsApiAxiosParamCreator = function(configuration) {
|
|
|
2829
2739
|
* @param {*} [options] Override http request option.
|
|
2830
2740
|
* @throws {RequiredError}
|
|
2831
2741
|
*/
|
|
2832
|
-
deleteEnv: (_0, ..._1) => __async(
|
|
2742
|
+
deleteEnv: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
2833
2743
|
assertParamExists("deleteEnv", "id", id);
|
|
2834
|
-
const localVarPath = `/api/v2/envs/{id}`.replace(
|
|
2744
|
+
const localVarPath = `/api/v2/envs/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
2835
2745
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2836
2746
|
let baseOptions;
|
|
2837
2747
|
if (configuration) {
|
|
@@ -2856,9 +2766,9 @@ var EnvsApiAxiosParamCreator = function(configuration) {
|
|
|
2856
2766
|
* @param {*} [options] Override http request option.
|
|
2857
2767
|
* @throws {RequiredError}
|
|
2858
2768
|
*/
|
|
2859
|
-
getEnv: (_0, ..._1) => __async(
|
|
2769
|
+
getEnv: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
2860
2770
|
assertParamExists("getEnv", "id", id);
|
|
2861
|
-
const localVarPath = `/api/v2/envs/{id}`.replace(
|
|
2771
|
+
const localVarPath = `/api/v2/envs/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
2862
2772
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2863
2773
|
let baseOptions;
|
|
2864
2774
|
if (configuration) {
|
|
@@ -2869,6 +2779,7 @@ var EnvsApiAxiosParamCreator = function(configuration) {
|
|
|
2869
2779
|
const localVarQueryParameter = {};
|
|
2870
2780
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2871
2781
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
2782
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2872
2783
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2873
2784
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2874
2785
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2884,10 +2795,10 @@ var EnvsApiAxiosParamCreator = function(configuration) {
|
|
|
2884
2795
|
* @param {*} [options] Override http request option.
|
|
2885
2796
|
* @throws {RequiredError}
|
|
2886
2797
|
*/
|
|
2887
|
-
updateEnv: (_0, _1, ..._2) => __async(
|
|
2798
|
+
updateEnv: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (id, updateEnv, options = {}) {
|
|
2888
2799
|
assertParamExists("updateEnv", "id", id);
|
|
2889
2800
|
assertParamExists("updateEnv", "updateEnv", updateEnv);
|
|
2890
|
-
const localVarPath = `/api/v2/envs/{id}`.replace(
|
|
2801
|
+
const localVarPath = `/api/v2/envs/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
2891
2802
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2892
2803
|
let baseOptions;
|
|
2893
2804
|
if (configuration) {
|
|
@@ -2899,6 +2810,7 @@ var EnvsApiAxiosParamCreator = function(configuration) {
|
|
|
2899
2810
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2900
2811
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
2901
2812
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2813
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2902
2814
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2903
2815
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2904
2816
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2917,15 +2829,13 @@ var EnvsApiFp = function(configuration) {
|
|
|
2917
2829
|
*
|
|
2918
2830
|
* @param {string | null} [name]
|
|
2919
2831
|
* @param {boolean | null} [autoAddNewUsers]
|
|
2920
|
-
* @param {number | null} [page]
|
|
2921
|
-
* @param {number | null} [perPage]
|
|
2922
2832
|
* @param {*} [options] Override http request option.
|
|
2923
2833
|
* @throws {RequiredError}
|
|
2924
2834
|
*/
|
|
2925
|
-
allEnvs(name, autoAddNewUsers,
|
|
2835
|
+
allEnvs(name, autoAddNewUsers, options) {
|
|
2926
2836
|
return __async(this, null, function* () {
|
|
2927
2837
|
var _a2, _b, _c;
|
|
2928
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allEnvs(name, autoAddNewUsers,
|
|
2838
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allEnvs(name, autoAddNewUsers, options);
|
|
2929
2839
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
2930
2840
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["EnvsApi.allEnvs"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
2931
2841
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3004,7 +2914,7 @@ var EnvsApiFactory = function(configuration, basePath, axios) {
|
|
|
3004
2914
|
* @throws {RequiredError}
|
|
3005
2915
|
*/
|
|
3006
2916
|
allEnvs(requestParameters = {}, options) {
|
|
3007
|
-
return localVarFp.allEnvs(requestParameters.name, requestParameters.autoAddNewUsers,
|
|
2917
|
+
return localVarFp.allEnvs(requestParameters.name, requestParameters.autoAddNewUsers, options).then((request) => request(axios, basePath));
|
|
3008
2918
|
},
|
|
3009
2919
|
/**
|
|
3010
2920
|
*
|
|
@@ -3050,17 +2960,15 @@ var EnvsApi = class extends BaseAPI {
|
|
|
3050
2960
|
* @param {EnvsApiAllEnvsRequest} requestParameters Request parameters.
|
|
3051
2961
|
* @param {*} [options] Override http request option.
|
|
3052
2962
|
* @throws {RequiredError}
|
|
3053
|
-
* @memberof EnvsApi
|
|
3054
2963
|
*/
|
|
3055
2964
|
allEnvs(requestParameters = {}, options) {
|
|
3056
|
-
return EnvsApiFp(this.configuration).allEnvs(requestParameters.name, requestParameters.autoAddNewUsers,
|
|
2965
|
+
return EnvsApiFp(this.configuration).allEnvs(requestParameters.name, requestParameters.autoAddNewUsers, options).then((request) => request(this.axios, this.basePath));
|
|
3057
2966
|
}
|
|
3058
2967
|
/**
|
|
3059
2968
|
*
|
|
3060
2969
|
* @param {EnvsApiCreateEnvRequest} requestParameters Request parameters.
|
|
3061
2970
|
* @param {*} [options] Override http request option.
|
|
3062
2971
|
* @throws {RequiredError}
|
|
3063
|
-
* @memberof EnvsApi
|
|
3064
2972
|
*/
|
|
3065
2973
|
createEnv(requestParameters, options) {
|
|
3066
2974
|
return EnvsApiFp(this.configuration).createEnv(requestParameters.newEnv, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3070,7 +2978,6 @@ var EnvsApi = class extends BaseAPI {
|
|
|
3070
2978
|
* @param {EnvsApiDeleteEnvRequest} requestParameters Request parameters.
|
|
3071
2979
|
* @param {*} [options] Override http request option.
|
|
3072
2980
|
* @throws {RequiredError}
|
|
3073
|
-
* @memberof EnvsApi
|
|
3074
2981
|
*/
|
|
3075
2982
|
deleteEnv(requestParameters, options) {
|
|
3076
2983
|
return EnvsApiFp(this.configuration).deleteEnv(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3080,7 +2987,6 @@ var EnvsApi = class extends BaseAPI {
|
|
|
3080
2987
|
* @param {EnvsApiGetEnvRequest} requestParameters Request parameters.
|
|
3081
2988
|
* @param {*} [options] Override http request option.
|
|
3082
2989
|
* @throws {RequiredError}
|
|
3083
|
-
* @memberof EnvsApi
|
|
3084
2990
|
*/
|
|
3085
2991
|
getEnv(requestParameters, options) {
|
|
3086
2992
|
return EnvsApiFp(this.configuration).getEnv(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3090,7 +2996,6 @@ var EnvsApi = class extends BaseAPI {
|
|
|
3090
2996
|
* @param {EnvsApiUpdateEnvRequest} requestParameters Request parameters.
|
|
3091
2997
|
* @param {*} [options] Override http request option.
|
|
3092
2998
|
* @throws {RequiredError}
|
|
3093
|
-
* @memberof EnvsApi
|
|
3094
2999
|
*/
|
|
3095
3000
|
updateEnv(requestParameters, options) {
|
|
3096
3001
|
return EnvsApiFp(this.configuration).updateEnv(requestParameters.id, requestParameters.updateEnv, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3102,12 +3007,10 @@ var HelmChartsApiAxiosParamCreator = function(configuration) {
|
|
|
3102
3007
|
*
|
|
3103
3008
|
* @param {string | null} [helmRegistryId]
|
|
3104
3009
|
* @param {string | null} [parsedBranch]
|
|
3105
|
-
* @param {number | null} [page]
|
|
3106
|
-
* @param {number | null} [perPage]
|
|
3107
3010
|
* @param {*} [options] Override http request option.
|
|
3108
3011
|
* @throws {RequiredError}
|
|
3109
3012
|
*/
|
|
3110
|
-
allHelmCharts: (_0, _1, _2
|
|
3013
|
+
allHelmCharts: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (helmRegistryId, parsedBranch, options = {}) {
|
|
3111
3014
|
const localVarPath = `/api/v2/helm-charts`;
|
|
3112
3015
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3113
3016
|
let baseOptions;
|
|
@@ -3125,12 +3028,7 @@ var HelmChartsApiAxiosParamCreator = function(configuration) {
|
|
|
3125
3028
|
if (parsedBranch !== void 0) {
|
|
3126
3029
|
localVarQueryParameter["parsed_branch"] = parsedBranch;
|
|
3127
3030
|
}
|
|
3128
|
-
|
|
3129
|
-
localVarQueryParameter["page"] = page;
|
|
3130
|
-
}
|
|
3131
|
-
if (perPage !== void 0) {
|
|
3132
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
3133
|
-
}
|
|
3031
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3134
3032
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3135
3033
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3136
3034
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3145,9 +3043,9 @@ var HelmChartsApiAxiosParamCreator = function(configuration) {
|
|
|
3145
3043
|
* @param {*} [options] Override http request option.
|
|
3146
3044
|
* @throws {RequiredError}
|
|
3147
3045
|
*/
|
|
3148
|
-
getHelmChart: (_0, ..._1) => __async(
|
|
3046
|
+
getHelmChart: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
3149
3047
|
assertParamExists("getHelmChart", "id", id);
|
|
3150
|
-
const localVarPath = `/api/v2/helm-charts/{id}`.replace(
|
|
3048
|
+
const localVarPath = `/api/v2/helm-charts/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
3151
3049
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3152
3050
|
let baseOptions;
|
|
3153
3051
|
if (configuration) {
|
|
@@ -3158,6 +3056,7 @@ var HelmChartsApiAxiosParamCreator = function(configuration) {
|
|
|
3158
3056
|
const localVarQueryParameter = {};
|
|
3159
3057
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3160
3058
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
3059
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3161
3060
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3162
3061
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3163
3062
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3175,15 +3074,13 @@ var HelmChartsApiFp = function(configuration) {
|
|
|
3175
3074
|
*
|
|
3176
3075
|
* @param {string | null} [helmRegistryId]
|
|
3177
3076
|
* @param {string | null} [parsedBranch]
|
|
3178
|
-
* @param {number | null} [page]
|
|
3179
|
-
* @param {number | null} [perPage]
|
|
3180
3077
|
* @param {*} [options] Override http request option.
|
|
3181
3078
|
* @throws {RequiredError}
|
|
3182
3079
|
*/
|
|
3183
|
-
allHelmCharts(helmRegistryId, parsedBranch,
|
|
3080
|
+
allHelmCharts(helmRegistryId, parsedBranch, options) {
|
|
3184
3081
|
return __async(this, null, function* () {
|
|
3185
3082
|
var _a2, _b, _c;
|
|
3186
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allHelmCharts(helmRegistryId, parsedBranch,
|
|
3083
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allHelmCharts(helmRegistryId, parsedBranch, options);
|
|
3187
3084
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
3188
3085
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["HelmChartsApi.allHelmCharts"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
3189
3086
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3216,7 +3113,7 @@ var HelmChartsApiFactory = function(configuration, basePath, axios) {
|
|
|
3216
3113
|
* @throws {RequiredError}
|
|
3217
3114
|
*/
|
|
3218
3115
|
allHelmCharts(requestParameters = {}, options) {
|
|
3219
|
-
return localVarFp.allHelmCharts(requestParameters.helmRegistryId, requestParameters.parsedBranch,
|
|
3116
|
+
return localVarFp.allHelmCharts(requestParameters.helmRegistryId, requestParameters.parsedBranch, options).then((request) => request(axios, basePath));
|
|
3220
3117
|
},
|
|
3221
3118
|
/**
|
|
3222
3119
|
*
|
|
@@ -3235,17 +3132,15 @@ var HelmChartsApi = class extends BaseAPI {
|
|
|
3235
3132
|
* @param {HelmChartsApiAllHelmChartsRequest} requestParameters Request parameters.
|
|
3236
3133
|
* @param {*} [options] Override http request option.
|
|
3237
3134
|
* @throws {RequiredError}
|
|
3238
|
-
* @memberof HelmChartsApi
|
|
3239
3135
|
*/
|
|
3240
3136
|
allHelmCharts(requestParameters = {}, options) {
|
|
3241
|
-
return HelmChartsApiFp(this.configuration).allHelmCharts(requestParameters.helmRegistryId, requestParameters.parsedBranch,
|
|
3137
|
+
return HelmChartsApiFp(this.configuration).allHelmCharts(requestParameters.helmRegistryId, requestParameters.parsedBranch, options).then((request) => request(this.axios, this.basePath));
|
|
3242
3138
|
}
|
|
3243
3139
|
/**
|
|
3244
3140
|
*
|
|
3245
3141
|
* @param {HelmChartsApiGetHelmChartRequest} requestParameters Request parameters.
|
|
3246
3142
|
* @param {*} [options] Override http request option.
|
|
3247
3143
|
* @throws {RequiredError}
|
|
3248
|
-
* @memberof HelmChartsApi
|
|
3249
3144
|
*/
|
|
3250
3145
|
getHelmChart(requestParameters, options) {
|
|
3251
3146
|
return HelmChartsApiFp(this.configuration).getHelmChart(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3257,12 +3152,10 @@ var HelmRegistriesApiAxiosParamCreator = function(configuration) {
|
|
|
3257
3152
|
*
|
|
3258
3153
|
* @param {string | null} [repoName]
|
|
3259
3154
|
* @param {string | null} [kindId]
|
|
3260
|
-
* @param {number | null} [page]
|
|
3261
|
-
* @param {number | null} [perPage]
|
|
3262
3155
|
* @param {*} [options] Override http request option.
|
|
3263
3156
|
* @throws {RequiredError}
|
|
3264
3157
|
*/
|
|
3265
|
-
allHelmRegistries: (_0, _1, _2
|
|
3158
|
+
allHelmRegistries: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (repoName, kindId, options = {}) {
|
|
3266
3159
|
const localVarPath = `/api/v2/helm-registries`;
|
|
3267
3160
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3268
3161
|
let baseOptions;
|
|
@@ -3280,12 +3173,7 @@ var HelmRegistriesApiAxiosParamCreator = function(configuration) {
|
|
|
3280
3173
|
if (kindId !== void 0) {
|
|
3281
3174
|
localVarQueryParameter["kind_id"] = kindId;
|
|
3282
3175
|
}
|
|
3283
|
-
|
|
3284
|
-
localVarQueryParameter["page"] = page;
|
|
3285
|
-
}
|
|
3286
|
-
if (perPage !== void 0) {
|
|
3287
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
3288
|
-
}
|
|
3176
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3289
3177
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3290
3178
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3291
3179
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3300,9 +3188,9 @@ var HelmRegistriesApiAxiosParamCreator = function(configuration) {
|
|
|
3300
3188
|
* @param {*} [options] Override http request option.
|
|
3301
3189
|
* @throws {RequiredError}
|
|
3302
3190
|
*/
|
|
3303
|
-
getHelmRegistry: (_0, ..._1) => __async(
|
|
3191
|
+
getHelmRegistry: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
3304
3192
|
assertParamExists("getHelmRegistry", "id", id);
|
|
3305
|
-
const localVarPath = `/api/v2/helm-registries/{id}`.replace(
|
|
3193
|
+
const localVarPath = `/api/v2/helm-registries/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
3306
3194
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3307
3195
|
let baseOptions;
|
|
3308
3196
|
if (configuration) {
|
|
@@ -3313,6 +3201,7 @@ var HelmRegistriesApiAxiosParamCreator = function(configuration) {
|
|
|
3313
3201
|
const localVarQueryParameter = {};
|
|
3314
3202
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3315
3203
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
3204
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3316
3205
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3317
3206
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3318
3207
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3328,10 +3217,10 @@ var HelmRegistriesApiAxiosParamCreator = function(configuration) {
|
|
|
3328
3217
|
* @param {*} [options] Override http request option.
|
|
3329
3218
|
* @throws {RequiredError}
|
|
3330
3219
|
*/
|
|
3331
|
-
updateHelmRegistry: (_0, _1, ..._2) => __async(
|
|
3220
|
+
updateHelmRegistry: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (id, updateHelmRegistry, options = {}) {
|
|
3332
3221
|
assertParamExists("updateHelmRegistry", "id", id);
|
|
3333
3222
|
assertParamExists("updateHelmRegistry", "updateHelmRegistry", updateHelmRegistry);
|
|
3334
|
-
const localVarPath = `/api/v2/helm-registries/{id}`.replace(
|
|
3223
|
+
const localVarPath = `/api/v2/helm-registries/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
3335
3224
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3336
3225
|
let baseOptions;
|
|
3337
3226
|
if (configuration) {
|
|
@@ -3343,6 +3232,7 @@ var HelmRegistriesApiAxiosParamCreator = function(configuration) {
|
|
|
3343
3232
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3344
3233
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
3345
3234
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
3235
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3346
3236
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3347
3237
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3348
3238
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3361,15 +3251,13 @@ var HelmRegistriesApiFp = function(configuration) {
|
|
|
3361
3251
|
*
|
|
3362
3252
|
* @param {string | null} [repoName]
|
|
3363
3253
|
* @param {string | null} [kindId]
|
|
3364
|
-
* @param {number | null} [page]
|
|
3365
|
-
* @param {number | null} [perPage]
|
|
3366
3254
|
* @param {*} [options] Override http request option.
|
|
3367
3255
|
* @throws {RequiredError}
|
|
3368
3256
|
*/
|
|
3369
|
-
allHelmRegistries(repoName, kindId,
|
|
3257
|
+
allHelmRegistries(repoName, kindId, options) {
|
|
3370
3258
|
return __async(this, null, function* () {
|
|
3371
3259
|
var _a2, _b, _c;
|
|
3372
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allHelmRegistries(repoName, kindId,
|
|
3260
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allHelmRegistries(repoName, kindId, options);
|
|
3373
3261
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
3374
3262
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["HelmRegistriesApi.allHelmRegistries"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
3375
3263
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3418,7 +3306,7 @@ var HelmRegistriesApiFactory = function(configuration, basePath, axios) {
|
|
|
3418
3306
|
* @throws {RequiredError}
|
|
3419
3307
|
*/
|
|
3420
3308
|
allHelmRegistries(requestParameters = {}, options) {
|
|
3421
|
-
return localVarFp.allHelmRegistries(requestParameters.repoName, requestParameters.kindId,
|
|
3309
|
+
return localVarFp.allHelmRegistries(requestParameters.repoName, requestParameters.kindId, options).then((request) => request(axios, basePath));
|
|
3422
3310
|
},
|
|
3423
3311
|
/**
|
|
3424
3312
|
*
|
|
@@ -3446,17 +3334,15 @@ var HelmRegistriesApi = class extends BaseAPI {
|
|
|
3446
3334
|
* @param {HelmRegistriesApiAllHelmRegistriesRequest} requestParameters Request parameters.
|
|
3447
3335
|
* @param {*} [options] Override http request option.
|
|
3448
3336
|
* @throws {RequiredError}
|
|
3449
|
-
* @memberof HelmRegistriesApi
|
|
3450
3337
|
*/
|
|
3451
3338
|
allHelmRegistries(requestParameters = {}, options) {
|
|
3452
|
-
return HelmRegistriesApiFp(this.configuration).allHelmRegistries(requestParameters.repoName, requestParameters.kindId,
|
|
3339
|
+
return HelmRegistriesApiFp(this.configuration).allHelmRegistries(requestParameters.repoName, requestParameters.kindId, options).then((request) => request(this.axios, this.basePath));
|
|
3453
3340
|
}
|
|
3454
3341
|
/**
|
|
3455
3342
|
*
|
|
3456
3343
|
* @param {HelmRegistriesApiGetHelmRegistryRequest} requestParameters Request parameters.
|
|
3457
3344
|
* @param {*} [options] Override http request option.
|
|
3458
3345
|
* @throws {RequiredError}
|
|
3459
|
-
* @memberof HelmRegistriesApi
|
|
3460
3346
|
*/
|
|
3461
3347
|
getHelmRegistry(requestParameters, options) {
|
|
3462
3348
|
return HelmRegistriesApiFp(this.configuration).getHelmRegistry(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3466,7 +3352,6 @@ var HelmRegistriesApi = class extends BaseAPI {
|
|
|
3466
3352
|
* @param {HelmRegistriesApiUpdateHelmRegistryRequest} requestParameters Request parameters.
|
|
3467
3353
|
* @param {*} [options] Override http request option.
|
|
3468
3354
|
* @throws {RequiredError}
|
|
3469
|
-
* @memberof HelmRegistriesApi
|
|
3470
3355
|
*/
|
|
3471
3356
|
updateHelmRegistry(requestParameters, options) {
|
|
3472
3357
|
return HelmRegistriesApiFp(this.configuration).updateHelmRegistry(requestParameters.id, requestParameters.updateHelmRegistry, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3477,12 +3362,10 @@ var HelmTagFormatsApiAxiosParamCreator = function(configuration) {
|
|
|
3477
3362
|
/**
|
|
3478
3363
|
*
|
|
3479
3364
|
* @param {string | null} [pattern]
|
|
3480
|
-
* @param {number | null} [page]
|
|
3481
|
-
* @param {number | null} [perPage]
|
|
3482
3365
|
* @param {*} [options] Override http request option.
|
|
3483
3366
|
* @throws {RequiredError}
|
|
3484
3367
|
*/
|
|
3485
|
-
allHelmTagFormats: (_0, _1
|
|
3368
|
+
allHelmTagFormats: (_0, ..._1) => __async(null, [_0, ..._1], function* (pattern, options = {}) {
|
|
3486
3369
|
const localVarPath = `/api/v2/helm-tag-formats`;
|
|
3487
3370
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3488
3371
|
let baseOptions;
|
|
@@ -3497,12 +3380,7 @@ var HelmTagFormatsApiAxiosParamCreator = function(configuration) {
|
|
|
3497
3380
|
if (pattern !== void 0) {
|
|
3498
3381
|
localVarQueryParameter["pattern"] = pattern;
|
|
3499
3382
|
}
|
|
3500
|
-
|
|
3501
|
-
localVarQueryParameter["page"] = page;
|
|
3502
|
-
}
|
|
3503
|
-
if (perPage !== void 0) {
|
|
3504
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
3505
|
-
}
|
|
3383
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3506
3384
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3507
3385
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3508
3386
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3517,7 +3395,7 @@ var HelmTagFormatsApiAxiosParamCreator = function(configuration) {
|
|
|
3517
3395
|
* @param {*} [options] Override http request option.
|
|
3518
3396
|
* @throws {RequiredError}
|
|
3519
3397
|
*/
|
|
3520
|
-
createHelmTagFormat: (_0, ..._1) => __async(
|
|
3398
|
+
createHelmTagFormat: (_0, ..._1) => __async(null, [_0, ..._1], function* (newHelmTagFormat, options = {}) {
|
|
3521
3399
|
assertParamExists("createHelmTagFormat", "newHelmTagFormat", newHelmTagFormat);
|
|
3522
3400
|
const localVarPath = `/api/v2/helm-tag-formats`;
|
|
3523
3401
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3531,6 +3409,7 @@ var HelmTagFormatsApiAxiosParamCreator = function(configuration) {
|
|
|
3531
3409
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3532
3410
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
3533
3411
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
3412
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3534
3413
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3535
3414
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3536
3415
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3546,9 +3425,9 @@ var HelmTagFormatsApiAxiosParamCreator = function(configuration) {
|
|
|
3546
3425
|
* @param {*} [options] Override http request option.
|
|
3547
3426
|
* @throws {RequiredError}
|
|
3548
3427
|
*/
|
|
3549
|
-
deleteHelmTagFormat: (_0, ..._1) => __async(
|
|
3428
|
+
deleteHelmTagFormat: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
3550
3429
|
assertParamExists("deleteHelmTagFormat", "id", id);
|
|
3551
|
-
const localVarPath = `/api/v2/helm-tag-formats/{id}`.replace(
|
|
3430
|
+
const localVarPath = `/api/v2/helm-tag-formats/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
3552
3431
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3553
3432
|
let baseOptions;
|
|
3554
3433
|
if (configuration) {
|
|
@@ -3573,9 +3452,9 @@ var HelmTagFormatsApiAxiosParamCreator = function(configuration) {
|
|
|
3573
3452
|
* @param {*} [options] Override http request option.
|
|
3574
3453
|
* @throws {RequiredError}
|
|
3575
3454
|
*/
|
|
3576
|
-
getHelmTagFormat: (_0, ..._1) => __async(
|
|
3455
|
+
getHelmTagFormat: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
3577
3456
|
assertParamExists("getHelmTagFormat", "id", id);
|
|
3578
|
-
const localVarPath = `/api/v2/helm-tag-formats/{id}`.replace(
|
|
3457
|
+
const localVarPath = `/api/v2/helm-tag-formats/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
3579
3458
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3580
3459
|
let baseOptions;
|
|
3581
3460
|
if (configuration) {
|
|
@@ -3586,6 +3465,7 @@ var HelmTagFormatsApiAxiosParamCreator = function(configuration) {
|
|
|
3586
3465
|
const localVarQueryParameter = {};
|
|
3587
3466
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3588
3467
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
3468
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3589
3469
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3590
3470
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3591
3471
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3602,15 +3482,13 @@ var HelmTagFormatsApiFp = function(configuration) {
|
|
|
3602
3482
|
/**
|
|
3603
3483
|
*
|
|
3604
3484
|
* @param {string | null} [pattern]
|
|
3605
|
-
* @param {number | null} [page]
|
|
3606
|
-
* @param {number | null} [perPage]
|
|
3607
3485
|
* @param {*} [options] Override http request option.
|
|
3608
3486
|
* @throws {RequiredError}
|
|
3609
3487
|
*/
|
|
3610
|
-
allHelmTagFormats(pattern,
|
|
3488
|
+
allHelmTagFormats(pattern, options) {
|
|
3611
3489
|
return __async(this, null, function* () {
|
|
3612
3490
|
var _a2, _b, _c;
|
|
3613
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allHelmTagFormats(pattern,
|
|
3491
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allHelmTagFormats(pattern, options);
|
|
3614
3492
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
3615
3493
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["HelmTagFormatsApi.allHelmTagFormats"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
3616
3494
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3673,7 +3551,7 @@ var HelmTagFormatsApiFactory = function(configuration, basePath, axios) {
|
|
|
3673
3551
|
* @throws {RequiredError}
|
|
3674
3552
|
*/
|
|
3675
3553
|
allHelmTagFormats(requestParameters = {}, options) {
|
|
3676
|
-
return localVarFp.allHelmTagFormats(requestParameters.pattern,
|
|
3554
|
+
return localVarFp.allHelmTagFormats(requestParameters.pattern, options).then((request) => request(axios, basePath));
|
|
3677
3555
|
},
|
|
3678
3556
|
/**
|
|
3679
3557
|
*
|
|
@@ -3710,17 +3588,15 @@ var HelmTagFormatsApi = class extends BaseAPI {
|
|
|
3710
3588
|
* @param {HelmTagFormatsApiAllHelmTagFormatsRequest} requestParameters Request parameters.
|
|
3711
3589
|
* @param {*} [options] Override http request option.
|
|
3712
3590
|
* @throws {RequiredError}
|
|
3713
|
-
* @memberof HelmTagFormatsApi
|
|
3714
3591
|
*/
|
|
3715
3592
|
allHelmTagFormats(requestParameters = {}, options) {
|
|
3716
|
-
return HelmTagFormatsApiFp(this.configuration).allHelmTagFormats(requestParameters.pattern,
|
|
3593
|
+
return HelmTagFormatsApiFp(this.configuration).allHelmTagFormats(requestParameters.pattern, options).then((request) => request(this.axios, this.basePath));
|
|
3717
3594
|
}
|
|
3718
3595
|
/**
|
|
3719
3596
|
*
|
|
3720
3597
|
* @param {HelmTagFormatsApiCreateHelmTagFormatRequest} requestParameters Request parameters.
|
|
3721
3598
|
* @param {*} [options] Override http request option.
|
|
3722
3599
|
* @throws {RequiredError}
|
|
3723
|
-
* @memberof HelmTagFormatsApi
|
|
3724
3600
|
*/
|
|
3725
3601
|
createHelmTagFormat(requestParameters, options) {
|
|
3726
3602
|
return HelmTagFormatsApiFp(this.configuration).createHelmTagFormat(requestParameters.newHelmTagFormat, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3730,7 +3606,6 @@ var HelmTagFormatsApi = class extends BaseAPI {
|
|
|
3730
3606
|
* @param {HelmTagFormatsApiDeleteHelmTagFormatRequest} requestParameters Request parameters.
|
|
3731
3607
|
* @param {*} [options] Override http request option.
|
|
3732
3608
|
* @throws {RequiredError}
|
|
3733
|
-
* @memberof HelmTagFormatsApi
|
|
3734
3609
|
*/
|
|
3735
3610
|
deleteHelmTagFormat(requestParameters, options) {
|
|
3736
3611
|
return HelmTagFormatsApiFp(this.configuration).deleteHelmTagFormat(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3740,7 +3615,6 @@ var HelmTagFormatsApi = class extends BaseAPI {
|
|
|
3740
3615
|
* @param {HelmTagFormatsApiGetHelmTagFormatRequest} requestParameters Request parameters.
|
|
3741
3616
|
* @param {*} [options] Override http request option.
|
|
3742
3617
|
* @throws {RequiredError}
|
|
3743
|
-
* @memberof HelmTagFormatsApi
|
|
3744
3618
|
*/
|
|
3745
3619
|
getHelmTagFormat(requestParameters, options) {
|
|
3746
3620
|
return HelmTagFormatsApiFp(this.configuration).getHelmTagFormat(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3752,12 +3626,10 @@ var KubernetesClustersApiAxiosParamCreator = function(configuration) {
|
|
|
3752
3626
|
*
|
|
3753
3627
|
* @param {string | null} [envId]
|
|
3754
3628
|
* @param {string | null} [name]
|
|
3755
|
-
* @param {number | null} [page]
|
|
3756
|
-
* @param {number | null} [perPage]
|
|
3757
3629
|
* @param {*} [options] Override http request option.
|
|
3758
3630
|
* @throws {RequiredError}
|
|
3759
3631
|
*/
|
|
3760
|
-
allK8sClusters: (_0, _1, _2
|
|
3632
|
+
allK8sClusters: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (envId, name, options = {}) {
|
|
3761
3633
|
const localVarPath = `/api/v2/k8s-clusters`;
|
|
3762
3634
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3763
3635
|
let baseOptions;
|
|
@@ -3775,12 +3647,7 @@ var KubernetesClustersApiAxiosParamCreator = function(configuration) {
|
|
|
3775
3647
|
if (name !== void 0) {
|
|
3776
3648
|
localVarQueryParameter["name"] = name;
|
|
3777
3649
|
}
|
|
3778
|
-
|
|
3779
|
-
localVarQueryParameter["page"] = page;
|
|
3780
|
-
}
|
|
3781
|
-
if (perPage !== void 0) {
|
|
3782
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
3783
|
-
}
|
|
3650
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3784
3651
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3785
3652
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3786
3653
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3795,9 +3662,9 @@ var KubernetesClustersApiAxiosParamCreator = function(configuration) {
|
|
|
3795
3662
|
* @param {*} [options] Override http request option.
|
|
3796
3663
|
* @throws {RequiredError}
|
|
3797
3664
|
*/
|
|
3798
|
-
deleteK8sCluster: (_0, ..._1) => __async(
|
|
3665
|
+
deleteK8sCluster: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
3799
3666
|
assertParamExists("deleteK8sCluster", "id", id);
|
|
3800
|
-
const localVarPath = `/api/v2/k8s-clusters/{id}`.replace(
|
|
3667
|
+
const localVarPath = `/api/v2/k8s-clusters/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
3801
3668
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3802
3669
|
let baseOptions;
|
|
3803
3670
|
if (configuration) {
|
|
@@ -3822,9 +3689,9 @@ var KubernetesClustersApiAxiosParamCreator = function(configuration) {
|
|
|
3822
3689
|
* @param {*} [options] Override http request option.
|
|
3823
3690
|
* @throws {RequiredError}
|
|
3824
3691
|
*/
|
|
3825
|
-
getK8sCluster: (_0, ..._1) => __async(
|
|
3692
|
+
getK8sCluster: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
3826
3693
|
assertParamExists("getK8sCluster", "id", id);
|
|
3827
|
-
const localVarPath = `/api/v2/k8s-clusters/{id}`.replace(
|
|
3694
|
+
const localVarPath = `/api/v2/k8s-clusters/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
3828
3695
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3829
3696
|
let baseOptions;
|
|
3830
3697
|
if (configuration) {
|
|
@@ -3835,6 +3702,7 @@ var KubernetesClustersApiAxiosParamCreator = function(configuration) {
|
|
|
3835
3702
|
const localVarQueryParameter = {};
|
|
3836
3703
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3837
3704
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
3705
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3838
3706
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3839
3707
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3840
3708
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3850,10 +3718,10 @@ var KubernetesClustersApiAxiosParamCreator = function(configuration) {
|
|
|
3850
3718
|
* @param {*} [options] Override http request option.
|
|
3851
3719
|
* @throws {RequiredError}
|
|
3852
3720
|
*/
|
|
3853
|
-
updateK8sCluster: (_0, _1, ..._2) => __async(
|
|
3721
|
+
updateK8sCluster: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (id, updateK8sCluster, options = {}) {
|
|
3854
3722
|
assertParamExists("updateK8sCluster", "id", id);
|
|
3855
3723
|
assertParamExists("updateK8sCluster", "updateK8sCluster", updateK8sCluster);
|
|
3856
|
-
const localVarPath = `/api/v2/k8s-clusters/{id}`.replace(
|
|
3724
|
+
const localVarPath = `/api/v2/k8s-clusters/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
3857
3725
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3858
3726
|
let baseOptions;
|
|
3859
3727
|
if (configuration) {
|
|
@@ -3865,6 +3733,7 @@ var KubernetesClustersApiAxiosParamCreator = function(configuration) {
|
|
|
3865
3733
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3866
3734
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
3867
3735
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
3736
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3868
3737
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3869
3738
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3870
3739
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3883,15 +3752,13 @@ var KubernetesClustersApiFp = function(configuration) {
|
|
|
3883
3752
|
*
|
|
3884
3753
|
* @param {string | null} [envId]
|
|
3885
3754
|
* @param {string | null} [name]
|
|
3886
|
-
* @param {number | null} [page]
|
|
3887
|
-
* @param {number | null} [perPage]
|
|
3888
3755
|
* @param {*} [options] Override http request option.
|
|
3889
3756
|
* @throws {RequiredError}
|
|
3890
3757
|
*/
|
|
3891
|
-
allK8sClusters(envId, name,
|
|
3758
|
+
allK8sClusters(envId, name, options) {
|
|
3892
3759
|
return __async(this, null, function* () {
|
|
3893
3760
|
var _a2, _b, _c;
|
|
3894
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allK8sClusters(envId, name,
|
|
3761
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allK8sClusters(envId, name, options);
|
|
3895
3762
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
3896
3763
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["KubernetesClustersApi.allK8sClusters"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
3897
3764
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3955,7 +3822,7 @@ var KubernetesClustersApiFactory = function(configuration, basePath, axios) {
|
|
|
3955
3822
|
* @throws {RequiredError}
|
|
3956
3823
|
*/
|
|
3957
3824
|
allK8sClusters(requestParameters = {}, options) {
|
|
3958
|
-
return localVarFp.allK8sClusters(requestParameters.envId, requestParameters.name,
|
|
3825
|
+
return localVarFp.allK8sClusters(requestParameters.envId, requestParameters.name, options).then((request) => request(axios, basePath));
|
|
3959
3826
|
},
|
|
3960
3827
|
/**
|
|
3961
3828
|
*
|
|
@@ -3992,17 +3859,15 @@ var KubernetesClustersApi = class extends BaseAPI {
|
|
|
3992
3859
|
* @param {KubernetesClustersApiAllK8sClustersRequest} requestParameters Request parameters.
|
|
3993
3860
|
* @param {*} [options] Override http request option.
|
|
3994
3861
|
* @throws {RequiredError}
|
|
3995
|
-
* @memberof KubernetesClustersApi
|
|
3996
3862
|
*/
|
|
3997
3863
|
allK8sClusters(requestParameters = {}, options) {
|
|
3998
|
-
return KubernetesClustersApiFp(this.configuration).allK8sClusters(requestParameters.envId, requestParameters.name,
|
|
3864
|
+
return KubernetesClustersApiFp(this.configuration).allK8sClusters(requestParameters.envId, requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
3999
3865
|
}
|
|
4000
3866
|
/**
|
|
4001
3867
|
*
|
|
4002
3868
|
* @param {KubernetesClustersApiDeleteK8sClusterRequest} requestParameters Request parameters.
|
|
4003
3869
|
* @param {*} [options] Override http request option.
|
|
4004
3870
|
* @throws {RequiredError}
|
|
4005
|
-
* @memberof KubernetesClustersApi
|
|
4006
3871
|
*/
|
|
4007
3872
|
deleteK8sCluster(requestParameters, options) {
|
|
4008
3873
|
return KubernetesClustersApiFp(this.configuration).deleteK8sCluster(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4012,7 +3877,6 @@ var KubernetesClustersApi = class extends BaseAPI {
|
|
|
4012
3877
|
* @param {KubernetesClustersApiGetK8sClusterRequest} requestParameters Request parameters.
|
|
4013
3878
|
* @param {*} [options] Override http request option.
|
|
4014
3879
|
* @throws {RequiredError}
|
|
4015
|
-
* @memberof KubernetesClustersApi
|
|
4016
3880
|
*/
|
|
4017
3881
|
getK8sCluster(requestParameters, options) {
|
|
4018
3882
|
return KubernetesClustersApiFp(this.configuration).getK8sCluster(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4022,7 +3886,6 @@ var KubernetesClustersApi = class extends BaseAPI {
|
|
|
4022
3886
|
* @param {KubernetesClustersApiUpdateK8sClusterRequest} requestParameters Request parameters.
|
|
4023
3887
|
* @param {*} [options] Override http request option.
|
|
4024
3888
|
* @throws {RequiredError}
|
|
4025
|
-
* @memberof KubernetesClustersApi
|
|
4026
3889
|
*/
|
|
4027
3890
|
updateK8sCluster(requestParameters, options) {
|
|
4028
3891
|
return KubernetesClustersApiFp(this.configuration).updateK8sCluster(requestParameters.id, requestParameters.updateK8sCluster, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4036,12 +3899,10 @@ var KubernetesResourcesApiAxiosParamCreator = function(configuration) {
|
|
|
4036
3899
|
* @param {string | null} [deploymentId]
|
|
4037
3900
|
* @param {string | null} [kind]
|
|
4038
3901
|
* @param {string | null} [name]
|
|
4039
|
-
* @param {number | null} [page]
|
|
4040
|
-
* @param {number | null} [perPage]
|
|
4041
3902
|
* @param {*} [options] Override http request option.
|
|
4042
3903
|
* @throws {RequiredError}
|
|
4043
3904
|
*/
|
|
4044
|
-
allK8sResources: (_0, _1, _2, _3, _4
|
|
3905
|
+
allK8sResources: (_0, _1, _2, _3, ..._4) => __async(null, [_0, _1, _2, _3, ..._4], function* (clusterId, deploymentId, kind, name, options = {}) {
|
|
4045
3906
|
const localVarPath = `/api/v2/k8s-resources`;
|
|
4046
3907
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4047
3908
|
let baseOptions;
|
|
@@ -4065,12 +3926,7 @@ var KubernetesResourcesApiAxiosParamCreator = function(configuration) {
|
|
|
4065
3926
|
if (name !== void 0) {
|
|
4066
3927
|
localVarQueryParameter["name"] = name;
|
|
4067
3928
|
}
|
|
4068
|
-
|
|
4069
|
-
localVarQueryParameter["page"] = page;
|
|
4070
|
-
}
|
|
4071
|
-
if (perPage !== void 0) {
|
|
4072
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
4073
|
-
}
|
|
3929
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
4074
3930
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4075
3931
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4076
3932
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4085,9 +3941,9 @@ var KubernetesResourcesApiAxiosParamCreator = function(configuration) {
|
|
|
4085
3941
|
* @param {*} [options] Override http request option.
|
|
4086
3942
|
* @throws {RequiredError}
|
|
4087
3943
|
*/
|
|
4088
|
-
getK8sResource: (_0, ..._1) => __async(
|
|
3944
|
+
getK8sResource: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
4089
3945
|
assertParamExists("getK8sResource", "id", id);
|
|
4090
|
-
const localVarPath = `/api/v2/k8s-resources/{id}`.replace(
|
|
3946
|
+
const localVarPath = `/api/v2/k8s-resources/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
4091
3947
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4092
3948
|
let baseOptions;
|
|
4093
3949
|
if (configuration) {
|
|
@@ -4098,6 +3954,7 @@ var KubernetesResourcesApiAxiosParamCreator = function(configuration) {
|
|
|
4098
3954
|
const localVarQueryParameter = {};
|
|
4099
3955
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4100
3956
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
3957
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
4101
3958
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4102
3959
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4103
3960
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4117,15 +3974,13 @@ var KubernetesResourcesApiFp = function(configuration) {
|
|
|
4117
3974
|
* @param {string | null} [deploymentId]
|
|
4118
3975
|
* @param {string | null} [kind]
|
|
4119
3976
|
* @param {string | null} [name]
|
|
4120
|
-
* @param {number | null} [page]
|
|
4121
|
-
* @param {number | null} [perPage]
|
|
4122
3977
|
* @param {*} [options] Override http request option.
|
|
4123
3978
|
* @throws {RequiredError}
|
|
4124
3979
|
*/
|
|
4125
|
-
allK8sResources(clusterId, deploymentId, kind, name,
|
|
3980
|
+
allK8sResources(clusterId, deploymentId, kind, name, options) {
|
|
4126
3981
|
return __async(this, null, function* () {
|
|
4127
3982
|
var _a2, _b, _c;
|
|
4128
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allK8sResources(clusterId, deploymentId, kind, name,
|
|
3983
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allK8sResources(clusterId, deploymentId, kind, name, options);
|
|
4129
3984
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
4130
3985
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["KubernetesResourcesApi.allK8sResources"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
4131
3986
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -4158,7 +4013,7 @@ var KubernetesResourcesApiFactory = function(configuration, basePath, axios) {
|
|
|
4158
4013
|
* @throws {RequiredError}
|
|
4159
4014
|
*/
|
|
4160
4015
|
allK8sResources(requestParameters = {}, options) {
|
|
4161
|
-
return localVarFp.allK8sResources(requestParameters.clusterId, requestParameters.deploymentId, requestParameters.kind, requestParameters.name,
|
|
4016
|
+
return localVarFp.allK8sResources(requestParameters.clusterId, requestParameters.deploymentId, requestParameters.kind, requestParameters.name, options).then((request) => request(axios, basePath));
|
|
4162
4017
|
},
|
|
4163
4018
|
/**
|
|
4164
4019
|
*
|
|
@@ -4177,17 +4032,15 @@ var KubernetesResourcesApi = class extends BaseAPI {
|
|
|
4177
4032
|
* @param {KubernetesResourcesApiAllK8sResourcesRequest} requestParameters Request parameters.
|
|
4178
4033
|
* @param {*} [options] Override http request option.
|
|
4179
4034
|
* @throws {RequiredError}
|
|
4180
|
-
* @memberof KubernetesResourcesApi
|
|
4181
4035
|
*/
|
|
4182
4036
|
allK8sResources(requestParameters = {}, options) {
|
|
4183
|
-
return KubernetesResourcesApiFp(this.configuration).allK8sResources(requestParameters.clusterId, requestParameters.deploymentId, requestParameters.kind, requestParameters.name,
|
|
4037
|
+
return KubernetesResourcesApiFp(this.configuration).allK8sResources(requestParameters.clusterId, requestParameters.deploymentId, requestParameters.kind, requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
4184
4038
|
}
|
|
4185
4039
|
/**
|
|
4186
4040
|
*
|
|
4187
4041
|
* @param {KubernetesResourcesApiGetK8sResourceRequest} requestParameters Request parameters.
|
|
4188
4042
|
* @param {*} [options] Override http request option.
|
|
4189
4043
|
* @throws {RequiredError}
|
|
4190
|
-
* @memberof KubernetesResourcesApi
|
|
4191
4044
|
*/
|
|
4192
4045
|
getK8sResource(requestParameters, options) {
|
|
4193
4046
|
return KubernetesResourcesApiFp(this.configuration).getK8sResource(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4200,12 +4053,10 @@ var SecretsApiAxiosParamCreator = function(configuration) {
|
|
|
4200
4053
|
* @param {string | null} [envId]
|
|
4201
4054
|
* @param {string | null} [collection]
|
|
4202
4055
|
* @param {string | null} [name]
|
|
4203
|
-
* @param {number | null} [page]
|
|
4204
|
-
* @param {number | null} [perPage]
|
|
4205
4056
|
* @param {*} [options] Override http request option.
|
|
4206
4057
|
* @throws {RequiredError}
|
|
4207
4058
|
*/
|
|
4208
|
-
allSecrets: (_0, _1, _2, _3
|
|
4059
|
+
allSecrets: (_0, _1, _2, ..._3) => __async(null, [_0, _1, _2, ..._3], function* (envId, collection, name, options = {}) {
|
|
4209
4060
|
const localVarPath = `/api/v2/secrets`;
|
|
4210
4061
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4211
4062
|
let baseOptions;
|
|
@@ -4226,12 +4077,7 @@ var SecretsApiAxiosParamCreator = function(configuration) {
|
|
|
4226
4077
|
if (name !== void 0) {
|
|
4227
4078
|
localVarQueryParameter["name"] = name;
|
|
4228
4079
|
}
|
|
4229
|
-
|
|
4230
|
-
localVarQueryParameter["page"] = page;
|
|
4231
|
-
}
|
|
4232
|
-
if (perPage !== void 0) {
|
|
4233
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
4234
|
-
}
|
|
4080
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
4235
4081
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4236
4082
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4237
4083
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4246,7 +4092,7 @@ var SecretsApiAxiosParamCreator = function(configuration) {
|
|
|
4246
4092
|
* @param {*} [options] Override http request option.
|
|
4247
4093
|
* @throws {RequiredError}
|
|
4248
4094
|
*/
|
|
4249
|
-
createSecret: (_0, ..._1) => __async(
|
|
4095
|
+
createSecret: (_0, ..._1) => __async(null, [_0, ..._1], function* (newSecret, options = {}) {
|
|
4250
4096
|
assertParamExists("createSecret", "newSecret", newSecret);
|
|
4251
4097
|
const localVarPath = `/api/v2/secrets`;
|
|
4252
4098
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -4260,6 +4106,7 @@ var SecretsApiAxiosParamCreator = function(configuration) {
|
|
|
4260
4106
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4261
4107
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
4262
4108
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
4109
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
4263
4110
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4264
4111
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4265
4112
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4275,9 +4122,9 @@ var SecretsApiAxiosParamCreator = function(configuration) {
|
|
|
4275
4122
|
* @param {*} [options] Override http request option.
|
|
4276
4123
|
* @throws {RequiredError}
|
|
4277
4124
|
*/
|
|
4278
|
-
deleteSecret: (_0, ..._1) => __async(
|
|
4125
|
+
deleteSecret: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
4279
4126
|
assertParamExists("deleteSecret", "id", id);
|
|
4280
|
-
const localVarPath = `/api/v2/secrets/{id}`.replace(
|
|
4127
|
+
const localVarPath = `/api/v2/secrets/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
4281
4128
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4282
4129
|
let baseOptions;
|
|
4283
4130
|
if (configuration) {
|
|
@@ -4302,9 +4149,9 @@ var SecretsApiAxiosParamCreator = function(configuration) {
|
|
|
4302
4149
|
* @param {*} [options] Override http request option.
|
|
4303
4150
|
* @throws {RequiredError}
|
|
4304
4151
|
*/
|
|
4305
|
-
getSecret: (_0, ..._1) => __async(
|
|
4152
|
+
getSecret: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
4306
4153
|
assertParamExists("getSecret", "id", id);
|
|
4307
|
-
const localVarPath = `/api/v2/secrets/{id}`.replace(
|
|
4154
|
+
const localVarPath = `/api/v2/secrets/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
4308
4155
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4309
4156
|
let baseOptions;
|
|
4310
4157
|
if (configuration) {
|
|
@@ -4315,6 +4162,7 @@ var SecretsApiAxiosParamCreator = function(configuration) {
|
|
|
4315
4162
|
const localVarQueryParameter = {};
|
|
4316
4163
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4317
4164
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
4165
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
4318
4166
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4319
4167
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4320
4168
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4330,10 +4178,10 @@ var SecretsApiAxiosParamCreator = function(configuration) {
|
|
|
4330
4178
|
* @param {*} [options] Override http request option.
|
|
4331
4179
|
* @throws {RequiredError}
|
|
4332
4180
|
*/
|
|
4333
|
-
updateSecret: (_0, _1, ..._2) => __async(
|
|
4181
|
+
updateSecret: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (id, updateSecret, options = {}) {
|
|
4334
4182
|
assertParamExists("updateSecret", "id", id);
|
|
4335
4183
|
assertParamExists("updateSecret", "updateSecret", updateSecret);
|
|
4336
|
-
const localVarPath = `/api/v2/secrets/{id}`.replace(
|
|
4184
|
+
const localVarPath = `/api/v2/secrets/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
4337
4185
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4338
4186
|
let baseOptions;
|
|
4339
4187
|
if (configuration) {
|
|
@@ -4345,6 +4193,7 @@ var SecretsApiAxiosParamCreator = function(configuration) {
|
|
|
4345
4193
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4346
4194
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
4347
4195
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
4196
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
4348
4197
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4349
4198
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4350
4199
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4364,15 +4213,13 @@ var SecretsApiFp = function(configuration) {
|
|
|
4364
4213
|
* @param {string | null} [envId]
|
|
4365
4214
|
* @param {string | null} [collection]
|
|
4366
4215
|
* @param {string | null} [name]
|
|
4367
|
-
* @param {number | null} [page]
|
|
4368
|
-
* @param {number | null} [perPage]
|
|
4369
4216
|
* @param {*} [options] Override http request option.
|
|
4370
4217
|
* @throws {RequiredError}
|
|
4371
4218
|
*/
|
|
4372
|
-
allSecrets(envId, collection, name,
|
|
4219
|
+
allSecrets(envId, collection, name, options) {
|
|
4373
4220
|
return __async(this, null, function* () {
|
|
4374
4221
|
var _a2, _b, _c;
|
|
4375
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allSecrets(envId, collection, name,
|
|
4222
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allSecrets(envId, collection, name, options);
|
|
4376
4223
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
4377
4224
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["SecretsApi.allSecrets"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
4378
4225
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -4451,7 +4298,7 @@ var SecretsApiFactory = function(configuration, basePath, axios) {
|
|
|
4451
4298
|
* @throws {RequiredError}
|
|
4452
4299
|
*/
|
|
4453
4300
|
allSecrets(requestParameters = {}, options) {
|
|
4454
|
-
return localVarFp.allSecrets(requestParameters.envId, requestParameters.collection, requestParameters.name,
|
|
4301
|
+
return localVarFp.allSecrets(requestParameters.envId, requestParameters.collection, requestParameters.name, options).then((request) => request(axios, basePath));
|
|
4455
4302
|
},
|
|
4456
4303
|
/**
|
|
4457
4304
|
*
|
|
@@ -4497,17 +4344,15 @@ var SecretsApi = class extends BaseAPI {
|
|
|
4497
4344
|
* @param {SecretsApiAllSecretsRequest} requestParameters Request parameters.
|
|
4498
4345
|
* @param {*} [options] Override http request option.
|
|
4499
4346
|
* @throws {RequiredError}
|
|
4500
|
-
* @memberof SecretsApi
|
|
4501
4347
|
*/
|
|
4502
4348
|
allSecrets(requestParameters = {}, options) {
|
|
4503
|
-
return SecretsApiFp(this.configuration).allSecrets(requestParameters.envId, requestParameters.collection, requestParameters.name,
|
|
4349
|
+
return SecretsApiFp(this.configuration).allSecrets(requestParameters.envId, requestParameters.collection, requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
4504
4350
|
}
|
|
4505
4351
|
/**
|
|
4506
4352
|
*
|
|
4507
4353
|
* @param {SecretsApiCreateSecretRequest} requestParameters Request parameters.
|
|
4508
4354
|
* @param {*} [options] Override http request option.
|
|
4509
4355
|
* @throws {RequiredError}
|
|
4510
|
-
* @memberof SecretsApi
|
|
4511
4356
|
*/
|
|
4512
4357
|
createSecret(requestParameters, options) {
|
|
4513
4358
|
return SecretsApiFp(this.configuration).createSecret(requestParameters.newSecret, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4517,7 +4362,6 @@ var SecretsApi = class extends BaseAPI {
|
|
|
4517
4362
|
* @param {SecretsApiDeleteSecretRequest} requestParameters Request parameters.
|
|
4518
4363
|
* @param {*} [options] Override http request option.
|
|
4519
4364
|
* @throws {RequiredError}
|
|
4520
|
-
* @memberof SecretsApi
|
|
4521
4365
|
*/
|
|
4522
4366
|
deleteSecret(requestParameters, options) {
|
|
4523
4367
|
return SecretsApiFp(this.configuration).deleteSecret(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4527,7 +4371,6 @@ var SecretsApi = class extends BaseAPI {
|
|
|
4527
4371
|
* @param {SecretsApiGetSecretRequest} requestParameters Request parameters.
|
|
4528
4372
|
* @param {*} [options] Override http request option.
|
|
4529
4373
|
* @throws {RequiredError}
|
|
4530
|
-
* @memberof SecretsApi
|
|
4531
4374
|
*/
|
|
4532
4375
|
getSecret(requestParameters, options) {
|
|
4533
4376
|
return SecretsApiFp(this.configuration).getSecret(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4537,7 +4380,6 @@ var SecretsApi = class extends BaseAPI {
|
|
|
4537
4380
|
* @param {SecretsApiUpdateSecretRequest} requestParameters Request parameters.
|
|
4538
4381
|
* @param {*} [options] Override http request option.
|
|
4539
4382
|
* @throws {RequiredError}
|
|
4540
|
-
* @memberof SecretsApi
|
|
4541
4383
|
*/
|
|
4542
4384
|
updateSecret(requestParameters, options) {
|
|
4543
4385
|
return SecretsApiFp(this.configuration).updateSecret(requestParameters.id, requestParameters.updateSecret, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4550,7 +4392,7 @@ var ServerApiAxiosParamCreator = function(configuration) {
|
|
|
4550
4392
|
* @param {*} [options] Override http request option.
|
|
4551
4393
|
* @throws {RequiredError}
|
|
4552
4394
|
*/
|
|
4553
|
-
getServerInfo: (..._0) => __async(
|
|
4395
|
+
getServerInfo: (..._0) => __async(null, [..._0], function* (options = {}) {
|
|
4554
4396
|
const localVarPath = `/api/v2/server`;
|
|
4555
4397
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4556
4398
|
let baseOptions;
|
|
@@ -4562,6 +4404,7 @@ var ServerApiAxiosParamCreator = function(configuration) {
|
|
|
4562
4404
|
const localVarQueryParameter = {};
|
|
4563
4405
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4564
4406
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
4407
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
4565
4408
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4566
4409
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4567
4410
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4609,7 +4452,6 @@ var ServerApi = class extends BaseAPI {
|
|
|
4609
4452
|
*
|
|
4610
4453
|
* @param {*} [options] Override http request option.
|
|
4611
4454
|
* @throws {RequiredError}
|
|
4612
|
-
* @memberof ServerApi
|
|
4613
4455
|
*/
|
|
4614
4456
|
getServerInfo(options) {
|
|
4615
4457
|
return ServerApiFp(this.configuration).getServerInfo(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4620,12 +4462,10 @@ var UserTokensApiAxiosParamCreator = function(configuration) {
|
|
|
4620
4462
|
/**
|
|
4621
4463
|
*
|
|
4622
4464
|
* @param {string | null} [userId]
|
|
4623
|
-
* @param {number | null} [page]
|
|
4624
|
-
* @param {number | null} [perPage]
|
|
4625
4465
|
* @param {*} [options] Override http request option.
|
|
4626
4466
|
* @throws {RequiredError}
|
|
4627
4467
|
*/
|
|
4628
|
-
allUserTokens: (_0, _1
|
|
4468
|
+
allUserTokens: (_0, ..._1) => __async(null, [_0, ..._1], function* (userId, options = {}) {
|
|
4629
4469
|
const localVarPath = `/api/v2/user-tokens`;
|
|
4630
4470
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4631
4471
|
let baseOptions;
|
|
@@ -4640,12 +4480,7 @@ var UserTokensApiAxiosParamCreator = function(configuration) {
|
|
|
4640
4480
|
if (userId !== void 0) {
|
|
4641
4481
|
localVarQueryParameter["user_id"] = userId;
|
|
4642
4482
|
}
|
|
4643
|
-
|
|
4644
|
-
localVarQueryParameter["page"] = page;
|
|
4645
|
-
}
|
|
4646
|
-
if (perPage !== void 0) {
|
|
4647
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
4648
|
-
}
|
|
4483
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
4649
4484
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4650
4485
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4651
4486
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4660,7 +4495,7 @@ var UserTokensApiAxiosParamCreator = function(configuration) {
|
|
|
4660
4495
|
* @param {*} [options] Override http request option.
|
|
4661
4496
|
* @throws {RequiredError}
|
|
4662
4497
|
*/
|
|
4663
|
-
createUserToken: (_0, ..._1) => __async(
|
|
4498
|
+
createUserToken: (_0, ..._1) => __async(null, [_0, ..._1], function* (createUserToken, options = {}) {
|
|
4664
4499
|
assertParamExists("createUserToken", "createUserToken", createUserToken);
|
|
4665
4500
|
const localVarPath = `/api/v2/user-tokens`;
|
|
4666
4501
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -4674,6 +4509,7 @@ var UserTokensApiAxiosParamCreator = function(configuration) {
|
|
|
4674
4509
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4675
4510
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
4676
4511
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
4512
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
4677
4513
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4678
4514
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4679
4515
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4689,9 +4525,9 @@ var UserTokensApiAxiosParamCreator = function(configuration) {
|
|
|
4689
4525
|
* @param {*} [options] Override http request option.
|
|
4690
4526
|
* @throws {RequiredError}
|
|
4691
4527
|
*/
|
|
4692
|
-
deleteUserToken: (_0, ..._1) => __async(
|
|
4528
|
+
deleteUserToken: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
4693
4529
|
assertParamExists("deleteUserToken", "id", id);
|
|
4694
|
-
const localVarPath = `/api/v2/user-tokens/{id}`.replace(
|
|
4530
|
+
const localVarPath = `/api/v2/user-tokens/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
4695
4531
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4696
4532
|
let baseOptions;
|
|
4697
4533
|
if (configuration) {
|
|
@@ -4716,9 +4552,9 @@ var UserTokensApiAxiosParamCreator = function(configuration) {
|
|
|
4716
4552
|
* @param {*} [options] Override http request option.
|
|
4717
4553
|
* @throws {RequiredError}
|
|
4718
4554
|
*/
|
|
4719
|
-
getUserToken: (_0, ..._1) => __async(
|
|
4555
|
+
getUserToken: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
4720
4556
|
assertParamExists("getUserToken", "id", id);
|
|
4721
|
-
const localVarPath = `/api/v2/user-tokens/{id}`.replace(
|
|
4557
|
+
const localVarPath = `/api/v2/user-tokens/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
4722
4558
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4723
4559
|
let baseOptions;
|
|
4724
4560
|
if (configuration) {
|
|
@@ -4729,6 +4565,7 @@ var UserTokensApiAxiosParamCreator = function(configuration) {
|
|
|
4729
4565
|
const localVarQueryParameter = {};
|
|
4730
4566
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4731
4567
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
4568
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
4732
4569
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4733
4570
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4734
4571
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4745,15 +4582,13 @@ var UserTokensApiFp = function(configuration) {
|
|
|
4745
4582
|
/**
|
|
4746
4583
|
*
|
|
4747
4584
|
* @param {string | null} [userId]
|
|
4748
|
-
* @param {number | null} [page]
|
|
4749
|
-
* @param {number | null} [perPage]
|
|
4750
4585
|
* @param {*} [options] Override http request option.
|
|
4751
4586
|
* @throws {RequiredError}
|
|
4752
4587
|
*/
|
|
4753
|
-
allUserTokens(userId,
|
|
4588
|
+
allUserTokens(userId, options) {
|
|
4754
4589
|
return __async(this, null, function* () {
|
|
4755
4590
|
var _a2, _b, _c;
|
|
4756
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allUserTokens(userId,
|
|
4591
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allUserTokens(userId, options);
|
|
4757
4592
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
4758
4593
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["UserTokensApi.allUserTokens"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
4759
4594
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -4816,7 +4651,7 @@ var UserTokensApiFactory = function(configuration, basePath, axios) {
|
|
|
4816
4651
|
* @throws {RequiredError}
|
|
4817
4652
|
*/
|
|
4818
4653
|
allUserTokens(requestParameters = {}, options) {
|
|
4819
|
-
return localVarFp.allUserTokens(requestParameters.userId,
|
|
4654
|
+
return localVarFp.allUserTokens(requestParameters.userId, options).then((request) => request(axios, basePath));
|
|
4820
4655
|
},
|
|
4821
4656
|
/**
|
|
4822
4657
|
*
|
|
@@ -4853,17 +4688,15 @@ var UserTokensApi = class extends BaseAPI {
|
|
|
4853
4688
|
* @param {UserTokensApiAllUserTokensRequest} requestParameters Request parameters.
|
|
4854
4689
|
* @param {*} [options] Override http request option.
|
|
4855
4690
|
* @throws {RequiredError}
|
|
4856
|
-
* @memberof UserTokensApi
|
|
4857
4691
|
*/
|
|
4858
4692
|
allUserTokens(requestParameters = {}, options) {
|
|
4859
|
-
return UserTokensApiFp(this.configuration).allUserTokens(requestParameters.userId,
|
|
4693
|
+
return UserTokensApiFp(this.configuration).allUserTokens(requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
4860
4694
|
}
|
|
4861
4695
|
/**
|
|
4862
4696
|
*
|
|
4863
4697
|
* @param {UserTokensApiCreateUserTokenRequest} requestParameters Request parameters.
|
|
4864
4698
|
* @param {*} [options] Override http request option.
|
|
4865
4699
|
* @throws {RequiredError}
|
|
4866
|
-
* @memberof UserTokensApi
|
|
4867
4700
|
*/
|
|
4868
4701
|
createUserToken(requestParameters, options) {
|
|
4869
4702
|
return UserTokensApiFp(this.configuration).createUserToken(requestParameters.createUserToken, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4873,7 +4706,6 @@ var UserTokensApi = class extends BaseAPI {
|
|
|
4873
4706
|
* @param {UserTokensApiDeleteUserTokenRequest} requestParameters Request parameters.
|
|
4874
4707
|
* @param {*} [options] Override http request option.
|
|
4875
4708
|
* @throws {RequiredError}
|
|
4876
|
-
* @memberof UserTokensApi
|
|
4877
4709
|
*/
|
|
4878
4710
|
deleteUserToken(requestParameters, options) {
|
|
4879
4711
|
return UserTokensApiFp(this.configuration).deleteUserToken(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4883,7 +4715,6 @@ var UserTokensApi = class extends BaseAPI {
|
|
|
4883
4715
|
* @param {UserTokensApiGetUserTokenRequest} requestParameters Request parameters.
|
|
4884
4716
|
* @param {*} [options] Override http request option.
|
|
4885
4717
|
* @throws {RequiredError}
|
|
4886
|
-
* @memberof UserTokensApi
|
|
4887
4718
|
*/
|
|
4888
4719
|
getUserToken(requestParameters, options) {
|
|
4889
4720
|
return UserTokensApiFp(this.configuration).getUserToken(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4896,12 +4727,10 @@ var UsersApiAxiosParamCreator = function(configuration) {
|
|
|
4896
4727
|
* @param {string | null} [displayName]
|
|
4897
4728
|
* @param {string | null} [email]
|
|
4898
4729
|
* @param {boolean | null} [isActive]
|
|
4899
|
-
* @param {number | null} [page]
|
|
4900
|
-
* @param {number | null} [perPage]
|
|
4901
4730
|
* @param {*} [options] Override http request option.
|
|
4902
4731
|
* @throws {RequiredError}
|
|
4903
4732
|
*/
|
|
4904
|
-
allUsers: (_0, _1, _2, _3
|
|
4733
|
+
allUsers: (_0, _1, _2, ..._3) => __async(null, [_0, _1, _2, ..._3], function* (displayName, email, isActive, options = {}) {
|
|
4905
4734
|
const localVarPath = `/api/v2/users`;
|
|
4906
4735
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4907
4736
|
let baseOptions;
|
|
@@ -4922,12 +4751,7 @@ var UsersApiAxiosParamCreator = function(configuration) {
|
|
|
4922
4751
|
if (isActive !== void 0) {
|
|
4923
4752
|
localVarQueryParameter["is_active"] = isActive;
|
|
4924
4753
|
}
|
|
4925
|
-
|
|
4926
|
-
localVarQueryParameter["page"] = page;
|
|
4927
|
-
}
|
|
4928
|
-
if (perPage !== void 0) {
|
|
4929
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
4930
|
-
}
|
|
4754
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
4931
4755
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4932
4756
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4933
4757
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4942,9 +4766,9 @@ var UsersApiAxiosParamCreator = function(configuration) {
|
|
|
4942
4766
|
* @param {*} [options] Override http request option.
|
|
4943
4767
|
* @throws {RequiredError}
|
|
4944
4768
|
*/
|
|
4945
|
-
getUser: (_0, ..._1) => __async(
|
|
4769
|
+
getUser: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
4946
4770
|
assertParamExists("getUser", "id", id);
|
|
4947
|
-
const localVarPath = `/api/v2/users/{id}`.replace(
|
|
4771
|
+
const localVarPath = `/api/v2/users/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
4948
4772
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4949
4773
|
let baseOptions;
|
|
4950
4774
|
if (configuration) {
|
|
@@ -4955,6 +4779,7 @@ var UsersApiAxiosParamCreator = function(configuration) {
|
|
|
4955
4779
|
const localVarQueryParameter = {};
|
|
4956
4780
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4957
4781
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
4782
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
4958
4783
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4959
4784
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4960
4785
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4970,10 +4795,10 @@ var UsersApiAxiosParamCreator = function(configuration) {
|
|
|
4970
4795
|
* @param {*} [options] Override http request option.
|
|
4971
4796
|
* @throws {RequiredError}
|
|
4972
4797
|
*/
|
|
4973
|
-
updateUser: (_0, _1, ..._2) => __async(
|
|
4798
|
+
updateUser: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (id, updateUser, options = {}) {
|
|
4974
4799
|
assertParamExists("updateUser", "id", id);
|
|
4975
4800
|
assertParamExists("updateUser", "updateUser", updateUser);
|
|
4976
|
-
const localVarPath = `/api/v2/users/{id}`.replace(
|
|
4801
|
+
const localVarPath = `/api/v2/users/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
4977
4802
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4978
4803
|
let baseOptions;
|
|
4979
4804
|
if (configuration) {
|
|
@@ -4985,6 +4810,7 @@ var UsersApiAxiosParamCreator = function(configuration) {
|
|
|
4985
4810
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4986
4811
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
4987
4812
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
4813
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
4988
4814
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4989
4815
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4990
4816
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -5004,15 +4830,13 @@ var UsersApiFp = function(configuration) {
|
|
|
5004
4830
|
* @param {string | null} [displayName]
|
|
5005
4831
|
* @param {string | null} [email]
|
|
5006
4832
|
* @param {boolean | null} [isActive]
|
|
5007
|
-
* @param {number | null} [page]
|
|
5008
|
-
* @param {number | null} [perPage]
|
|
5009
4833
|
* @param {*} [options] Override http request option.
|
|
5010
4834
|
* @throws {RequiredError}
|
|
5011
4835
|
*/
|
|
5012
|
-
allUsers(displayName, email, isActive,
|
|
4836
|
+
allUsers(displayName, email, isActive, options) {
|
|
5013
4837
|
return __async(this, null, function* () {
|
|
5014
4838
|
var _a2, _b, _c;
|
|
5015
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allUsers(displayName, email, isActive,
|
|
4839
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allUsers(displayName, email, isActive, options);
|
|
5016
4840
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
5017
4841
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["UsersApi.allUsers"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
5018
4842
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -5061,7 +4885,7 @@ var UsersApiFactory = function(configuration, basePath, axios) {
|
|
|
5061
4885
|
* @throws {RequiredError}
|
|
5062
4886
|
*/
|
|
5063
4887
|
allUsers(requestParameters = {}, options) {
|
|
5064
|
-
return localVarFp.allUsers(requestParameters.displayName, requestParameters.email, requestParameters.isActive,
|
|
4888
|
+
return localVarFp.allUsers(requestParameters.displayName, requestParameters.email, requestParameters.isActive, options).then((request) => request(axios, basePath));
|
|
5065
4889
|
},
|
|
5066
4890
|
/**
|
|
5067
4891
|
*
|
|
@@ -5089,17 +4913,15 @@ var UsersApi = class extends BaseAPI {
|
|
|
5089
4913
|
* @param {UsersApiAllUsersRequest} requestParameters Request parameters.
|
|
5090
4914
|
* @param {*} [options] Override http request option.
|
|
5091
4915
|
* @throws {RequiredError}
|
|
5092
|
-
* @memberof UsersApi
|
|
5093
4916
|
*/
|
|
5094
4917
|
allUsers(requestParameters = {}, options) {
|
|
5095
|
-
return UsersApiFp(this.configuration).allUsers(requestParameters.displayName, requestParameters.email, requestParameters.isActive,
|
|
4918
|
+
return UsersApiFp(this.configuration).allUsers(requestParameters.displayName, requestParameters.email, requestParameters.isActive, options).then((request) => request(this.axios, this.basePath));
|
|
5096
4919
|
}
|
|
5097
4920
|
/**
|
|
5098
4921
|
*
|
|
5099
4922
|
* @param {UsersApiGetUserRequest} requestParameters Request parameters.
|
|
5100
4923
|
* @param {*} [options] Override http request option.
|
|
5101
4924
|
* @throws {RequiredError}
|
|
5102
|
-
* @memberof UsersApi
|
|
5103
4925
|
*/
|
|
5104
4926
|
getUser(requestParameters, options) {
|
|
5105
4927
|
return UsersApiFp(this.configuration).getUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5109,7 +4931,6 @@ var UsersApi = class extends BaseAPI {
|
|
|
5109
4931
|
* @param {UsersApiUpdateUserRequest} requestParameters Request parameters.
|
|
5110
4932
|
* @param {*} [options] Override http request option.
|
|
5111
4933
|
* @throws {RequiredError}
|
|
5112
|
-
* @memberof UsersApi
|
|
5113
4934
|
*/
|
|
5114
4935
|
updateUser(requestParameters, options) {
|
|
5115
4936
|
return UsersApiFp(this.configuration).updateUser(requestParameters.id, requestParameters.updateUser, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -5119,13 +4940,17 @@ var UsersApi = class extends BaseAPI {
|
|
|
5119
4940
|
// src/configuration.ts
|
|
5120
4941
|
var Configuration = class {
|
|
5121
4942
|
constructor(param = {}) {
|
|
4943
|
+
var _a;
|
|
5122
4944
|
this.apiKey = param.apiKey;
|
|
5123
4945
|
this.username = param.username;
|
|
5124
4946
|
this.password = param.password;
|
|
5125
4947
|
this.accessToken = param.accessToken;
|
|
4948
|
+
this.awsv4 = param.awsv4;
|
|
5126
4949
|
this.basePath = param.basePath;
|
|
5127
4950
|
this.serverIndex = param.serverIndex;
|
|
5128
|
-
this.baseOptions = param.baseOptions
|
|
4951
|
+
this.baseOptions = __spreadProps(__spreadValues({}, param.baseOptions), {
|
|
4952
|
+
headers: __spreadValues({}, (_a = param.baseOptions) == null ? void 0 : _a.headers)
|
|
4953
|
+
});
|
|
5129
4954
|
this.formDataCtor = param.formDataCtor;
|
|
5130
4955
|
}
|
|
5131
4956
|
/**
|
|
@@ -5139,8 +4964,8 @@ var Configuration = class {
|
|
|
5139
4964
|
* @return True if the given MIME is JSON, false otherwise.
|
|
5140
4965
|
*/
|
|
5141
4966
|
isJsonMime(mime) {
|
|
5142
|
-
const jsonMime =
|
|
5143
|
-
return mime !== null &&
|
|
4967
|
+
const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
|
|
4968
|
+
return mime !== null && jsonMime.test(mime);
|
|
5144
4969
|
}
|
|
5145
4970
|
};
|
|
5146
4971
|
export {
|
|
@@ -5216,6 +5041,7 @@ export {
|
|
|
5216
5041
|
HelmRegistriesApiAxiosParamCreator,
|
|
5217
5042
|
HelmRegistriesApiFactory,
|
|
5218
5043
|
HelmRegistriesApiFp,
|
|
5044
|
+
HelmRegistryProvider,
|
|
5219
5045
|
HelmTagFormatsApi,
|
|
5220
5046
|
HelmTagFormatsApiAxiosParamCreator,
|
|
5221
5047
|
HelmTagFormatsApiFactory,
|