@platzio/sdk 0.6.0-beta.2 → 0.7.0-beta.1
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/dist/index.d.mts +678 -5113
- package/dist/index.d.ts +678 -5113
- package/dist/index.js +521 -411
- package/dist/index.mjs +513 -408
- package/openapi.yaml +1560 -1515
- package/package.json +3 -3
- package/src/.openapi-generator/FILES +190 -0
- package/src/.openapi-generator/VERSION +1 -1
- package/src/api.ts +917 -5356
- 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/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,23 +429,284 @@ 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));
|
|
424
435
|
}
|
|
425
436
|
};
|
|
437
|
+
var BotTokensApiAxiosParamCreator = function(configuration) {
|
|
438
|
+
return {
|
|
439
|
+
/**
|
|
440
|
+
*
|
|
441
|
+
* @param {string | null} [botId]
|
|
442
|
+
* @param {string | null} [createdByUserId]
|
|
443
|
+
* @param {*} [options] Override http request option.
|
|
444
|
+
* @throws {RequiredError}
|
|
445
|
+
*/
|
|
446
|
+
allBotTokens: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (botId, createdByUserId, options = {}) {
|
|
447
|
+
const localVarPath = `/api/v2/bot-tokens`;
|
|
448
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
449
|
+
let baseOptions;
|
|
450
|
+
if (configuration) {
|
|
451
|
+
baseOptions = configuration.baseOptions;
|
|
452
|
+
}
|
|
453
|
+
const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
|
|
454
|
+
const localVarHeaderParameter = {};
|
|
455
|
+
const localVarQueryParameter = {};
|
|
456
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
457
|
+
if (botId !== void 0) {
|
|
458
|
+
localVarQueryParameter["bot_id"] = botId;
|
|
459
|
+
}
|
|
460
|
+
if (createdByUserId !== void 0) {
|
|
461
|
+
localVarQueryParameter["created_by_user_id"] = createdByUserId;
|
|
462
|
+
}
|
|
463
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
464
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
465
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
466
|
+
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
467
|
+
return {
|
|
468
|
+
url: toPathString(localVarUrlObj),
|
|
469
|
+
options: localVarRequestOptions
|
|
470
|
+
};
|
|
471
|
+
}),
|
|
472
|
+
/**
|
|
473
|
+
*
|
|
474
|
+
* @param {CreateBotToken} createBotToken
|
|
475
|
+
* @param {*} [options] Override http request option.
|
|
476
|
+
* @throws {RequiredError}
|
|
477
|
+
*/
|
|
478
|
+
createBotToken: (_0, ..._1) => __async(null, [_0, ..._1], function* (createBotToken, options = {}) {
|
|
479
|
+
assertParamExists("createBotToken", "createBotToken", createBotToken);
|
|
480
|
+
const localVarPath = `/api/v2/bot-tokens`;
|
|
481
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
482
|
+
let baseOptions;
|
|
483
|
+
if (configuration) {
|
|
484
|
+
baseOptions = configuration.baseOptions;
|
|
485
|
+
}
|
|
486
|
+
const localVarRequestOptions = __spreadValues(__spreadValues({ method: "POST" }, baseOptions), options);
|
|
487
|
+
const localVarHeaderParameter = {};
|
|
488
|
+
const localVarQueryParameter = {};
|
|
489
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
490
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
491
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
492
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
493
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
494
|
+
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
495
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createBotToken, localVarRequestOptions, configuration);
|
|
496
|
+
return {
|
|
497
|
+
url: toPathString(localVarUrlObj),
|
|
498
|
+
options: localVarRequestOptions
|
|
499
|
+
};
|
|
500
|
+
}),
|
|
501
|
+
/**
|
|
502
|
+
*
|
|
503
|
+
* @param {string} id
|
|
504
|
+
* @param {*} [options] Override http request option.
|
|
505
|
+
* @throws {RequiredError}
|
|
506
|
+
*/
|
|
507
|
+
deleteBotToken: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
508
|
+
assertParamExists("deleteBotToken", "id", id);
|
|
509
|
+
const localVarPath = `/api/v2/bot-tokens/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
510
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
511
|
+
let baseOptions;
|
|
512
|
+
if (configuration) {
|
|
513
|
+
baseOptions = configuration.baseOptions;
|
|
514
|
+
}
|
|
515
|
+
const localVarRequestOptions = __spreadValues(__spreadValues({ method: "DELETE" }, baseOptions), options);
|
|
516
|
+
const localVarHeaderParameter = {};
|
|
517
|
+
const localVarQueryParameter = {};
|
|
518
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
519
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
520
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
521
|
+
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
522
|
+
return {
|
|
523
|
+
url: toPathString(localVarUrlObj),
|
|
524
|
+
options: localVarRequestOptions
|
|
525
|
+
};
|
|
526
|
+
}),
|
|
527
|
+
/**
|
|
528
|
+
*
|
|
529
|
+
* @param {string} id
|
|
530
|
+
* @param {*} [options] Override http request option.
|
|
531
|
+
* @throws {RequiredError}
|
|
532
|
+
*/
|
|
533
|
+
getBotToken: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
534
|
+
assertParamExists("getBotToken", "id", id);
|
|
535
|
+
const localVarPath = `/api/v2/bot-tokens/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
536
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
537
|
+
let baseOptions;
|
|
538
|
+
if (configuration) {
|
|
539
|
+
baseOptions = configuration.baseOptions;
|
|
540
|
+
}
|
|
541
|
+
const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
|
|
542
|
+
const localVarHeaderParameter = {};
|
|
543
|
+
const localVarQueryParameter = {};
|
|
544
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
545
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
546
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
547
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
548
|
+
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
549
|
+
return {
|
|
550
|
+
url: toPathString(localVarUrlObj),
|
|
551
|
+
options: localVarRequestOptions
|
|
552
|
+
};
|
|
553
|
+
})
|
|
554
|
+
};
|
|
555
|
+
};
|
|
556
|
+
var BotTokensApiFp = function(configuration) {
|
|
557
|
+
const localVarAxiosParamCreator = BotTokensApiAxiosParamCreator(configuration);
|
|
558
|
+
return {
|
|
559
|
+
/**
|
|
560
|
+
*
|
|
561
|
+
* @param {string | null} [botId]
|
|
562
|
+
* @param {string | null} [createdByUserId]
|
|
563
|
+
* @param {*} [options] Override http request option.
|
|
564
|
+
* @throws {RequiredError}
|
|
565
|
+
*/
|
|
566
|
+
allBotTokens(botId, createdByUserId, options) {
|
|
567
|
+
return __async(this, null, function* () {
|
|
568
|
+
var _a2, _b, _c;
|
|
569
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allBotTokens(botId, createdByUserId, options);
|
|
570
|
+
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
571
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["BotTokensApi.allBotTokens"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
572
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
573
|
+
});
|
|
574
|
+
},
|
|
575
|
+
/**
|
|
576
|
+
*
|
|
577
|
+
* @param {CreateBotToken} createBotToken
|
|
578
|
+
* @param {*} [options] Override http request option.
|
|
579
|
+
* @throws {RequiredError}
|
|
580
|
+
*/
|
|
581
|
+
createBotToken(createBotToken, options) {
|
|
582
|
+
return __async(this, null, function* () {
|
|
583
|
+
var _a2, _b, _c;
|
|
584
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createBotToken(createBotToken, options);
|
|
585
|
+
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
586
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["BotTokensApi.createBotToken"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
587
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
588
|
+
});
|
|
589
|
+
},
|
|
590
|
+
/**
|
|
591
|
+
*
|
|
592
|
+
* @param {string} id
|
|
593
|
+
* @param {*} [options] Override http request option.
|
|
594
|
+
* @throws {RequiredError}
|
|
595
|
+
*/
|
|
596
|
+
deleteBotToken(id, options) {
|
|
597
|
+
return __async(this, null, function* () {
|
|
598
|
+
var _a2, _b, _c;
|
|
599
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteBotToken(id, options);
|
|
600
|
+
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
601
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["BotTokensApi.deleteBotToken"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
602
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
603
|
+
});
|
|
604
|
+
},
|
|
605
|
+
/**
|
|
606
|
+
*
|
|
607
|
+
* @param {string} id
|
|
608
|
+
* @param {*} [options] Override http request option.
|
|
609
|
+
* @throws {RequiredError}
|
|
610
|
+
*/
|
|
611
|
+
getBotToken(id, options) {
|
|
612
|
+
return __async(this, null, function* () {
|
|
613
|
+
var _a2, _b, _c;
|
|
614
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBotToken(id, options);
|
|
615
|
+
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
616
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["BotTokensApi.getBotToken"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
617
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
618
|
+
});
|
|
619
|
+
}
|
|
620
|
+
};
|
|
621
|
+
};
|
|
622
|
+
var BotTokensApiFactory = function(configuration, basePath, axios) {
|
|
623
|
+
const localVarFp = BotTokensApiFp(configuration);
|
|
624
|
+
return {
|
|
625
|
+
/**
|
|
626
|
+
*
|
|
627
|
+
* @param {BotTokensApiAllBotTokensRequest} requestParameters Request parameters.
|
|
628
|
+
* @param {*} [options] Override http request option.
|
|
629
|
+
* @throws {RequiredError}
|
|
630
|
+
*/
|
|
631
|
+
allBotTokens(requestParameters = {}, options) {
|
|
632
|
+
return localVarFp.allBotTokens(requestParameters.botId, requestParameters.createdByUserId, options).then((request) => request(axios, basePath));
|
|
633
|
+
},
|
|
634
|
+
/**
|
|
635
|
+
*
|
|
636
|
+
* @param {BotTokensApiCreateBotTokenRequest} requestParameters Request parameters.
|
|
637
|
+
* @param {*} [options] Override http request option.
|
|
638
|
+
* @throws {RequiredError}
|
|
639
|
+
*/
|
|
640
|
+
createBotToken(requestParameters, options) {
|
|
641
|
+
return localVarFp.createBotToken(requestParameters.createBotToken, options).then((request) => request(axios, basePath));
|
|
642
|
+
},
|
|
643
|
+
/**
|
|
644
|
+
*
|
|
645
|
+
* @param {BotTokensApiDeleteBotTokenRequest} requestParameters Request parameters.
|
|
646
|
+
* @param {*} [options] Override http request option.
|
|
647
|
+
* @throws {RequiredError}
|
|
648
|
+
*/
|
|
649
|
+
deleteBotToken(requestParameters, options) {
|
|
650
|
+
return localVarFp.deleteBotToken(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
651
|
+
},
|
|
652
|
+
/**
|
|
653
|
+
*
|
|
654
|
+
* @param {BotTokensApiGetBotTokenRequest} requestParameters Request parameters.
|
|
655
|
+
* @param {*} [options] Override http request option.
|
|
656
|
+
* @throws {RequiredError}
|
|
657
|
+
*/
|
|
658
|
+
getBotToken(requestParameters, options) {
|
|
659
|
+
return localVarFp.getBotToken(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
660
|
+
}
|
|
661
|
+
};
|
|
662
|
+
};
|
|
663
|
+
var BotTokensApi = class extends BaseAPI {
|
|
664
|
+
/**
|
|
665
|
+
*
|
|
666
|
+
* @param {BotTokensApiAllBotTokensRequest} requestParameters Request parameters.
|
|
667
|
+
* @param {*} [options] Override http request option.
|
|
668
|
+
* @throws {RequiredError}
|
|
669
|
+
*/
|
|
670
|
+
allBotTokens(requestParameters = {}, options) {
|
|
671
|
+
return BotTokensApiFp(this.configuration).allBotTokens(requestParameters.botId, requestParameters.createdByUserId, options).then((request) => request(this.axios, this.basePath));
|
|
672
|
+
}
|
|
673
|
+
/**
|
|
674
|
+
*
|
|
675
|
+
* @param {BotTokensApiCreateBotTokenRequest} requestParameters Request parameters.
|
|
676
|
+
* @param {*} [options] Override http request option.
|
|
677
|
+
* @throws {RequiredError}
|
|
678
|
+
*/
|
|
679
|
+
createBotToken(requestParameters, options) {
|
|
680
|
+
return BotTokensApiFp(this.configuration).createBotToken(requestParameters.createBotToken, options).then((request) => request(this.axios, this.basePath));
|
|
681
|
+
}
|
|
682
|
+
/**
|
|
683
|
+
*
|
|
684
|
+
* @param {BotTokensApiDeleteBotTokenRequest} requestParameters Request parameters.
|
|
685
|
+
* @param {*} [options] Override http request option.
|
|
686
|
+
* @throws {RequiredError}
|
|
687
|
+
*/
|
|
688
|
+
deleteBotToken(requestParameters, options) {
|
|
689
|
+
return BotTokensApiFp(this.configuration).deleteBotToken(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
690
|
+
}
|
|
691
|
+
/**
|
|
692
|
+
*
|
|
693
|
+
* @param {BotTokensApiGetBotTokenRequest} requestParameters Request parameters.
|
|
694
|
+
* @param {*} [options] Override http request option.
|
|
695
|
+
* @throws {RequiredError}
|
|
696
|
+
*/
|
|
697
|
+
getBotToken(requestParameters, options) {
|
|
698
|
+
return BotTokensApiFp(this.configuration).getBotToken(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
699
|
+
}
|
|
700
|
+
};
|
|
426
701
|
var BotsApiAxiosParamCreator = function(configuration) {
|
|
427
702
|
return {
|
|
428
703
|
/**
|
|
429
704
|
*
|
|
430
705
|
* @param {string | null} [displayName]
|
|
431
|
-
* @param {number | null} [page]
|
|
432
|
-
* @param {number | null} [perPage]
|
|
433
706
|
* @param {*} [options] Override http request option.
|
|
434
707
|
* @throws {RequiredError}
|
|
435
708
|
*/
|
|
436
|
-
allBots: (_0, _1
|
|
709
|
+
allBots: (_0, ..._1) => __async(null, [_0, ..._1], function* (displayName, options = {}) {
|
|
437
710
|
const localVarPath = `/api/v2/bots`;
|
|
438
711
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
439
712
|
let baseOptions;
|
|
@@ -448,12 +721,7 @@ var BotsApiAxiosParamCreator = function(configuration) {
|
|
|
448
721
|
if (displayName !== void 0) {
|
|
449
722
|
localVarQueryParameter["display_name"] = displayName;
|
|
450
723
|
}
|
|
451
|
-
|
|
452
|
-
localVarQueryParameter["page"] = page;
|
|
453
|
-
}
|
|
454
|
-
if (perPage !== void 0) {
|
|
455
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
456
|
-
}
|
|
724
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
457
725
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
458
726
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
459
727
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -468,9 +736,9 @@ var BotsApiAxiosParamCreator = function(configuration) {
|
|
|
468
736
|
* @param {*} [options] Override http request option.
|
|
469
737
|
* @throws {RequiredError}
|
|
470
738
|
*/
|
|
471
|
-
getBot: (_0, ..._1) => __async(
|
|
739
|
+
getBot: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
472
740
|
assertParamExists("getBot", "id", id);
|
|
473
|
-
const localVarPath = `/api/v2/bots/{id}`.replace(
|
|
741
|
+
const localVarPath = `/api/v2/bots/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
474
742
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
475
743
|
let baseOptions;
|
|
476
744
|
if (configuration) {
|
|
@@ -481,6 +749,7 @@ var BotsApiAxiosParamCreator = function(configuration) {
|
|
|
481
749
|
const localVarQueryParameter = {};
|
|
482
750
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
483
751
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
752
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
484
753
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
485
754
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
486
755
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -496,10 +765,10 @@ var BotsApiAxiosParamCreator = function(configuration) {
|
|
|
496
765
|
* @param {*} [options] Override http request option.
|
|
497
766
|
* @throws {RequiredError}
|
|
498
767
|
*/
|
|
499
|
-
updateBot: (_0, _1, ..._2) => __async(
|
|
768
|
+
updateBot: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (id, updateBot, options = {}) {
|
|
500
769
|
assertParamExists("updateBot", "id", id);
|
|
501
770
|
assertParamExists("updateBot", "updateBot", updateBot);
|
|
502
|
-
const localVarPath = `/api/v2/bots/{id}`.replace(
|
|
771
|
+
const localVarPath = `/api/v2/bots/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
503
772
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
504
773
|
let baseOptions;
|
|
505
774
|
if (configuration) {
|
|
@@ -511,6 +780,7 @@ var BotsApiAxiosParamCreator = function(configuration) {
|
|
|
511
780
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
512
781
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
513
782
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
783
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
514
784
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
515
785
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
516
786
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -528,15 +798,13 @@ var BotsApiFp = function(configuration) {
|
|
|
528
798
|
/**
|
|
529
799
|
*
|
|
530
800
|
* @param {string | null} [displayName]
|
|
531
|
-
* @param {number | null} [page]
|
|
532
|
-
* @param {number | null} [perPage]
|
|
533
801
|
* @param {*} [options] Override http request option.
|
|
534
802
|
* @throws {RequiredError}
|
|
535
803
|
*/
|
|
536
|
-
allBots(displayName,
|
|
804
|
+
allBots(displayName, options) {
|
|
537
805
|
return __async(this, null, function* () {
|
|
538
806
|
var _a2, _b, _c;
|
|
539
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allBots(displayName,
|
|
807
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allBots(displayName, options);
|
|
540
808
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
541
809
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["BotsApi.allBots"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
542
810
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -585,7 +853,7 @@ var BotsApiFactory = function(configuration, basePath, axios) {
|
|
|
585
853
|
* @throws {RequiredError}
|
|
586
854
|
*/
|
|
587
855
|
allBots(requestParameters = {}, options) {
|
|
588
|
-
return localVarFp.allBots(requestParameters.displayName,
|
|
856
|
+
return localVarFp.allBots(requestParameters.displayName, options).then((request) => request(axios, basePath));
|
|
589
857
|
},
|
|
590
858
|
/**
|
|
591
859
|
*
|
|
@@ -613,17 +881,15 @@ var BotsApi = class extends BaseAPI {
|
|
|
613
881
|
* @param {BotsApiAllBotsRequest} requestParameters Request parameters.
|
|
614
882
|
* @param {*} [options] Override http request option.
|
|
615
883
|
* @throws {RequiredError}
|
|
616
|
-
* @memberof BotsApi
|
|
617
884
|
*/
|
|
618
885
|
allBots(requestParameters = {}, options) {
|
|
619
|
-
return BotsApiFp(this.configuration).allBots(requestParameters.displayName,
|
|
886
|
+
return BotsApiFp(this.configuration).allBots(requestParameters.displayName, options).then((request) => request(this.axios, this.basePath));
|
|
620
887
|
}
|
|
621
888
|
/**
|
|
622
889
|
*
|
|
623
890
|
* @param {BotsApiGetBotRequest} requestParameters Request parameters.
|
|
624
891
|
* @param {*} [options] Override http request option.
|
|
625
892
|
* @throws {RequiredError}
|
|
626
|
-
* @memberof BotsApi
|
|
627
893
|
*/
|
|
628
894
|
getBot(requestParameters, options) {
|
|
629
895
|
return BotsApiFp(this.configuration).getBot(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -633,7 +899,6 @@ var BotsApi = class extends BaseAPI {
|
|
|
633
899
|
* @param {BotsApiUpdateBotRequest} requestParameters Request parameters.
|
|
634
900
|
* @param {*} [options] Override http request option.
|
|
635
901
|
* @throws {RequiredError}
|
|
636
|
-
* @memberof BotsApi
|
|
637
902
|
*/
|
|
638
903
|
updateBot(requestParameters, options) {
|
|
639
904
|
return BotsApiFp(this.configuration).updateBot(requestParameters.id, requestParameters.updateBot, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -644,12 +909,10 @@ var DeploymentKindsApiAxiosParamCreator = function(configuration) {
|
|
|
644
909
|
/**
|
|
645
910
|
*
|
|
646
911
|
* @param {string | null} [name]
|
|
647
|
-
* @param {number | null} [page]
|
|
648
|
-
* @param {number | null} [perPage]
|
|
649
912
|
* @param {*} [options] Override http request option.
|
|
650
913
|
* @throws {RequiredError}
|
|
651
914
|
*/
|
|
652
|
-
allDeploymentKinds: (_0, _1
|
|
915
|
+
allDeploymentKinds: (_0, ..._1) => __async(null, [_0, ..._1], function* (name, options = {}) {
|
|
653
916
|
const localVarPath = `/api/v2/deployment-kinds`;
|
|
654
917
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
655
918
|
let baseOptions;
|
|
@@ -664,12 +927,7 @@ var DeploymentKindsApiAxiosParamCreator = function(configuration) {
|
|
|
664
927
|
if (name !== void 0) {
|
|
665
928
|
localVarQueryParameter["name"] = name;
|
|
666
929
|
}
|
|
667
|
-
|
|
668
|
-
localVarQueryParameter["page"] = page;
|
|
669
|
-
}
|
|
670
|
-
if (perPage !== void 0) {
|
|
671
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
672
|
-
}
|
|
930
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
673
931
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
674
932
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
675
933
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -684,9 +942,9 @@ var DeploymentKindsApiAxiosParamCreator = function(configuration) {
|
|
|
684
942
|
* @param {*} [options] Override http request option.
|
|
685
943
|
* @throws {RequiredError}
|
|
686
944
|
*/
|
|
687
|
-
getDeploymentKind: (_0, ..._1) => __async(
|
|
945
|
+
getDeploymentKind: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
688
946
|
assertParamExists("getDeploymentKind", "id", id);
|
|
689
|
-
const localVarPath = `/api/v2/deployment-kinds/{id}`.replace(
|
|
947
|
+
const localVarPath = `/api/v2/deployment-kinds/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
690
948
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
691
949
|
let baseOptions;
|
|
692
950
|
if (configuration) {
|
|
@@ -697,6 +955,7 @@ var DeploymentKindsApiAxiosParamCreator = function(configuration) {
|
|
|
697
955
|
const localVarQueryParameter = {};
|
|
698
956
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
699
957
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
958
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
700
959
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
701
960
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
702
961
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -712,10 +971,10 @@ var DeploymentKindsApiAxiosParamCreator = function(configuration) {
|
|
|
712
971
|
* @param {*} [options] Override http request option.
|
|
713
972
|
* @throws {RequiredError}
|
|
714
973
|
*/
|
|
715
|
-
updateDeploymentKind: (_0, _1, ..._2) => __async(
|
|
974
|
+
updateDeploymentKind: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (id, updateDeploymentKind, options = {}) {
|
|
716
975
|
assertParamExists("updateDeploymentKind", "id", id);
|
|
717
976
|
assertParamExists("updateDeploymentKind", "updateDeploymentKind", updateDeploymentKind);
|
|
718
|
-
const localVarPath = `/api/v2/deployment-kinds/{id}`.replace(
|
|
977
|
+
const localVarPath = `/api/v2/deployment-kinds/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
719
978
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
720
979
|
let baseOptions;
|
|
721
980
|
if (configuration) {
|
|
@@ -727,6 +986,7 @@ var DeploymentKindsApiAxiosParamCreator = function(configuration) {
|
|
|
727
986
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
728
987
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
729
988
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
989
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
730
990
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
731
991
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
732
992
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -744,15 +1004,13 @@ var DeploymentKindsApiFp = function(configuration) {
|
|
|
744
1004
|
/**
|
|
745
1005
|
*
|
|
746
1006
|
* @param {string | null} [name]
|
|
747
|
-
* @param {number | null} [page]
|
|
748
|
-
* @param {number | null} [perPage]
|
|
749
1007
|
* @param {*} [options] Override http request option.
|
|
750
1008
|
* @throws {RequiredError}
|
|
751
1009
|
*/
|
|
752
|
-
allDeploymentKinds(name,
|
|
1010
|
+
allDeploymentKinds(name, options) {
|
|
753
1011
|
return __async(this, null, function* () {
|
|
754
1012
|
var _a2, _b, _c;
|
|
755
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeploymentKinds(name,
|
|
1013
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeploymentKinds(name, options);
|
|
756
1014
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
757
1015
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DeploymentKindsApi.allDeploymentKinds"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
758
1016
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -801,7 +1059,7 @@ var DeploymentKindsApiFactory = function(configuration, basePath, axios) {
|
|
|
801
1059
|
* @throws {RequiredError}
|
|
802
1060
|
*/
|
|
803
1061
|
allDeploymentKinds(requestParameters = {}, options) {
|
|
804
|
-
return localVarFp.allDeploymentKinds(requestParameters.name,
|
|
1062
|
+
return localVarFp.allDeploymentKinds(requestParameters.name, options).then((request) => request(axios, basePath));
|
|
805
1063
|
},
|
|
806
1064
|
/**
|
|
807
1065
|
*
|
|
@@ -829,17 +1087,15 @@ var DeploymentKindsApi = class extends BaseAPI {
|
|
|
829
1087
|
* @param {DeploymentKindsApiAllDeploymentKindsRequest} requestParameters Request parameters.
|
|
830
1088
|
* @param {*} [options] Override http request option.
|
|
831
1089
|
* @throws {RequiredError}
|
|
832
|
-
* @memberof DeploymentKindsApi
|
|
833
1090
|
*/
|
|
834
1091
|
allDeploymentKinds(requestParameters = {}, options) {
|
|
835
|
-
return DeploymentKindsApiFp(this.configuration).allDeploymentKinds(requestParameters.name,
|
|
1092
|
+
return DeploymentKindsApiFp(this.configuration).allDeploymentKinds(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
836
1093
|
}
|
|
837
1094
|
/**
|
|
838
1095
|
*
|
|
839
1096
|
* @param {DeploymentKindsApiGetDeploymentKindRequest} requestParameters Request parameters.
|
|
840
1097
|
* @param {*} [options] Override http request option.
|
|
841
1098
|
* @throws {RequiredError}
|
|
842
|
-
* @memberof DeploymentKindsApi
|
|
843
1099
|
*/
|
|
844
1100
|
getDeploymentKind(requestParameters, options) {
|
|
845
1101
|
return DeploymentKindsApiFp(this.configuration).getDeploymentKind(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -849,7 +1105,6 @@ var DeploymentKindsApi = class extends BaseAPI {
|
|
|
849
1105
|
* @param {DeploymentKindsApiUpdateDeploymentKindRequest} requestParameters Request parameters.
|
|
850
1106
|
* @param {*} [options] Override http request option.
|
|
851
1107
|
* @throws {RequiredError}
|
|
852
|
-
* @memberof DeploymentKindsApi
|
|
853
1108
|
*/
|
|
854
1109
|
updateDeploymentKind(requestParameters, options) {
|
|
855
1110
|
return DeploymentKindsApiFp(this.configuration).updateDeploymentKind(requestParameters.id, requestParameters.updateDeploymentKind, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -860,12 +1115,10 @@ var DeploymentPermissionsApiAxiosParamCreator = function(configuration) {
|
|
|
860
1115
|
/**
|
|
861
1116
|
*
|
|
862
1117
|
* @param {string | null} [envId]
|
|
863
|
-
* @param {number | null} [page]
|
|
864
|
-
* @param {number | null} [perPage]
|
|
865
1118
|
* @param {*} [options] Override http request option.
|
|
866
1119
|
* @throws {RequiredError}
|
|
867
1120
|
*/
|
|
868
|
-
allDeploymentPermissions: (_0, _1
|
|
1121
|
+
allDeploymentPermissions: (_0, ..._1) => __async(null, [_0, ..._1], function* (envId, options = {}) {
|
|
869
1122
|
const localVarPath = `/api/v2/deployment-permissions`;
|
|
870
1123
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
871
1124
|
let baseOptions;
|
|
@@ -880,12 +1133,7 @@ var DeploymentPermissionsApiAxiosParamCreator = function(configuration) {
|
|
|
880
1133
|
if (envId !== void 0) {
|
|
881
1134
|
localVarQueryParameter["env_id"] = envId;
|
|
882
1135
|
}
|
|
883
|
-
|
|
884
|
-
localVarQueryParameter["page"] = page;
|
|
885
|
-
}
|
|
886
|
-
if (perPage !== void 0) {
|
|
887
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
888
|
-
}
|
|
1136
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
889
1137
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
890
1138
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
891
1139
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -900,7 +1148,7 @@ var DeploymentPermissionsApiAxiosParamCreator = function(configuration) {
|
|
|
900
1148
|
* @param {*} [options] Override http request option.
|
|
901
1149
|
* @throws {RequiredError}
|
|
902
1150
|
*/
|
|
903
|
-
createDeploymentPermission: (_0, ..._1) => __async(
|
|
1151
|
+
createDeploymentPermission: (_0, ..._1) => __async(null, [_0, ..._1], function* (newDeploymentPermission, options = {}) {
|
|
904
1152
|
assertParamExists("createDeploymentPermission", "newDeploymentPermission", newDeploymentPermission);
|
|
905
1153
|
const localVarPath = `/api/v2/deployment-permissions`;
|
|
906
1154
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -914,6 +1162,7 @@ var DeploymentPermissionsApiAxiosParamCreator = function(configuration) {
|
|
|
914
1162
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
915
1163
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
916
1164
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1165
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
917
1166
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
918
1167
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
919
1168
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -929,9 +1178,9 @@ var DeploymentPermissionsApiAxiosParamCreator = function(configuration) {
|
|
|
929
1178
|
* @param {*} [options] Override http request option.
|
|
930
1179
|
* @throws {RequiredError}
|
|
931
1180
|
*/
|
|
932
|
-
deleteDeploymentPermission: (_0, ..._1) => __async(
|
|
1181
|
+
deleteDeploymentPermission: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
933
1182
|
assertParamExists("deleteDeploymentPermission", "id", id);
|
|
934
|
-
const localVarPath = `/api/v2/deployment-permissions/{id}`.replace(
|
|
1183
|
+
const localVarPath = `/api/v2/deployment-permissions/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
935
1184
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
936
1185
|
let baseOptions;
|
|
937
1186
|
if (configuration) {
|
|
@@ -956,9 +1205,9 @@ var DeploymentPermissionsApiAxiosParamCreator = function(configuration) {
|
|
|
956
1205
|
* @param {*} [options] Override http request option.
|
|
957
1206
|
* @throws {RequiredError}
|
|
958
1207
|
*/
|
|
959
|
-
getDeploymentPermission: (_0, ..._1) => __async(
|
|
1208
|
+
getDeploymentPermission: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
960
1209
|
assertParamExists("getDeploymentPermission", "id", id);
|
|
961
|
-
const localVarPath = `/api/v2/deployment-permissions/{id}`.replace(
|
|
1210
|
+
const localVarPath = `/api/v2/deployment-permissions/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
962
1211
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
963
1212
|
let baseOptions;
|
|
964
1213
|
if (configuration) {
|
|
@@ -969,6 +1218,7 @@ var DeploymentPermissionsApiAxiosParamCreator = function(configuration) {
|
|
|
969
1218
|
const localVarQueryParameter = {};
|
|
970
1219
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
971
1220
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
1221
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
972
1222
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
973
1223
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
974
1224
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -985,15 +1235,13 @@ var DeploymentPermissionsApiFp = function(configuration) {
|
|
|
985
1235
|
/**
|
|
986
1236
|
*
|
|
987
1237
|
* @param {string | null} [envId]
|
|
988
|
-
* @param {number | null} [page]
|
|
989
|
-
* @param {number | null} [perPage]
|
|
990
1238
|
* @param {*} [options] Override http request option.
|
|
991
1239
|
* @throws {RequiredError}
|
|
992
1240
|
*/
|
|
993
|
-
allDeploymentPermissions(envId,
|
|
1241
|
+
allDeploymentPermissions(envId, options) {
|
|
994
1242
|
return __async(this, null, function* () {
|
|
995
1243
|
var _a2, _b, _c;
|
|
996
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeploymentPermissions(envId,
|
|
1244
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeploymentPermissions(envId, options);
|
|
997
1245
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
998
1246
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DeploymentPermissionsApi.allDeploymentPermissions"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
999
1247
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1056,7 +1304,7 @@ var DeploymentPermissionsApiFactory = function(configuration, basePath, axios) {
|
|
|
1056
1304
|
* @throws {RequiredError}
|
|
1057
1305
|
*/
|
|
1058
1306
|
allDeploymentPermissions(requestParameters = {}, options) {
|
|
1059
|
-
return localVarFp.allDeploymentPermissions(requestParameters.envId,
|
|
1307
|
+
return localVarFp.allDeploymentPermissions(requestParameters.envId, options).then((request) => request(axios, basePath));
|
|
1060
1308
|
},
|
|
1061
1309
|
/**
|
|
1062
1310
|
*
|
|
@@ -1093,17 +1341,15 @@ var DeploymentPermissionsApi = class extends BaseAPI {
|
|
|
1093
1341
|
* @param {DeploymentPermissionsApiAllDeploymentPermissionsRequest} requestParameters Request parameters.
|
|
1094
1342
|
* @param {*} [options] Override http request option.
|
|
1095
1343
|
* @throws {RequiredError}
|
|
1096
|
-
* @memberof DeploymentPermissionsApi
|
|
1097
1344
|
*/
|
|
1098
1345
|
allDeploymentPermissions(requestParameters = {}, options) {
|
|
1099
|
-
return DeploymentPermissionsApiFp(this.configuration).allDeploymentPermissions(requestParameters.envId,
|
|
1346
|
+
return DeploymentPermissionsApiFp(this.configuration).allDeploymentPermissions(requestParameters.envId, options).then((request) => request(this.axios, this.basePath));
|
|
1100
1347
|
}
|
|
1101
1348
|
/**
|
|
1102
1349
|
*
|
|
1103
1350
|
* @param {DeploymentPermissionsApiCreateDeploymentPermissionRequest} requestParameters Request parameters.
|
|
1104
1351
|
* @param {*} [options] Override http request option.
|
|
1105
1352
|
* @throws {RequiredError}
|
|
1106
|
-
* @memberof DeploymentPermissionsApi
|
|
1107
1353
|
*/
|
|
1108
1354
|
createDeploymentPermission(requestParameters, options) {
|
|
1109
1355
|
return DeploymentPermissionsApiFp(this.configuration).createDeploymentPermission(requestParameters.newDeploymentPermission, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1113,7 +1359,6 @@ var DeploymentPermissionsApi = class extends BaseAPI {
|
|
|
1113
1359
|
* @param {DeploymentPermissionsApiDeleteDeploymentPermissionRequest} requestParameters Request parameters.
|
|
1114
1360
|
* @param {*} [options] Override http request option.
|
|
1115
1361
|
* @throws {RequiredError}
|
|
1116
|
-
* @memberof DeploymentPermissionsApi
|
|
1117
1362
|
*/
|
|
1118
1363
|
deleteDeploymentPermission(requestParameters, options) {
|
|
1119
1364
|
return DeploymentPermissionsApiFp(this.configuration).deleteDeploymentPermission(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1123,7 +1368,6 @@ var DeploymentPermissionsApi = class extends BaseAPI {
|
|
|
1123
1368
|
* @param {DeploymentPermissionsApiGetDeploymentPermissionRequest} requestParameters Request parameters.
|
|
1124
1369
|
* @param {*} [options] Override http request option.
|
|
1125
1370
|
* @throws {RequiredError}
|
|
1126
|
-
* @memberof DeploymentPermissionsApi
|
|
1127
1371
|
*/
|
|
1128
1372
|
getDeploymentPermission(requestParameters, options) {
|
|
1129
1373
|
return DeploymentPermissionsApiFp(this.configuration).getDeploymentPermission(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1136,12 +1380,10 @@ var DeploymentResourceTypesApiAxiosParamCreator = function(configuration) {
|
|
|
1136
1380
|
* @param {string | null} [envId]
|
|
1137
1381
|
* @param {string | null} [deploymentKindId]
|
|
1138
1382
|
* @param {string | null} [key]
|
|
1139
|
-
* @param {number | null} [page]
|
|
1140
|
-
* @param {number | null} [perPage]
|
|
1141
1383
|
* @param {*} [options] Override http request option.
|
|
1142
1384
|
* @throws {RequiredError}
|
|
1143
1385
|
*/
|
|
1144
|
-
allDeploymentResourceTypes: (_0, _1, _2, _3
|
|
1386
|
+
allDeploymentResourceTypes: (_0, _1, _2, ..._3) => __async(null, [_0, _1, _2, ..._3], function* (envId, deploymentKindId, key, options = {}) {
|
|
1145
1387
|
const localVarPath = `/api/v2/deployment-resource-types`;
|
|
1146
1388
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1147
1389
|
let baseOptions;
|
|
@@ -1162,12 +1404,7 @@ var DeploymentResourceTypesApiAxiosParamCreator = function(configuration) {
|
|
|
1162
1404
|
if (key !== void 0) {
|
|
1163
1405
|
localVarQueryParameter["key"] = key;
|
|
1164
1406
|
}
|
|
1165
|
-
|
|
1166
|
-
localVarQueryParameter["page"] = page;
|
|
1167
|
-
}
|
|
1168
|
-
if (perPage !== void 0) {
|
|
1169
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
1170
|
-
}
|
|
1407
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1171
1408
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1172
1409
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1173
1410
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1182,9 +1419,9 @@ var DeploymentResourceTypesApiAxiosParamCreator = function(configuration) {
|
|
|
1182
1419
|
* @param {*} [options] Override http request option.
|
|
1183
1420
|
* @throws {RequiredError}
|
|
1184
1421
|
*/
|
|
1185
|
-
getDeploymentResourceType: (_0, ..._1) => __async(
|
|
1422
|
+
getDeploymentResourceType: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
1186
1423
|
assertParamExists("getDeploymentResourceType", "id", id);
|
|
1187
|
-
const localVarPath = `/api/v2/deployment-resource-types/{id}`.replace(
|
|
1424
|
+
const localVarPath = `/api/v2/deployment-resource-types/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
1188
1425
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1189
1426
|
let baseOptions;
|
|
1190
1427
|
if (configuration) {
|
|
@@ -1195,6 +1432,7 @@ var DeploymentResourceTypesApiAxiosParamCreator = function(configuration) {
|
|
|
1195
1432
|
const localVarQueryParameter = {};
|
|
1196
1433
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1197
1434
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
1435
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1198
1436
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1199
1437
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1200
1438
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1213,15 +1451,13 @@ var DeploymentResourceTypesApiFp = function(configuration) {
|
|
|
1213
1451
|
* @param {string | null} [envId]
|
|
1214
1452
|
* @param {string | null} [deploymentKindId]
|
|
1215
1453
|
* @param {string | null} [key]
|
|
1216
|
-
* @param {number | null} [page]
|
|
1217
|
-
* @param {number | null} [perPage]
|
|
1218
1454
|
* @param {*} [options] Override http request option.
|
|
1219
1455
|
* @throws {RequiredError}
|
|
1220
1456
|
*/
|
|
1221
|
-
allDeploymentResourceTypes(envId, deploymentKindId, key,
|
|
1457
|
+
allDeploymentResourceTypes(envId, deploymentKindId, key, options) {
|
|
1222
1458
|
return __async(this, null, function* () {
|
|
1223
1459
|
var _a2, _b, _c;
|
|
1224
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeploymentResourceTypes(envId, deploymentKindId, key,
|
|
1460
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeploymentResourceTypes(envId, deploymentKindId, key, options);
|
|
1225
1461
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
1226
1462
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DeploymentResourceTypesApi.allDeploymentResourceTypes"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
1227
1463
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1254,7 +1490,7 @@ var DeploymentResourceTypesApiFactory = function(configuration, basePath, axios)
|
|
|
1254
1490
|
* @throws {RequiredError}
|
|
1255
1491
|
*/
|
|
1256
1492
|
allDeploymentResourceTypes(requestParameters = {}, options) {
|
|
1257
|
-
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));
|
|
1258
1494
|
},
|
|
1259
1495
|
/**
|
|
1260
1496
|
*
|
|
@@ -1273,17 +1509,15 @@ var DeploymentResourceTypesApi = class extends BaseAPI {
|
|
|
1273
1509
|
* @param {DeploymentResourceTypesApiAllDeploymentResourceTypesRequest} requestParameters Request parameters.
|
|
1274
1510
|
* @param {*} [options] Override http request option.
|
|
1275
1511
|
* @throws {RequiredError}
|
|
1276
|
-
* @memberof DeploymentResourceTypesApi
|
|
1277
1512
|
*/
|
|
1278
1513
|
allDeploymentResourceTypes(requestParameters = {}, options) {
|
|
1279
|
-
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));
|
|
1280
1515
|
}
|
|
1281
1516
|
/**
|
|
1282
1517
|
*
|
|
1283
1518
|
* @param {DeploymentResourceTypesApiGetDeploymentResourceTypeRequest} requestParameters Request parameters.
|
|
1284
1519
|
* @param {*} [options] Override http request option.
|
|
1285
1520
|
* @throws {RequiredError}
|
|
1286
|
-
* @memberof DeploymentResourceTypesApi
|
|
1287
1521
|
*/
|
|
1288
1522
|
getDeploymentResourceType(requestParameters, options) {
|
|
1289
1523
|
return DeploymentResourceTypesApiFp(this.configuration).getDeploymentResourceType(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1294,12 +1528,10 @@ var DeploymentResourcesApiAxiosParamCreator = function(configuration) {
|
|
|
1294
1528
|
/**
|
|
1295
1529
|
*
|
|
1296
1530
|
* @param {string | null} [typeId]
|
|
1297
|
-
* @param {number | null} [page]
|
|
1298
|
-
* @param {number | null} [perPage]
|
|
1299
1531
|
* @param {*} [options] Override http request option.
|
|
1300
1532
|
* @throws {RequiredError}
|
|
1301
1533
|
*/
|
|
1302
|
-
allDeploymentResources: (_0, _1
|
|
1534
|
+
allDeploymentResources: (_0, ..._1) => __async(null, [_0, ..._1], function* (typeId, options = {}) {
|
|
1303
1535
|
const localVarPath = `/api/v2/deployment-resources`;
|
|
1304
1536
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1305
1537
|
let baseOptions;
|
|
@@ -1314,12 +1546,7 @@ var DeploymentResourcesApiAxiosParamCreator = function(configuration) {
|
|
|
1314
1546
|
if (typeId !== void 0) {
|
|
1315
1547
|
localVarQueryParameter["type_id"] = typeId;
|
|
1316
1548
|
}
|
|
1317
|
-
|
|
1318
|
-
localVarQueryParameter["page"] = page;
|
|
1319
|
-
}
|
|
1320
|
-
if (perPage !== void 0) {
|
|
1321
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
1322
|
-
}
|
|
1549
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1323
1550
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1324
1551
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1325
1552
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1334,7 +1561,7 @@ var DeploymentResourcesApiAxiosParamCreator = function(configuration) {
|
|
|
1334
1561
|
* @param {*} [options] Override http request option.
|
|
1335
1562
|
* @throws {RequiredError}
|
|
1336
1563
|
*/
|
|
1337
|
-
createDeploymentResource: (_0, ..._1) => __async(
|
|
1564
|
+
createDeploymentResource: (_0, ..._1) => __async(null, [_0, ..._1], function* (newDeploymentResource, options = {}) {
|
|
1338
1565
|
assertParamExists("createDeploymentResource", "newDeploymentResource", newDeploymentResource);
|
|
1339
1566
|
const localVarPath = `/api/v2/deployment-resources`;
|
|
1340
1567
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1348,6 +1575,7 @@ var DeploymentResourcesApiAxiosParamCreator = function(configuration) {
|
|
|
1348
1575
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1349
1576
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
1350
1577
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1578
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1351
1579
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1352
1580
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1353
1581
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1363,9 +1591,9 @@ var DeploymentResourcesApiAxiosParamCreator = function(configuration) {
|
|
|
1363
1591
|
* @param {*} [options] Override http request option.
|
|
1364
1592
|
* @throws {RequiredError}
|
|
1365
1593
|
*/
|
|
1366
|
-
deleteDeploymentResource: (_0, ..._1) => __async(
|
|
1594
|
+
deleteDeploymentResource: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
1367
1595
|
assertParamExists("deleteDeploymentResource", "id", id);
|
|
1368
|
-
const localVarPath = `/api/v2/deployment-resources/{id}`.replace(
|
|
1596
|
+
const localVarPath = `/api/v2/deployment-resources/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
1369
1597
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1370
1598
|
let baseOptions;
|
|
1371
1599
|
if (configuration) {
|
|
@@ -1390,9 +1618,9 @@ var DeploymentResourcesApiAxiosParamCreator = function(configuration) {
|
|
|
1390
1618
|
* @param {*} [options] Override http request option.
|
|
1391
1619
|
* @throws {RequiredError}
|
|
1392
1620
|
*/
|
|
1393
|
-
getDeploymentResource: (_0, ..._1) => __async(
|
|
1621
|
+
getDeploymentResource: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
1394
1622
|
assertParamExists("getDeploymentResource", "id", id);
|
|
1395
|
-
const localVarPath = `/api/v2/deployment-resources/{id}`.replace(
|
|
1623
|
+
const localVarPath = `/api/v2/deployment-resources/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
1396
1624
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1397
1625
|
let baseOptions;
|
|
1398
1626
|
if (configuration) {
|
|
@@ -1403,6 +1631,7 @@ var DeploymentResourcesApiAxiosParamCreator = function(configuration) {
|
|
|
1403
1631
|
const localVarQueryParameter = {};
|
|
1404
1632
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1405
1633
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
1634
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1406
1635
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1407
1636
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1408
1637
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1418,10 +1647,10 @@ var DeploymentResourcesApiAxiosParamCreator = function(configuration) {
|
|
|
1418
1647
|
* @param {*} [options] Override http request option.
|
|
1419
1648
|
* @throws {RequiredError}
|
|
1420
1649
|
*/
|
|
1421
|
-
updateDeploymentResource: (_0, _1, ..._2) => __async(
|
|
1650
|
+
updateDeploymentResource: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (id, updateDeploymentResource, options = {}) {
|
|
1422
1651
|
assertParamExists("updateDeploymentResource", "id", id);
|
|
1423
1652
|
assertParamExists("updateDeploymentResource", "updateDeploymentResource", updateDeploymentResource);
|
|
1424
|
-
const localVarPath = `/api/v2/deployment-resources/{id}`.replace(
|
|
1653
|
+
const localVarPath = `/api/v2/deployment-resources/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
1425
1654
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1426
1655
|
let baseOptions;
|
|
1427
1656
|
if (configuration) {
|
|
@@ -1433,6 +1662,7 @@ var DeploymentResourcesApiAxiosParamCreator = function(configuration) {
|
|
|
1433
1662
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1434
1663
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
1435
1664
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1665
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1436
1666
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1437
1667
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1438
1668
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1450,15 +1680,13 @@ var DeploymentResourcesApiFp = function(configuration) {
|
|
|
1450
1680
|
/**
|
|
1451
1681
|
*
|
|
1452
1682
|
* @param {string | null} [typeId]
|
|
1453
|
-
* @param {number | null} [page]
|
|
1454
|
-
* @param {number | null} [perPage]
|
|
1455
1683
|
* @param {*} [options] Override http request option.
|
|
1456
1684
|
* @throws {RequiredError}
|
|
1457
1685
|
*/
|
|
1458
|
-
allDeploymentResources(typeId,
|
|
1686
|
+
allDeploymentResources(typeId, options) {
|
|
1459
1687
|
return __async(this, null, function* () {
|
|
1460
1688
|
var _a2, _b, _c;
|
|
1461
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeploymentResources(typeId,
|
|
1689
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeploymentResources(typeId, options);
|
|
1462
1690
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
1463
1691
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DeploymentResourcesApi.allDeploymentResources"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
1464
1692
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1537,7 +1765,7 @@ var DeploymentResourcesApiFactory = function(configuration, basePath, axios) {
|
|
|
1537
1765
|
* @throws {RequiredError}
|
|
1538
1766
|
*/
|
|
1539
1767
|
allDeploymentResources(requestParameters = {}, options) {
|
|
1540
|
-
return localVarFp.allDeploymentResources(requestParameters.typeId,
|
|
1768
|
+
return localVarFp.allDeploymentResources(requestParameters.typeId, options).then((request) => request(axios, basePath));
|
|
1541
1769
|
},
|
|
1542
1770
|
/**
|
|
1543
1771
|
*
|
|
@@ -1583,17 +1811,15 @@ var DeploymentResourcesApi = class extends BaseAPI {
|
|
|
1583
1811
|
* @param {DeploymentResourcesApiAllDeploymentResourcesRequest} requestParameters Request parameters.
|
|
1584
1812
|
* @param {*} [options] Override http request option.
|
|
1585
1813
|
* @throws {RequiredError}
|
|
1586
|
-
* @memberof DeploymentResourcesApi
|
|
1587
1814
|
*/
|
|
1588
1815
|
allDeploymentResources(requestParameters = {}, options) {
|
|
1589
|
-
return DeploymentResourcesApiFp(this.configuration).allDeploymentResources(requestParameters.typeId,
|
|
1816
|
+
return DeploymentResourcesApiFp(this.configuration).allDeploymentResources(requestParameters.typeId, options).then((request) => request(this.axios, this.basePath));
|
|
1590
1817
|
}
|
|
1591
1818
|
/**
|
|
1592
1819
|
*
|
|
1593
1820
|
* @param {DeploymentResourcesApiCreateDeploymentResourceRequest} requestParameters Request parameters.
|
|
1594
1821
|
* @param {*} [options] Override http request option.
|
|
1595
1822
|
* @throws {RequiredError}
|
|
1596
|
-
* @memberof DeploymentResourcesApi
|
|
1597
1823
|
*/
|
|
1598
1824
|
createDeploymentResource(requestParameters, options) {
|
|
1599
1825
|
return DeploymentResourcesApiFp(this.configuration).createDeploymentResource(requestParameters.newDeploymentResource, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1603,7 +1829,6 @@ var DeploymentResourcesApi = class extends BaseAPI {
|
|
|
1603
1829
|
* @param {DeploymentResourcesApiDeleteDeploymentResourceRequest} requestParameters Request parameters.
|
|
1604
1830
|
* @param {*} [options] Override http request option.
|
|
1605
1831
|
* @throws {RequiredError}
|
|
1606
|
-
* @memberof DeploymentResourcesApi
|
|
1607
1832
|
*/
|
|
1608
1833
|
deleteDeploymentResource(requestParameters, options) {
|
|
1609
1834
|
return DeploymentResourcesApiFp(this.configuration).deleteDeploymentResource(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1613,7 +1838,6 @@ var DeploymentResourcesApi = class extends BaseAPI {
|
|
|
1613
1838
|
* @param {DeploymentResourcesApiGetDeploymentResourceRequest} requestParameters Request parameters.
|
|
1614
1839
|
* @param {*} [options] Override http request option.
|
|
1615
1840
|
* @throws {RequiredError}
|
|
1616
|
-
* @memberof DeploymentResourcesApi
|
|
1617
1841
|
*/
|
|
1618
1842
|
getDeploymentResource(requestParameters, options) {
|
|
1619
1843
|
return DeploymentResourcesApiFp(this.configuration).getDeploymentResource(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1623,7 +1847,6 @@ var DeploymentResourcesApi = class extends BaseAPI {
|
|
|
1623
1847
|
* @param {DeploymentResourcesApiUpdateDeploymentResourceRequest} requestParameters Request parameters.
|
|
1624
1848
|
* @param {*} [options] Override http request option.
|
|
1625
1849
|
* @throws {RequiredError}
|
|
1626
|
-
* @memberof DeploymentResourcesApi
|
|
1627
1850
|
*/
|
|
1628
1851
|
updateDeploymentResource(requestParameters, options) {
|
|
1629
1852
|
return DeploymentResourcesApiFp(this.configuration).updateDeploymentResource(requestParameters.id, requestParameters.updateDeploymentResource, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1635,12 +1858,10 @@ var DeploymentTasksApiAxiosParamCreator = function(configuration) {
|
|
|
1635
1858
|
*
|
|
1636
1859
|
* @param {string | null} [clusterId]
|
|
1637
1860
|
* @param {string | null} [deploymentId]
|
|
1638
|
-
* @param {number | null} [page]
|
|
1639
|
-
* @param {number | null} [perPage]
|
|
1640
1861
|
* @param {*} [options] Override http request option.
|
|
1641
1862
|
* @throws {RequiredError}
|
|
1642
1863
|
*/
|
|
1643
|
-
allDeploymentTasks: (_0, _1, _2
|
|
1864
|
+
allDeploymentTasks: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (clusterId, deploymentId, options = {}) {
|
|
1644
1865
|
const localVarPath = `/api/v2/deployment-tasks`;
|
|
1645
1866
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1646
1867
|
let baseOptions;
|
|
@@ -1658,12 +1879,7 @@ var DeploymentTasksApiAxiosParamCreator = function(configuration) {
|
|
|
1658
1879
|
if (deploymentId !== void 0) {
|
|
1659
1880
|
localVarQueryParameter["deployment_id"] = deploymentId;
|
|
1660
1881
|
}
|
|
1661
|
-
|
|
1662
|
-
localVarQueryParameter["page"] = page;
|
|
1663
|
-
}
|
|
1664
|
-
if (perPage !== void 0) {
|
|
1665
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
1666
|
-
}
|
|
1882
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1667
1883
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1668
1884
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1669
1885
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1678,7 +1894,7 @@ var DeploymentTasksApiAxiosParamCreator = function(configuration) {
|
|
|
1678
1894
|
* @param {*} [options] Override http request option.
|
|
1679
1895
|
* @throws {RequiredError}
|
|
1680
1896
|
*/
|
|
1681
|
-
createDeploymentTask: (_0, ..._1) => __async(
|
|
1897
|
+
createDeploymentTask: (_0, ..._1) => __async(null, [_0, ..._1], function* (createDeploymentTask, options = {}) {
|
|
1682
1898
|
assertParamExists("createDeploymentTask", "createDeploymentTask", createDeploymentTask);
|
|
1683
1899
|
const localVarPath = `/api/v2/deployment-tasks`;
|
|
1684
1900
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1692,6 +1908,7 @@ var DeploymentTasksApiAxiosParamCreator = function(configuration) {
|
|
|
1692
1908
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1693
1909
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
1694
1910
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1911
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1695
1912
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1696
1913
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1697
1914
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1707,9 +1924,9 @@ var DeploymentTasksApiAxiosParamCreator = function(configuration) {
|
|
|
1707
1924
|
* @param {*} [options] Override http request option.
|
|
1708
1925
|
* @throws {RequiredError}
|
|
1709
1926
|
*/
|
|
1710
|
-
getDeploymentTask: (_0, ..._1) => __async(
|
|
1927
|
+
getDeploymentTask: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
1711
1928
|
assertParamExists("getDeploymentTask", "id", id);
|
|
1712
|
-
const localVarPath = `/api/v2/deployment-tasks/{id}`.replace(
|
|
1929
|
+
const localVarPath = `/api/v2/deployment-tasks/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
1713
1930
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1714
1931
|
let baseOptions;
|
|
1715
1932
|
if (configuration) {
|
|
@@ -1720,6 +1937,7 @@ var DeploymentTasksApiAxiosParamCreator = function(configuration) {
|
|
|
1720
1937
|
const localVarQueryParameter = {};
|
|
1721
1938
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1722
1939
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
1940
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1723
1941
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1724
1942
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1725
1943
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1737,15 +1955,13 @@ var DeploymentTasksApiFp = function(configuration) {
|
|
|
1737
1955
|
*
|
|
1738
1956
|
* @param {string | null} [clusterId]
|
|
1739
1957
|
* @param {string | null} [deploymentId]
|
|
1740
|
-
* @param {number | null} [page]
|
|
1741
|
-
* @param {number | null} [perPage]
|
|
1742
1958
|
* @param {*} [options] Override http request option.
|
|
1743
1959
|
* @throws {RequiredError}
|
|
1744
1960
|
*/
|
|
1745
|
-
allDeploymentTasks(clusterId, deploymentId,
|
|
1961
|
+
allDeploymentTasks(clusterId, deploymentId, options) {
|
|
1746
1962
|
return __async(this, null, function* () {
|
|
1747
1963
|
var _a2, _b, _c;
|
|
1748
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeploymentTasks(clusterId, deploymentId,
|
|
1964
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeploymentTasks(clusterId, deploymentId, options);
|
|
1749
1965
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
1750
1966
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DeploymentTasksApi.allDeploymentTasks"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
1751
1967
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1793,7 +2009,7 @@ var DeploymentTasksApiFactory = function(configuration, basePath, axios) {
|
|
|
1793
2009
|
* @throws {RequiredError}
|
|
1794
2010
|
*/
|
|
1795
2011
|
allDeploymentTasks(requestParameters = {}, options) {
|
|
1796
|
-
return localVarFp.allDeploymentTasks(requestParameters.clusterId, requestParameters.deploymentId,
|
|
2012
|
+
return localVarFp.allDeploymentTasks(requestParameters.clusterId, requestParameters.deploymentId, options).then((request) => request(axios, basePath));
|
|
1797
2013
|
},
|
|
1798
2014
|
/**
|
|
1799
2015
|
*
|
|
@@ -1821,17 +2037,15 @@ var DeploymentTasksApi = class extends BaseAPI {
|
|
|
1821
2037
|
* @param {DeploymentTasksApiAllDeploymentTasksRequest} requestParameters Request parameters.
|
|
1822
2038
|
* @param {*} [options] Override http request option.
|
|
1823
2039
|
* @throws {RequiredError}
|
|
1824
|
-
* @memberof DeploymentTasksApi
|
|
1825
2040
|
*/
|
|
1826
2041
|
allDeploymentTasks(requestParameters = {}, options) {
|
|
1827
|
-
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));
|
|
1828
2043
|
}
|
|
1829
2044
|
/**
|
|
1830
2045
|
*
|
|
1831
2046
|
* @param {DeploymentTasksApiCreateDeploymentTaskRequest} requestParameters Request parameters.
|
|
1832
2047
|
* @param {*} [options] Override http request option.
|
|
1833
2048
|
* @throws {RequiredError}
|
|
1834
|
-
* @memberof DeploymentTasksApi
|
|
1835
2049
|
*/
|
|
1836
2050
|
createDeploymentTask(requestParameters, options) {
|
|
1837
2051
|
return DeploymentTasksApiFp(this.configuration).createDeploymentTask(requestParameters.createDeploymentTask, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1841,7 +2055,6 @@ var DeploymentTasksApi = class extends BaseAPI {
|
|
|
1841
2055
|
* @param {DeploymentTasksApiGetDeploymentTaskRequest} requestParameters Request parameters.
|
|
1842
2056
|
* @param {*} [options] Override http request option.
|
|
1843
2057
|
* @throws {RequiredError}
|
|
1844
|
-
* @memberof DeploymentTasksApi
|
|
1845
2058
|
*/
|
|
1846
2059
|
getDeploymentTask(requestParameters, options) {
|
|
1847
2060
|
return DeploymentTasksApiFp(this.configuration).getDeploymentTask(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1855,12 +2068,10 @@ var DeploymentsApiAxiosParamCreator = function(configuration) {
|
|
|
1855
2068
|
* @param {string | null} [kindId]
|
|
1856
2069
|
* @param {string | null} [clusterId]
|
|
1857
2070
|
* @param {boolean | null} [enabled]
|
|
1858
|
-
* @param {number | null} [page]
|
|
1859
|
-
* @param {number | null} [perPage]
|
|
1860
2071
|
* @param {*} [options] Override http request option.
|
|
1861
2072
|
* @throws {RequiredError}
|
|
1862
2073
|
*/
|
|
1863
|
-
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 = {}) {
|
|
1864
2075
|
const localVarPath = `/api/v2/deployments`;
|
|
1865
2076
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1866
2077
|
let baseOptions;
|
|
@@ -1884,12 +2095,7 @@ var DeploymentsApiAxiosParamCreator = function(configuration) {
|
|
|
1884
2095
|
if (enabled !== void 0) {
|
|
1885
2096
|
localVarQueryParameter["enabled"] = enabled;
|
|
1886
2097
|
}
|
|
1887
|
-
|
|
1888
|
-
localVarQueryParameter["page"] = page;
|
|
1889
|
-
}
|
|
1890
|
-
if (perPage !== void 0) {
|
|
1891
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
1892
|
-
}
|
|
2098
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1893
2099
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1894
2100
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1895
2101
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1904,7 +2110,7 @@ var DeploymentsApiAxiosParamCreator = function(configuration) {
|
|
|
1904
2110
|
* @param {*} [options] Override http request option.
|
|
1905
2111
|
* @throws {RequiredError}
|
|
1906
2112
|
*/
|
|
1907
|
-
createDeployment: (_0, ..._1) => __async(
|
|
2113
|
+
createDeployment: (_0, ..._1) => __async(null, [_0, ..._1], function* (newDeployment, options = {}) {
|
|
1908
2114
|
assertParamExists("createDeployment", "newDeployment", newDeployment);
|
|
1909
2115
|
const localVarPath = `/api/v2/deployments`;
|
|
1910
2116
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1918,6 +2124,7 @@ var DeploymentsApiAxiosParamCreator = function(configuration) {
|
|
|
1918
2124
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1919
2125
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
1920
2126
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2127
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1921
2128
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1922
2129
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1923
2130
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1933,9 +2140,9 @@ var DeploymentsApiAxiosParamCreator = function(configuration) {
|
|
|
1933
2140
|
* @param {*} [options] Override http request option.
|
|
1934
2141
|
* @throws {RequiredError}
|
|
1935
2142
|
*/
|
|
1936
|
-
deleteDeployment: (_0, ..._1) => __async(
|
|
2143
|
+
deleteDeployment: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
1937
2144
|
assertParamExists("deleteDeployment", "id", id);
|
|
1938
|
-
const localVarPath = `/api/v2/deployments/{id}`.replace(
|
|
2145
|
+
const localVarPath = `/api/v2/deployments/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
1939
2146
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1940
2147
|
let baseOptions;
|
|
1941
2148
|
if (configuration) {
|
|
@@ -1960,9 +2167,9 @@ var DeploymentsApiAxiosParamCreator = function(configuration) {
|
|
|
1960
2167
|
* @param {*} [options] Override http request option.
|
|
1961
2168
|
* @throws {RequiredError}
|
|
1962
2169
|
*/
|
|
1963
|
-
getDeployment: (_0, ..._1) => __async(
|
|
2170
|
+
getDeployment: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
1964
2171
|
assertParamExists("getDeployment", "id", id);
|
|
1965
|
-
const localVarPath = `/api/v2/deployments/{id}`.replace(
|
|
2172
|
+
const localVarPath = `/api/v2/deployments/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
1966
2173
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1967
2174
|
let baseOptions;
|
|
1968
2175
|
if (configuration) {
|
|
@@ -1973,6 +2180,7 @@ var DeploymentsApiAxiosParamCreator = function(configuration) {
|
|
|
1973
2180
|
const localVarQueryParameter = {};
|
|
1974
2181
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1975
2182
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
2183
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1976
2184
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1977
2185
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1978
2186
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1988,10 +2196,10 @@ var DeploymentsApiAxiosParamCreator = function(configuration) {
|
|
|
1988
2196
|
* @param {*} [options] Override http request option.
|
|
1989
2197
|
* @throws {RequiredError}
|
|
1990
2198
|
*/
|
|
1991
|
-
updateDeployment: (_0, _1, ..._2) => __async(
|
|
2199
|
+
updateDeployment: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (id, updateDeployment, options = {}) {
|
|
1992
2200
|
assertParamExists("updateDeployment", "id", id);
|
|
1993
2201
|
assertParamExists("updateDeployment", "updateDeployment", updateDeployment);
|
|
1994
|
-
const localVarPath = `/api/v2/deployments/{id}`.replace(
|
|
2202
|
+
const localVarPath = `/api/v2/deployments/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
1995
2203
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1996
2204
|
let baseOptions;
|
|
1997
2205
|
if (configuration) {
|
|
@@ -2003,6 +2211,7 @@ var DeploymentsApiAxiosParamCreator = function(configuration) {
|
|
|
2003
2211
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2004
2212
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
2005
2213
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2214
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2006
2215
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2007
2216
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2008
2217
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2023,15 +2232,13 @@ var DeploymentsApiFp = function(configuration) {
|
|
|
2023
2232
|
* @param {string | null} [kindId]
|
|
2024
2233
|
* @param {string | null} [clusterId]
|
|
2025
2234
|
* @param {boolean | null} [enabled]
|
|
2026
|
-
* @param {number | null} [page]
|
|
2027
|
-
* @param {number | null} [perPage]
|
|
2028
2235
|
* @param {*} [options] Override http request option.
|
|
2029
2236
|
* @throws {RequiredError}
|
|
2030
2237
|
*/
|
|
2031
|
-
allDeployments(name, kindId, clusterId, enabled,
|
|
2238
|
+
allDeployments(name, kindId, clusterId, enabled, options) {
|
|
2032
2239
|
return __async(this, null, function* () {
|
|
2033
2240
|
var _a2, _b, _c;
|
|
2034
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeployments(name, kindId, clusterId, enabled,
|
|
2241
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeployments(name, kindId, clusterId, enabled, options);
|
|
2035
2242
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
2036
2243
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DeploymentsApi.allDeployments"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
2037
2244
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2110,7 +2317,7 @@ var DeploymentsApiFactory = function(configuration, basePath, axios) {
|
|
|
2110
2317
|
* @throws {RequiredError}
|
|
2111
2318
|
*/
|
|
2112
2319
|
allDeployments(requestParameters = {}, options) {
|
|
2113
|
-
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));
|
|
2114
2321
|
},
|
|
2115
2322
|
/**
|
|
2116
2323
|
*
|
|
@@ -2156,17 +2363,15 @@ var DeploymentsApi = class extends BaseAPI {
|
|
|
2156
2363
|
* @param {DeploymentsApiAllDeploymentsRequest} requestParameters Request parameters.
|
|
2157
2364
|
* @param {*} [options] Override http request option.
|
|
2158
2365
|
* @throws {RequiredError}
|
|
2159
|
-
* @memberof DeploymentsApi
|
|
2160
2366
|
*/
|
|
2161
2367
|
allDeployments(requestParameters = {}, options) {
|
|
2162
|
-
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));
|
|
2163
2369
|
}
|
|
2164
2370
|
/**
|
|
2165
2371
|
*
|
|
2166
2372
|
* @param {DeploymentsApiCreateDeploymentRequest} requestParameters Request parameters.
|
|
2167
2373
|
* @param {*} [options] Override http request option.
|
|
2168
2374
|
* @throws {RequiredError}
|
|
2169
|
-
* @memberof DeploymentsApi
|
|
2170
2375
|
*/
|
|
2171
2376
|
createDeployment(requestParameters, options) {
|
|
2172
2377
|
return DeploymentsApiFp(this.configuration).createDeployment(requestParameters.newDeployment, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2176,7 +2381,6 @@ var DeploymentsApi = class extends BaseAPI {
|
|
|
2176
2381
|
* @param {DeploymentsApiDeleteDeploymentRequest} requestParameters Request parameters.
|
|
2177
2382
|
* @param {*} [options] Override http request option.
|
|
2178
2383
|
* @throws {RequiredError}
|
|
2179
|
-
* @memberof DeploymentsApi
|
|
2180
2384
|
*/
|
|
2181
2385
|
deleteDeployment(requestParameters, options) {
|
|
2182
2386
|
return DeploymentsApiFp(this.configuration).deleteDeployment(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2186,7 +2390,6 @@ var DeploymentsApi = class extends BaseAPI {
|
|
|
2186
2390
|
* @param {DeploymentsApiGetDeploymentRequest} requestParameters Request parameters.
|
|
2187
2391
|
* @param {*} [options] Override http request option.
|
|
2188
2392
|
* @throws {RequiredError}
|
|
2189
|
-
* @memberof DeploymentsApi
|
|
2190
2393
|
*/
|
|
2191
2394
|
getDeployment(requestParameters, options) {
|
|
2192
2395
|
return DeploymentsApiFp(this.configuration).getDeployment(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2196,7 +2399,6 @@ var DeploymentsApi = class extends BaseAPI {
|
|
|
2196
2399
|
* @param {DeploymentsApiUpdateDeploymentRequest} requestParameters Request parameters.
|
|
2197
2400
|
* @param {*} [options] Override http request option.
|
|
2198
2401
|
* @throws {RequiredError}
|
|
2199
|
-
* @memberof DeploymentsApi
|
|
2200
2402
|
*/
|
|
2201
2403
|
updateDeployment(requestParameters, options) {
|
|
2202
2404
|
return DeploymentsApiFp(this.configuration).updateDeployment(requestParameters.id, requestParameters.updateDeployment, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2207,12 +2409,10 @@ var EnvUserPermissionsApiAxiosParamCreator = function(configuration) {
|
|
|
2207
2409
|
/**
|
|
2208
2410
|
*
|
|
2209
2411
|
* @param {string | null} [envId]
|
|
2210
|
-
* @param {number | null} [page]
|
|
2211
|
-
* @param {number | null} [perPage]
|
|
2212
2412
|
* @param {*} [options] Override http request option.
|
|
2213
2413
|
* @throws {RequiredError}
|
|
2214
2414
|
*/
|
|
2215
|
-
allEnvUserPermissions: (_0, _1
|
|
2415
|
+
allEnvUserPermissions: (_0, ..._1) => __async(null, [_0, ..._1], function* (envId, options = {}) {
|
|
2216
2416
|
const localVarPath = `/api/v2/env-user-permissions`;
|
|
2217
2417
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2218
2418
|
let baseOptions;
|
|
@@ -2227,12 +2427,7 @@ var EnvUserPermissionsApiAxiosParamCreator = function(configuration) {
|
|
|
2227
2427
|
if (envId !== void 0) {
|
|
2228
2428
|
localVarQueryParameter["env_id"] = envId;
|
|
2229
2429
|
}
|
|
2230
|
-
|
|
2231
|
-
localVarQueryParameter["page"] = page;
|
|
2232
|
-
}
|
|
2233
|
-
if (perPage !== void 0) {
|
|
2234
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
2235
|
-
}
|
|
2430
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2236
2431
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2237
2432
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2238
2433
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2247,7 +2442,7 @@ var EnvUserPermissionsApiAxiosParamCreator = function(configuration) {
|
|
|
2247
2442
|
* @param {*} [options] Override http request option.
|
|
2248
2443
|
* @throws {RequiredError}
|
|
2249
2444
|
*/
|
|
2250
|
-
createEnvUserPermission: (_0, ..._1) => __async(
|
|
2445
|
+
createEnvUserPermission: (_0, ..._1) => __async(null, [_0, ..._1], function* (newEnvUserPermission, options = {}) {
|
|
2251
2446
|
assertParamExists("createEnvUserPermission", "newEnvUserPermission", newEnvUserPermission);
|
|
2252
2447
|
const localVarPath = `/api/v2/env-user-permissions`;
|
|
2253
2448
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2261,6 +2456,7 @@ var EnvUserPermissionsApiAxiosParamCreator = function(configuration) {
|
|
|
2261
2456
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2262
2457
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
2263
2458
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2459
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2264
2460
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2265
2461
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2266
2462
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2276,9 +2472,9 @@ var EnvUserPermissionsApiAxiosParamCreator = function(configuration) {
|
|
|
2276
2472
|
* @param {*} [options] Override http request option.
|
|
2277
2473
|
* @throws {RequiredError}
|
|
2278
2474
|
*/
|
|
2279
|
-
deleteEnvUserPermission: (_0, ..._1) => __async(
|
|
2475
|
+
deleteEnvUserPermission: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
2280
2476
|
assertParamExists("deleteEnvUserPermission", "id", id);
|
|
2281
|
-
const localVarPath = `/api/v2/env-user-permissions/{id}`.replace(
|
|
2477
|
+
const localVarPath = `/api/v2/env-user-permissions/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
2282
2478
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2283
2479
|
let baseOptions;
|
|
2284
2480
|
if (configuration) {
|
|
@@ -2303,9 +2499,9 @@ var EnvUserPermissionsApiAxiosParamCreator = function(configuration) {
|
|
|
2303
2499
|
* @param {*} [options] Override http request option.
|
|
2304
2500
|
* @throws {RequiredError}
|
|
2305
2501
|
*/
|
|
2306
|
-
getEnvUserPermission: (_0, ..._1) => __async(
|
|
2502
|
+
getEnvUserPermission: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
2307
2503
|
assertParamExists("getEnvUserPermission", "id", id);
|
|
2308
|
-
const localVarPath = `/api/v2/env-user-permissions/{id}`.replace(
|
|
2504
|
+
const localVarPath = `/api/v2/env-user-permissions/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
2309
2505
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2310
2506
|
let baseOptions;
|
|
2311
2507
|
if (configuration) {
|
|
@@ -2316,6 +2512,7 @@ var EnvUserPermissionsApiAxiosParamCreator = function(configuration) {
|
|
|
2316
2512
|
const localVarQueryParameter = {};
|
|
2317
2513
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2318
2514
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
2515
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2319
2516
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2320
2517
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2321
2518
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2332,15 +2529,13 @@ var EnvUserPermissionsApiFp = function(configuration) {
|
|
|
2332
2529
|
/**
|
|
2333
2530
|
*
|
|
2334
2531
|
* @param {string | null} [envId]
|
|
2335
|
-
* @param {number | null} [page]
|
|
2336
|
-
* @param {number | null} [perPage]
|
|
2337
2532
|
* @param {*} [options] Override http request option.
|
|
2338
2533
|
* @throws {RequiredError}
|
|
2339
2534
|
*/
|
|
2340
|
-
allEnvUserPermissions(envId,
|
|
2535
|
+
allEnvUserPermissions(envId, options) {
|
|
2341
2536
|
return __async(this, null, function* () {
|
|
2342
2537
|
var _a2, _b, _c;
|
|
2343
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allEnvUserPermissions(envId,
|
|
2538
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allEnvUserPermissions(envId, options);
|
|
2344
2539
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
2345
2540
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["EnvUserPermissionsApi.allEnvUserPermissions"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
2346
2541
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2403,7 +2598,7 @@ var EnvUserPermissionsApiFactory = function(configuration, basePath, axios) {
|
|
|
2403
2598
|
* @throws {RequiredError}
|
|
2404
2599
|
*/
|
|
2405
2600
|
allEnvUserPermissions(requestParameters = {}, options) {
|
|
2406
|
-
return localVarFp.allEnvUserPermissions(requestParameters.envId,
|
|
2601
|
+
return localVarFp.allEnvUserPermissions(requestParameters.envId, options).then((request) => request(axios, basePath));
|
|
2407
2602
|
},
|
|
2408
2603
|
/**
|
|
2409
2604
|
*
|
|
@@ -2440,17 +2635,15 @@ var EnvUserPermissionsApi = class extends BaseAPI {
|
|
|
2440
2635
|
* @param {EnvUserPermissionsApiAllEnvUserPermissionsRequest} requestParameters Request parameters.
|
|
2441
2636
|
* @param {*} [options] Override http request option.
|
|
2442
2637
|
* @throws {RequiredError}
|
|
2443
|
-
* @memberof EnvUserPermissionsApi
|
|
2444
2638
|
*/
|
|
2445
2639
|
allEnvUserPermissions(requestParameters = {}, options) {
|
|
2446
|
-
return EnvUserPermissionsApiFp(this.configuration).allEnvUserPermissions(requestParameters.envId,
|
|
2640
|
+
return EnvUserPermissionsApiFp(this.configuration).allEnvUserPermissions(requestParameters.envId, options).then((request) => request(this.axios, this.basePath));
|
|
2447
2641
|
}
|
|
2448
2642
|
/**
|
|
2449
2643
|
*
|
|
2450
2644
|
* @param {EnvUserPermissionsApiCreateEnvUserPermissionRequest} requestParameters Request parameters.
|
|
2451
2645
|
* @param {*} [options] Override http request option.
|
|
2452
2646
|
* @throws {RequiredError}
|
|
2453
|
-
* @memberof EnvUserPermissionsApi
|
|
2454
2647
|
*/
|
|
2455
2648
|
createEnvUserPermission(requestParameters, options) {
|
|
2456
2649
|
return EnvUserPermissionsApiFp(this.configuration).createEnvUserPermission(requestParameters.newEnvUserPermission, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2460,7 +2653,6 @@ var EnvUserPermissionsApi = class extends BaseAPI {
|
|
|
2460
2653
|
* @param {EnvUserPermissionsApiDeleteEnvUserPermissionRequest} requestParameters Request parameters.
|
|
2461
2654
|
* @param {*} [options] Override http request option.
|
|
2462
2655
|
* @throws {RequiredError}
|
|
2463
|
-
* @memberof EnvUserPermissionsApi
|
|
2464
2656
|
*/
|
|
2465
2657
|
deleteEnvUserPermission(requestParameters, options) {
|
|
2466
2658
|
return EnvUserPermissionsApiFp(this.configuration).deleteEnvUserPermission(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2470,7 +2662,6 @@ var EnvUserPermissionsApi = class extends BaseAPI {
|
|
|
2470
2662
|
* @param {EnvUserPermissionsApiGetEnvUserPermissionRequest} requestParameters Request parameters.
|
|
2471
2663
|
* @param {*} [options] Override http request option.
|
|
2472
2664
|
* @throws {RequiredError}
|
|
2473
|
-
* @memberof EnvUserPermissionsApi
|
|
2474
2665
|
*/
|
|
2475
2666
|
getEnvUserPermission(requestParameters, options) {
|
|
2476
2667
|
return EnvUserPermissionsApiFp(this.configuration).getEnvUserPermission(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2482,12 +2673,10 @@ var EnvsApiAxiosParamCreator = function(configuration) {
|
|
|
2482
2673
|
*
|
|
2483
2674
|
* @param {string | null} [name]
|
|
2484
2675
|
* @param {boolean | null} [autoAddNewUsers]
|
|
2485
|
-
* @param {number | null} [page]
|
|
2486
|
-
* @param {number | null} [perPage]
|
|
2487
2676
|
* @param {*} [options] Override http request option.
|
|
2488
2677
|
* @throws {RequiredError}
|
|
2489
2678
|
*/
|
|
2490
|
-
allEnvs: (_0, _1, _2
|
|
2679
|
+
allEnvs: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (name, autoAddNewUsers, options = {}) {
|
|
2491
2680
|
const localVarPath = `/api/v2/envs`;
|
|
2492
2681
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2493
2682
|
let baseOptions;
|
|
@@ -2505,12 +2694,7 @@ var EnvsApiAxiosParamCreator = function(configuration) {
|
|
|
2505
2694
|
if (autoAddNewUsers !== void 0) {
|
|
2506
2695
|
localVarQueryParameter["auto_add_new_users"] = autoAddNewUsers;
|
|
2507
2696
|
}
|
|
2508
|
-
|
|
2509
|
-
localVarQueryParameter["page"] = page;
|
|
2510
|
-
}
|
|
2511
|
-
if (perPage !== void 0) {
|
|
2512
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
2513
|
-
}
|
|
2697
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2514
2698
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2515
2699
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2516
2700
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2525,7 +2709,7 @@ var EnvsApiAxiosParamCreator = function(configuration) {
|
|
|
2525
2709
|
* @param {*} [options] Override http request option.
|
|
2526
2710
|
* @throws {RequiredError}
|
|
2527
2711
|
*/
|
|
2528
|
-
createEnv: (_0, ..._1) => __async(
|
|
2712
|
+
createEnv: (_0, ..._1) => __async(null, [_0, ..._1], function* (newEnv, options = {}) {
|
|
2529
2713
|
assertParamExists("createEnv", "newEnv", newEnv);
|
|
2530
2714
|
const localVarPath = `/api/v2/envs`;
|
|
2531
2715
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2539,6 +2723,7 @@ var EnvsApiAxiosParamCreator = function(configuration) {
|
|
|
2539
2723
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2540
2724
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
2541
2725
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2726
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2542
2727
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2543
2728
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2544
2729
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2554,9 +2739,9 @@ var EnvsApiAxiosParamCreator = function(configuration) {
|
|
|
2554
2739
|
* @param {*} [options] Override http request option.
|
|
2555
2740
|
* @throws {RequiredError}
|
|
2556
2741
|
*/
|
|
2557
|
-
deleteEnv: (_0, ..._1) => __async(
|
|
2742
|
+
deleteEnv: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
2558
2743
|
assertParamExists("deleteEnv", "id", id);
|
|
2559
|
-
const localVarPath = `/api/v2/envs/{id}`.replace(
|
|
2744
|
+
const localVarPath = `/api/v2/envs/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
2560
2745
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2561
2746
|
let baseOptions;
|
|
2562
2747
|
if (configuration) {
|
|
@@ -2581,9 +2766,9 @@ var EnvsApiAxiosParamCreator = function(configuration) {
|
|
|
2581
2766
|
* @param {*} [options] Override http request option.
|
|
2582
2767
|
* @throws {RequiredError}
|
|
2583
2768
|
*/
|
|
2584
|
-
getEnv: (_0, ..._1) => __async(
|
|
2769
|
+
getEnv: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
2585
2770
|
assertParamExists("getEnv", "id", id);
|
|
2586
|
-
const localVarPath = `/api/v2/envs/{id}`.replace(
|
|
2771
|
+
const localVarPath = `/api/v2/envs/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
2587
2772
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2588
2773
|
let baseOptions;
|
|
2589
2774
|
if (configuration) {
|
|
@@ -2594,6 +2779,7 @@ var EnvsApiAxiosParamCreator = function(configuration) {
|
|
|
2594
2779
|
const localVarQueryParameter = {};
|
|
2595
2780
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2596
2781
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
2782
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2597
2783
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2598
2784
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2599
2785
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2609,10 +2795,10 @@ var EnvsApiAxiosParamCreator = function(configuration) {
|
|
|
2609
2795
|
* @param {*} [options] Override http request option.
|
|
2610
2796
|
* @throws {RequiredError}
|
|
2611
2797
|
*/
|
|
2612
|
-
updateEnv: (_0, _1, ..._2) => __async(
|
|
2798
|
+
updateEnv: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (id, updateEnv, options = {}) {
|
|
2613
2799
|
assertParamExists("updateEnv", "id", id);
|
|
2614
2800
|
assertParamExists("updateEnv", "updateEnv", updateEnv);
|
|
2615
|
-
const localVarPath = `/api/v2/envs/{id}`.replace(
|
|
2801
|
+
const localVarPath = `/api/v2/envs/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
2616
2802
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2617
2803
|
let baseOptions;
|
|
2618
2804
|
if (configuration) {
|
|
@@ -2624,6 +2810,7 @@ var EnvsApiAxiosParamCreator = function(configuration) {
|
|
|
2624
2810
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2625
2811
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
2626
2812
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2813
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2627
2814
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2628
2815
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2629
2816
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2642,15 +2829,13 @@ var EnvsApiFp = function(configuration) {
|
|
|
2642
2829
|
*
|
|
2643
2830
|
* @param {string | null} [name]
|
|
2644
2831
|
* @param {boolean | null} [autoAddNewUsers]
|
|
2645
|
-
* @param {number | null} [page]
|
|
2646
|
-
* @param {number | null} [perPage]
|
|
2647
2832
|
* @param {*} [options] Override http request option.
|
|
2648
2833
|
* @throws {RequiredError}
|
|
2649
2834
|
*/
|
|
2650
|
-
allEnvs(name, autoAddNewUsers,
|
|
2835
|
+
allEnvs(name, autoAddNewUsers, options) {
|
|
2651
2836
|
return __async(this, null, function* () {
|
|
2652
2837
|
var _a2, _b, _c;
|
|
2653
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allEnvs(name, autoAddNewUsers,
|
|
2838
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allEnvs(name, autoAddNewUsers, options);
|
|
2654
2839
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
2655
2840
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["EnvsApi.allEnvs"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
2656
2841
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2729,7 +2914,7 @@ var EnvsApiFactory = function(configuration, basePath, axios) {
|
|
|
2729
2914
|
* @throws {RequiredError}
|
|
2730
2915
|
*/
|
|
2731
2916
|
allEnvs(requestParameters = {}, options) {
|
|
2732
|
-
return localVarFp.allEnvs(requestParameters.name, requestParameters.autoAddNewUsers,
|
|
2917
|
+
return localVarFp.allEnvs(requestParameters.name, requestParameters.autoAddNewUsers, options).then((request) => request(axios, basePath));
|
|
2733
2918
|
},
|
|
2734
2919
|
/**
|
|
2735
2920
|
*
|
|
@@ -2775,17 +2960,15 @@ var EnvsApi = class extends BaseAPI {
|
|
|
2775
2960
|
* @param {EnvsApiAllEnvsRequest} requestParameters Request parameters.
|
|
2776
2961
|
* @param {*} [options] Override http request option.
|
|
2777
2962
|
* @throws {RequiredError}
|
|
2778
|
-
* @memberof EnvsApi
|
|
2779
2963
|
*/
|
|
2780
2964
|
allEnvs(requestParameters = {}, options) {
|
|
2781
|
-
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));
|
|
2782
2966
|
}
|
|
2783
2967
|
/**
|
|
2784
2968
|
*
|
|
2785
2969
|
* @param {EnvsApiCreateEnvRequest} requestParameters Request parameters.
|
|
2786
2970
|
* @param {*} [options] Override http request option.
|
|
2787
2971
|
* @throws {RequiredError}
|
|
2788
|
-
* @memberof EnvsApi
|
|
2789
2972
|
*/
|
|
2790
2973
|
createEnv(requestParameters, options) {
|
|
2791
2974
|
return EnvsApiFp(this.configuration).createEnv(requestParameters.newEnv, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2795,7 +2978,6 @@ var EnvsApi = class extends BaseAPI {
|
|
|
2795
2978
|
* @param {EnvsApiDeleteEnvRequest} requestParameters Request parameters.
|
|
2796
2979
|
* @param {*} [options] Override http request option.
|
|
2797
2980
|
* @throws {RequiredError}
|
|
2798
|
-
* @memberof EnvsApi
|
|
2799
2981
|
*/
|
|
2800
2982
|
deleteEnv(requestParameters, options) {
|
|
2801
2983
|
return EnvsApiFp(this.configuration).deleteEnv(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2805,7 +2987,6 @@ var EnvsApi = class extends BaseAPI {
|
|
|
2805
2987
|
* @param {EnvsApiGetEnvRequest} requestParameters Request parameters.
|
|
2806
2988
|
* @param {*} [options] Override http request option.
|
|
2807
2989
|
* @throws {RequiredError}
|
|
2808
|
-
* @memberof EnvsApi
|
|
2809
2990
|
*/
|
|
2810
2991
|
getEnv(requestParameters, options) {
|
|
2811
2992
|
return EnvsApiFp(this.configuration).getEnv(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2815,7 +2996,6 @@ var EnvsApi = class extends BaseAPI {
|
|
|
2815
2996
|
* @param {EnvsApiUpdateEnvRequest} requestParameters Request parameters.
|
|
2816
2997
|
* @param {*} [options] Override http request option.
|
|
2817
2998
|
* @throws {RequiredError}
|
|
2818
|
-
* @memberof EnvsApi
|
|
2819
2999
|
*/
|
|
2820
3000
|
updateEnv(requestParameters, options) {
|
|
2821
3001
|
return EnvsApiFp(this.configuration).updateEnv(requestParameters.id, requestParameters.updateEnv, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2827,12 +3007,10 @@ var HelmChartsApiAxiosParamCreator = function(configuration) {
|
|
|
2827
3007
|
*
|
|
2828
3008
|
* @param {string | null} [helmRegistryId]
|
|
2829
3009
|
* @param {string | null} [parsedBranch]
|
|
2830
|
-
* @param {number | null} [page]
|
|
2831
|
-
* @param {number | null} [perPage]
|
|
2832
3010
|
* @param {*} [options] Override http request option.
|
|
2833
3011
|
* @throws {RequiredError}
|
|
2834
3012
|
*/
|
|
2835
|
-
allHelmCharts: (_0, _1, _2
|
|
3013
|
+
allHelmCharts: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (helmRegistryId, parsedBranch, options = {}) {
|
|
2836
3014
|
const localVarPath = `/api/v2/helm-charts`;
|
|
2837
3015
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2838
3016
|
let baseOptions;
|
|
@@ -2850,12 +3028,7 @@ var HelmChartsApiAxiosParamCreator = function(configuration) {
|
|
|
2850
3028
|
if (parsedBranch !== void 0) {
|
|
2851
3029
|
localVarQueryParameter["parsed_branch"] = parsedBranch;
|
|
2852
3030
|
}
|
|
2853
|
-
|
|
2854
|
-
localVarQueryParameter["page"] = page;
|
|
2855
|
-
}
|
|
2856
|
-
if (perPage !== void 0) {
|
|
2857
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
2858
|
-
}
|
|
3031
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2859
3032
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2860
3033
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2861
3034
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2870,9 +3043,9 @@ var HelmChartsApiAxiosParamCreator = function(configuration) {
|
|
|
2870
3043
|
* @param {*} [options] Override http request option.
|
|
2871
3044
|
* @throws {RequiredError}
|
|
2872
3045
|
*/
|
|
2873
|
-
getHelmChart: (_0, ..._1) => __async(
|
|
3046
|
+
getHelmChart: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
2874
3047
|
assertParamExists("getHelmChart", "id", id);
|
|
2875
|
-
const localVarPath = `/api/v2/helm-charts/{id}`.replace(
|
|
3048
|
+
const localVarPath = `/api/v2/helm-charts/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
2876
3049
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2877
3050
|
let baseOptions;
|
|
2878
3051
|
if (configuration) {
|
|
@@ -2883,6 +3056,7 @@ var HelmChartsApiAxiosParamCreator = function(configuration) {
|
|
|
2883
3056
|
const localVarQueryParameter = {};
|
|
2884
3057
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2885
3058
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
3059
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2886
3060
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2887
3061
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2888
3062
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2900,15 +3074,13 @@ var HelmChartsApiFp = function(configuration) {
|
|
|
2900
3074
|
*
|
|
2901
3075
|
* @param {string | null} [helmRegistryId]
|
|
2902
3076
|
* @param {string | null} [parsedBranch]
|
|
2903
|
-
* @param {number | null} [page]
|
|
2904
|
-
* @param {number | null} [perPage]
|
|
2905
3077
|
* @param {*} [options] Override http request option.
|
|
2906
3078
|
* @throws {RequiredError}
|
|
2907
3079
|
*/
|
|
2908
|
-
allHelmCharts(helmRegistryId, parsedBranch,
|
|
3080
|
+
allHelmCharts(helmRegistryId, parsedBranch, options) {
|
|
2909
3081
|
return __async(this, null, function* () {
|
|
2910
3082
|
var _a2, _b, _c;
|
|
2911
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allHelmCharts(helmRegistryId, parsedBranch,
|
|
3083
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allHelmCharts(helmRegistryId, parsedBranch, options);
|
|
2912
3084
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
2913
3085
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["HelmChartsApi.allHelmCharts"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
2914
3086
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2941,7 +3113,7 @@ var HelmChartsApiFactory = function(configuration, basePath, axios) {
|
|
|
2941
3113
|
* @throws {RequiredError}
|
|
2942
3114
|
*/
|
|
2943
3115
|
allHelmCharts(requestParameters = {}, options) {
|
|
2944
|
-
return localVarFp.allHelmCharts(requestParameters.helmRegistryId, requestParameters.parsedBranch,
|
|
3116
|
+
return localVarFp.allHelmCharts(requestParameters.helmRegistryId, requestParameters.parsedBranch, options).then((request) => request(axios, basePath));
|
|
2945
3117
|
},
|
|
2946
3118
|
/**
|
|
2947
3119
|
*
|
|
@@ -2960,17 +3132,15 @@ var HelmChartsApi = class extends BaseAPI {
|
|
|
2960
3132
|
* @param {HelmChartsApiAllHelmChartsRequest} requestParameters Request parameters.
|
|
2961
3133
|
* @param {*} [options] Override http request option.
|
|
2962
3134
|
* @throws {RequiredError}
|
|
2963
|
-
* @memberof HelmChartsApi
|
|
2964
3135
|
*/
|
|
2965
3136
|
allHelmCharts(requestParameters = {}, options) {
|
|
2966
|
-
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));
|
|
2967
3138
|
}
|
|
2968
3139
|
/**
|
|
2969
3140
|
*
|
|
2970
3141
|
* @param {HelmChartsApiGetHelmChartRequest} requestParameters Request parameters.
|
|
2971
3142
|
* @param {*} [options] Override http request option.
|
|
2972
3143
|
* @throws {RequiredError}
|
|
2973
|
-
* @memberof HelmChartsApi
|
|
2974
3144
|
*/
|
|
2975
3145
|
getHelmChart(requestParameters, options) {
|
|
2976
3146
|
return HelmChartsApiFp(this.configuration).getHelmChart(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2982,12 +3152,10 @@ var HelmRegistriesApiAxiosParamCreator = function(configuration) {
|
|
|
2982
3152
|
*
|
|
2983
3153
|
* @param {string | null} [repoName]
|
|
2984
3154
|
* @param {string | null} [kindId]
|
|
2985
|
-
* @param {number | null} [page]
|
|
2986
|
-
* @param {number | null} [perPage]
|
|
2987
3155
|
* @param {*} [options] Override http request option.
|
|
2988
3156
|
* @throws {RequiredError}
|
|
2989
3157
|
*/
|
|
2990
|
-
allHelmRegistries: (_0, _1, _2
|
|
3158
|
+
allHelmRegistries: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (repoName, kindId, options = {}) {
|
|
2991
3159
|
const localVarPath = `/api/v2/helm-registries`;
|
|
2992
3160
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2993
3161
|
let baseOptions;
|
|
@@ -3005,12 +3173,7 @@ var HelmRegistriesApiAxiosParamCreator = function(configuration) {
|
|
|
3005
3173
|
if (kindId !== void 0) {
|
|
3006
3174
|
localVarQueryParameter["kind_id"] = kindId;
|
|
3007
3175
|
}
|
|
3008
|
-
|
|
3009
|
-
localVarQueryParameter["page"] = page;
|
|
3010
|
-
}
|
|
3011
|
-
if (perPage !== void 0) {
|
|
3012
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
3013
|
-
}
|
|
3176
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3014
3177
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3015
3178
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3016
3179
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3025,9 +3188,9 @@ var HelmRegistriesApiAxiosParamCreator = function(configuration) {
|
|
|
3025
3188
|
* @param {*} [options] Override http request option.
|
|
3026
3189
|
* @throws {RequiredError}
|
|
3027
3190
|
*/
|
|
3028
|
-
getHelmRegistry: (_0, ..._1) => __async(
|
|
3191
|
+
getHelmRegistry: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
3029
3192
|
assertParamExists("getHelmRegistry", "id", id);
|
|
3030
|
-
const localVarPath = `/api/v2/helm-registries/{id}`.replace(
|
|
3193
|
+
const localVarPath = `/api/v2/helm-registries/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
3031
3194
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3032
3195
|
let baseOptions;
|
|
3033
3196
|
if (configuration) {
|
|
@@ -3038,6 +3201,7 @@ var HelmRegistriesApiAxiosParamCreator = function(configuration) {
|
|
|
3038
3201
|
const localVarQueryParameter = {};
|
|
3039
3202
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3040
3203
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
3204
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3041
3205
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3042
3206
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3043
3207
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3053,10 +3217,10 @@ var HelmRegistriesApiAxiosParamCreator = function(configuration) {
|
|
|
3053
3217
|
* @param {*} [options] Override http request option.
|
|
3054
3218
|
* @throws {RequiredError}
|
|
3055
3219
|
*/
|
|
3056
|
-
updateHelmRegistry: (_0, _1, ..._2) => __async(
|
|
3220
|
+
updateHelmRegistry: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (id, updateHelmRegistry, options = {}) {
|
|
3057
3221
|
assertParamExists("updateHelmRegistry", "id", id);
|
|
3058
3222
|
assertParamExists("updateHelmRegistry", "updateHelmRegistry", updateHelmRegistry);
|
|
3059
|
-
const localVarPath = `/api/v2/helm-registries/{id}`.replace(
|
|
3223
|
+
const localVarPath = `/api/v2/helm-registries/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
3060
3224
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3061
3225
|
let baseOptions;
|
|
3062
3226
|
if (configuration) {
|
|
@@ -3068,6 +3232,7 @@ var HelmRegistriesApiAxiosParamCreator = function(configuration) {
|
|
|
3068
3232
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3069
3233
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
3070
3234
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
3235
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3071
3236
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3072
3237
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3073
3238
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3086,15 +3251,13 @@ var HelmRegistriesApiFp = function(configuration) {
|
|
|
3086
3251
|
*
|
|
3087
3252
|
* @param {string | null} [repoName]
|
|
3088
3253
|
* @param {string | null} [kindId]
|
|
3089
|
-
* @param {number | null} [page]
|
|
3090
|
-
* @param {number | null} [perPage]
|
|
3091
3254
|
* @param {*} [options] Override http request option.
|
|
3092
3255
|
* @throws {RequiredError}
|
|
3093
3256
|
*/
|
|
3094
|
-
allHelmRegistries(repoName, kindId,
|
|
3257
|
+
allHelmRegistries(repoName, kindId, options) {
|
|
3095
3258
|
return __async(this, null, function* () {
|
|
3096
3259
|
var _a2, _b, _c;
|
|
3097
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allHelmRegistries(repoName, kindId,
|
|
3260
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allHelmRegistries(repoName, kindId, options);
|
|
3098
3261
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
3099
3262
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["HelmRegistriesApi.allHelmRegistries"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
3100
3263
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3143,7 +3306,7 @@ var HelmRegistriesApiFactory = function(configuration, basePath, axios) {
|
|
|
3143
3306
|
* @throws {RequiredError}
|
|
3144
3307
|
*/
|
|
3145
3308
|
allHelmRegistries(requestParameters = {}, options) {
|
|
3146
|
-
return localVarFp.allHelmRegistries(requestParameters.repoName, requestParameters.kindId,
|
|
3309
|
+
return localVarFp.allHelmRegistries(requestParameters.repoName, requestParameters.kindId, options).then((request) => request(axios, basePath));
|
|
3147
3310
|
},
|
|
3148
3311
|
/**
|
|
3149
3312
|
*
|
|
@@ -3171,17 +3334,15 @@ var HelmRegistriesApi = class extends BaseAPI {
|
|
|
3171
3334
|
* @param {HelmRegistriesApiAllHelmRegistriesRequest} requestParameters Request parameters.
|
|
3172
3335
|
* @param {*} [options] Override http request option.
|
|
3173
3336
|
* @throws {RequiredError}
|
|
3174
|
-
* @memberof HelmRegistriesApi
|
|
3175
3337
|
*/
|
|
3176
3338
|
allHelmRegistries(requestParameters = {}, options) {
|
|
3177
|
-
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));
|
|
3178
3340
|
}
|
|
3179
3341
|
/**
|
|
3180
3342
|
*
|
|
3181
3343
|
* @param {HelmRegistriesApiGetHelmRegistryRequest} requestParameters Request parameters.
|
|
3182
3344
|
* @param {*} [options] Override http request option.
|
|
3183
3345
|
* @throws {RequiredError}
|
|
3184
|
-
* @memberof HelmRegistriesApi
|
|
3185
3346
|
*/
|
|
3186
3347
|
getHelmRegistry(requestParameters, options) {
|
|
3187
3348
|
return HelmRegistriesApiFp(this.configuration).getHelmRegistry(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3191,7 +3352,6 @@ var HelmRegistriesApi = class extends BaseAPI {
|
|
|
3191
3352
|
* @param {HelmRegistriesApiUpdateHelmRegistryRequest} requestParameters Request parameters.
|
|
3192
3353
|
* @param {*} [options] Override http request option.
|
|
3193
3354
|
* @throws {RequiredError}
|
|
3194
|
-
* @memberof HelmRegistriesApi
|
|
3195
3355
|
*/
|
|
3196
3356
|
updateHelmRegistry(requestParameters, options) {
|
|
3197
3357
|
return HelmRegistriesApiFp(this.configuration).updateHelmRegistry(requestParameters.id, requestParameters.updateHelmRegistry, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3202,12 +3362,10 @@ var HelmTagFormatsApiAxiosParamCreator = function(configuration) {
|
|
|
3202
3362
|
/**
|
|
3203
3363
|
*
|
|
3204
3364
|
* @param {string | null} [pattern]
|
|
3205
|
-
* @param {number | null} [page]
|
|
3206
|
-
* @param {number | null} [perPage]
|
|
3207
3365
|
* @param {*} [options] Override http request option.
|
|
3208
3366
|
* @throws {RequiredError}
|
|
3209
3367
|
*/
|
|
3210
|
-
allHelmTagFormats: (_0, _1
|
|
3368
|
+
allHelmTagFormats: (_0, ..._1) => __async(null, [_0, ..._1], function* (pattern, options = {}) {
|
|
3211
3369
|
const localVarPath = `/api/v2/helm-tag-formats`;
|
|
3212
3370
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3213
3371
|
let baseOptions;
|
|
@@ -3222,12 +3380,7 @@ var HelmTagFormatsApiAxiosParamCreator = function(configuration) {
|
|
|
3222
3380
|
if (pattern !== void 0) {
|
|
3223
3381
|
localVarQueryParameter["pattern"] = pattern;
|
|
3224
3382
|
}
|
|
3225
|
-
|
|
3226
|
-
localVarQueryParameter["page"] = page;
|
|
3227
|
-
}
|
|
3228
|
-
if (perPage !== void 0) {
|
|
3229
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
3230
|
-
}
|
|
3383
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3231
3384
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3232
3385
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3233
3386
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3242,7 +3395,7 @@ var HelmTagFormatsApiAxiosParamCreator = function(configuration) {
|
|
|
3242
3395
|
* @param {*} [options] Override http request option.
|
|
3243
3396
|
* @throws {RequiredError}
|
|
3244
3397
|
*/
|
|
3245
|
-
createHelmTagFormat: (_0, ..._1) => __async(
|
|
3398
|
+
createHelmTagFormat: (_0, ..._1) => __async(null, [_0, ..._1], function* (newHelmTagFormat, options = {}) {
|
|
3246
3399
|
assertParamExists("createHelmTagFormat", "newHelmTagFormat", newHelmTagFormat);
|
|
3247
3400
|
const localVarPath = `/api/v2/helm-tag-formats`;
|
|
3248
3401
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3256,6 +3409,7 @@ var HelmTagFormatsApiAxiosParamCreator = function(configuration) {
|
|
|
3256
3409
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3257
3410
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
3258
3411
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
3412
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3259
3413
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3260
3414
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3261
3415
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3271,9 +3425,9 @@ var HelmTagFormatsApiAxiosParamCreator = function(configuration) {
|
|
|
3271
3425
|
* @param {*} [options] Override http request option.
|
|
3272
3426
|
* @throws {RequiredError}
|
|
3273
3427
|
*/
|
|
3274
|
-
deleteHelmTagFormat: (_0, ..._1) => __async(
|
|
3428
|
+
deleteHelmTagFormat: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
3275
3429
|
assertParamExists("deleteHelmTagFormat", "id", id);
|
|
3276
|
-
const localVarPath = `/api/v2/helm-tag-formats/{id}`.replace(
|
|
3430
|
+
const localVarPath = `/api/v2/helm-tag-formats/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
3277
3431
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3278
3432
|
let baseOptions;
|
|
3279
3433
|
if (configuration) {
|
|
@@ -3298,9 +3452,9 @@ var HelmTagFormatsApiAxiosParamCreator = function(configuration) {
|
|
|
3298
3452
|
* @param {*} [options] Override http request option.
|
|
3299
3453
|
* @throws {RequiredError}
|
|
3300
3454
|
*/
|
|
3301
|
-
getHelmTagFormat: (_0, ..._1) => __async(
|
|
3455
|
+
getHelmTagFormat: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
3302
3456
|
assertParamExists("getHelmTagFormat", "id", id);
|
|
3303
|
-
const localVarPath = `/api/v2/helm-tag-formats/{id}`.replace(
|
|
3457
|
+
const localVarPath = `/api/v2/helm-tag-formats/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
3304
3458
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3305
3459
|
let baseOptions;
|
|
3306
3460
|
if (configuration) {
|
|
@@ -3311,6 +3465,7 @@ var HelmTagFormatsApiAxiosParamCreator = function(configuration) {
|
|
|
3311
3465
|
const localVarQueryParameter = {};
|
|
3312
3466
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3313
3467
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
3468
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3314
3469
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3315
3470
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3316
3471
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3327,15 +3482,13 @@ var HelmTagFormatsApiFp = function(configuration) {
|
|
|
3327
3482
|
/**
|
|
3328
3483
|
*
|
|
3329
3484
|
* @param {string | null} [pattern]
|
|
3330
|
-
* @param {number | null} [page]
|
|
3331
|
-
* @param {number | null} [perPage]
|
|
3332
3485
|
* @param {*} [options] Override http request option.
|
|
3333
3486
|
* @throws {RequiredError}
|
|
3334
3487
|
*/
|
|
3335
|
-
allHelmTagFormats(pattern,
|
|
3488
|
+
allHelmTagFormats(pattern, options) {
|
|
3336
3489
|
return __async(this, null, function* () {
|
|
3337
3490
|
var _a2, _b, _c;
|
|
3338
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allHelmTagFormats(pattern,
|
|
3491
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allHelmTagFormats(pattern, options);
|
|
3339
3492
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
3340
3493
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["HelmTagFormatsApi.allHelmTagFormats"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
3341
3494
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3398,7 +3551,7 @@ var HelmTagFormatsApiFactory = function(configuration, basePath, axios) {
|
|
|
3398
3551
|
* @throws {RequiredError}
|
|
3399
3552
|
*/
|
|
3400
3553
|
allHelmTagFormats(requestParameters = {}, options) {
|
|
3401
|
-
return localVarFp.allHelmTagFormats(requestParameters.pattern,
|
|
3554
|
+
return localVarFp.allHelmTagFormats(requestParameters.pattern, options).then((request) => request(axios, basePath));
|
|
3402
3555
|
},
|
|
3403
3556
|
/**
|
|
3404
3557
|
*
|
|
@@ -3435,17 +3588,15 @@ var HelmTagFormatsApi = class extends BaseAPI {
|
|
|
3435
3588
|
* @param {HelmTagFormatsApiAllHelmTagFormatsRequest} requestParameters Request parameters.
|
|
3436
3589
|
* @param {*} [options] Override http request option.
|
|
3437
3590
|
* @throws {RequiredError}
|
|
3438
|
-
* @memberof HelmTagFormatsApi
|
|
3439
3591
|
*/
|
|
3440
3592
|
allHelmTagFormats(requestParameters = {}, options) {
|
|
3441
|
-
return HelmTagFormatsApiFp(this.configuration).allHelmTagFormats(requestParameters.pattern,
|
|
3593
|
+
return HelmTagFormatsApiFp(this.configuration).allHelmTagFormats(requestParameters.pattern, options).then((request) => request(this.axios, this.basePath));
|
|
3442
3594
|
}
|
|
3443
3595
|
/**
|
|
3444
3596
|
*
|
|
3445
3597
|
* @param {HelmTagFormatsApiCreateHelmTagFormatRequest} requestParameters Request parameters.
|
|
3446
3598
|
* @param {*} [options] Override http request option.
|
|
3447
3599
|
* @throws {RequiredError}
|
|
3448
|
-
* @memberof HelmTagFormatsApi
|
|
3449
3600
|
*/
|
|
3450
3601
|
createHelmTagFormat(requestParameters, options) {
|
|
3451
3602
|
return HelmTagFormatsApiFp(this.configuration).createHelmTagFormat(requestParameters.newHelmTagFormat, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3455,7 +3606,6 @@ var HelmTagFormatsApi = class extends BaseAPI {
|
|
|
3455
3606
|
* @param {HelmTagFormatsApiDeleteHelmTagFormatRequest} requestParameters Request parameters.
|
|
3456
3607
|
* @param {*} [options] Override http request option.
|
|
3457
3608
|
* @throws {RequiredError}
|
|
3458
|
-
* @memberof HelmTagFormatsApi
|
|
3459
3609
|
*/
|
|
3460
3610
|
deleteHelmTagFormat(requestParameters, options) {
|
|
3461
3611
|
return HelmTagFormatsApiFp(this.configuration).deleteHelmTagFormat(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3465,7 +3615,6 @@ var HelmTagFormatsApi = class extends BaseAPI {
|
|
|
3465
3615
|
* @param {HelmTagFormatsApiGetHelmTagFormatRequest} requestParameters Request parameters.
|
|
3466
3616
|
* @param {*} [options] Override http request option.
|
|
3467
3617
|
* @throws {RequiredError}
|
|
3468
|
-
* @memberof HelmTagFormatsApi
|
|
3469
3618
|
*/
|
|
3470
3619
|
getHelmTagFormat(requestParameters, options) {
|
|
3471
3620
|
return HelmTagFormatsApiFp(this.configuration).getHelmTagFormat(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3477,12 +3626,10 @@ var KubernetesClustersApiAxiosParamCreator = function(configuration) {
|
|
|
3477
3626
|
*
|
|
3478
3627
|
* @param {string | null} [envId]
|
|
3479
3628
|
* @param {string | null} [name]
|
|
3480
|
-
* @param {number | null} [page]
|
|
3481
|
-
* @param {number | null} [perPage]
|
|
3482
3629
|
* @param {*} [options] Override http request option.
|
|
3483
3630
|
* @throws {RequiredError}
|
|
3484
3631
|
*/
|
|
3485
|
-
allK8sClusters: (_0, _1, _2
|
|
3632
|
+
allK8sClusters: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (envId, name, options = {}) {
|
|
3486
3633
|
const localVarPath = `/api/v2/k8s-clusters`;
|
|
3487
3634
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3488
3635
|
let baseOptions;
|
|
@@ -3500,12 +3647,7 @@ var KubernetesClustersApiAxiosParamCreator = function(configuration) {
|
|
|
3500
3647
|
if (name !== void 0) {
|
|
3501
3648
|
localVarQueryParameter["name"] = name;
|
|
3502
3649
|
}
|
|
3503
|
-
|
|
3504
|
-
localVarQueryParameter["page"] = page;
|
|
3505
|
-
}
|
|
3506
|
-
if (perPage !== void 0) {
|
|
3507
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
3508
|
-
}
|
|
3650
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3509
3651
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3510
3652
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3511
3653
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3520,9 +3662,9 @@ var KubernetesClustersApiAxiosParamCreator = function(configuration) {
|
|
|
3520
3662
|
* @param {*} [options] Override http request option.
|
|
3521
3663
|
* @throws {RequiredError}
|
|
3522
3664
|
*/
|
|
3523
|
-
deleteK8sCluster: (_0, ..._1) => __async(
|
|
3665
|
+
deleteK8sCluster: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
3524
3666
|
assertParamExists("deleteK8sCluster", "id", id);
|
|
3525
|
-
const localVarPath = `/api/v2/k8s-clusters/{id}`.replace(
|
|
3667
|
+
const localVarPath = `/api/v2/k8s-clusters/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
3526
3668
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3527
3669
|
let baseOptions;
|
|
3528
3670
|
if (configuration) {
|
|
@@ -3547,9 +3689,9 @@ var KubernetesClustersApiAxiosParamCreator = function(configuration) {
|
|
|
3547
3689
|
* @param {*} [options] Override http request option.
|
|
3548
3690
|
* @throws {RequiredError}
|
|
3549
3691
|
*/
|
|
3550
|
-
getK8sCluster: (_0, ..._1) => __async(
|
|
3692
|
+
getK8sCluster: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
3551
3693
|
assertParamExists("getK8sCluster", "id", id);
|
|
3552
|
-
const localVarPath = `/api/v2/k8s-clusters/{id}`.replace(
|
|
3694
|
+
const localVarPath = `/api/v2/k8s-clusters/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
3553
3695
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3554
3696
|
let baseOptions;
|
|
3555
3697
|
if (configuration) {
|
|
@@ -3560,6 +3702,7 @@ var KubernetesClustersApiAxiosParamCreator = function(configuration) {
|
|
|
3560
3702
|
const localVarQueryParameter = {};
|
|
3561
3703
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3562
3704
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
3705
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3563
3706
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3564
3707
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3565
3708
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3575,10 +3718,10 @@ var KubernetesClustersApiAxiosParamCreator = function(configuration) {
|
|
|
3575
3718
|
* @param {*} [options] Override http request option.
|
|
3576
3719
|
* @throws {RequiredError}
|
|
3577
3720
|
*/
|
|
3578
|
-
updateK8sCluster: (_0, _1, ..._2) => __async(
|
|
3721
|
+
updateK8sCluster: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (id, updateK8sCluster, options = {}) {
|
|
3579
3722
|
assertParamExists("updateK8sCluster", "id", id);
|
|
3580
3723
|
assertParamExists("updateK8sCluster", "updateK8sCluster", updateK8sCluster);
|
|
3581
|
-
const localVarPath = `/api/v2/k8s-clusters/{id}`.replace(
|
|
3724
|
+
const localVarPath = `/api/v2/k8s-clusters/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
3582
3725
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3583
3726
|
let baseOptions;
|
|
3584
3727
|
if (configuration) {
|
|
@@ -3590,6 +3733,7 @@ var KubernetesClustersApiAxiosParamCreator = function(configuration) {
|
|
|
3590
3733
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3591
3734
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
3592
3735
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
3736
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3593
3737
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3594
3738
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3595
3739
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3608,15 +3752,13 @@ var KubernetesClustersApiFp = function(configuration) {
|
|
|
3608
3752
|
*
|
|
3609
3753
|
* @param {string | null} [envId]
|
|
3610
3754
|
* @param {string | null} [name]
|
|
3611
|
-
* @param {number | null} [page]
|
|
3612
|
-
* @param {number | null} [perPage]
|
|
3613
3755
|
* @param {*} [options] Override http request option.
|
|
3614
3756
|
* @throws {RequiredError}
|
|
3615
3757
|
*/
|
|
3616
|
-
allK8sClusters(envId, name,
|
|
3758
|
+
allK8sClusters(envId, name, options) {
|
|
3617
3759
|
return __async(this, null, function* () {
|
|
3618
3760
|
var _a2, _b, _c;
|
|
3619
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allK8sClusters(envId, name,
|
|
3761
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allK8sClusters(envId, name, options);
|
|
3620
3762
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
3621
3763
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["KubernetesClustersApi.allK8sClusters"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
3622
3764
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3680,7 +3822,7 @@ var KubernetesClustersApiFactory = function(configuration, basePath, axios) {
|
|
|
3680
3822
|
* @throws {RequiredError}
|
|
3681
3823
|
*/
|
|
3682
3824
|
allK8sClusters(requestParameters = {}, options) {
|
|
3683
|
-
return localVarFp.allK8sClusters(requestParameters.envId, requestParameters.name,
|
|
3825
|
+
return localVarFp.allK8sClusters(requestParameters.envId, requestParameters.name, options).then((request) => request(axios, basePath));
|
|
3684
3826
|
},
|
|
3685
3827
|
/**
|
|
3686
3828
|
*
|
|
@@ -3717,17 +3859,15 @@ var KubernetesClustersApi = class extends BaseAPI {
|
|
|
3717
3859
|
* @param {KubernetesClustersApiAllK8sClustersRequest} requestParameters Request parameters.
|
|
3718
3860
|
* @param {*} [options] Override http request option.
|
|
3719
3861
|
* @throws {RequiredError}
|
|
3720
|
-
* @memberof KubernetesClustersApi
|
|
3721
3862
|
*/
|
|
3722
3863
|
allK8sClusters(requestParameters = {}, options) {
|
|
3723
|
-
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));
|
|
3724
3865
|
}
|
|
3725
3866
|
/**
|
|
3726
3867
|
*
|
|
3727
3868
|
* @param {KubernetesClustersApiDeleteK8sClusterRequest} requestParameters Request parameters.
|
|
3728
3869
|
* @param {*} [options] Override http request option.
|
|
3729
3870
|
* @throws {RequiredError}
|
|
3730
|
-
* @memberof KubernetesClustersApi
|
|
3731
3871
|
*/
|
|
3732
3872
|
deleteK8sCluster(requestParameters, options) {
|
|
3733
3873
|
return KubernetesClustersApiFp(this.configuration).deleteK8sCluster(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3737,7 +3877,6 @@ var KubernetesClustersApi = class extends BaseAPI {
|
|
|
3737
3877
|
* @param {KubernetesClustersApiGetK8sClusterRequest} requestParameters Request parameters.
|
|
3738
3878
|
* @param {*} [options] Override http request option.
|
|
3739
3879
|
* @throws {RequiredError}
|
|
3740
|
-
* @memberof KubernetesClustersApi
|
|
3741
3880
|
*/
|
|
3742
3881
|
getK8sCluster(requestParameters, options) {
|
|
3743
3882
|
return KubernetesClustersApiFp(this.configuration).getK8sCluster(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3747,7 +3886,6 @@ var KubernetesClustersApi = class extends BaseAPI {
|
|
|
3747
3886
|
* @param {KubernetesClustersApiUpdateK8sClusterRequest} requestParameters Request parameters.
|
|
3748
3887
|
* @param {*} [options] Override http request option.
|
|
3749
3888
|
* @throws {RequiredError}
|
|
3750
|
-
* @memberof KubernetesClustersApi
|
|
3751
3889
|
*/
|
|
3752
3890
|
updateK8sCluster(requestParameters, options) {
|
|
3753
3891
|
return KubernetesClustersApiFp(this.configuration).updateK8sCluster(requestParameters.id, requestParameters.updateK8sCluster, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3761,12 +3899,10 @@ var KubernetesResourcesApiAxiosParamCreator = function(configuration) {
|
|
|
3761
3899
|
* @param {string | null} [deploymentId]
|
|
3762
3900
|
* @param {string | null} [kind]
|
|
3763
3901
|
* @param {string | null} [name]
|
|
3764
|
-
* @param {number | null} [page]
|
|
3765
|
-
* @param {number | null} [perPage]
|
|
3766
3902
|
* @param {*} [options] Override http request option.
|
|
3767
3903
|
* @throws {RequiredError}
|
|
3768
3904
|
*/
|
|
3769
|
-
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 = {}) {
|
|
3770
3906
|
const localVarPath = `/api/v2/k8s-resources`;
|
|
3771
3907
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3772
3908
|
let baseOptions;
|
|
@@ -3790,12 +3926,7 @@ var KubernetesResourcesApiAxiosParamCreator = function(configuration) {
|
|
|
3790
3926
|
if (name !== void 0) {
|
|
3791
3927
|
localVarQueryParameter["name"] = name;
|
|
3792
3928
|
}
|
|
3793
|
-
|
|
3794
|
-
localVarQueryParameter["page"] = page;
|
|
3795
|
-
}
|
|
3796
|
-
if (perPage !== void 0) {
|
|
3797
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
3798
|
-
}
|
|
3929
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3799
3930
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3800
3931
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3801
3932
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3810,9 +3941,9 @@ var KubernetesResourcesApiAxiosParamCreator = function(configuration) {
|
|
|
3810
3941
|
* @param {*} [options] Override http request option.
|
|
3811
3942
|
* @throws {RequiredError}
|
|
3812
3943
|
*/
|
|
3813
|
-
getK8sResource: (_0, ..._1) => __async(
|
|
3944
|
+
getK8sResource: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
3814
3945
|
assertParamExists("getK8sResource", "id", id);
|
|
3815
|
-
const localVarPath = `/api/v2/k8s-resources/{id}`.replace(
|
|
3946
|
+
const localVarPath = `/api/v2/k8s-resources/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
3816
3947
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3817
3948
|
let baseOptions;
|
|
3818
3949
|
if (configuration) {
|
|
@@ -3823,6 +3954,7 @@ var KubernetesResourcesApiAxiosParamCreator = function(configuration) {
|
|
|
3823
3954
|
const localVarQueryParameter = {};
|
|
3824
3955
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3825
3956
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
3957
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3826
3958
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3827
3959
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3828
3960
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3842,15 +3974,13 @@ var KubernetesResourcesApiFp = function(configuration) {
|
|
|
3842
3974
|
* @param {string | null} [deploymentId]
|
|
3843
3975
|
* @param {string | null} [kind]
|
|
3844
3976
|
* @param {string | null} [name]
|
|
3845
|
-
* @param {number | null} [page]
|
|
3846
|
-
* @param {number | null} [perPage]
|
|
3847
3977
|
* @param {*} [options] Override http request option.
|
|
3848
3978
|
* @throws {RequiredError}
|
|
3849
3979
|
*/
|
|
3850
|
-
allK8sResources(clusterId, deploymentId, kind, name,
|
|
3980
|
+
allK8sResources(clusterId, deploymentId, kind, name, options) {
|
|
3851
3981
|
return __async(this, null, function* () {
|
|
3852
3982
|
var _a2, _b, _c;
|
|
3853
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allK8sResources(clusterId, deploymentId, kind, name,
|
|
3983
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allK8sResources(clusterId, deploymentId, kind, name, options);
|
|
3854
3984
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
3855
3985
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["KubernetesResourcesApi.allK8sResources"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
3856
3986
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3883,7 +4013,7 @@ var KubernetesResourcesApiFactory = function(configuration, basePath, axios) {
|
|
|
3883
4013
|
* @throws {RequiredError}
|
|
3884
4014
|
*/
|
|
3885
4015
|
allK8sResources(requestParameters = {}, options) {
|
|
3886
|
-
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));
|
|
3887
4017
|
},
|
|
3888
4018
|
/**
|
|
3889
4019
|
*
|
|
@@ -3902,17 +4032,15 @@ var KubernetesResourcesApi = class extends BaseAPI {
|
|
|
3902
4032
|
* @param {KubernetesResourcesApiAllK8sResourcesRequest} requestParameters Request parameters.
|
|
3903
4033
|
* @param {*} [options] Override http request option.
|
|
3904
4034
|
* @throws {RequiredError}
|
|
3905
|
-
* @memberof KubernetesResourcesApi
|
|
3906
4035
|
*/
|
|
3907
4036
|
allK8sResources(requestParameters = {}, options) {
|
|
3908
|
-
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));
|
|
3909
4038
|
}
|
|
3910
4039
|
/**
|
|
3911
4040
|
*
|
|
3912
4041
|
* @param {KubernetesResourcesApiGetK8sResourceRequest} requestParameters Request parameters.
|
|
3913
4042
|
* @param {*} [options] Override http request option.
|
|
3914
4043
|
* @throws {RequiredError}
|
|
3915
|
-
* @memberof KubernetesResourcesApi
|
|
3916
4044
|
*/
|
|
3917
4045
|
getK8sResource(requestParameters, options) {
|
|
3918
4046
|
return KubernetesResourcesApiFp(this.configuration).getK8sResource(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3925,12 +4053,10 @@ var SecretsApiAxiosParamCreator = function(configuration) {
|
|
|
3925
4053
|
* @param {string | null} [envId]
|
|
3926
4054
|
* @param {string | null} [collection]
|
|
3927
4055
|
* @param {string | null} [name]
|
|
3928
|
-
* @param {number | null} [page]
|
|
3929
|
-
* @param {number | null} [perPage]
|
|
3930
4056
|
* @param {*} [options] Override http request option.
|
|
3931
4057
|
* @throws {RequiredError}
|
|
3932
4058
|
*/
|
|
3933
|
-
allSecrets: (_0, _1, _2, _3
|
|
4059
|
+
allSecrets: (_0, _1, _2, ..._3) => __async(null, [_0, _1, _2, ..._3], function* (envId, collection, name, options = {}) {
|
|
3934
4060
|
const localVarPath = `/api/v2/secrets`;
|
|
3935
4061
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3936
4062
|
let baseOptions;
|
|
@@ -3951,12 +4077,7 @@ var SecretsApiAxiosParamCreator = function(configuration) {
|
|
|
3951
4077
|
if (name !== void 0) {
|
|
3952
4078
|
localVarQueryParameter["name"] = name;
|
|
3953
4079
|
}
|
|
3954
|
-
|
|
3955
|
-
localVarQueryParameter["page"] = page;
|
|
3956
|
-
}
|
|
3957
|
-
if (perPage !== void 0) {
|
|
3958
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
3959
|
-
}
|
|
4080
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3960
4081
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3961
4082
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3962
4083
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3971,7 +4092,7 @@ var SecretsApiAxiosParamCreator = function(configuration) {
|
|
|
3971
4092
|
* @param {*} [options] Override http request option.
|
|
3972
4093
|
* @throws {RequiredError}
|
|
3973
4094
|
*/
|
|
3974
|
-
createSecret: (_0, ..._1) => __async(
|
|
4095
|
+
createSecret: (_0, ..._1) => __async(null, [_0, ..._1], function* (newSecret, options = {}) {
|
|
3975
4096
|
assertParamExists("createSecret", "newSecret", newSecret);
|
|
3976
4097
|
const localVarPath = `/api/v2/secrets`;
|
|
3977
4098
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3985,6 +4106,7 @@ var SecretsApiAxiosParamCreator = function(configuration) {
|
|
|
3985
4106
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3986
4107
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
3987
4108
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
4109
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3988
4110
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3989
4111
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3990
4112
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4000,9 +4122,9 @@ var SecretsApiAxiosParamCreator = function(configuration) {
|
|
|
4000
4122
|
* @param {*} [options] Override http request option.
|
|
4001
4123
|
* @throws {RequiredError}
|
|
4002
4124
|
*/
|
|
4003
|
-
deleteSecret: (_0, ..._1) => __async(
|
|
4125
|
+
deleteSecret: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
4004
4126
|
assertParamExists("deleteSecret", "id", id);
|
|
4005
|
-
const localVarPath = `/api/v2/secrets/{id}`.replace(
|
|
4127
|
+
const localVarPath = `/api/v2/secrets/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
4006
4128
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4007
4129
|
let baseOptions;
|
|
4008
4130
|
if (configuration) {
|
|
@@ -4027,9 +4149,9 @@ var SecretsApiAxiosParamCreator = function(configuration) {
|
|
|
4027
4149
|
* @param {*} [options] Override http request option.
|
|
4028
4150
|
* @throws {RequiredError}
|
|
4029
4151
|
*/
|
|
4030
|
-
getSecret: (_0, ..._1) => __async(
|
|
4152
|
+
getSecret: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
4031
4153
|
assertParamExists("getSecret", "id", id);
|
|
4032
|
-
const localVarPath = `/api/v2/secrets/{id}`.replace(
|
|
4154
|
+
const localVarPath = `/api/v2/secrets/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
4033
4155
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4034
4156
|
let baseOptions;
|
|
4035
4157
|
if (configuration) {
|
|
@@ -4040,6 +4162,7 @@ var SecretsApiAxiosParamCreator = function(configuration) {
|
|
|
4040
4162
|
const localVarQueryParameter = {};
|
|
4041
4163
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4042
4164
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
4165
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
4043
4166
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4044
4167
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4045
4168
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4055,10 +4178,10 @@ var SecretsApiAxiosParamCreator = function(configuration) {
|
|
|
4055
4178
|
* @param {*} [options] Override http request option.
|
|
4056
4179
|
* @throws {RequiredError}
|
|
4057
4180
|
*/
|
|
4058
|
-
updateSecret: (_0, _1, ..._2) => __async(
|
|
4181
|
+
updateSecret: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (id, updateSecret, options = {}) {
|
|
4059
4182
|
assertParamExists("updateSecret", "id", id);
|
|
4060
4183
|
assertParamExists("updateSecret", "updateSecret", updateSecret);
|
|
4061
|
-
const localVarPath = `/api/v2/secrets/{id}`.replace(
|
|
4184
|
+
const localVarPath = `/api/v2/secrets/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
4062
4185
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4063
4186
|
let baseOptions;
|
|
4064
4187
|
if (configuration) {
|
|
@@ -4070,6 +4193,7 @@ var SecretsApiAxiosParamCreator = function(configuration) {
|
|
|
4070
4193
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4071
4194
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
4072
4195
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
4196
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
4073
4197
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4074
4198
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4075
4199
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4089,15 +4213,13 @@ var SecretsApiFp = function(configuration) {
|
|
|
4089
4213
|
* @param {string | null} [envId]
|
|
4090
4214
|
* @param {string | null} [collection]
|
|
4091
4215
|
* @param {string | null} [name]
|
|
4092
|
-
* @param {number | null} [page]
|
|
4093
|
-
* @param {number | null} [perPage]
|
|
4094
4216
|
* @param {*} [options] Override http request option.
|
|
4095
4217
|
* @throws {RequiredError}
|
|
4096
4218
|
*/
|
|
4097
|
-
allSecrets(envId, collection, name,
|
|
4219
|
+
allSecrets(envId, collection, name, options) {
|
|
4098
4220
|
return __async(this, null, function* () {
|
|
4099
4221
|
var _a2, _b, _c;
|
|
4100
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allSecrets(envId, collection, name,
|
|
4222
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allSecrets(envId, collection, name, options);
|
|
4101
4223
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
4102
4224
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["SecretsApi.allSecrets"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
4103
4225
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -4176,7 +4298,7 @@ var SecretsApiFactory = function(configuration, basePath, axios) {
|
|
|
4176
4298
|
* @throws {RequiredError}
|
|
4177
4299
|
*/
|
|
4178
4300
|
allSecrets(requestParameters = {}, options) {
|
|
4179
|
-
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));
|
|
4180
4302
|
},
|
|
4181
4303
|
/**
|
|
4182
4304
|
*
|
|
@@ -4222,17 +4344,15 @@ var SecretsApi = class extends BaseAPI {
|
|
|
4222
4344
|
* @param {SecretsApiAllSecretsRequest} requestParameters Request parameters.
|
|
4223
4345
|
* @param {*} [options] Override http request option.
|
|
4224
4346
|
* @throws {RequiredError}
|
|
4225
|
-
* @memberof SecretsApi
|
|
4226
4347
|
*/
|
|
4227
4348
|
allSecrets(requestParameters = {}, options) {
|
|
4228
|
-
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));
|
|
4229
4350
|
}
|
|
4230
4351
|
/**
|
|
4231
4352
|
*
|
|
4232
4353
|
* @param {SecretsApiCreateSecretRequest} requestParameters Request parameters.
|
|
4233
4354
|
* @param {*} [options] Override http request option.
|
|
4234
4355
|
* @throws {RequiredError}
|
|
4235
|
-
* @memberof SecretsApi
|
|
4236
4356
|
*/
|
|
4237
4357
|
createSecret(requestParameters, options) {
|
|
4238
4358
|
return SecretsApiFp(this.configuration).createSecret(requestParameters.newSecret, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4242,7 +4362,6 @@ var SecretsApi = class extends BaseAPI {
|
|
|
4242
4362
|
* @param {SecretsApiDeleteSecretRequest} requestParameters Request parameters.
|
|
4243
4363
|
* @param {*} [options] Override http request option.
|
|
4244
4364
|
* @throws {RequiredError}
|
|
4245
|
-
* @memberof SecretsApi
|
|
4246
4365
|
*/
|
|
4247
4366
|
deleteSecret(requestParameters, options) {
|
|
4248
4367
|
return SecretsApiFp(this.configuration).deleteSecret(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4252,7 +4371,6 @@ var SecretsApi = class extends BaseAPI {
|
|
|
4252
4371
|
* @param {SecretsApiGetSecretRequest} requestParameters Request parameters.
|
|
4253
4372
|
* @param {*} [options] Override http request option.
|
|
4254
4373
|
* @throws {RequiredError}
|
|
4255
|
-
* @memberof SecretsApi
|
|
4256
4374
|
*/
|
|
4257
4375
|
getSecret(requestParameters, options) {
|
|
4258
4376
|
return SecretsApiFp(this.configuration).getSecret(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4262,7 +4380,6 @@ var SecretsApi = class extends BaseAPI {
|
|
|
4262
4380
|
* @param {SecretsApiUpdateSecretRequest} requestParameters Request parameters.
|
|
4263
4381
|
* @param {*} [options] Override http request option.
|
|
4264
4382
|
* @throws {RequiredError}
|
|
4265
|
-
* @memberof SecretsApi
|
|
4266
4383
|
*/
|
|
4267
4384
|
updateSecret(requestParameters, options) {
|
|
4268
4385
|
return SecretsApiFp(this.configuration).updateSecret(requestParameters.id, requestParameters.updateSecret, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4275,7 +4392,7 @@ var ServerApiAxiosParamCreator = function(configuration) {
|
|
|
4275
4392
|
* @param {*} [options] Override http request option.
|
|
4276
4393
|
* @throws {RequiredError}
|
|
4277
4394
|
*/
|
|
4278
|
-
getServerInfo: (..._0) => __async(
|
|
4395
|
+
getServerInfo: (..._0) => __async(null, [..._0], function* (options = {}) {
|
|
4279
4396
|
const localVarPath = `/api/v2/server`;
|
|
4280
4397
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4281
4398
|
let baseOptions;
|
|
@@ -4287,6 +4404,7 @@ var ServerApiAxiosParamCreator = function(configuration) {
|
|
|
4287
4404
|
const localVarQueryParameter = {};
|
|
4288
4405
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4289
4406
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
4407
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
4290
4408
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4291
4409
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4292
4410
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4334,7 +4452,6 @@ var ServerApi = class extends BaseAPI {
|
|
|
4334
4452
|
*
|
|
4335
4453
|
* @param {*} [options] Override http request option.
|
|
4336
4454
|
* @throws {RequiredError}
|
|
4337
|
-
* @memberof ServerApi
|
|
4338
4455
|
*/
|
|
4339
4456
|
getServerInfo(options) {
|
|
4340
4457
|
return ServerApiFp(this.configuration).getServerInfo(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4345,12 +4462,10 @@ var UserTokensApiAxiosParamCreator = function(configuration) {
|
|
|
4345
4462
|
/**
|
|
4346
4463
|
*
|
|
4347
4464
|
* @param {string | null} [userId]
|
|
4348
|
-
* @param {number | null} [page]
|
|
4349
|
-
* @param {number | null} [perPage]
|
|
4350
4465
|
* @param {*} [options] Override http request option.
|
|
4351
4466
|
* @throws {RequiredError}
|
|
4352
4467
|
*/
|
|
4353
|
-
allUserTokens: (_0, _1
|
|
4468
|
+
allUserTokens: (_0, ..._1) => __async(null, [_0, ..._1], function* (userId, options = {}) {
|
|
4354
4469
|
const localVarPath = `/api/v2/user-tokens`;
|
|
4355
4470
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4356
4471
|
let baseOptions;
|
|
@@ -4365,12 +4480,7 @@ var UserTokensApiAxiosParamCreator = function(configuration) {
|
|
|
4365
4480
|
if (userId !== void 0) {
|
|
4366
4481
|
localVarQueryParameter["user_id"] = userId;
|
|
4367
4482
|
}
|
|
4368
|
-
|
|
4369
|
-
localVarQueryParameter["page"] = page;
|
|
4370
|
-
}
|
|
4371
|
-
if (perPage !== void 0) {
|
|
4372
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
4373
|
-
}
|
|
4483
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
4374
4484
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4375
4485
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4376
4486
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4385,7 +4495,7 @@ var UserTokensApiAxiosParamCreator = function(configuration) {
|
|
|
4385
4495
|
* @param {*} [options] Override http request option.
|
|
4386
4496
|
* @throws {RequiredError}
|
|
4387
4497
|
*/
|
|
4388
|
-
createUserToken: (_0, ..._1) => __async(
|
|
4498
|
+
createUserToken: (_0, ..._1) => __async(null, [_0, ..._1], function* (createUserToken, options = {}) {
|
|
4389
4499
|
assertParamExists("createUserToken", "createUserToken", createUserToken);
|
|
4390
4500
|
const localVarPath = `/api/v2/user-tokens`;
|
|
4391
4501
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -4399,6 +4509,7 @@ var UserTokensApiAxiosParamCreator = function(configuration) {
|
|
|
4399
4509
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4400
4510
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
4401
4511
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
4512
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
4402
4513
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4403
4514
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4404
4515
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4414,9 +4525,9 @@ var UserTokensApiAxiosParamCreator = function(configuration) {
|
|
|
4414
4525
|
* @param {*} [options] Override http request option.
|
|
4415
4526
|
* @throws {RequiredError}
|
|
4416
4527
|
*/
|
|
4417
|
-
deleteUserToken: (_0, ..._1) => __async(
|
|
4528
|
+
deleteUserToken: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
4418
4529
|
assertParamExists("deleteUserToken", "id", id);
|
|
4419
|
-
const localVarPath = `/api/v2/user-tokens/{id}`.replace(
|
|
4530
|
+
const localVarPath = `/api/v2/user-tokens/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
4420
4531
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4421
4532
|
let baseOptions;
|
|
4422
4533
|
if (configuration) {
|
|
@@ -4441,9 +4552,9 @@ var UserTokensApiAxiosParamCreator = function(configuration) {
|
|
|
4441
4552
|
* @param {*} [options] Override http request option.
|
|
4442
4553
|
* @throws {RequiredError}
|
|
4443
4554
|
*/
|
|
4444
|
-
getUserToken: (_0, ..._1) => __async(
|
|
4555
|
+
getUserToken: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
4445
4556
|
assertParamExists("getUserToken", "id", id);
|
|
4446
|
-
const localVarPath = `/api/v2/user-tokens/{id}`.replace(
|
|
4557
|
+
const localVarPath = `/api/v2/user-tokens/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
4447
4558
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4448
4559
|
let baseOptions;
|
|
4449
4560
|
if (configuration) {
|
|
@@ -4454,6 +4565,7 @@ var UserTokensApiAxiosParamCreator = function(configuration) {
|
|
|
4454
4565
|
const localVarQueryParameter = {};
|
|
4455
4566
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4456
4567
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
4568
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
4457
4569
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4458
4570
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4459
4571
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4470,15 +4582,13 @@ var UserTokensApiFp = function(configuration) {
|
|
|
4470
4582
|
/**
|
|
4471
4583
|
*
|
|
4472
4584
|
* @param {string | null} [userId]
|
|
4473
|
-
* @param {number | null} [page]
|
|
4474
|
-
* @param {number | null} [perPage]
|
|
4475
4585
|
* @param {*} [options] Override http request option.
|
|
4476
4586
|
* @throws {RequiredError}
|
|
4477
4587
|
*/
|
|
4478
|
-
allUserTokens(userId,
|
|
4588
|
+
allUserTokens(userId, options) {
|
|
4479
4589
|
return __async(this, null, function* () {
|
|
4480
4590
|
var _a2, _b, _c;
|
|
4481
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allUserTokens(userId,
|
|
4591
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allUserTokens(userId, options);
|
|
4482
4592
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
4483
4593
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["UserTokensApi.allUserTokens"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
4484
4594
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -4541,7 +4651,7 @@ var UserTokensApiFactory = function(configuration, basePath, axios) {
|
|
|
4541
4651
|
* @throws {RequiredError}
|
|
4542
4652
|
*/
|
|
4543
4653
|
allUserTokens(requestParameters = {}, options) {
|
|
4544
|
-
return localVarFp.allUserTokens(requestParameters.userId,
|
|
4654
|
+
return localVarFp.allUserTokens(requestParameters.userId, options).then((request) => request(axios, basePath));
|
|
4545
4655
|
},
|
|
4546
4656
|
/**
|
|
4547
4657
|
*
|
|
@@ -4578,17 +4688,15 @@ var UserTokensApi = class extends BaseAPI {
|
|
|
4578
4688
|
* @param {UserTokensApiAllUserTokensRequest} requestParameters Request parameters.
|
|
4579
4689
|
* @param {*} [options] Override http request option.
|
|
4580
4690
|
* @throws {RequiredError}
|
|
4581
|
-
* @memberof UserTokensApi
|
|
4582
4691
|
*/
|
|
4583
4692
|
allUserTokens(requestParameters = {}, options) {
|
|
4584
|
-
return UserTokensApiFp(this.configuration).allUserTokens(requestParameters.userId,
|
|
4693
|
+
return UserTokensApiFp(this.configuration).allUserTokens(requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
4585
4694
|
}
|
|
4586
4695
|
/**
|
|
4587
4696
|
*
|
|
4588
4697
|
* @param {UserTokensApiCreateUserTokenRequest} requestParameters Request parameters.
|
|
4589
4698
|
* @param {*} [options] Override http request option.
|
|
4590
4699
|
* @throws {RequiredError}
|
|
4591
|
-
* @memberof UserTokensApi
|
|
4592
4700
|
*/
|
|
4593
4701
|
createUserToken(requestParameters, options) {
|
|
4594
4702
|
return UserTokensApiFp(this.configuration).createUserToken(requestParameters.createUserToken, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4598,7 +4706,6 @@ var UserTokensApi = class extends BaseAPI {
|
|
|
4598
4706
|
* @param {UserTokensApiDeleteUserTokenRequest} requestParameters Request parameters.
|
|
4599
4707
|
* @param {*} [options] Override http request option.
|
|
4600
4708
|
* @throws {RequiredError}
|
|
4601
|
-
* @memberof UserTokensApi
|
|
4602
4709
|
*/
|
|
4603
4710
|
deleteUserToken(requestParameters, options) {
|
|
4604
4711
|
return UserTokensApiFp(this.configuration).deleteUserToken(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4608,7 +4715,6 @@ var UserTokensApi = class extends BaseAPI {
|
|
|
4608
4715
|
* @param {UserTokensApiGetUserTokenRequest} requestParameters Request parameters.
|
|
4609
4716
|
* @param {*} [options] Override http request option.
|
|
4610
4717
|
* @throws {RequiredError}
|
|
4611
|
-
* @memberof UserTokensApi
|
|
4612
4718
|
*/
|
|
4613
4719
|
getUserToken(requestParameters, options) {
|
|
4614
4720
|
return UserTokensApiFp(this.configuration).getUserToken(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4621,12 +4727,10 @@ var UsersApiAxiosParamCreator = function(configuration) {
|
|
|
4621
4727
|
* @param {string | null} [displayName]
|
|
4622
4728
|
* @param {string | null} [email]
|
|
4623
4729
|
* @param {boolean | null} [isActive]
|
|
4624
|
-
* @param {number | null} [page]
|
|
4625
|
-
* @param {number | null} [perPage]
|
|
4626
4730
|
* @param {*} [options] Override http request option.
|
|
4627
4731
|
* @throws {RequiredError}
|
|
4628
4732
|
*/
|
|
4629
|
-
allUsers: (_0, _1, _2, _3
|
|
4733
|
+
allUsers: (_0, _1, _2, ..._3) => __async(null, [_0, _1, _2, ..._3], function* (displayName, email, isActive, options = {}) {
|
|
4630
4734
|
const localVarPath = `/api/v2/users`;
|
|
4631
4735
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4632
4736
|
let baseOptions;
|
|
@@ -4647,12 +4751,7 @@ var UsersApiAxiosParamCreator = function(configuration) {
|
|
|
4647
4751
|
if (isActive !== void 0) {
|
|
4648
4752
|
localVarQueryParameter["is_active"] = isActive;
|
|
4649
4753
|
}
|
|
4650
|
-
|
|
4651
|
-
localVarQueryParameter["page"] = page;
|
|
4652
|
-
}
|
|
4653
|
-
if (perPage !== void 0) {
|
|
4654
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
4655
|
-
}
|
|
4754
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
4656
4755
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4657
4756
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4658
4757
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4667,9 +4766,9 @@ var UsersApiAxiosParamCreator = function(configuration) {
|
|
|
4667
4766
|
* @param {*} [options] Override http request option.
|
|
4668
4767
|
* @throws {RequiredError}
|
|
4669
4768
|
*/
|
|
4670
|
-
getUser: (_0, ..._1) => __async(
|
|
4769
|
+
getUser: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
4671
4770
|
assertParamExists("getUser", "id", id);
|
|
4672
|
-
const localVarPath = `/api/v2/users/{id}`.replace(
|
|
4771
|
+
const localVarPath = `/api/v2/users/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
4673
4772
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4674
4773
|
let baseOptions;
|
|
4675
4774
|
if (configuration) {
|
|
@@ -4680,6 +4779,7 @@ var UsersApiAxiosParamCreator = function(configuration) {
|
|
|
4680
4779
|
const localVarQueryParameter = {};
|
|
4681
4780
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4682
4781
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
4782
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
4683
4783
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4684
4784
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4685
4785
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4695,10 +4795,10 @@ var UsersApiAxiosParamCreator = function(configuration) {
|
|
|
4695
4795
|
* @param {*} [options] Override http request option.
|
|
4696
4796
|
* @throws {RequiredError}
|
|
4697
4797
|
*/
|
|
4698
|
-
updateUser: (_0, _1, ..._2) => __async(
|
|
4798
|
+
updateUser: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (id, updateUser, options = {}) {
|
|
4699
4799
|
assertParamExists("updateUser", "id", id);
|
|
4700
4800
|
assertParamExists("updateUser", "updateUser", updateUser);
|
|
4701
|
-
const localVarPath = `/api/v2/users/{id}`.replace(
|
|
4801
|
+
const localVarPath = `/api/v2/users/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
4702
4802
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4703
4803
|
let baseOptions;
|
|
4704
4804
|
if (configuration) {
|
|
@@ -4710,6 +4810,7 @@ var UsersApiAxiosParamCreator = function(configuration) {
|
|
|
4710
4810
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4711
4811
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
4712
4812
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
4813
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
4713
4814
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4714
4815
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4715
4816
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4729,15 +4830,13 @@ var UsersApiFp = function(configuration) {
|
|
|
4729
4830
|
* @param {string | null} [displayName]
|
|
4730
4831
|
* @param {string | null} [email]
|
|
4731
4832
|
* @param {boolean | null} [isActive]
|
|
4732
|
-
* @param {number | null} [page]
|
|
4733
|
-
* @param {number | null} [perPage]
|
|
4734
4833
|
* @param {*} [options] Override http request option.
|
|
4735
4834
|
* @throws {RequiredError}
|
|
4736
4835
|
*/
|
|
4737
|
-
allUsers(displayName, email, isActive,
|
|
4836
|
+
allUsers(displayName, email, isActive, options) {
|
|
4738
4837
|
return __async(this, null, function* () {
|
|
4739
4838
|
var _a2, _b, _c;
|
|
4740
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allUsers(displayName, email, isActive,
|
|
4839
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allUsers(displayName, email, isActive, options);
|
|
4741
4840
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
4742
4841
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["UsersApi.allUsers"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
4743
4842
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios2, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -4786,7 +4885,7 @@ var UsersApiFactory = function(configuration, basePath, axios) {
|
|
|
4786
4885
|
* @throws {RequiredError}
|
|
4787
4886
|
*/
|
|
4788
4887
|
allUsers(requestParameters = {}, options) {
|
|
4789
|
-
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));
|
|
4790
4889
|
},
|
|
4791
4890
|
/**
|
|
4792
4891
|
*
|
|
@@ -4814,17 +4913,15 @@ var UsersApi = class extends BaseAPI {
|
|
|
4814
4913
|
* @param {UsersApiAllUsersRequest} requestParameters Request parameters.
|
|
4815
4914
|
* @param {*} [options] Override http request option.
|
|
4816
4915
|
* @throws {RequiredError}
|
|
4817
|
-
* @memberof UsersApi
|
|
4818
4916
|
*/
|
|
4819
4917
|
allUsers(requestParameters = {}, options) {
|
|
4820
|
-
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));
|
|
4821
4919
|
}
|
|
4822
4920
|
/**
|
|
4823
4921
|
*
|
|
4824
4922
|
* @param {UsersApiGetUserRequest} requestParameters Request parameters.
|
|
4825
4923
|
* @param {*} [options] Override http request option.
|
|
4826
4924
|
* @throws {RequiredError}
|
|
4827
|
-
* @memberof UsersApi
|
|
4828
4925
|
*/
|
|
4829
4926
|
getUser(requestParameters, options) {
|
|
4830
4927
|
return UsersApiFp(this.configuration).getUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4834,7 +4931,6 @@ var UsersApi = class extends BaseAPI {
|
|
|
4834
4931
|
* @param {UsersApiUpdateUserRequest} requestParameters Request parameters.
|
|
4835
4932
|
* @param {*} [options] Override http request option.
|
|
4836
4933
|
* @throws {RequiredError}
|
|
4837
|
-
* @memberof UsersApi
|
|
4838
4934
|
*/
|
|
4839
4935
|
updateUser(requestParameters, options) {
|
|
4840
4936
|
return UsersApiFp(this.configuration).updateUser(requestParameters.id, requestParameters.updateUser, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4844,13 +4940,17 @@ var UsersApi = class extends BaseAPI {
|
|
|
4844
4940
|
// src/configuration.ts
|
|
4845
4941
|
var Configuration = class {
|
|
4846
4942
|
constructor(param = {}) {
|
|
4943
|
+
var _a;
|
|
4847
4944
|
this.apiKey = param.apiKey;
|
|
4848
4945
|
this.username = param.username;
|
|
4849
4946
|
this.password = param.password;
|
|
4850
4947
|
this.accessToken = param.accessToken;
|
|
4948
|
+
this.awsv4 = param.awsv4;
|
|
4851
4949
|
this.basePath = param.basePath;
|
|
4852
4950
|
this.serverIndex = param.serverIndex;
|
|
4853
|
-
this.baseOptions = param.baseOptions
|
|
4951
|
+
this.baseOptions = __spreadProps(__spreadValues({}, param.baseOptions), {
|
|
4952
|
+
headers: __spreadValues({}, (_a = param.baseOptions) == null ? void 0 : _a.headers)
|
|
4953
|
+
});
|
|
4854
4954
|
this.formDataCtor = param.formDataCtor;
|
|
4855
4955
|
}
|
|
4856
4956
|
/**
|
|
@@ -4864,8 +4964,8 @@ var Configuration = class {
|
|
|
4864
4964
|
* @return True if the given MIME is JSON, false otherwise.
|
|
4865
4965
|
*/
|
|
4866
4966
|
isJsonMime(mime) {
|
|
4867
|
-
const jsonMime =
|
|
4868
|
-
return mime !== null &&
|
|
4967
|
+
const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
|
|
4968
|
+
return mime !== null && jsonMime.test(mime);
|
|
4869
4969
|
}
|
|
4870
4970
|
};
|
|
4871
4971
|
export {
|
|
@@ -4873,6 +4973,10 @@ export {
|
|
|
4873
4973
|
AuthenticationApiAxiosParamCreator,
|
|
4874
4974
|
AuthenticationApiFactory,
|
|
4875
4975
|
AuthenticationApiFp,
|
|
4976
|
+
BotTokensApi,
|
|
4977
|
+
BotTokensApiAxiosParamCreator,
|
|
4978
|
+
BotTokensApiFactory,
|
|
4979
|
+
BotTokensApiFp,
|
|
4876
4980
|
BotsApi,
|
|
4877
4981
|
BotsApiAxiosParamCreator,
|
|
4878
4982
|
BotsApiFactory,
|
|
@@ -4937,6 +5041,7 @@ export {
|
|
|
4937
5041
|
HelmRegistriesApiAxiosParamCreator,
|
|
4938
5042
|
HelmRegistriesApiFactory,
|
|
4939
5043
|
HelmRegistriesApiFp,
|
|
5044
|
+
HelmRegistryProvider,
|
|
4940
5045
|
HelmTagFormatsApi,
|
|
4941
5046
|
HelmTagFormatsApiAxiosParamCreator,
|
|
4942
5047
|
HelmTagFormatsApiFactory,
|