@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.js
CHANGED
|
@@ -65,12 +65,16 @@ var __async = (__this, __arguments, generator) => {
|
|
|
65
65
|
};
|
|
66
66
|
|
|
67
67
|
// src/index.ts
|
|
68
|
-
var
|
|
69
|
-
__export(
|
|
68
|
+
var index_exports = {};
|
|
69
|
+
__export(index_exports, {
|
|
70
70
|
AuthenticationApi: () => AuthenticationApi,
|
|
71
71
|
AuthenticationApiAxiosParamCreator: () => AuthenticationApiAxiosParamCreator,
|
|
72
72
|
AuthenticationApiFactory: () => AuthenticationApiFactory,
|
|
73
73
|
AuthenticationApiFp: () => AuthenticationApiFp,
|
|
74
|
+
BotTokensApi: () => BotTokensApi,
|
|
75
|
+
BotTokensApiAxiosParamCreator: () => BotTokensApiAxiosParamCreator,
|
|
76
|
+
BotTokensApiFactory: () => BotTokensApiFactory,
|
|
77
|
+
BotTokensApiFp: () => BotTokensApiFp,
|
|
74
78
|
BotsApi: () => BotsApi,
|
|
75
79
|
BotsApiAxiosParamCreator: () => BotsApiAxiosParamCreator,
|
|
76
80
|
BotsApiFactory: () => BotsApiFactory,
|
|
@@ -135,6 +139,7 @@ __export(src_exports, {
|
|
|
135
139
|
HelmRegistriesApiAxiosParamCreator: () => HelmRegistriesApiAxiosParamCreator,
|
|
136
140
|
HelmRegistriesApiFactory: () => HelmRegistriesApiFactory,
|
|
137
141
|
HelmRegistriesApiFp: () => HelmRegistriesApiFp,
|
|
142
|
+
HelmRegistryProvider: () => HelmRegistryProvider,
|
|
138
143
|
HelmTagFormatsApi: () => HelmTagFormatsApi,
|
|
139
144
|
HelmTagFormatsApiAxiosParamCreator: () => HelmTagFormatsApiAxiosParamCreator,
|
|
140
145
|
HelmTagFormatsApiFactory: () => HelmTagFormatsApiFactory,
|
|
@@ -165,7 +170,7 @@ __export(src_exports, {
|
|
|
165
170
|
UsersApiFactory: () => UsersApiFactory,
|
|
166
171
|
UsersApiFp: () => UsersApiFp
|
|
167
172
|
});
|
|
168
|
-
module.exports = __toCommonJS(
|
|
173
|
+
module.exports = __toCommonJS(index_exports);
|
|
169
174
|
|
|
170
175
|
// src/api.ts
|
|
171
176
|
var import_axios2 = __toESM(require("axios"));
|
|
@@ -219,7 +224,7 @@ var setBearerAuthToObject = function(object, configuration) {
|
|
|
219
224
|
function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
220
225
|
if (parameter == null) return;
|
|
221
226
|
if (typeof parameter === "object") {
|
|
222
|
-
if (Array.isArray(parameter)) {
|
|
227
|
+
if (Array.isArray(parameter) || parameter instanceof Set) {
|
|
223
228
|
parameter.forEach((item) => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
224
229
|
} else {
|
|
225
230
|
Object.keys(parameter).forEach(
|
|
@@ -239,10 +244,17 @@ var setSearchParams = function(url, ...objects) {
|
|
|
239
244
|
setFlattenedQueryParams(searchParams, objects);
|
|
240
245
|
url.search = searchParams.toString();
|
|
241
246
|
};
|
|
247
|
+
var replaceWithSerializableTypeIfNeeded = function(key, value) {
|
|
248
|
+
if (value instanceof Set) {
|
|
249
|
+
return Array.from(value);
|
|
250
|
+
} else {
|
|
251
|
+
return value;
|
|
252
|
+
}
|
|
253
|
+
};
|
|
242
254
|
var serializeDataIfNeeded = function(value, requestOptions, configuration) {
|
|
243
255
|
const nonString = typeof value !== "string";
|
|
244
256
|
const needsSerialization = nonString && configuration && configuration.isJsonMime ? configuration.isJsonMime(requestOptions.headers["Content-Type"]) : nonString;
|
|
245
|
-
return needsSerialization ? JSON.stringify(value !== void 0 ? value : {}) : value || "";
|
|
257
|
+
return needsSerialization ? JSON.stringify(value !== void 0 ? value : {}, replaceWithSerializableTypeIfNeeded) : value || "";
|
|
246
258
|
};
|
|
247
259
|
var toPathString = function(url) {
|
|
248
260
|
return url.pathname + url.search + url.hash;
|
|
@@ -361,6 +373,10 @@ var EnvUserRole = {
|
|
|
361
373
|
Admin: "Admin",
|
|
362
374
|
User: "User"
|
|
363
375
|
};
|
|
376
|
+
var HelmRegistryProvider = {
|
|
377
|
+
Ecr: "Ecr",
|
|
378
|
+
Oci: "Oci"
|
|
379
|
+
};
|
|
364
380
|
var UserDeploymentRole = {
|
|
365
381
|
Owner: "Owner",
|
|
366
382
|
Maintainer: "Maintainer"
|
|
@@ -372,7 +388,7 @@ var AuthenticationApiAxiosParamCreator = function(configuration) {
|
|
|
372
388
|
* @param {*} [options] Override http request option.
|
|
373
389
|
* @throws {RequiredError}
|
|
374
390
|
*/
|
|
375
|
-
authMe: (..._0) => __async(
|
|
391
|
+
authMe: (..._0) => __async(null, [..._0], function* (options = {}) {
|
|
376
392
|
const localVarPath = `/api/v2/auth/me`;
|
|
377
393
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
378
394
|
let baseOptions;
|
|
@@ -384,6 +400,7 @@ var AuthenticationApiAxiosParamCreator = function(configuration) {
|
|
|
384
400
|
const localVarQueryParameter = {};
|
|
385
401
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
386
402
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
403
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
387
404
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
388
405
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
389
406
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -398,7 +415,7 @@ var AuthenticationApiAxiosParamCreator = function(configuration) {
|
|
|
398
415
|
* @param {*} [options] Override http request option.
|
|
399
416
|
* @throws {RequiredError}
|
|
400
417
|
*/
|
|
401
|
-
finishGoogleLogin: (_0, ..._1) => __async(
|
|
418
|
+
finishGoogleLogin: (_0, ..._1) => __async(null, [_0, ..._1], function* (oAuth2Response, options = {}) {
|
|
402
419
|
assertParamExists("finishGoogleLogin", "oAuth2Response", oAuth2Response);
|
|
403
420
|
const localVarPath = `/api/v2/auth/google/callback`;
|
|
404
421
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -410,6 +427,7 @@ var AuthenticationApiAxiosParamCreator = function(configuration) {
|
|
|
410
427
|
const localVarHeaderParameter = {};
|
|
411
428
|
const localVarQueryParameter = {};
|
|
412
429
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
430
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
413
431
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
414
432
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
415
433
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -424,7 +442,7 @@ var AuthenticationApiAxiosParamCreator = function(configuration) {
|
|
|
424
442
|
* @param {*} [options] Override http request option.
|
|
425
443
|
* @throws {RequiredError}
|
|
426
444
|
*/
|
|
427
|
-
startGoogleLogin: (..._0) => __async(
|
|
445
|
+
startGoogleLogin: (..._0) => __async(null, [..._0], function* (options = {}) {
|
|
428
446
|
const localVarPath = `/api/v2/auth/google`;
|
|
429
447
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
430
448
|
let baseOptions;
|
|
@@ -434,6 +452,7 @@ var AuthenticationApiAxiosParamCreator = function(configuration) {
|
|
|
434
452
|
const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
|
|
435
453
|
const localVarHeaderParameter = {};
|
|
436
454
|
const localVarQueryParameter = {};
|
|
455
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
437
456
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
438
457
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
439
458
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -527,7 +546,6 @@ var AuthenticationApi = class extends BaseAPI {
|
|
|
527
546
|
*
|
|
528
547
|
* @param {*} [options] Override http request option.
|
|
529
548
|
* @throws {RequiredError}
|
|
530
|
-
* @memberof AuthenticationApi
|
|
531
549
|
*/
|
|
532
550
|
authMe(options) {
|
|
533
551
|
return AuthenticationApiFp(this.configuration).authMe(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -537,7 +555,6 @@ var AuthenticationApi = class extends BaseAPI {
|
|
|
537
555
|
* @param {AuthenticationApiFinishGoogleLoginRequest} requestParameters Request parameters.
|
|
538
556
|
* @param {*} [options] Override http request option.
|
|
539
557
|
* @throws {RequiredError}
|
|
540
|
-
* @memberof AuthenticationApi
|
|
541
558
|
*/
|
|
542
559
|
finishGoogleLogin(requestParameters, options) {
|
|
543
560
|
return AuthenticationApiFp(this.configuration).finishGoogleLogin(requestParameters.oAuth2Response, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -546,23 +563,284 @@ var AuthenticationApi = class extends BaseAPI {
|
|
|
546
563
|
*
|
|
547
564
|
* @param {*} [options] Override http request option.
|
|
548
565
|
* @throws {RequiredError}
|
|
549
|
-
* @memberof AuthenticationApi
|
|
550
566
|
*/
|
|
551
567
|
startGoogleLogin(options) {
|
|
552
568
|
return AuthenticationApiFp(this.configuration).startGoogleLogin(options).then((request) => request(this.axios, this.basePath));
|
|
553
569
|
}
|
|
554
570
|
};
|
|
571
|
+
var BotTokensApiAxiosParamCreator = function(configuration) {
|
|
572
|
+
return {
|
|
573
|
+
/**
|
|
574
|
+
*
|
|
575
|
+
* @param {string | null} [botId]
|
|
576
|
+
* @param {string | null} [createdByUserId]
|
|
577
|
+
* @param {*} [options] Override http request option.
|
|
578
|
+
* @throws {RequiredError}
|
|
579
|
+
*/
|
|
580
|
+
allBotTokens: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (botId, createdByUserId, options = {}) {
|
|
581
|
+
const localVarPath = `/api/v2/bot-tokens`;
|
|
582
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
583
|
+
let baseOptions;
|
|
584
|
+
if (configuration) {
|
|
585
|
+
baseOptions = configuration.baseOptions;
|
|
586
|
+
}
|
|
587
|
+
const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
|
|
588
|
+
const localVarHeaderParameter = {};
|
|
589
|
+
const localVarQueryParameter = {};
|
|
590
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
591
|
+
if (botId !== void 0) {
|
|
592
|
+
localVarQueryParameter["bot_id"] = botId;
|
|
593
|
+
}
|
|
594
|
+
if (createdByUserId !== void 0) {
|
|
595
|
+
localVarQueryParameter["created_by_user_id"] = createdByUserId;
|
|
596
|
+
}
|
|
597
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
598
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
599
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
600
|
+
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
601
|
+
return {
|
|
602
|
+
url: toPathString(localVarUrlObj),
|
|
603
|
+
options: localVarRequestOptions
|
|
604
|
+
};
|
|
605
|
+
}),
|
|
606
|
+
/**
|
|
607
|
+
*
|
|
608
|
+
* @param {CreateBotToken} createBotToken
|
|
609
|
+
* @param {*} [options] Override http request option.
|
|
610
|
+
* @throws {RequiredError}
|
|
611
|
+
*/
|
|
612
|
+
createBotToken: (_0, ..._1) => __async(null, [_0, ..._1], function* (createBotToken, options = {}) {
|
|
613
|
+
assertParamExists("createBotToken", "createBotToken", createBotToken);
|
|
614
|
+
const localVarPath = `/api/v2/bot-tokens`;
|
|
615
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
616
|
+
let baseOptions;
|
|
617
|
+
if (configuration) {
|
|
618
|
+
baseOptions = configuration.baseOptions;
|
|
619
|
+
}
|
|
620
|
+
const localVarRequestOptions = __spreadValues(__spreadValues({ method: "POST" }, baseOptions), options);
|
|
621
|
+
const localVarHeaderParameter = {};
|
|
622
|
+
const localVarQueryParameter = {};
|
|
623
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
624
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
625
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
626
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
627
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
628
|
+
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
629
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createBotToken, localVarRequestOptions, configuration);
|
|
630
|
+
return {
|
|
631
|
+
url: toPathString(localVarUrlObj),
|
|
632
|
+
options: localVarRequestOptions
|
|
633
|
+
};
|
|
634
|
+
}),
|
|
635
|
+
/**
|
|
636
|
+
*
|
|
637
|
+
* @param {string} id
|
|
638
|
+
* @param {*} [options] Override http request option.
|
|
639
|
+
* @throws {RequiredError}
|
|
640
|
+
*/
|
|
641
|
+
deleteBotToken: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
642
|
+
assertParamExists("deleteBotToken", "id", id);
|
|
643
|
+
const localVarPath = `/api/v2/bot-tokens/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
644
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
645
|
+
let baseOptions;
|
|
646
|
+
if (configuration) {
|
|
647
|
+
baseOptions = configuration.baseOptions;
|
|
648
|
+
}
|
|
649
|
+
const localVarRequestOptions = __spreadValues(__spreadValues({ method: "DELETE" }, baseOptions), options);
|
|
650
|
+
const localVarHeaderParameter = {};
|
|
651
|
+
const localVarQueryParameter = {};
|
|
652
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
653
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
654
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
655
|
+
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
656
|
+
return {
|
|
657
|
+
url: toPathString(localVarUrlObj),
|
|
658
|
+
options: localVarRequestOptions
|
|
659
|
+
};
|
|
660
|
+
}),
|
|
661
|
+
/**
|
|
662
|
+
*
|
|
663
|
+
* @param {string} id
|
|
664
|
+
* @param {*} [options] Override http request option.
|
|
665
|
+
* @throws {RequiredError}
|
|
666
|
+
*/
|
|
667
|
+
getBotToken: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
668
|
+
assertParamExists("getBotToken", "id", id);
|
|
669
|
+
const localVarPath = `/api/v2/bot-tokens/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
670
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
671
|
+
let baseOptions;
|
|
672
|
+
if (configuration) {
|
|
673
|
+
baseOptions = configuration.baseOptions;
|
|
674
|
+
}
|
|
675
|
+
const localVarRequestOptions = __spreadValues(__spreadValues({ method: "GET" }, baseOptions), options);
|
|
676
|
+
const localVarHeaderParameter = {};
|
|
677
|
+
const localVarQueryParameter = {};
|
|
678
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
679
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
680
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
681
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
682
|
+
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
683
|
+
return {
|
|
684
|
+
url: toPathString(localVarUrlObj),
|
|
685
|
+
options: localVarRequestOptions
|
|
686
|
+
};
|
|
687
|
+
})
|
|
688
|
+
};
|
|
689
|
+
};
|
|
690
|
+
var BotTokensApiFp = function(configuration) {
|
|
691
|
+
const localVarAxiosParamCreator = BotTokensApiAxiosParamCreator(configuration);
|
|
692
|
+
return {
|
|
693
|
+
/**
|
|
694
|
+
*
|
|
695
|
+
* @param {string | null} [botId]
|
|
696
|
+
* @param {string | null} [createdByUserId]
|
|
697
|
+
* @param {*} [options] Override http request option.
|
|
698
|
+
* @throws {RequiredError}
|
|
699
|
+
*/
|
|
700
|
+
allBotTokens(botId, createdByUserId, options) {
|
|
701
|
+
return __async(this, null, function* () {
|
|
702
|
+
var _a2, _b, _c;
|
|
703
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allBotTokens(botId, createdByUserId, options);
|
|
704
|
+
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
705
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["BotTokensApi.allBotTokens"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
706
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
707
|
+
});
|
|
708
|
+
},
|
|
709
|
+
/**
|
|
710
|
+
*
|
|
711
|
+
* @param {CreateBotToken} createBotToken
|
|
712
|
+
* @param {*} [options] Override http request option.
|
|
713
|
+
* @throws {RequiredError}
|
|
714
|
+
*/
|
|
715
|
+
createBotToken(createBotToken, options) {
|
|
716
|
+
return __async(this, null, function* () {
|
|
717
|
+
var _a2, _b, _c;
|
|
718
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createBotToken(createBotToken, options);
|
|
719
|
+
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
720
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["BotTokensApi.createBotToken"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
721
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
722
|
+
});
|
|
723
|
+
},
|
|
724
|
+
/**
|
|
725
|
+
*
|
|
726
|
+
* @param {string} id
|
|
727
|
+
* @param {*} [options] Override http request option.
|
|
728
|
+
* @throws {RequiredError}
|
|
729
|
+
*/
|
|
730
|
+
deleteBotToken(id, options) {
|
|
731
|
+
return __async(this, null, function* () {
|
|
732
|
+
var _a2, _b, _c;
|
|
733
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteBotToken(id, options);
|
|
734
|
+
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
735
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["BotTokensApi.deleteBotToken"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
736
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
737
|
+
});
|
|
738
|
+
},
|
|
739
|
+
/**
|
|
740
|
+
*
|
|
741
|
+
* @param {string} id
|
|
742
|
+
* @param {*} [options] Override http request option.
|
|
743
|
+
* @throws {RequiredError}
|
|
744
|
+
*/
|
|
745
|
+
getBotToken(id, options) {
|
|
746
|
+
return __async(this, null, function* () {
|
|
747
|
+
var _a2, _b, _c;
|
|
748
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getBotToken(id, options);
|
|
749
|
+
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
750
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["BotTokensApi.getBotToken"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
751
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
752
|
+
});
|
|
753
|
+
}
|
|
754
|
+
};
|
|
755
|
+
};
|
|
756
|
+
var BotTokensApiFactory = function(configuration, basePath, axios) {
|
|
757
|
+
const localVarFp = BotTokensApiFp(configuration);
|
|
758
|
+
return {
|
|
759
|
+
/**
|
|
760
|
+
*
|
|
761
|
+
* @param {BotTokensApiAllBotTokensRequest} requestParameters Request parameters.
|
|
762
|
+
* @param {*} [options] Override http request option.
|
|
763
|
+
* @throws {RequiredError}
|
|
764
|
+
*/
|
|
765
|
+
allBotTokens(requestParameters = {}, options) {
|
|
766
|
+
return localVarFp.allBotTokens(requestParameters.botId, requestParameters.createdByUserId, options).then((request) => request(axios, basePath));
|
|
767
|
+
},
|
|
768
|
+
/**
|
|
769
|
+
*
|
|
770
|
+
* @param {BotTokensApiCreateBotTokenRequest} requestParameters Request parameters.
|
|
771
|
+
* @param {*} [options] Override http request option.
|
|
772
|
+
* @throws {RequiredError}
|
|
773
|
+
*/
|
|
774
|
+
createBotToken(requestParameters, options) {
|
|
775
|
+
return localVarFp.createBotToken(requestParameters.createBotToken, options).then((request) => request(axios, basePath));
|
|
776
|
+
},
|
|
777
|
+
/**
|
|
778
|
+
*
|
|
779
|
+
* @param {BotTokensApiDeleteBotTokenRequest} requestParameters Request parameters.
|
|
780
|
+
* @param {*} [options] Override http request option.
|
|
781
|
+
* @throws {RequiredError}
|
|
782
|
+
*/
|
|
783
|
+
deleteBotToken(requestParameters, options) {
|
|
784
|
+
return localVarFp.deleteBotToken(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
785
|
+
},
|
|
786
|
+
/**
|
|
787
|
+
*
|
|
788
|
+
* @param {BotTokensApiGetBotTokenRequest} requestParameters Request parameters.
|
|
789
|
+
* @param {*} [options] Override http request option.
|
|
790
|
+
* @throws {RequiredError}
|
|
791
|
+
*/
|
|
792
|
+
getBotToken(requestParameters, options) {
|
|
793
|
+
return localVarFp.getBotToken(requestParameters.id, options).then((request) => request(axios, basePath));
|
|
794
|
+
}
|
|
795
|
+
};
|
|
796
|
+
};
|
|
797
|
+
var BotTokensApi = class extends BaseAPI {
|
|
798
|
+
/**
|
|
799
|
+
*
|
|
800
|
+
* @param {BotTokensApiAllBotTokensRequest} requestParameters Request parameters.
|
|
801
|
+
* @param {*} [options] Override http request option.
|
|
802
|
+
* @throws {RequiredError}
|
|
803
|
+
*/
|
|
804
|
+
allBotTokens(requestParameters = {}, options) {
|
|
805
|
+
return BotTokensApiFp(this.configuration).allBotTokens(requestParameters.botId, requestParameters.createdByUserId, options).then((request) => request(this.axios, this.basePath));
|
|
806
|
+
}
|
|
807
|
+
/**
|
|
808
|
+
*
|
|
809
|
+
* @param {BotTokensApiCreateBotTokenRequest} requestParameters Request parameters.
|
|
810
|
+
* @param {*} [options] Override http request option.
|
|
811
|
+
* @throws {RequiredError}
|
|
812
|
+
*/
|
|
813
|
+
createBotToken(requestParameters, options) {
|
|
814
|
+
return BotTokensApiFp(this.configuration).createBotToken(requestParameters.createBotToken, options).then((request) => request(this.axios, this.basePath));
|
|
815
|
+
}
|
|
816
|
+
/**
|
|
817
|
+
*
|
|
818
|
+
* @param {BotTokensApiDeleteBotTokenRequest} requestParameters Request parameters.
|
|
819
|
+
* @param {*} [options] Override http request option.
|
|
820
|
+
* @throws {RequiredError}
|
|
821
|
+
*/
|
|
822
|
+
deleteBotToken(requestParameters, options) {
|
|
823
|
+
return BotTokensApiFp(this.configuration).deleteBotToken(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
824
|
+
}
|
|
825
|
+
/**
|
|
826
|
+
*
|
|
827
|
+
* @param {BotTokensApiGetBotTokenRequest} requestParameters Request parameters.
|
|
828
|
+
* @param {*} [options] Override http request option.
|
|
829
|
+
* @throws {RequiredError}
|
|
830
|
+
*/
|
|
831
|
+
getBotToken(requestParameters, options) {
|
|
832
|
+
return BotTokensApiFp(this.configuration).getBotToken(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
833
|
+
}
|
|
834
|
+
};
|
|
555
835
|
var BotsApiAxiosParamCreator = function(configuration) {
|
|
556
836
|
return {
|
|
557
837
|
/**
|
|
558
838
|
*
|
|
559
839
|
* @param {string | null} [displayName]
|
|
560
|
-
* @param {number | null} [page]
|
|
561
|
-
* @param {number | null} [perPage]
|
|
562
840
|
* @param {*} [options] Override http request option.
|
|
563
841
|
* @throws {RequiredError}
|
|
564
842
|
*/
|
|
565
|
-
allBots: (_0, _1
|
|
843
|
+
allBots: (_0, ..._1) => __async(null, [_0, ..._1], function* (displayName, options = {}) {
|
|
566
844
|
const localVarPath = `/api/v2/bots`;
|
|
567
845
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
568
846
|
let baseOptions;
|
|
@@ -577,12 +855,7 @@ var BotsApiAxiosParamCreator = function(configuration) {
|
|
|
577
855
|
if (displayName !== void 0) {
|
|
578
856
|
localVarQueryParameter["display_name"] = displayName;
|
|
579
857
|
}
|
|
580
|
-
|
|
581
|
-
localVarQueryParameter["page"] = page;
|
|
582
|
-
}
|
|
583
|
-
if (perPage !== void 0) {
|
|
584
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
585
|
-
}
|
|
858
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
586
859
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
587
860
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
588
861
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -597,9 +870,9 @@ var BotsApiAxiosParamCreator = function(configuration) {
|
|
|
597
870
|
* @param {*} [options] Override http request option.
|
|
598
871
|
* @throws {RequiredError}
|
|
599
872
|
*/
|
|
600
|
-
getBot: (_0, ..._1) => __async(
|
|
873
|
+
getBot: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
601
874
|
assertParamExists("getBot", "id", id);
|
|
602
|
-
const localVarPath = `/api/v2/bots/{id}`.replace(
|
|
875
|
+
const localVarPath = `/api/v2/bots/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
603
876
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
604
877
|
let baseOptions;
|
|
605
878
|
if (configuration) {
|
|
@@ -610,6 +883,7 @@ var BotsApiAxiosParamCreator = function(configuration) {
|
|
|
610
883
|
const localVarQueryParameter = {};
|
|
611
884
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
612
885
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
886
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
613
887
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
614
888
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
615
889
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -625,10 +899,10 @@ var BotsApiAxiosParamCreator = function(configuration) {
|
|
|
625
899
|
* @param {*} [options] Override http request option.
|
|
626
900
|
* @throws {RequiredError}
|
|
627
901
|
*/
|
|
628
|
-
updateBot: (_0, _1, ..._2) => __async(
|
|
902
|
+
updateBot: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (id, updateBot, options = {}) {
|
|
629
903
|
assertParamExists("updateBot", "id", id);
|
|
630
904
|
assertParamExists("updateBot", "updateBot", updateBot);
|
|
631
|
-
const localVarPath = `/api/v2/bots/{id}`.replace(
|
|
905
|
+
const localVarPath = `/api/v2/bots/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
632
906
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
633
907
|
let baseOptions;
|
|
634
908
|
if (configuration) {
|
|
@@ -640,6 +914,7 @@ var BotsApiAxiosParamCreator = function(configuration) {
|
|
|
640
914
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
641
915
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
642
916
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
917
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
643
918
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
644
919
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
645
920
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -657,15 +932,13 @@ var BotsApiFp = function(configuration) {
|
|
|
657
932
|
/**
|
|
658
933
|
*
|
|
659
934
|
* @param {string | null} [displayName]
|
|
660
|
-
* @param {number | null} [page]
|
|
661
|
-
* @param {number | null} [perPage]
|
|
662
935
|
* @param {*} [options] Override http request option.
|
|
663
936
|
* @throws {RequiredError}
|
|
664
937
|
*/
|
|
665
|
-
allBots(displayName,
|
|
938
|
+
allBots(displayName, options) {
|
|
666
939
|
return __async(this, null, function* () {
|
|
667
940
|
var _a2, _b, _c;
|
|
668
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allBots(displayName,
|
|
941
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allBots(displayName, options);
|
|
669
942
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
670
943
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["BotsApi.allBots"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
671
944
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -714,7 +987,7 @@ var BotsApiFactory = function(configuration, basePath, axios) {
|
|
|
714
987
|
* @throws {RequiredError}
|
|
715
988
|
*/
|
|
716
989
|
allBots(requestParameters = {}, options) {
|
|
717
|
-
return localVarFp.allBots(requestParameters.displayName,
|
|
990
|
+
return localVarFp.allBots(requestParameters.displayName, options).then((request) => request(axios, basePath));
|
|
718
991
|
},
|
|
719
992
|
/**
|
|
720
993
|
*
|
|
@@ -742,17 +1015,15 @@ var BotsApi = class extends BaseAPI {
|
|
|
742
1015
|
* @param {BotsApiAllBotsRequest} requestParameters Request parameters.
|
|
743
1016
|
* @param {*} [options] Override http request option.
|
|
744
1017
|
* @throws {RequiredError}
|
|
745
|
-
* @memberof BotsApi
|
|
746
1018
|
*/
|
|
747
1019
|
allBots(requestParameters = {}, options) {
|
|
748
|
-
return BotsApiFp(this.configuration).allBots(requestParameters.displayName,
|
|
1020
|
+
return BotsApiFp(this.configuration).allBots(requestParameters.displayName, options).then((request) => request(this.axios, this.basePath));
|
|
749
1021
|
}
|
|
750
1022
|
/**
|
|
751
1023
|
*
|
|
752
1024
|
* @param {BotsApiGetBotRequest} requestParameters Request parameters.
|
|
753
1025
|
* @param {*} [options] Override http request option.
|
|
754
1026
|
* @throws {RequiredError}
|
|
755
|
-
* @memberof BotsApi
|
|
756
1027
|
*/
|
|
757
1028
|
getBot(requestParameters, options) {
|
|
758
1029
|
return BotsApiFp(this.configuration).getBot(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -762,7 +1033,6 @@ var BotsApi = class extends BaseAPI {
|
|
|
762
1033
|
* @param {BotsApiUpdateBotRequest} requestParameters Request parameters.
|
|
763
1034
|
* @param {*} [options] Override http request option.
|
|
764
1035
|
* @throws {RequiredError}
|
|
765
|
-
* @memberof BotsApi
|
|
766
1036
|
*/
|
|
767
1037
|
updateBot(requestParameters, options) {
|
|
768
1038
|
return BotsApiFp(this.configuration).updateBot(requestParameters.id, requestParameters.updateBot, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -773,12 +1043,10 @@ var DeploymentKindsApiAxiosParamCreator = function(configuration) {
|
|
|
773
1043
|
/**
|
|
774
1044
|
*
|
|
775
1045
|
* @param {string | null} [name]
|
|
776
|
-
* @param {number | null} [page]
|
|
777
|
-
* @param {number | null} [perPage]
|
|
778
1046
|
* @param {*} [options] Override http request option.
|
|
779
1047
|
* @throws {RequiredError}
|
|
780
1048
|
*/
|
|
781
|
-
allDeploymentKinds: (_0, _1
|
|
1049
|
+
allDeploymentKinds: (_0, ..._1) => __async(null, [_0, ..._1], function* (name, options = {}) {
|
|
782
1050
|
const localVarPath = `/api/v2/deployment-kinds`;
|
|
783
1051
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
784
1052
|
let baseOptions;
|
|
@@ -793,12 +1061,7 @@ var DeploymentKindsApiAxiosParamCreator = function(configuration) {
|
|
|
793
1061
|
if (name !== void 0) {
|
|
794
1062
|
localVarQueryParameter["name"] = name;
|
|
795
1063
|
}
|
|
796
|
-
|
|
797
|
-
localVarQueryParameter["page"] = page;
|
|
798
|
-
}
|
|
799
|
-
if (perPage !== void 0) {
|
|
800
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
801
|
-
}
|
|
1064
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
802
1065
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
803
1066
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
804
1067
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -813,9 +1076,9 @@ var DeploymentKindsApiAxiosParamCreator = function(configuration) {
|
|
|
813
1076
|
* @param {*} [options] Override http request option.
|
|
814
1077
|
* @throws {RequiredError}
|
|
815
1078
|
*/
|
|
816
|
-
getDeploymentKind: (_0, ..._1) => __async(
|
|
1079
|
+
getDeploymentKind: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
817
1080
|
assertParamExists("getDeploymentKind", "id", id);
|
|
818
|
-
const localVarPath = `/api/v2/deployment-kinds/{id}`.replace(
|
|
1081
|
+
const localVarPath = `/api/v2/deployment-kinds/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
819
1082
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
820
1083
|
let baseOptions;
|
|
821
1084
|
if (configuration) {
|
|
@@ -826,6 +1089,7 @@ var DeploymentKindsApiAxiosParamCreator = function(configuration) {
|
|
|
826
1089
|
const localVarQueryParameter = {};
|
|
827
1090
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
828
1091
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
1092
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
829
1093
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
830
1094
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
831
1095
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -841,10 +1105,10 @@ var DeploymentKindsApiAxiosParamCreator = function(configuration) {
|
|
|
841
1105
|
* @param {*} [options] Override http request option.
|
|
842
1106
|
* @throws {RequiredError}
|
|
843
1107
|
*/
|
|
844
|
-
updateDeploymentKind: (_0, _1, ..._2) => __async(
|
|
1108
|
+
updateDeploymentKind: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (id, updateDeploymentKind, options = {}) {
|
|
845
1109
|
assertParamExists("updateDeploymentKind", "id", id);
|
|
846
1110
|
assertParamExists("updateDeploymentKind", "updateDeploymentKind", updateDeploymentKind);
|
|
847
|
-
const localVarPath = `/api/v2/deployment-kinds/{id}`.replace(
|
|
1111
|
+
const localVarPath = `/api/v2/deployment-kinds/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
848
1112
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
849
1113
|
let baseOptions;
|
|
850
1114
|
if (configuration) {
|
|
@@ -856,6 +1120,7 @@ var DeploymentKindsApiAxiosParamCreator = function(configuration) {
|
|
|
856
1120
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
857
1121
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
858
1122
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1123
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
859
1124
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
860
1125
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
861
1126
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -873,15 +1138,13 @@ var DeploymentKindsApiFp = function(configuration) {
|
|
|
873
1138
|
/**
|
|
874
1139
|
*
|
|
875
1140
|
* @param {string | null} [name]
|
|
876
|
-
* @param {number | null} [page]
|
|
877
|
-
* @param {number | null} [perPage]
|
|
878
1141
|
* @param {*} [options] Override http request option.
|
|
879
1142
|
* @throws {RequiredError}
|
|
880
1143
|
*/
|
|
881
|
-
allDeploymentKinds(name,
|
|
1144
|
+
allDeploymentKinds(name, options) {
|
|
882
1145
|
return __async(this, null, function* () {
|
|
883
1146
|
var _a2, _b, _c;
|
|
884
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeploymentKinds(name,
|
|
1147
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeploymentKinds(name, options);
|
|
885
1148
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
886
1149
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DeploymentKindsApi.allDeploymentKinds"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
887
1150
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -930,7 +1193,7 @@ var DeploymentKindsApiFactory = function(configuration, basePath, axios) {
|
|
|
930
1193
|
* @throws {RequiredError}
|
|
931
1194
|
*/
|
|
932
1195
|
allDeploymentKinds(requestParameters = {}, options) {
|
|
933
|
-
return localVarFp.allDeploymentKinds(requestParameters.name,
|
|
1196
|
+
return localVarFp.allDeploymentKinds(requestParameters.name, options).then((request) => request(axios, basePath));
|
|
934
1197
|
},
|
|
935
1198
|
/**
|
|
936
1199
|
*
|
|
@@ -958,17 +1221,15 @@ var DeploymentKindsApi = class extends BaseAPI {
|
|
|
958
1221
|
* @param {DeploymentKindsApiAllDeploymentKindsRequest} requestParameters Request parameters.
|
|
959
1222
|
* @param {*} [options] Override http request option.
|
|
960
1223
|
* @throws {RequiredError}
|
|
961
|
-
* @memberof DeploymentKindsApi
|
|
962
1224
|
*/
|
|
963
1225
|
allDeploymentKinds(requestParameters = {}, options) {
|
|
964
|
-
return DeploymentKindsApiFp(this.configuration).allDeploymentKinds(requestParameters.name,
|
|
1226
|
+
return DeploymentKindsApiFp(this.configuration).allDeploymentKinds(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
965
1227
|
}
|
|
966
1228
|
/**
|
|
967
1229
|
*
|
|
968
1230
|
* @param {DeploymentKindsApiGetDeploymentKindRequest} requestParameters Request parameters.
|
|
969
1231
|
* @param {*} [options] Override http request option.
|
|
970
1232
|
* @throws {RequiredError}
|
|
971
|
-
* @memberof DeploymentKindsApi
|
|
972
1233
|
*/
|
|
973
1234
|
getDeploymentKind(requestParameters, options) {
|
|
974
1235
|
return DeploymentKindsApiFp(this.configuration).getDeploymentKind(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -978,7 +1239,6 @@ var DeploymentKindsApi = class extends BaseAPI {
|
|
|
978
1239
|
* @param {DeploymentKindsApiUpdateDeploymentKindRequest} requestParameters Request parameters.
|
|
979
1240
|
* @param {*} [options] Override http request option.
|
|
980
1241
|
* @throws {RequiredError}
|
|
981
|
-
* @memberof DeploymentKindsApi
|
|
982
1242
|
*/
|
|
983
1243
|
updateDeploymentKind(requestParameters, options) {
|
|
984
1244
|
return DeploymentKindsApiFp(this.configuration).updateDeploymentKind(requestParameters.id, requestParameters.updateDeploymentKind, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -989,12 +1249,10 @@ var DeploymentPermissionsApiAxiosParamCreator = function(configuration) {
|
|
|
989
1249
|
/**
|
|
990
1250
|
*
|
|
991
1251
|
* @param {string | null} [envId]
|
|
992
|
-
* @param {number | null} [page]
|
|
993
|
-
* @param {number | null} [perPage]
|
|
994
1252
|
* @param {*} [options] Override http request option.
|
|
995
1253
|
* @throws {RequiredError}
|
|
996
1254
|
*/
|
|
997
|
-
allDeploymentPermissions: (_0, _1
|
|
1255
|
+
allDeploymentPermissions: (_0, ..._1) => __async(null, [_0, ..._1], function* (envId, options = {}) {
|
|
998
1256
|
const localVarPath = `/api/v2/deployment-permissions`;
|
|
999
1257
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1000
1258
|
let baseOptions;
|
|
@@ -1009,12 +1267,7 @@ var DeploymentPermissionsApiAxiosParamCreator = function(configuration) {
|
|
|
1009
1267
|
if (envId !== void 0) {
|
|
1010
1268
|
localVarQueryParameter["env_id"] = envId;
|
|
1011
1269
|
}
|
|
1012
|
-
|
|
1013
|
-
localVarQueryParameter["page"] = page;
|
|
1014
|
-
}
|
|
1015
|
-
if (perPage !== void 0) {
|
|
1016
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
1017
|
-
}
|
|
1270
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1018
1271
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1019
1272
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1020
1273
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1029,7 +1282,7 @@ var DeploymentPermissionsApiAxiosParamCreator = function(configuration) {
|
|
|
1029
1282
|
* @param {*} [options] Override http request option.
|
|
1030
1283
|
* @throws {RequiredError}
|
|
1031
1284
|
*/
|
|
1032
|
-
createDeploymentPermission: (_0, ..._1) => __async(
|
|
1285
|
+
createDeploymentPermission: (_0, ..._1) => __async(null, [_0, ..._1], function* (newDeploymentPermission, options = {}) {
|
|
1033
1286
|
assertParamExists("createDeploymentPermission", "newDeploymentPermission", newDeploymentPermission);
|
|
1034
1287
|
const localVarPath = `/api/v2/deployment-permissions`;
|
|
1035
1288
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1043,6 +1296,7 @@ var DeploymentPermissionsApiAxiosParamCreator = function(configuration) {
|
|
|
1043
1296
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1044
1297
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
1045
1298
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1299
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1046
1300
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1047
1301
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1048
1302
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1058,9 +1312,9 @@ var DeploymentPermissionsApiAxiosParamCreator = function(configuration) {
|
|
|
1058
1312
|
* @param {*} [options] Override http request option.
|
|
1059
1313
|
* @throws {RequiredError}
|
|
1060
1314
|
*/
|
|
1061
|
-
deleteDeploymentPermission: (_0, ..._1) => __async(
|
|
1315
|
+
deleteDeploymentPermission: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
1062
1316
|
assertParamExists("deleteDeploymentPermission", "id", id);
|
|
1063
|
-
const localVarPath = `/api/v2/deployment-permissions/{id}`.replace(
|
|
1317
|
+
const localVarPath = `/api/v2/deployment-permissions/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
1064
1318
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1065
1319
|
let baseOptions;
|
|
1066
1320
|
if (configuration) {
|
|
@@ -1085,9 +1339,9 @@ var DeploymentPermissionsApiAxiosParamCreator = function(configuration) {
|
|
|
1085
1339
|
* @param {*} [options] Override http request option.
|
|
1086
1340
|
* @throws {RequiredError}
|
|
1087
1341
|
*/
|
|
1088
|
-
getDeploymentPermission: (_0, ..._1) => __async(
|
|
1342
|
+
getDeploymentPermission: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
1089
1343
|
assertParamExists("getDeploymentPermission", "id", id);
|
|
1090
|
-
const localVarPath = `/api/v2/deployment-permissions/{id}`.replace(
|
|
1344
|
+
const localVarPath = `/api/v2/deployment-permissions/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
1091
1345
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1092
1346
|
let baseOptions;
|
|
1093
1347
|
if (configuration) {
|
|
@@ -1098,6 +1352,7 @@ var DeploymentPermissionsApiAxiosParamCreator = function(configuration) {
|
|
|
1098
1352
|
const localVarQueryParameter = {};
|
|
1099
1353
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1100
1354
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
1355
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1101
1356
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1102
1357
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1103
1358
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1114,15 +1369,13 @@ var DeploymentPermissionsApiFp = function(configuration) {
|
|
|
1114
1369
|
/**
|
|
1115
1370
|
*
|
|
1116
1371
|
* @param {string | null} [envId]
|
|
1117
|
-
* @param {number | null} [page]
|
|
1118
|
-
* @param {number | null} [perPage]
|
|
1119
1372
|
* @param {*} [options] Override http request option.
|
|
1120
1373
|
* @throws {RequiredError}
|
|
1121
1374
|
*/
|
|
1122
|
-
allDeploymentPermissions(envId,
|
|
1375
|
+
allDeploymentPermissions(envId, options) {
|
|
1123
1376
|
return __async(this, null, function* () {
|
|
1124
1377
|
var _a2, _b, _c;
|
|
1125
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeploymentPermissions(envId,
|
|
1378
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeploymentPermissions(envId, options);
|
|
1126
1379
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
1127
1380
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DeploymentPermissionsApi.allDeploymentPermissions"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
1128
1381
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1185,7 +1438,7 @@ var DeploymentPermissionsApiFactory = function(configuration, basePath, axios) {
|
|
|
1185
1438
|
* @throws {RequiredError}
|
|
1186
1439
|
*/
|
|
1187
1440
|
allDeploymentPermissions(requestParameters = {}, options) {
|
|
1188
|
-
return localVarFp.allDeploymentPermissions(requestParameters.envId,
|
|
1441
|
+
return localVarFp.allDeploymentPermissions(requestParameters.envId, options).then((request) => request(axios, basePath));
|
|
1189
1442
|
},
|
|
1190
1443
|
/**
|
|
1191
1444
|
*
|
|
@@ -1222,17 +1475,15 @@ var DeploymentPermissionsApi = class extends BaseAPI {
|
|
|
1222
1475
|
* @param {DeploymentPermissionsApiAllDeploymentPermissionsRequest} requestParameters Request parameters.
|
|
1223
1476
|
* @param {*} [options] Override http request option.
|
|
1224
1477
|
* @throws {RequiredError}
|
|
1225
|
-
* @memberof DeploymentPermissionsApi
|
|
1226
1478
|
*/
|
|
1227
1479
|
allDeploymentPermissions(requestParameters = {}, options) {
|
|
1228
|
-
return DeploymentPermissionsApiFp(this.configuration).allDeploymentPermissions(requestParameters.envId,
|
|
1480
|
+
return DeploymentPermissionsApiFp(this.configuration).allDeploymentPermissions(requestParameters.envId, options).then((request) => request(this.axios, this.basePath));
|
|
1229
1481
|
}
|
|
1230
1482
|
/**
|
|
1231
1483
|
*
|
|
1232
1484
|
* @param {DeploymentPermissionsApiCreateDeploymentPermissionRequest} requestParameters Request parameters.
|
|
1233
1485
|
* @param {*} [options] Override http request option.
|
|
1234
1486
|
* @throws {RequiredError}
|
|
1235
|
-
* @memberof DeploymentPermissionsApi
|
|
1236
1487
|
*/
|
|
1237
1488
|
createDeploymentPermission(requestParameters, options) {
|
|
1238
1489
|
return DeploymentPermissionsApiFp(this.configuration).createDeploymentPermission(requestParameters.newDeploymentPermission, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1242,7 +1493,6 @@ var DeploymentPermissionsApi = class extends BaseAPI {
|
|
|
1242
1493
|
* @param {DeploymentPermissionsApiDeleteDeploymentPermissionRequest} requestParameters Request parameters.
|
|
1243
1494
|
* @param {*} [options] Override http request option.
|
|
1244
1495
|
* @throws {RequiredError}
|
|
1245
|
-
* @memberof DeploymentPermissionsApi
|
|
1246
1496
|
*/
|
|
1247
1497
|
deleteDeploymentPermission(requestParameters, options) {
|
|
1248
1498
|
return DeploymentPermissionsApiFp(this.configuration).deleteDeploymentPermission(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1252,7 +1502,6 @@ var DeploymentPermissionsApi = class extends BaseAPI {
|
|
|
1252
1502
|
* @param {DeploymentPermissionsApiGetDeploymentPermissionRequest} requestParameters Request parameters.
|
|
1253
1503
|
* @param {*} [options] Override http request option.
|
|
1254
1504
|
* @throws {RequiredError}
|
|
1255
|
-
* @memberof DeploymentPermissionsApi
|
|
1256
1505
|
*/
|
|
1257
1506
|
getDeploymentPermission(requestParameters, options) {
|
|
1258
1507
|
return DeploymentPermissionsApiFp(this.configuration).getDeploymentPermission(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1265,12 +1514,10 @@ var DeploymentResourceTypesApiAxiosParamCreator = function(configuration) {
|
|
|
1265
1514
|
* @param {string | null} [envId]
|
|
1266
1515
|
* @param {string | null} [deploymentKindId]
|
|
1267
1516
|
* @param {string | null} [key]
|
|
1268
|
-
* @param {number | null} [page]
|
|
1269
|
-
* @param {number | null} [perPage]
|
|
1270
1517
|
* @param {*} [options] Override http request option.
|
|
1271
1518
|
* @throws {RequiredError}
|
|
1272
1519
|
*/
|
|
1273
|
-
allDeploymentResourceTypes: (_0, _1, _2, _3
|
|
1520
|
+
allDeploymentResourceTypes: (_0, _1, _2, ..._3) => __async(null, [_0, _1, _2, ..._3], function* (envId, deploymentKindId, key, options = {}) {
|
|
1274
1521
|
const localVarPath = `/api/v2/deployment-resource-types`;
|
|
1275
1522
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1276
1523
|
let baseOptions;
|
|
@@ -1291,12 +1538,7 @@ var DeploymentResourceTypesApiAxiosParamCreator = function(configuration) {
|
|
|
1291
1538
|
if (key !== void 0) {
|
|
1292
1539
|
localVarQueryParameter["key"] = key;
|
|
1293
1540
|
}
|
|
1294
|
-
|
|
1295
|
-
localVarQueryParameter["page"] = page;
|
|
1296
|
-
}
|
|
1297
|
-
if (perPage !== void 0) {
|
|
1298
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
1299
|
-
}
|
|
1541
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1300
1542
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1301
1543
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1302
1544
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1311,9 +1553,9 @@ var DeploymentResourceTypesApiAxiosParamCreator = function(configuration) {
|
|
|
1311
1553
|
* @param {*} [options] Override http request option.
|
|
1312
1554
|
* @throws {RequiredError}
|
|
1313
1555
|
*/
|
|
1314
|
-
getDeploymentResourceType: (_0, ..._1) => __async(
|
|
1556
|
+
getDeploymentResourceType: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
1315
1557
|
assertParamExists("getDeploymentResourceType", "id", id);
|
|
1316
|
-
const localVarPath = `/api/v2/deployment-resource-types/{id}`.replace(
|
|
1558
|
+
const localVarPath = `/api/v2/deployment-resource-types/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
1317
1559
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1318
1560
|
let baseOptions;
|
|
1319
1561
|
if (configuration) {
|
|
@@ -1324,6 +1566,7 @@ var DeploymentResourceTypesApiAxiosParamCreator = function(configuration) {
|
|
|
1324
1566
|
const localVarQueryParameter = {};
|
|
1325
1567
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1326
1568
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
1569
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1327
1570
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1328
1571
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1329
1572
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1342,15 +1585,13 @@ var DeploymentResourceTypesApiFp = function(configuration) {
|
|
|
1342
1585
|
* @param {string | null} [envId]
|
|
1343
1586
|
* @param {string | null} [deploymentKindId]
|
|
1344
1587
|
* @param {string | null} [key]
|
|
1345
|
-
* @param {number | null} [page]
|
|
1346
|
-
* @param {number | null} [perPage]
|
|
1347
1588
|
* @param {*} [options] Override http request option.
|
|
1348
1589
|
* @throws {RequiredError}
|
|
1349
1590
|
*/
|
|
1350
|
-
allDeploymentResourceTypes(envId, deploymentKindId, key,
|
|
1591
|
+
allDeploymentResourceTypes(envId, deploymentKindId, key, options) {
|
|
1351
1592
|
return __async(this, null, function* () {
|
|
1352
1593
|
var _a2, _b, _c;
|
|
1353
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeploymentResourceTypes(envId, deploymentKindId, key,
|
|
1594
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeploymentResourceTypes(envId, deploymentKindId, key, options);
|
|
1354
1595
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
1355
1596
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DeploymentResourceTypesApi.allDeploymentResourceTypes"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
1356
1597
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1383,7 +1624,7 @@ var DeploymentResourceTypesApiFactory = function(configuration, basePath, axios)
|
|
|
1383
1624
|
* @throws {RequiredError}
|
|
1384
1625
|
*/
|
|
1385
1626
|
allDeploymentResourceTypes(requestParameters = {}, options) {
|
|
1386
|
-
return localVarFp.allDeploymentResourceTypes(requestParameters.envId, requestParameters.deploymentKindId, requestParameters.key,
|
|
1627
|
+
return localVarFp.allDeploymentResourceTypes(requestParameters.envId, requestParameters.deploymentKindId, requestParameters.key, options).then((request) => request(axios, basePath));
|
|
1387
1628
|
},
|
|
1388
1629
|
/**
|
|
1389
1630
|
*
|
|
@@ -1402,17 +1643,15 @@ var DeploymentResourceTypesApi = class extends BaseAPI {
|
|
|
1402
1643
|
* @param {DeploymentResourceTypesApiAllDeploymentResourceTypesRequest} requestParameters Request parameters.
|
|
1403
1644
|
* @param {*} [options] Override http request option.
|
|
1404
1645
|
* @throws {RequiredError}
|
|
1405
|
-
* @memberof DeploymentResourceTypesApi
|
|
1406
1646
|
*/
|
|
1407
1647
|
allDeploymentResourceTypes(requestParameters = {}, options) {
|
|
1408
|
-
return DeploymentResourceTypesApiFp(this.configuration).allDeploymentResourceTypes(requestParameters.envId, requestParameters.deploymentKindId, requestParameters.key,
|
|
1648
|
+
return DeploymentResourceTypesApiFp(this.configuration).allDeploymentResourceTypes(requestParameters.envId, requestParameters.deploymentKindId, requestParameters.key, options).then((request) => request(this.axios, this.basePath));
|
|
1409
1649
|
}
|
|
1410
1650
|
/**
|
|
1411
1651
|
*
|
|
1412
1652
|
* @param {DeploymentResourceTypesApiGetDeploymentResourceTypeRequest} requestParameters Request parameters.
|
|
1413
1653
|
* @param {*} [options] Override http request option.
|
|
1414
1654
|
* @throws {RequiredError}
|
|
1415
|
-
* @memberof DeploymentResourceTypesApi
|
|
1416
1655
|
*/
|
|
1417
1656
|
getDeploymentResourceType(requestParameters, options) {
|
|
1418
1657
|
return DeploymentResourceTypesApiFp(this.configuration).getDeploymentResourceType(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1423,12 +1662,10 @@ var DeploymentResourcesApiAxiosParamCreator = function(configuration) {
|
|
|
1423
1662
|
/**
|
|
1424
1663
|
*
|
|
1425
1664
|
* @param {string | null} [typeId]
|
|
1426
|
-
* @param {number | null} [page]
|
|
1427
|
-
* @param {number | null} [perPage]
|
|
1428
1665
|
* @param {*} [options] Override http request option.
|
|
1429
1666
|
* @throws {RequiredError}
|
|
1430
1667
|
*/
|
|
1431
|
-
allDeploymentResources: (_0, _1
|
|
1668
|
+
allDeploymentResources: (_0, ..._1) => __async(null, [_0, ..._1], function* (typeId, options = {}) {
|
|
1432
1669
|
const localVarPath = `/api/v2/deployment-resources`;
|
|
1433
1670
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1434
1671
|
let baseOptions;
|
|
@@ -1443,12 +1680,7 @@ var DeploymentResourcesApiAxiosParamCreator = function(configuration) {
|
|
|
1443
1680
|
if (typeId !== void 0) {
|
|
1444
1681
|
localVarQueryParameter["type_id"] = typeId;
|
|
1445
1682
|
}
|
|
1446
|
-
|
|
1447
|
-
localVarQueryParameter["page"] = page;
|
|
1448
|
-
}
|
|
1449
|
-
if (perPage !== void 0) {
|
|
1450
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
1451
|
-
}
|
|
1683
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1452
1684
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1453
1685
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1454
1686
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1463,7 +1695,7 @@ var DeploymentResourcesApiAxiosParamCreator = function(configuration) {
|
|
|
1463
1695
|
* @param {*} [options] Override http request option.
|
|
1464
1696
|
* @throws {RequiredError}
|
|
1465
1697
|
*/
|
|
1466
|
-
createDeploymentResource: (_0, ..._1) => __async(
|
|
1698
|
+
createDeploymentResource: (_0, ..._1) => __async(null, [_0, ..._1], function* (newDeploymentResource, options = {}) {
|
|
1467
1699
|
assertParamExists("createDeploymentResource", "newDeploymentResource", newDeploymentResource);
|
|
1468
1700
|
const localVarPath = `/api/v2/deployment-resources`;
|
|
1469
1701
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1477,6 +1709,7 @@ var DeploymentResourcesApiAxiosParamCreator = function(configuration) {
|
|
|
1477
1709
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1478
1710
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
1479
1711
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1712
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1480
1713
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1481
1714
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1482
1715
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1492,9 +1725,9 @@ var DeploymentResourcesApiAxiosParamCreator = function(configuration) {
|
|
|
1492
1725
|
* @param {*} [options] Override http request option.
|
|
1493
1726
|
* @throws {RequiredError}
|
|
1494
1727
|
*/
|
|
1495
|
-
deleteDeploymentResource: (_0, ..._1) => __async(
|
|
1728
|
+
deleteDeploymentResource: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
1496
1729
|
assertParamExists("deleteDeploymentResource", "id", id);
|
|
1497
|
-
const localVarPath = `/api/v2/deployment-resources/{id}`.replace(
|
|
1730
|
+
const localVarPath = `/api/v2/deployment-resources/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
1498
1731
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1499
1732
|
let baseOptions;
|
|
1500
1733
|
if (configuration) {
|
|
@@ -1519,9 +1752,9 @@ var DeploymentResourcesApiAxiosParamCreator = function(configuration) {
|
|
|
1519
1752
|
* @param {*} [options] Override http request option.
|
|
1520
1753
|
* @throws {RequiredError}
|
|
1521
1754
|
*/
|
|
1522
|
-
getDeploymentResource: (_0, ..._1) => __async(
|
|
1755
|
+
getDeploymentResource: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
1523
1756
|
assertParamExists("getDeploymentResource", "id", id);
|
|
1524
|
-
const localVarPath = `/api/v2/deployment-resources/{id}`.replace(
|
|
1757
|
+
const localVarPath = `/api/v2/deployment-resources/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
1525
1758
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1526
1759
|
let baseOptions;
|
|
1527
1760
|
if (configuration) {
|
|
@@ -1532,6 +1765,7 @@ var DeploymentResourcesApiAxiosParamCreator = function(configuration) {
|
|
|
1532
1765
|
const localVarQueryParameter = {};
|
|
1533
1766
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1534
1767
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
1768
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1535
1769
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1536
1770
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1537
1771
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1547,10 +1781,10 @@ var DeploymentResourcesApiAxiosParamCreator = function(configuration) {
|
|
|
1547
1781
|
* @param {*} [options] Override http request option.
|
|
1548
1782
|
* @throws {RequiredError}
|
|
1549
1783
|
*/
|
|
1550
|
-
updateDeploymentResource: (_0, _1, ..._2) => __async(
|
|
1784
|
+
updateDeploymentResource: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (id, updateDeploymentResource, options = {}) {
|
|
1551
1785
|
assertParamExists("updateDeploymentResource", "id", id);
|
|
1552
1786
|
assertParamExists("updateDeploymentResource", "updateDeploymentResource", updateDeploymentResource);
|
|
1553
|
-
const localVarPath = `/api/v2/deployment-resources/{id}`.replace(
|
|
1787
|
+
const localVarPath = `/api/v2/deployment-resources/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
1554
1788
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1555
1789
|
let baseOptions;
|
|
1556
1790
|
if (configuration) {
|
|
@@ -1562,6 +1796,7 @@ var DeploymentResourcesApiAxiosParamCreator = function(configuration) {
|
|
|
1562
1796
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1563
1797
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
1564
1798
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1799
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1565
1800
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1566
1801
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1567
1802
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1579,15 +1814,13 @@ var DeploymentResourcesApiFp = function(configuration) {
|
|
|
1579
1814
|
/**
|
|
1580
1815
|
*
|
|
1581
1816
|
* @param {string | null} [typeId]
|
|
1582
|
-
* @param {number | null} [page]
|
|
1583
|
-
* @param {number | null} [perPage]
|
|
1584
1817
|
* @param {*} [options] Override http request option.
|
|
1585
1818
|
* @throws {RequiredError}
|
|
1586
1819
|
*/
|
|
1587
|
-
allDeploymentResources(typeId,
|
|
1820
|
+
allDeploymentResources(typeId, options) {
|
|
1588
1821
|
return __async(this, null, function* () {
|
|
1589
1822
|
var _a2, _b, _c;
|
|
1590
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeploymentResources(typeId,
|
|
1823
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeploymentResources(typeId, options);
|
|
1591
1824
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
1592
1825
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DeploymentResourcesApi.allDeploymentResources"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
1593
1826
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1666,7 +1899,7 @@ var DeploymentResourcesApiFactory = function(configuration, basePath, axios) {
|
|
|
1666
1899
|
* @throws {RequiredError}
|
|
1667
1900
|
*/
|
|
1668
1901
|
allDeploymentResources(requestParameters = {}, options) {
|
|
1669
|
-
return localVarFp.allDeploymentResources(requestParameters.typeId,
|
|
1902
|
+
return localVarFp.allDeploymentResources(requestParameters.typeId, options).then((request) => request(axios, basePath));
|
|
1670
1903
|
},
|
|
1671
1904
|
/**
|
|
1672
1905
|
*
|
|
@@ -1712,17 +1945,15 @@ var DeploymentResourcesApi = class extends BaseAPI {
|
|
|
1712
1945
|
* @param {DeploymentResourcesApiAllDeploymentResourcesRequest} requestParameters Request parameters.
|
|
1713
1946
|
* @param {*} [options] Override http request option.
|
|
1714
1947
|
* @throws {RequiredError}
|
|
1715
|
-
* @memberof DeploymentResourcesApi
|
|
1716
1948
|
*/
|
|
1717
1949
|
allDeploymentResources(requestParameters = {}, options) {
|
|
1718
|
-
return DeploymentResourcesApiFp(this.configuration).allDeploymentResources(requestParameters.typeId,
|
|
1950
|
+
return DeploymentResourcesApiFp(this.configuration).allDeploymentResources(requestParameters.typeId, options).then((request) => request(this.axios, this.basePath));
|
|
1719
1951
|
}
|
|
1720
1952
|
/**
|
|
1721
1953
|
*
|
|
1722
1954
|
* @param {DeploymentResourcesApiCreateDeploymentResourceRequest} requestParameters Request parameters.
|
|
1723
1955
|
* @param {*} [options] Override http request option.
|
|
1724
1956
|
* @throws {RequiredError}
|
|
1725
|
-
* @memberof DeploymentResourcesApi
|
|
1726
1957
|
*/
|
|
1727
1958
|
createDeploymentResource(requestParameters, options) {
|
|
1728
1959
|
return DeploymentResourcesApiFp(this.configuration).createDeploymentResource(requestParameters.newDeploymentResource, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1732,7 +1963,6 @@ var DeploymentResourcesApi = class extends BaseAPI {
|
|
|
1732
1963
|
* @param {DeploymentResourcesApiDeleteDeploymentResourceRequest} requestParameters Request parameters.
|
|
1733
1964
|
* @param {*} [options] Override http request option.
|
|
1734
1965
|
* @throws {RequiredError}
|
|
1735
|
-
* @memberof DeploymentResourcesApi
|
|
1736
1966
|
*/
|
|
1737
1967
|
deleteDeploymentResource(requestParameters, options) {
|
|
1738
1968
|
return DeploymentResourcesApiFp(this.configuration).deleteDeploymentResource(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1742,7 +1972,6 @@ var DeploymentResourcesApi = class extends BaseAPI {
|
|
|
1742
1972
|
* @param {DeploymentResourcesApiGetDeploymentResourceRequest} requestParameters Request parameters.
|
|
1743
1973
|
* @param {*} [options] Override http request option.
|
|
1744
1974
|
* @throws {RequiredError}
|
|
1745
|
-
* @memberof DeploymentResourcesApi
|
|
1746
1975
|
*/
|
|
1747
1976
|
getDeploymentResource(requestParameters, options) {
|
|
1748
1977
|
return DeploymentResourcesApiFp(this.configuration).getDeploymentResource(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1752,7 +1981,6 @@ var DeploymentResourcesApi = class extends BaseAPI {
|
|
|
1752
1981
|
* @param {DeploymentResourcesApiUpdateDeploymentResourceRequest} requestParameters Request parameters.
|
|
1753
1982
|
* @param {*} [options] Override http request option.
|
|
1754
1983
|
* @throws {RequiredError}
|
|
1755
|
-
* @memberof DeploymentResourcesApi
|
|
1756
1984
|
*/
|
|
1757
1985
|
updateDeploymentResource(requestParameters, options) {
|
|
1758
1986
|
return DeploymentResourcesApiFp(this.configuration).updateDeploymentResource(requestParameters.id, requestParameters.updateDeploymentResource, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1764,12 +1992,10 @@ var DeploymentTasksApiAxiosParamCreator = function(configuration) {
|
|
|
1764
1992
|
*
|
|
1765
1993
|
* @param {string | null} [clusterId]
|
|
1766
1994
|
* @param {string | null} [deploymentId]
|
|
1767
|
-
* @param {number | null} [page]
|
|
1768
|
-
* @param {number | null} [perPage]
|
|
1769
1995
|
* @param {*} [options] Override http request option.
|
|
1770
1996
|
* @throws {RequiredError}
|
|
1771
1997
|
*/
|
|
1772
|
-
allDeploymentTasks: (_0, _1, _2
|
|
1998
|
+
allDeploymentTasks: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (clusterId, deploymentId, options = {}) {
|
|
1773
1999
|
const localVarPath = `/api/v2/deployment-tasks`;
|
|
1774
2000
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1775
2001
|
let baseOptions;
|
|
@@ -1787,12 +2013,7 @@ var DeploymentTasksApiAxiosParamCreator = function(configuration) {
|
|
|
1787
2013
|
if (deploymentId !== void 0) {
|
|
1788
2014
|
localVarQueryParameter["deployment_id"] = deploymentId;
|
|
1789
2015
|
}
|
|
1790
|
-
|
|
1791
|
-
localVarQueryParameter["page"] = page;
|
|
1792
|
-
}
|
|
1793
|
-
if (perPage !== void 0) {
|
|
1794
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
1795
|
-
}
|
|
2016
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1796
2017
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1797
2018
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1798
2019
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1807,7 +2028,7 @@ var DeploymentTasksApiAxiosParamCreator = function(configuration) {
|
|
|
1807
2028
|
* @param {*} [options] Override http request option.
|
|
1808
2029
|
* @throws {RequiredError}
|
|
1809
2030
|
*/
|
|
1810
|
-
createDeploymentTask: (_0, ..._1) => __async(
|
|
2031
|
+
createDeploymentTask: (_0, ..._1) => __async(null, [_0, ..._1], function* (createDeploymentTask, options = {}) {
|
|
1811
2032
|
assertParamExists("createDeploymentTask", "createDeploymentTask", createDeploymentTask);
|
|
1812
2033
|
const localVarPath = `/api/v2/deployment-tasks`;
|
|
1813
2034
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -1821,6 +2042,7 @@ var DeploymentTasksApiAxiosParamCreator = function(configuration) {
|
|
|
1821
2042
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1822
2043
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
1823
2044
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2045
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1824
2046
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1825
2047
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1826
2048
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1836,9 +2058,9 @@ var DeploymentTasksApiAxiosParamCreator = function(configuration) {
|
|
|
1836
2058
|
* @param {*} [options] Override http request option.
|
|
1837
2059
|
* @throws {RequiredError}
|
|
1838
2060
|
*/
|
|
1839
|
-
getDeploymentTask: (_0, ..._1) => __async(
|
|
2061
|
+
getDeploymentTask: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
1840
2062
|
assertParamExists("getDeploymentTask", "id", id);
|
|
1841
|
-
const localVarPath = `/api/v2/deployment-tasks/{id}`.replace(
|
|
2063
|
+
const localVarPath = `/api/v2/deployment-tasks/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
1842
2064
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1843
2065
|
let baseOptions;
|
|
1844
2066
|
if (configuration) {
|
|
@@ -1849,6 +2071,7 @@ var DeploymentTasksApiAxiosParamCreator = function(configuration) {
|
|
|
1849
2071
|
const localVarQueryParameter = {};
|
|
1850
2072
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1851
2073
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
2074
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
1852
2075
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1853
2076
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1854
2077
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -1866,15 +2089,13 @@ var DeploymentTasksApiFp = function(configuration) {
|
|
|
1866
2089
|
*
|
|
1867
2090
|
* @param {string | null} [clusterId]
|
|
1868
2091
|
* @param {string | null} [deploymentId]
|
|
1869
|
-
* @param {number | null} [page]
|
|
1870
|
-
* @param {number | null} [perPage]
|
|
1871
2092
|
* @param {*} [options] Override http request option.
|
|
1872
2093
|
* @throws {RequiredError}
|
|
1873
2094
|
*/
|
|
1874
|
-
allDeploymentTasks(clusterId, deploymentId,
|
|
2095
|
+
allDeploymentTasks(clusterId, deploymentId, options) {
|
|
1875
2096
|
return __async(this, null, function* () {
|
|
1876
2097
|
var _a2, _b, _c;
|
|
1877
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeploymentTasks(clusterId, deploymentId,
|
|
2098
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeploymentTasks(clusterId, deploymentId, options);
|
|
1878
2099
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
1879
2100
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DeploymentTasksApi.allDeploymentTasks"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
1880
2101
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1922,7 +2143,7 @@ var DeploymentTasksApiFactory = function(configuration, basePath, axios) {
|
|
|
1922
2143
|
* @throws {RequiredError}
|
|
1923
2144
|
*/
|
|
1924
2145
|
allDeploymentTasks(requestParameters = {}, options) {
|
|
1925
|
-
return localVarFp.allDeploymentTasks(requestParameters.clusterId, requestParameters.deploymentId,
|
|
2146
|
+
return localVarFp.allDeploymentTasks(requestParameters.clusterId, requestParameters.deploymentId, options).then((request) => request(axios, basePath));
|
|
1926
2147
|
},
|
|
1927
2148
|
/**
|
|
1928
2149
|
*
|
|
@@ -1950,17 +2171,15 @@ var DeploymentTasksApi = class extends BaseAPI {
|
|
|
1950
2171
|
* @param {DeploymentTasksApiAllDeploymentTasksRequest} requestParameters Request parameters.
|
|
1951
2172
|
* @param {*} [options] Override http request option.
|
|
1952
2173
|
* @throws {RequiredError}
|
|
1953
|
-
* @memberof DeploymentTasksApi
|
|
1954
2174
|
*/
|
|
1955
2175
|
allDeploymentTasks(requestParameters = {}, options) {
|
|
1956
|
-
return DeploymentTasksApiFp(this.configuration).allDeploymentTasks(requestParameters.clusterId, requestParameters.deploymentId,
|
|
2176
|
+
return DeploymentTasksApiFp(this.configuration).allDeploymentTasks(requestParameters.clusterId, requestParameters.deploymentId, options).then((request) => request(this.axios, this.basePath));
|
|
1957
2177
|
}
|
|
1958
2178
|
/**
|
|
1959
2179
|
*
|
|
1960
2180
|
* @param {DeploymentTasksApiCreateDeploymentTaskRequest} requestParameters Request parameters.
|
|
1961
2181
|
* @param {*} [options] Override http request option.
|
|
1962
2182
|
* @throws {RequiredError}
|
|
1963
|
-
* @memberof DeploymentTasksApi
|
|
1964
2183
|
*/
|
|
1965
2184
|
createDeploymentTask(requestParameters, options) {
|
|
1966
2185
|
return DeploymentTasksApiFp(this.configuration).createDeploymentTask(requestParameters.createDeploymentTask, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1970,7 +2189,6 @@ var DeploymentTasksApi = class extends BaseAPI {
|
|
|
1970
2189
|
* @param {DeploymentTasksApiGetDeploymentTaskRequest} requestParameters Request parameters.
|
|
1971
2190
|
* @param {*} [options] Override http request option.
|
|
1972
2191
|
* @throws {RequiredError}
|
|
1973
|
-
* @memberof DeploymentTasksApi
|
|
1974
2192
|
*/
|
|
1975
2193
|
getDeploymentTask(requestParameters, options) {
|
|
1976
2194
|
return DeploymentTasksApiFp(this.configuration).getDeploymentTask(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -1984,12 +2202,10 @@ var DeploymentsApiAxiosParamCreator = function(configuration) {
|
|
|
1984
2202
|
* @param {string | null} [kindId]
|
|
1985
2203
|
* @param {string | null} [clusterId]
|
|
1986
2204
|
* @param {boolean | null} [enabled]
|
|
1987
|
-
* @param {number | null} [page]
|
|
1988
|
-
* @param {number | null} [perPage]
|
|
1989
2205
|
* @param {*} [options] Override http request option.
|
|
1990
2206
|
* @throws {RequiredError}
|
|
1991
2207
|
*/
|
|
1992
|
-
allDeployments: (_0, _1, _2, _3, _4
|
|
2208
|
+
allDeployments: (_0, _1, _2, _3, ..._4) => __async(null, [_0, _1, _2, _3, ..._4], function* (name, kindId, clusterId, enabled, options = {}) {
|
|
1993
2209
|
const localVarPath = `/api/v2/deployments`;
|
|
1994
2210
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1995
2211
|
let baseOptions;
|
|
@@ -2013,12 +2229,7 @@ var DeploymentsApiAxiosParamCreator = function(configuration) {
|
|
|
2013
2229
|
if (enabled !== void 0) {
|
|
2014
2230
|
localVarQueryParameter["enabled"] = enabled;
|
|
2015
2231
|
}
|
|
2016
|
-
|
|
2017
|
-
localVarQueryParameter["page"] = page;
|
|
2018
|
-
}
|
|
2019
|
-
if (perPage !== void 0) {
|
|
2020
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
2021
|
-
}
|
|
2232
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2022
2233
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2023
2234
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2024
2235
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2033,7 +2244,7 @@ var DeploymentsApiAxiosParamCreator = function(configuration) {
|
|
|
2033
2244
|
* @param {*} [options] Override http request option.
|
|
2034
2245
|
* @throws {RequiredError}
|
|
2035
2246
|
*/
|
|
2036
|
-
createDeployment: (_0, ..._1) => __async(
|
|
2247
|
+
createDeployment: (_0, ..._1) => __async(null, [_0, ..._1], function* (newDeployment, options = {}) {
|
|
2037
2248
|
assertParamExists("createDeployment", "newDeployment", newDeployment);
|
|
2038
2249
|
const localVarPath = `/api/v2/deployments`;
|
|
2039
2250
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2047,6 +2258,7 @@ var DeploymentsApiAxiosParamCreator = function(configuration) {
|
|
|
2047
2258
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2048
2259
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
2049
2260
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2261
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2050
2262
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2051
2263
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2052
2264
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2062,9 +2274,9 @@ var DeploymentsApiAxiosParamCreator = function(configuration) {
|
|
|
2062
2274
|
* @param {*} [options] Override http request option.
|
|
2063
2275
|
* @throws {RequiredError}
|
|
2064
2276
|
*/
|
|
2065
|
-
deleteDeployment: (_0, ..._1) => __async(
|
|
2277
|
+
deleteDeployment: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
2066
2278
|
assertParamExists("deleteDeployment", "id", id);
|
|
2067
|
-
const localVarPath = `/api/v2/deployments/{id}`.replace(
|
|
2279
|
+
const localVarPath = `/api/v2/deployments/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
2068
2280
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2069
2281
|
let baseOptions;
|
|
2070
2282
|
if (configuration) {
|
|
@@ -2089,9 +2301,9 @@ var DeploymentsApiAxiosParamCreator = function(configuration) {
|
|
|
2089
2301
|
* @param {*} [options] Override http request option.
|
|
2090
2302
|
* @throws {RequiredError}
|
|
2091
2303
|
*/
|
|
2092
|
-
getDeployment: (_0, ..._1) => __async(
|
|
2304
|
+
getDeployment: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
2093
2305
|
assertParamExists("getDeployment", "id", id);
|
|
2094
|
-
const localVarPath = `/api/v2/deployments/{id}`.replace(
|
|
2306
|
+
const localVarPath = `/api/v2/deployments/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
2095
2307
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2096
2308
|
let baseOptions;
|
|
2097
2309
|
if (configuration) {
|
|
@@ -2102,6 +2314,7 @@ var DeploymentsApiAxiosParamCreator = function(configuration) {
|
|
|
2102
2314
|
const localVarQueryParameter = {};
|
|
2103
2315
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2104
2316
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
2317
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2105
2318
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2106
2319
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2107
2320
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2117,10 +2330,10 @@ var DeploymentsApiAxiosParamCreator = function(configuration) {
|
|
|
2117
2330
|
* @param {*} [options] Override http request option.
|
|
2118
2331
|
* @throws {RequiredError}
|
|
2119
2332
|
*/
|
|
2120
|
-
updateDeployment: (_0, _1, ..._2) => __async(
|
|
2333
|
+
updateDeployment: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (id, updateDeployment, options = {}) {
|
|
2121
2334
|
assertParamExists("updateDeployment", "id", id);
|
|
2122
2335
|
assertParamExists("updateDeployment", "updateDeployment", updateDeployment);
|
|
2123
|
-
const localVarPath = `/api/v2/deployments/{id}`.replace(
|
|
2336
|
+
const localVarPath = `/api/v2/deployments/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
2124
2337
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2125
2338
|
let baseOptions;
|
|
2126
2339
|
if (configuration) {
|
|
@@ -2132,6 +2345,7 @@ var DeploymentsApiAxiosParamCreator = function(configuration) {
|
|
|
2132
2345
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2133
2346
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
2134
2347
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2348
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2135
2349
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2136
2350
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2137
2351
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2152,15 +2366,13 @@ var DeploymentsApiFp = function(configuration) {
|
|
|
2152
2366
|
* @param {string | null} [kindId]
|
|
2153
2367
|
* @param {string | null} [clusterId]
|
|
2154
2368
|
* @param {boolean | null} [enabled]
|
|
2155
|
-
* @param {number | null} [page]
|
|
2156
|
-
* @param {number | null} [perPage]
|
|
2157
2369
|
* @param {*} [options] Override http request option.
|
|
2158
2370
|
* @throws {RequiredError}
|
|
2159
2371
|
*/
|
|
2160
|
-
allDeployments(name, kindId, clusterId, enabled,
|
|
2372
|
+
allDeployments(name, kindId, clusterId, enabled, options) {
|
|
2161
2373
|
return __async(this, null, function* () {
|
|
2162
2374
|
var _a2, _b, _c;
|
|
2163
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeployments(name, kindId, clusterId, enabled,
|
|
2375
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allDeployments(name, kindId, clusterId, enabled, options);
|
|
2164
2376
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
2165
2377
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["DeploymentsApi.allDeployments"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
2166
2378
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2239,7 +2451,7 @@ var DeploymentsApiFactory = function(configuration, basePath, axios) {
|
|
|
2239
2451
|
* @throws {RequiredError}
|
|
2240
2452
|
*/
|
|
2241
2453
|
allDeployments(requestParameters = {}, options) {
|
|
2242
|
-
return localVarFp.allDeployments(requestParameters.name, requestParameters.kindId, requestParameters.clusterId, requestParameters.enabled,
|
|
2454
|
+
return localVarFp.allDeployments(requestParameters.name, requestParameters.kindId, requestParameters.clusterId, requestParameters.enabled, options).then((request) => request(axios, basePath));
|
|
2243
2455
|
},
|
|
2244
2456
|
/**
|
|
2245
2457
|
*
|
|
@@ -2285,17 +2497,15 @@ var DeploymentsApi = class extends BaseAPI {
|
|
|
2285
2497
|
* @param {DeploymentsApiAllDeploymentsRequest} requestParameters Request parameters.
|
|
2286
2498
|
* @param {*} [options] Override http request option.
|
|
2287
2499
|
* @throws {RequiredError}
|
|
2288
|
-
* @memberof DeploymentsApi
|
|
2289
2500
|
*/
|
|
2290
2501
|
allDeployments(requestParameters = {}, options) {
|
|
2291
|
-
return DeploymentsApiFp(this.configuration).allDeployments(requestParameters.name, requestParameters.kindId, requestParameters.clusterId, requestParameters.enabled,
|
|
2502
|
+
return DeploymentsApiFp(this.configuration).allDeployments(requestParameters.name, requestParameters.kindId, requestParameters.clusterId, requestParameters.enabled, options).then((request) => request(this.axios, this.basePath));
|
|
2292
2503
|
}
|
|
2293
2504
|
/**
|
|
2294
2505
|
*
|
|
2295
2506
|
* @param {DeploymentsApiCreateDeploymentRequest} requestParameters Request parameters.
|
|
2296
2507
|
* @param {*} [options] Override http request option.
|
|
2297
2508
|
* @throws {RequiredError}
|
|
2298
|
-
* @memberof DeploymentsApi
|
|
2299
2509
|
*/
|
|
2300
2510
|
createDeployment(requestParameters, options) {
|
|
2301
2511
|
return DeploymentsApiFp(this.configuration).createDeployment(requestParameters.newDeployment, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2305,7 +2515,6 @@ var DeploymentsApi = class extends BaseAPI {
|
|
|
2305
2515
|
* @param {DeploymentsApiDeleteDeploymentRequest} requestParameters Request parameters.
|
|
2306
2516
|
* @param {*} [options] Override http request option.
|
|
2307
2517
|
* @throws {RequiredError}
|
|
2308
|
-
* @memberof DeploymentsApi
|
|
2309
2518
|
*/
|
|
2310
2519
|
deleteDeployment(requestParameters, options) {
|
|
2311
2520
|
return DeploymentsApiFp(this.configuration).deleteDeployment(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2315,7 +2524,6 @@ var DeploymentsApi = class extends BaseAPI {
|
|
|
2315
2524
|
* @param {DeploymentsApiGetDeploymentRequest} requestParameters Request parameters.
|
|
2316
2525
|
* @param {*} [options] Override http request option.
|
|
2317
2526
|
* @throws {RequiredError}
|
|
2318
|
-
* @memberof DeploymentsApi
|
|
2319
2527
|
*/
|
|
2320
2528
|
getDeployment(requestParameters, options) {
|
|
2321
2529
|
return DeploymentsApiFp(this.configuration).getDeployment(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2325,7 +2533,6 @@ var DeploymentsApi = class extends BaseAPI {
|
|
|
2325
2533
|
* @param {DeploymentsApiUpdateDeploymentRequest} requestParameters Request parameters.
|
|
2326
2534
|
* @param {*} [options] Override http request option.
|
|
2327
2535
|
* @throws {RequiredError}
|
|
2328
|
-
* @memberof DeploymentsApi
|
|
2329
2536
|
*/
|
|
2330
2537
|
updateDeployment(requestParameters, options) {
|
|
2331
2538
|
return DeploymentsApiFp(this.configuration).updateDeployment(requestParameters.id, requestParameters.updateDeployment, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2336,12 +2543,10 @@ var EnvUserPermissionsApiAxiosParamCreator = function(configuration) {
|
|
|
2336
2543
|
/**
|
|
2337
2544
|
*
|
|
2338
2545
|
* @param {string | null} [envId]
|
|
2339
|
-
* @param {number | null} [page]
|
|
2340
|
-
* @param {number | null} [perPage]
|
|
2341
2546
|
* @param {*} [options] Override http request option.
|
|
2342
2547
|
* @throws {RequiredError}
|
|
2343
2548
|
*/
|
|
2344
|
-
allEnvUserPermissions: (_0, _1
|
|
2549
|
+
allEnvUserPermissions: (_0, ..._1) => __async(null, [_0, ..._1], function* (envId, options = {}) {
|
|
2345
2550
|
const localVarPath = `/api/v2/env-user-permissions`;
|
|
2346
2551
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2347
2552
|
let baseOptions;
|
|
@@ -2356,12 +2561,7 @@ var EnvUserPermissionsApiAxiosParamCreator = function(configuration) {
|
|
|
2356
2561
|
if (envId !== void 0) {
|
|
2357
2562
|
localVarQueryParameter["env_id"] = envId;
|
|
2358
2563
|
}
|
|
2359
|
-
|
|
2360
|
-
localVarQueryParameter["page"] = page;
|
|
2361
|
-
}
|
|
2362
|
-
if (perPage !== void 0) {
|
|
2363
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
2364
|
-
}
|
|
2564
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2365
2565
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2366
2566
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2367
2567
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2376,7 +2576,7 @@ var EnvUserPermissionsApiAxiosParamCreator = function(configuration) {
|
|
|
2376
2576
|
* @param {*} [options] Override http request option.
|
|
2377
2577
|
* @throws {RequiredError}
|
|
2378
2578
|
*/
|
|
2379
|
-
createEnvUserPermission: (_0, ..._1) => __async(
|
|
2579
|
+
createEnvUserPermission: (_0, ..._1) => __async(null, [_0, ..._1], function* (newEnvUserPermission, options = {}) {
|
|
2380
2580
|
assertParamExists("createEnvUserPermission", "newEnvUserPermission", newEnvUserPermission);
|
|
2381
2581
|
const localVarPath = `/api/v2/env-user-permissions`;
|
|
2382
2582
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2390,6 +2590,7 @@ var EnvUserPermissionsApiAxiosParamCreator = function(configuration) {
|
|
|
2390
2590
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2391
2591
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
2392
2592
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2593
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2393
2594
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2394
2595
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2395
2596
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2405,9 +2606,9 @@ var EnvUserPermissionsApiAxiosParamCreator = function(configuration) {
|
|
|
2405
2606
|
* @param {*} [options] Override http request option.
|
|
2406
2607
|
* @throws {RequiredError}
|
|
2407
2608
|
*/
|
|
2408
|
-
deleteEnvUserPermission: (_0, ..._1) => __async(
|
|
2609
|
+
deleteEnvUserPermission: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
2409
2610
|
assertParamExists("deleteEnvUserPermission", "id", id);
|
|
2410
|
-
const localVarPath = `/api/v2/env-user-permissions/{id}`.replace(
|
|
2611
|
+
const localVarPath = `/api/v2/env-user-permissions/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
2411
2612
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2412
2613
|
let baseOptions;
|
|
2413
2614
|
if (configuration) {
|
|
@@ -2432,9 +2633,9 @@ var EnvUserPermissionsApiAxiosParamCreator = function(configuration) {
|
|
|
2432
2633
|
* @param {*} [options] Override http request option.
|
|
2433
2634
|
* @throws {RequiredError}
|
|
2434
2635
|
*/
|
|
2435
|
-
getEnvUserPermission: (_0, ..._1) => __async(
|
|
2636
|
+
getEnvUserPermission: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
2436
2637
|
assertParamExists("getEnvUserPermission", "id", id);
|
|
2437
|
-
const localVarPath = `/api/v2/env-user-permissions/{id}`.replace(
|
|
2638
|
+
const localVarPath = `/api/v2/env-user-permissions/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
2438
2639
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2439
2640
|
let baseOptions;
|
|
2440
2641
|
if (configuration) {
|
|
@@ -2445,6 +2646,7 @@ var EnvUserPermissionsApiAxiosParamCreator = function(configuration) {
|
|
|
2445
2646
|
const localVarQueryParameter = {};
|
|
2446
2647
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2447
2648
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
2649
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2448
2650
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2449
2651
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2450
2652
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2461,15 +2663,13 @@ var EnvUserPermissionsApiFp = function(configuration) {
|
|
|
2461
2663
|
/**
|
|
2462
2664
|
*
|
|
2463
2665
|
* @param {string | null} [envId]
|
|
2464
|
-
* @param {number | null} [page]
|
|
2465
|
-
* @param {number | null} [perPage]
|
|
2466
2666
|
* @param {*} [options] Override http request option.
|
|
2467
2667
|
* @throws {RequiredError}
|
|
2468
2668
|
*/
|
|
2469
|
-
allEnvUserPermissions(envId,
|
|
2669
|
+
allEnvUserPermissions(envId, options) {
|
|
2470
2670
|
return __async(this, null, function* () {
|
|
2471
2671
|
var _a2, _b, _c;
|
|
2472
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allEnvUserPermissions(envId,
|
|
2672
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allEnvUserPermissions(envId, options);
|
|
2473
2673
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
2474
2674
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["EnvUserPermissionsApi.allEnvUserPermissions"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
2475
2675
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2532,7 +2732,7 @@ var EnvUserPermissionsApiFactory = function(configuration, basePath, axios) {
|
|
|
2532
2732
|
* @throws {RequiredError}
|
|
2533
2733
|
*/
|
|
2534
2734
|
allEnvUserPermissions(requestParameters = {}, options) {
|
|
2535
|
-
return localVarFp.allEnvUserPermissions(requestParameters.envId,
|
|
2735
|
+
return localVarFp.allEnvUserPermissions(requestParameters.envId, options).then((request) => request(axios, basePath));
|
|
2536
2736
|
},
|
|
2537
2737
|
/**
|
|
2538
2738
|
*
|
|
@@ -2569,17 +2769,15 @@ var EnvUserPermissionsApi = class extends BaseAPI {
|
|
|
2569
2769
|
* @param {EnvUserPermissionsApiAllEnvUserPermissionsRequest} requestParameters Request parameters.
|
|
2570
2770
|
* @param {*} [options] Override http request option.
|
|
2571
2771
|
* @throws {RequiredError}
|
|
2572
|
-
* @memberof EnvUserPermissionsApi
|
|
2573
2772
|
*/
|
|
2574
2773
|
allEnvUserPermissions(requestParameters = {}, options) {
|
|
2575
|
-
return EnvUserPermissionsApiFp(this.configuration).allEnvUserPermissions(requestParameters.envId,
|
|
2774
|
+
return EnvUserPermissionsApiFp(this.configuration).allEnvUserPermissions(requestParameters.envId, options).then((request) => request(this.axios, this.basePath));
|
|
2576
2775
|
}
|
|
2577
2776
|
/**
|
|
2578
2777
|
*
|
|
2579
2778
|
* @param {EnvUserPermissionsApiCreateEnvUserPermissionRequest} requestParameters Request parameters.
|
|
2580
2779
|
* @param {*} [options] Override http request option.
|
|
2581
2780
|
* @throws {RequiredError}
|
|
2582
|
-
* @memberof EnvUserPermissionsApi
|
|
2583
2781
|
*/
|
|
2584
2782
|
createEnvUserPermission(requestParameters, options) {
|
|
2585
2783
|
return EnvUserPermissionsApiFp(this.configuration).createEnvUserPermission(requestParameters.newEnvUserPermission, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2589,7 +2787,6 @@ var EnvUserPermissionsApi = class extends BaseAPI {
|
|
|
2589
2787
|
* @param {EnvUserPermissionsApiDeleteEnvUserPermissionRequest} requestParameters Request parameters.
|
|
2590
2788
|
* @param {*} [options] Override http request option.
|
|
2591
2789
|
* @throws {RequiredError}
|
|
2592
|
-
* @memberof EnvUserPermissionsApi
|
|
2593
2790
|
*/
|
|
2594
2791
|
deleteEnvUserPermission(requestParameters, options) {
|
|
2595
2792
|
return EnvUserPermissionsApiFp(this.configuration).deleteEnvUserPermission(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2599,7 +2796,6 @@ var EnvUserPermissionsApi = class extends BaseAPI {
|
|
|
2599
2796
|
* @param {EnvUserPermissionsApiGetEnvUserPermissionRequest} requestParameters Request parameters.
|
|
2600
2797
|
* @param {*} [options] Override http request option.
|
|
2601
2798
|
* @throws {RequiredError}
|
|
2602
|
-
* @memberof EnvUserPermissionsApi
|
|
2603
2799
|
*/
|
|
2604
2800
|
getEnvUserPermission(requestParameters, options) {
|
|
2605
2801
|
return EnvUserPermissionsApiFp(this.configuration).getEnvUserPermission(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2611,12 +2807,10 @@ var EnvsApiAxiosParamCreator = function(configuration) {
|
|
|
2611
2807
|
*
|
|
2612
2808
|
* @param {string | null} [name]
|
|
2613
2809
|
* @param {boolean | null} [autoAddNewUsers]
|
|
2614
|
-
* @param {number | null} [page]
|
|
2615
|
-
* @param {number | null} [perPage]
|
|
2616
2810
|
* @param {*} [options] Override http request option.
|
|
2617
2811
|
* @throws {RequiredError}
|
|
2618
2812
|
*/
|
|
2619
|
-
allEnvs: (_0, _1, _2
|
|
2813
|
+
allEnvs: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (name, autoAddNewUsers, options = {}) {
|
|
2620
2814
|
const localVarPath = `/api/v2/envs`;
|
|
2621
2815
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2622
2816
|
let baseOptions;
|
|
@@ -2634,12 +2828,7 @@ var EnvsApiAxiosParamCreator = function(configuration) {
|
|
|
2634
2828
|
if (autoAddNewUsers !== void 0) {
|
|
2635
2829
|
localVarQueryParameter["auto_add_new_users"] = autoAddNewUsers;
|
|
2636
2830
|
}
|
|
2637
|
-
|
|
2638
|
-
localVarQueryParameter["page"] = page;
|
|
2639
|
-
}
|
|
2640
|
-
if (perPage !== void 0) {
|
|
2641
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
2642
|
-
}
|
|
2831
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2643
2832
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2644
2833
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2645
2834
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2654,7 +2843,7 @@ var EnvsApiAxiosParamCreator = function(configuration) {
|
|
|
2654
2843
|
* @param {*} [options] Override http request option.
|
|
2655
2844
|
* @throws {RequiredError}
|
|
2656
2845
|
*/
|
|
2657
|
-
createEnv: (_0, ..._1) => __async(
|
|
2846
|
+
createEnv: (_0, ..._1) => __async(null, [_0, ..._1], function* (newEnv, options = {}) {
|
|
2658
2847
|
assertParamExists("createEnv", "newEnv", newEnv);
|
|
2659
2848
|
const localVarPath = `/api/v2/envs`;
|
|
2660
2849
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -2668,6 +2857,7 @@ var EnvsApiAxiosParamCreator = function(configuration) {
|
|
|
2668
2857
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2669
2858
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
2670
2859
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2860
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2671
2861
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2672
2862
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2673
2863
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2683,9 +2873,9 @@ var EnvsApiAxiosParamCreator = function(configuration) {
|
|
|
2683
2873
|
* @param {*} [options] Override http request option.
|
|
2684
2874
|
* @throws {RequiredError}
|
|
2685
2875
|
*/
|
|
2686
|
-
deleteEnv: (_0, ..._1) => __async(
|
|
2876
|
+
deleteEnv: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
2687
2877
|
assertParamExists("deleteEnv", "id", id);
|
|
2688
|
-
const localVarPath = `/api/v2/envs/{id}`.replace(
|
|
2878
|
+
const localVarPath = `/api/v2/envs/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
2689
2879
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2690
2880
|
let baseOptions;
|
|
2691
2881
|
if (configuration) {
|
|
@@ -2710,9 +2900,9 @@ var EnvsApiAxiosParamCreator = function(configuration) {
|
|
|
2710
2900
|
* @param {*} [options] Override http request option.
|
|
2711
2901
|
* @throws {RequiredError}
|
|
2712
2902
|
*/
|
|
2713
|
-
getEnv: (_0, ..._1) => __async(
|
|
2903
|
+
getEnv: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
2714
2904
|
assertParamExists("getEnv", "id", id);
|
|
2715
|
-
const localVarPath = `/api/v2/envs/{id}`.replace(
|
|
2905
|
+
const localVarPath = `/api/v2/envs/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
2716
2906
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2717
2907
|
let baseOptions;
|
|
2718
2908
|
if (configuration) {
|
|
@@ -2723,6 +2913,7 @@ var EnvsApiAxiosParamCreator = function(configuration) {
|
|
|
2723
2913
|
const localVarQueryParameter = {};
|
|
2724
2914
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2725
2915
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
2916
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2726
2917
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2727
2918
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2728
2919
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2738,10 +2929,10 @@ var EnvsApiAxiosParamCreator = function(configuration) {
|
|
|
2738
2929
|
* @param {*} [options] Override http request option.
|
|
2739
2930
|
* @throws {RequiredError}
|
|
2740
2931
|
*/
|
|
2741
|
-
updateEnv: (_0, _1, ..._2) => __async(
|
|
2932
|
+
updateEnv: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (id, updateEnv, options = {}) {
|
|
2742
2933
|
assertParamExists("updateEnv", "id", id);
|
|
2743
2934
|
assertParamExists("updateEnv", "updateEnv", updateEnv);
|
|
2744
|
-
const localVarPath = `/api/v2/envs/{id}`.replace(
|
|
2935
|
+
const localVarPath = `/api/v2/envs/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
2745
2936
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2746
2937
|
let baseOptions;
|
|
2747
2938
|
if (configuration) {
|
|
@@ -2753,6 +2944,7 @@ var EnvsApiAxiosParamCreator = function(configuration) {
|
|
|
2753
2944
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2754
2945
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
2755
2946
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
2947
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2756
2948
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2757
2949
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2758
2950
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2771,15 +2963,13 @@ var EnvsApiFp = function(configuration) {
|
|
|
2771
2963
|
*
|
|
2772
2964
|
* @param {string | null} [name]
|
|
2773
2965
|
* @param {boolean | null} [autoAddNewUsers]
|
|
2774
|
-
* @param {number | null} [page]
|
|
2775
|
-
* @param {number | null} [perPage]
|
|
2776
2966
|
* @param {*} [options] Override http request option.
|
|
2777
2967
|
* @throws {RequiredError}
|
|
2778
2968
|
*/
|
|
2779
|
-
allEnvs(name, autoAddNewUsers,
|
|
2969
|
+
allEnvs(name, autoAddNewUsers, options) {
|
|
2780
2970
|
return __async(this, null, function* () {
|
|
2781
2971
|
var _a2, _b, _c;
|
|
2782
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allEnvs(name, autoAddNewUsers,
|
|
2972
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allEnvs(name, autoAddNewUsers, options);
|
|
2783
2973
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
2784
2974
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["EnvsApi.allEnvs"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
2785
2975
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -2858,7 +3048,7 @@ var EnvsApiFactory = function(configuration, basePath, axios) {
|
|
|
2858
3048
|
* @throws {RequiredError}
|
|
2859
3049
|
*/
|
|
2860
3050
|
allEnvs(requestParameters = {}, options) {
|
|
2861
|
-
return localVarFp.allEnvs(requestParameters.name, requestParameters.autoAddNewUsers,
|
|
3051
|
+
return localVarFp.allEnvs(requestParameters.name, requestParameters.autoAddNewUsers, options).then((request) => request(axios, basePath));
|
|
2862
3052
|
},
|
|
2863
3053
|
/**
|
|
2864
3054
|
*
|
|
@@ -2904,17 +3094,15 @@ var EnvsApi = class extends BaseAPI {
|
|
|
2904
3094
|
* @param {EnvsApiAllEnvsRequest} requestParameters Request parameters.
|
|
2905
3095
|
* @param {*} [options] Override http request option.
|
|
2906
3096
|
* @throws {RequiredError}
|
|
2907
|
-
* @memberof EnvsApi
|
|
2908
3097
|
*/
|
|
2909
3098
|
allEnvs(requestParameters = {}, options) {
|
|
2910
|
-
return EnvsApiFp(this.configuration).allEnvs(requestParameters.name, requestParameters.autoAddNewUsers,
|
|
3099
|
+
return EnvsApiFp(this.configuration).allEnvs(requestParameters.name, requestParameters.autoAddNewUsers, options).then((request) => request(this.axios, this.basePath));
|
|
2911
3100
|
}
|
|
2912
3101
|
/**
|
|
2913
3102
|
*
|
|
2914
3103
|
* @param {EnvsApiCreateEnvRequest} requestParameters Request parameters.
|
|
2915
3104
|
* @param {*} [options] Override http request option.
|
|
2916
3105
|
* @throws {RequiredError}
|
|
2917
|
-
* @memberof EnvsApi
|
|
2918
3106
|
*/
|
|
2919
3107
|
createEnv(requestParameters, options) {
|
|
2920
3108
|
return EnvsApiFp(this.configuration).createEnv(requestParameters.newEnv, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2924,7 +3112,6 @@ var EnvsApi = class extends BaseAPI {
|
|
|
2924
3112
|
* @param {EnvsApiDeleteEnvRequest} requestParameters Request parameters.
|
|
2925
3113
|
* @param {*} [options] Override http request option.
|
|
2926
3114
|
* @throws {RequiredError}
|
|
2927
|
-
* @memberof EnvsApi
|
|
2928
3115
|
*/
|
|
2929
3116
|
deleteEnv(requestParameters, options) {
|
|
2930
3117
|
return EnvsApiFp(this.configuration).deleteEnv(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2934,7 +3121,6 @@ var EnvsApi = class extends BaseAPI {
|
|
|
2934
3121
|
* @param {EnvsApiGetEnvRequest} requestParameters Request parameters.
|
|
2935
3122
|
* @param {*} [options] Override http request option.
|
|
2936
3123
|
* @throws {RequiredError}
|
|
2937
|
-
* @memberof EnvsApi
|
|
2938
3124
|
*/
|
|
2939
3125
|
getEnv(requestParameters, options) {
|
|
2940
3126
|
return EnvsApiFp(this.configuration).getEnv(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2944,7 +3130,6 @@ var EnvsApi = class extends BaseAPI {
|
|
|
2944
3130
|
* @param {EnvsApiUpdateEnvRequest} requestParameters Request parameters.
|
|
2945
3131
|
* @param {*} [options] Override http request option.
|
|
2946
3132
|
* @throws {RequiredError}
|
|
2947
|
-
* @memberof EnvsApi
|
|
2948
3133
|
*/
|
|
2949
3134
|
updateEnv(requestParameters, options) {
|
|
2950
3135
|
return EnvsApiFp(this.configuration).updateEnv(requestParameters.id, requestParameters.updateEnv, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -2956,12 +3141,10 @@ var HelmChartsApiAxiosParamCreator = function(configuration) {
|
|
|
2956
3141
|
*
|
|
2957
3142
|
* @param {string | null} [helmRegistryId]
|
|
2958
3143
|
* @param {string | null} [parsedBranch]
|
|
2959
|
-
* @param {number | null} [page]
|
|
2960
|
-
* @param {number | null} [perPage]
|
|
2961
3144
|
* @param {*} [options] Override http request option.
|
|
2962
3145
|
* @throws {RequiredError}
|
|
2963
3146
|
*/
|
|
2964
|
-
allHelmCharts: (_0, _1, _2
|
|
3147
|
+
allHelmCharts: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (helmRegistryId, parsedBranch, options = {}) {
|
|
2965
3148
|
const localVarPath = `/api/v2/helm-charts`;
|
|
2966
3149
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2967
3150
|
let baseOptions;
|
|
@@ -2979,12 +3162,7 @@ var HelmChartsApiAxiosParamCreator = function(configuration) {
|
|
|
2979
3162
|
if (parsedBranch !== void 0) {
|
|
2980
3163
|
localVarQueryParameter["parsed_branch"] = parsedBranch;
|
|
2981
3164
|
}
|
|
2982
|
-
|
|
2983
|
-
localVarQueryParameter["page"] = page;
|
|
2984
|
-
}
|
|
2985
|
-
if (perPage !== void 0) {
|
|
2986
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
2987
|
-
}
|
|
3165
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
2988
3166
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2989
3167
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2990
3168
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -2999,9 +3177,9 @@ var HelmChartsApiAxiosParamCreator = function(configuration) {
|
|
|
2999
3177
|
* @param {*} [options] Override http request option.
|
|
3000
3178
|
* @throws {RequiredError}
|
|
3001
3179
|
*/
|
|
3002
|
-
getHelmChart: (_0, ..._1) => __async(
|
|
3180
|
+
getHelmChart: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
3003
3181
|
assertParamExists("getHelmChart", "id", id);
|
|
3004
|
-
const localVarPath = `/api/v2/helm-charts/{id}`.replace(
|
|
3182
|
+
const localVarPath = `/api/v2/helm-charts/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
3005
3183
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3006
3184
|
let baseOptions;
|
|
3007
3185
|
if (configuration) {
|
|
@@ -3012,6 +3190,7 @@ var HelmChartsApiAxiosParamCreator = function(configuration) {
|
|
|
3012
3190
|
const localVarQueryParameter = {};
|
|
3013
3191
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3014
3192
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
3193
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3015
3194
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3016
3195
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3017
3196
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3029,15 +3208,13 @@ var HelmChartsApiFp = function(configuration) {
|
|
|
3029
3208
|
*
|
|
3030
3209
|
* @param {string | null} [helmRegistryId]
|
|
3031
3210
|
* @param {string | null} [parsedBranch]
|
|
3032
|
-
* @param {number | null} [page]
|
|
3033
|
-
* @param {number | null} [perPage]
|
|
3034
3211
|
* @param {*} [options] Override http request option.
|
|
3035
3212
|
* @throws {RequiredError}
|
|
3036
3213
|
*/
|
|
3037
|
-
allHelmCharts(helmRegistryId, parsedBranch,
|
|
3214
|
+
allHelmCharts(helmRegistryId, parsedBranch, options) {
|
|
3038
3215
|
return __async(this, null, function* () {
|
|
3039
3216
|
var _a2, _b, _c;
|
|
3040
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allHelmCharts(helmRegistryId, parsedBranch,
|
|
3217
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allHelmCharts(helmRegistryId, parsedBranch, options);
|
|
3041
3218
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
3042
3219
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["HelmChartsApi.allHelmCharts"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
3043
3220
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3070,7 +3247,7 @@ var HelmChartsApiFactory = function(configuration, basePath, axios) {
|
|
|
3070
3247
|
* @throws {RequiredError}
|
|
3071
3248
|
*/
|
|
3072
3249
|
allHelmCharts(requestParameters = {}, options) {
|
|
3073
|
-
return localVarFp.allHelmCharts(requestParameters.helmRegistryId, requestParameters.parsedBranch,
|
|
3250
|
+
return localVarFp.allHelmCharts(requestParameters.helmRegistryId, requestParameters.parsedBranch, options).then((request) => request(axios, basePath));
|
|
3074
3251
|
},
|
|
3075
3252
|
/**
|
|
3076
3253
|
*
|
|
@@ -3089,17 +3266,15 @@ var HelmChartsApi = class extends BaseAPI {
|
|
|
3089
3266
|
* @param {HelmChartsApiAllHelmChartsRequest} requestParameters Request parameters.
|
|
3090
3267
|
* @param {*} [options] Override http request option.
|
|
3091
3268
|
* @throws {RequiredError}
|
|
3092
|
-
* @memberof HelmChartsApi
|
|
3093
3269
|
*/
|
|
3094
3270
|
allHelmCharts(requestParameters = {}, options) {
|
|
3095
|
-
return HelmChartsApiFp(this.configuration).allHelmCharts(requestParameters.helmRegistryId, requestParameters.parsedBranch,
|
|
3271
|
+
return HelmChartsApiFp(this.configuration).allHelmCharts(requestParameters.helmRegistryId, requestParameters.parsedBranch, options).then((request) => request(this.axios, this.basePath));
|
|
3096
3272
|
}
|
|
3097
3273
|
/**
|
|
3098
3274
|
*
|
|
3099
3275
|
* @param {HelmChartsApiGetHelmChartRequest} requestParameters Request parameters.
|
|
3100
3276
|
* @param {*} [options] Override http request option.
|
|
3101
3277
|
* @throws {RequiredError}
|
|
3102
|
-
* @memberof HelmChartsApi
|
|
3103
3278
|
*/
|
|
3104
3279
|
getHelmChart(requestParameters, options) {
|
|
3105
3280
|
return HelmChartsApiFp(this.configuration).getHelmChart(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3111,12 +3286,10 @@ var HelmRegistriesApiAxiosParamCreator = function(configuration) {
|
|
|
3111
3286
|
*
|
|
3112
3287
|
* @param {string | null} [repoName]
|
|
3113
3288
|
* @param {string | null} [kindId]
|
|
3114
|
-
* @param {number | null} [page]
|
|
3115
|
-
* @param {number | null} [perPage]
|
|
3116
3289
|
* @param {*} [options] Override http request option.
|
|
3117
3290
|
* @throws {RequiredError}
|
|
3118
3291
|
*/
|
|
3119
|
-
allHelmRegistries: (_0, _1, _2
|
|
3292
|
+
allHelmRegistries: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (repoName, kindId, options = {}) {
|
|
3120
3293
|
const localVarPath = `/api/v2/helm-registries`;
|
|
3121
3294
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3122
3295
|
let baseOptions;
|
|
@@ -3134,12 +3307,7 @@ var HelmRegistriesApiAxiosParamCreator = function(configuration) {
|
|
|
3134
3307
|
if (kindId !== void 0) {
|
|
3135
3308
|
localVarQueryParameter["kind_id"] = kindId;
|
|
3136
3309
|
}
|
|
3137
|
-
|
|
3138
|
-
localVarQueryParameter["page"] = page;
|
|
3139
|
-
}
|
|
3140
|
-
if (perPage !== void 0) {
|
|
3141
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
3142
|
-
}
|
|
3310
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3143
3311
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3144
3312
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3145
3313
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3154,9 +3322,9 @@ var HelmRegistriesApiAxiosParamCreator = function(configuration) {
|
|
|
3154
3322
|
* @param {*} [options] Override http request option.
|
|
3155
3323
|
* @throws {RequiredError}
|
|
3156
3324
|
*/
|
|
3157
|
-
getHelmRegistry: (_0, ..._1) => __async(
|
|
3325
|
+
getHelmRegistry: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
3158
3326
|
assertParamExists("getHelmRegistry", "id", id);
|
|
3159
|
-
const localVarPath = `/api/v2/helm-registries/{id}`.replace(
|
|
3327
|
+
const localVarPath = `/api/v2/helm-registries/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
3160
3328
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3161
3329
|
let baseOptions;
|
|
3162
3330
|
if (configuration) {
|
|
@@ -3167,6 +3335,7 @@ var HelmRegistriesApiAxiosParamCreator = function(configuration) {
|
|
|
3167
3335
|
const localVarQueryParameter = {};
|
|
3168
3336
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3169
3337
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
3338
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3170
3339
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3171
3340
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3172
3341
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3182,10 +3351,10 @@ var HelmRegistriesApiAxiosParamCreator = function(configuration) {
|
|
|
3182
3351
|
* @param {*} [options] Override http request option.
|
|
3183
3352
|
* @throws {RequiredError}
|
|
3184
3353
|
*/
|
|
3185
|
-
updateHelmRegistry: (_0, _1, ..._2) => __async(
|
|
3354
|
+
updateHelmRegistry: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (id, updateHelmRegistry, options = {}) {
|
|
3186
3355
|
assertParamExists("updateHelmRegistry", "id", id);
|
|
3187
3356
|
assertParamExists("updateHelmRegistry", "updateHelmRegistry", updateHelmRegistry);
|
|
3188
|
-
const localVarPath = `/api/v2/helm-registries/{id}`.replace(
|
|
3357
|
+
const localVarPath = `/api/v2/helm-registries/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
3189
3358
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3190
3359
|
let baseOptions;
|
|
3191
3360
|
if (configuration) {
|
|
@@ -3197,6 +3366,7 @@ var HelmRegistriesApiAxiosParamCreator = function(configuration) {
|
|
|
3197
3366
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3198
3367
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
3199
3368
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
3369
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3200
3370
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3201
3371
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3202
3372
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3215,15 +3385,13 @@ var HelmRegistriesApiFp = function(configuration) {
|
|
|
3215
3385
|
*
|
|
3216
3386
|
* @param {string | null} [repoName]
|
|
3217
3387
|
* @param {string | null} [kindId]
|
|
3218
|
-
* @param {number | null} [page]
|
|
3219
|
-
* @param {number | null} [perPage]
|
|
3220
3388
|
* @param {*} [options] Override http request option.
|
|
3221
3389
|
* @throws {RequiredError}
|
|
3222
3390
|
*/
|
|
3223
|
-
allHelmRegistries(repoName, kindId,
|
|
3391
|
+
allHelmRegistries(repoName, kindId, options) {
|
|
3224
3392
|
return __async(this, null, function* () {
|
|
3225
3393
|
var _a2, _b, _c;
|
|
3226
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allHelmRegistries(repoName, kindId,
|
|
3394
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allHelmRegistries(repoName, kindId, options);
|
|
3227
3395
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
3228
3396
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["HelmRegistriesApi.allHelmRegistries"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
3229
3397
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3272,7 +3440,7 @@ var HelmRegistriesApiFactory = function(configuration, basePath, axios) {
|
|
|
3272
3440
|
* @throws {RequiredError}
|
|
3273
3441
|
*/
|
|
3274
3442
|
allHelmRegistries(requestParameters = {}, options) {
|
|
3275
|
-
return localVarFp.allHelmRegistries(requestParameters.repoName, requestParameters.kindId,
|
|
3443
|
+
return localVarFp.allHelmRegistries(requestParameters.repoName, requestParameters.kindId, options).then((request) => request(axios, basePath));
|
|
3276
3444
|
},
|
|
3277
3445
|
/**
|
|
3278
3446
|
*
|
|
@@ -3300,17 +3468,15 @@ var HelmRegistriesApi = class extends BaseAPI {
|
|
|
3300
3468
|
* @param {HelmRegistriesApiAllHelmRegistriesRequest} requestParameters Request parameters.
|
|
3301
3469
|
* @param {*} [options] Override http request option.
|
|
3302
3470
|
* @throws {RequiredError}
|
|
3303
|
-
* @memberof HelmRegistriesApi
|
|
3304
3471
|
*/
|
|
3305
3472
|
allHelmRegistries(requestParameters = {}, options) {
|
|
3306
|
-
return HelmRegistriesApiFp(this.configuration).allHelmRegistries(requestParameters.repoName, requestParameters.kindId,
|
|
3473
|
+
return HelmRegistriesApiFp(this.configuration).allHelmRegistries(requestParameters.repoName, requestParameters.kindId, options).then((request) => request(this.axios, this.basePath));
|
|
3307
3474
|
}
|
|
3308
3475
|
/**
|
|
3309
3476
|
*
|
|
3310
3477
|
* @param {HelmRegistriesApiGetHelmRegistryRequest} requestParameters Request parameters.
|
|
3311
3478
|
* @param {*} [options] Override http request option.
|
|
3312
3479
|
* @throws {RequiredError}
|
|
3313
|
-
* @memberof HelmRegistriesApi
|
|
3314
3480
|
*/
|
|
3315
3481
|
getHelmRegistry(requestParameters, options) {
|
|
3316
3482
|
return HelmRegistriesApiFp(this.configuration).getHelmRegistry(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3320,7 +3486,6 @@ var HelmRegistriesApi = class extends BaseAPI {
|
|
|
3320
3486
|
* @param {HelmRegistriesApiUpdateHelmRegistryRequest} requestParameters Request parameters.
|
|
3321
3487
|
* @param {*} [options] Override http request option.
|
|
3322
3488
|
* @throws {RequiredError}
|
|
3323
|
-
* @memberof HelmRegistriesApi
|
|
3324
3489
|
*/
|
|
3325
3490
|
updateHelmRegistry(requestParameters, options) {
|
|
3326
3491
|
return HelmRegistriesApiFp(this.configuration).updateHelmRegistry(requestParameters.id, requestParameters.updateHelmRegistry, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3331,12 +3496,10 @@ var HelmTagFormatsApiAxiosParamCreator = function(configuration) {
|
|
|
3331
3496
|
/**
|
|
3332
3497
|
*
|
|
3333
3498
|
* @param {string | null} [pattern]
|
|
3334
|
-
* @param {number | null} [page]
|
|
3335
|
-
* @param {number | null} [perPage]
|
|
3336
3499
|
* @param {*} [options] Override http request option.
|
|
3337
3500
|
* @throws {RequiredError}
|
|
3338
3501
|
*/
|
|
3339
|
-
allHelmTagFormats: (_0, _1
|
|
3502
|
+
allHelmTagFormats: (_0, ..._1) => __async(null, [_0, ..._1], function* (pattern, options = {}) {
|
|
3340
3503
|
const localVarPath = `/api/v2/helm-tag-formats`;
|
|
3341
3504
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3342
3505
|
let baseOptions;
|
|
@@ -3351,12 +3514,7 @@ var HelmTagFormatsApiAxiosParamCreator = function(configuration) {
|
|
|
3351
3514
|
if (pattern !== void 0) {
|
|
3352
3515
|
localVarQueryParameter["pattern"] = pattern;
|
|
3353
3516
|
}
|
|
3354
|
-
|
|
3355
|
-
localVarQueryParameter["page"] = page;
|
|
3356
|
-
}
|
|
3357
|
-
if (perPage !== void 0) {
|
|
3358
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
3359
|
-
}
|
|
3517
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3360
3518
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3361
3519
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3362
3520
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3371,7 +3529,7 @@ var HelmTagFormatsApiAxiosParamCreator = function(configuration) {
|
|
|
3371
3529
|
* @param {*} [options] Override http request option.
|
|
3372
3530
|
* @throws {RequiredError}
|
|
3373
3531
|
*/
|
|
3374
|
-
createHelmTagFormat: (_0, ..._1) => __async(
|
|
3532
|
+
createHelmTagFormat: (_0, ..._1) => __async(null, [_0, ..._1], function* (newHelmTagFormat, options = {}) {
|
|
3375
3533
|
assertParamExists("createHelmTagFormat", "newHelmTagFormat", newHelmTagFormat);
|
|
3376
3534
|
const localVarPath = `/api/v2/helm-tag-formats`;
|
|
3377
3535
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -3385,6 +3543,7 @@ var HelmTagFormatsApiAxiosParamCreator = function(configuration) {
|
|
|
3385
3543
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3386
3544
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
3387
3545
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
3546
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3388
3547
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3389
3548
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3390
3549
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3400,9 +3559,9 @@ var HelmTagFormatsApiAxiosParamCreator = function(configuration) {
|
|
|
3400
3559
|
* @param {*} [options] Override http request option.
|
|
3401
3560
|
* @throws {RequiredError}
|
|
3402
3561
|
*/
|
|
3403
|
-
deleteHelmTagFormat: (_0, ..._1) => __async(
|
|
3562
|
+
deleteHelmTagFormat: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
3404
3563
|
assertParamExists("deleteHelmTagFormat", "id", id);
|
|
3405
|
-
const localVarPath = `/api/v2/helm-tag-formats/{id}`.replace(
|
|
3564
|
+
const localVarPath = `/api/v2/helm-tag-formats/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
3406
3565
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3407
3566
|
let baseOptions;
|
|
3408
3567
|
if (configuration) {
|
|
@@ -3427,9 +3586,9 @@ var HelmTagFormatsApiAxiosParamCreator = function(configuration) {
|
|
|
3427
3586
|
* @param {*} [options] Override http request option.
|
|
3428
3587
|
* @throws {RequiredError}
|
|
3429
3588
|
*/
|
|
3430
|
-
getHelmTagFormat: (_0, ..._1) => __async(
|
|
3589
|
+
getHelmTagFormat: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
3431
3590
|
assertParamExists("getHelmTagFormat", "id", id);
|
|
3432
|
-
const localVarPath = `/api/v2/helm-tag-formats/{id}`.replace(
|
|
3591
|
+
const localVarPath = `/api/v2/helm-tag-formats/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
3433
3592
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3434
3593
|
let baseOptions;
|
|
3435
3594
|
if (configuration) {
|
|
@@ -3440,6 +3599,7 @@ var HelmTagFormatsApiAxiosParamCreator = function(configuration) {
|
|
|
3440
3599
|
const localVarQueryParameter = {};
|
|
3441
3600
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3442
3601
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
3602
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3443
3603
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3444
3604
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3445
3605
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3456,15 +3616,13 @@ var HelmTagFormatsApiFp = function(configuration) {
|
|
|
3456
3616
|
/**
|
|
3457
3617
|
*
|
|
3458
3618
|
* @param {string | null} [pattern]
|
|
3459
|
-
* @param {number | null} [page]
|
|
3460
|
-
* @param {number | null} [perPage]
|
|
3461
3619
|
* @param {*} [options] Override http request option.
|
|
3462
3620
|
* @throws {RequiredError}
|
|
3463
3621
|
*/
|
|
3464
|
-
allHelmTagFormats(pattern,
|
|
3622
|
+
allHelmTagFormats(pattern, options) {
|
|
3465
3623
|
return __async(this, null, function* () {
|
|
3466
3624
|
var _a2, _b, _c;
|
|
3467
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allHelmTagFormats(pattern,
|
|
3625
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allHelmTagFormats(pattern, options);
|
|
3468
3626
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
3469
3627
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["HelmTagFormatsApi.allHelmTagFormats"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
3470
3628
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3527,7 +3685,7 @@ var HelmTagFormatsApiFactory = function(configuration, basePath, axios) {
|
|
|
3527
3685
|
* @throws {RequiredError}
|
|
3528
3686
|
*/
|
|
3529
3687
|
allHelmTagFormats(requestParameters = {}, options) {
|
|
3530
|
-
return localVarFp.allHelmTagFormats(requestParameters.pattern,
|
|
3688
|
+
return localVarFp.allHelmTagFormats(requestParameters.pattern, options).then((request) => request(axios, basePath));
|
|
3531
3689
|
},
|
|
3532
3690
|
/**
|
|
3533
3691
|
*
|
|
@@ -3564,17 +3722,15 @@ var HelmTagFormatsApi = class extends BaseAPI {
|
|
|
3564
3722
|
* @param {HelmTagFormatsApiAllHelmTagFormatsRequest} requestParameters Request parameters.
|
|
3565
3723
|
* @param {*} [options] Override http request option.
|
|
3566
3724
|
* @throws {RequiredError}
|
|
3567
|
-
* @memberof HelmTagFormatsApi
|
|
3568
3725
|
*/
|
|
3569
3726
|
allHelmTagFormats(requestParameters = {}, options) {
|
|
3570
|
-
return HelmTagFormatsApiFp(this.configuration).allHelmTagFormats(requestParameters.pattern,
|
|
3727
|
+
return HelmTagFormatsApiFp(this.configuration).allHelmTagFormats(requestParameters.pattern, options).then((request) => request(this.axios, this.basePath));
|
|
3571
3728
|
}
|
|
3572
3729
|
/**
|
|
3573
3730
|
*
|
|
3574
3731
|
* @param {HelmTagFormatsApiCreateHelmTagFormatRequest} requestParameters Request parameters.
|
|
3575
3732
|
* @param {*} [options] Override http request option.
|
|
3576
3733
|
* @throws {RequiredError}
|
|
3577
|
-
* @memberof HelmTagFormatsApi
|
|
3578
3734
|
*/
|
|
3579
3735
|
createHelmTagFormat(requestParameters, options) {
|
|
3580
3736
|
return HelmTagFormatsApiFp(this.configuration).createHelmTagFormat(requestParameters.newHelmTagFormat, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3584,7 +3740,6 @@ var HelmTagFormatsApi = class extends BaseAPI {
|
|
|
3584
3740
|
* @param {HelmTagFormatsApiDeleteHelmTagFormatRequest} requestParameters Request parameters.
|
|
3585
3741
|
* @param {*} [options] Override http request option.
|
|
3586
3742
|
* @throws {RequiredError}
|
|
3587
|
-
* @memberof HelmTagFormatsApi
|
|
3588
3743
|
*/
|
|
3589
3744
|
deleteHelmTagFormat(requestParameters, options) {
|
|
3590
3745
|
return HelmTagFormatsApiFp(this.configuration).deleteHelmTagFormat(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3594,7 +3749,6 @@ var HelmTagFormatsApi = class extends BaseAPI {
|
|
|
3594
3749
|
* @param {HelmTagFormatsApiGetHelmTagFormatRequest} requestParameters Request parameters.
|
|
3595
3750
|
* @param {*} [options] Override http request option.
|
|
3596
3751
|
* @throws {RequiredError}
|
|
3597
|
-
* @memberof HelmTagFormatsApi
|
|
3598
3752
|
*/
|
|
3599
3753
|
getHelmTagFormat(requestParameters, options) {
|
|
3600
3754
|
return HelmTagFormatsApiFp(this.configuration).getHelmTagFormat(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3606,12 +3760,10 @@ var KubernetesClustersApiAxiosParamCreator = function(configuration) {
|
|
|
3606
3760
|
*
|
|
3607
3761
|
* @param {string | null} [envId]
|
|
3608
3762
|
* @param {string | null} [name]
|
|
3609
|
-
* @param {number | null} [page]
|
|
3610
|
-
* @param {number | null} [perPage]
|
|
3611
3763
|
* @param {*} [options] Override http request option.
|
|
3612
3764
|
* @throws {RequiredError}
|
|
3613
3765
|
*/
|
|
3614
|
-
allK8sClusters: (_0, _1, _2
|
|
3766
|
+
allK8sClusters: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (envId, name, options = {}) {
|
|
3615
3767
|
const localVarPath = `/api/v2/k8s-clusters`;
|
|
3616
3768
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3617
3769
|
let baseOptions;
|
|
@@ -3629,12 +3781,7 @@ var KubernetesClustersApiAxiosParamCreator = function(configuration) {
|
|
|
3629
3781
|
if (name !== void 0) {
|
|
3630
3782
|
localVarQueryParameter["name"] = name;
|
|
3631
3783
|
}
|
|
3632
|
-
|
|
3633
|
-
localVarQueryParameter["page"] = page;
|
|
3634
|
-
}
|
|
3635
|
-
if (perPage !== void 0) {
|
|
3636
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
3637
|
-
}
|
|
3784
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3638
3785
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3639
3786
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3640
3787
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3649,9 +3796,9 @@ var KubernetesClustersApiAxiosParamCreator = function(configuration) {
|
|
|
3649
3796
|
* @param {*} [options] Override http request option.
|
|
3650
3797
|
* @throws {RequiredError}
|
|
3651
3798
|
*/
|
|
3652
|
-
deleteK8sCluster: (_0, ..._1) => __async(
|
|
3799
|
+
deleteK8sCluster: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
3653
3800
|
assertParamExists("deleteK8sCluster", "id", id);
|
|
3654
|
-
const localVarPath = `/api/v2/k8s-clusters/{id}`.replace(
|
|
3801
|
+
const localVarPath = `/api/v2/k8s-clusters/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
3655
3802
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3656
3803
|
let baseOptions;
|
|
3657
3804
|
if (configuration) {
|
|
@@ -3676,9 +3823,9 @@ var KubernetesClustersApiAxiosParamCreator = function(configuration) {
|
|
|
3676
3823
|
* @param {*} [options] Override http request option.
|
|
3677
3824
|
* @throws {RequiredError}
|
|
3678
3825
|
*/
|
|
3679
|
-
getK8sCluster: (_0, ..._1) => __async(
|
|
3826
|
+
getK8sCluster: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
3680
3827
|
assertParamExists("getK8sCluster", "id", id);
|
|
3681
|
-
const localVarPath = `/api/v2/k8s-clusters/{id}`.replace(
|
|
3828
|
+
const localVarPath = `/api/v2/k8s-clusters/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
3682
3829
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3683
3830
|
let baseOptions;
|
|
3684
3831
|
if (configuration) {
|
|
@@ -3689,6 +3836,7 @@ var KubernetesClustersApiAxiosParamCreator = function(configuration) {
|
|
|
3689
3836
|
const localVarQueryParameter = {};
|
|
3690
3837
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3691
3838
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
3839
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3692
3840
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3693
3841
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3694
3842
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3704,10 +3852,10 @@ var KubernetesClustersApiAxiosParamCreator = function(configuration) {
|
|
|
3704
3852
|
* @param {*} [options] Override http request option.
|
|
3705
3853
|
* @throws {RequiredError}
|
|
3706
3854
|
*/
|
|
3707
|
-
updateK8sCluster: (_0, _1, ..._2) => __async(
|
|
3855
|
+
updateK8sCluster: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (id, updateK8sCluster, options = {}) {
|
|
3708
3856
|
assertParamExists("updateK8sCluster", "id", id);
|
|
3709
3857
|
assertParamExists("updateK8sCluster", "updateK8sCluster", updateK8sCluster);
|
|
3710
|
-
const localVarPath = `/api/v2/k8s-clusters/{id}`.replace(
|
|
3858
|
+
const localVarPath = `/api/v2/k8s-clusters/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
3711
3859
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3712
3860
|
let baseOptions;
|
|
3713
3861
|
if (configuration) {
|
|
@@ -3719,6 +3867,7 @@ var KubernetesClustersApiAxiosParamCreator = function(configuration) {
|
|
|
3719
3867
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3720
3868
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
3721
3869
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
3870
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3722
3871
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3723
3872
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3724
3873
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3737,15 +3886,13 @@ var KubernetesClustersApiFp = function(configuration) {
|
|
|
3737
3886
|
*
|
|
3738
3887
|
* @param {string | null} [envId]
|
|
3739
3888
|
* @param {string | null} [name]
|
|
3740
|
-
* @param {number | null} [page]
|
|
3741
|
-
* @param {number | null} [perPage]
|
|
3742
3889
|
* @param {*} [options] Override http request option.
|
|
3743
3890
|
* @throws {RequiredError}
|
|
3744
3891
|
*/
|
|
3745
|
-
allK8sClusters(envId, name,
|
|
3892
|
+
allK8sClusters(envId, name, options) {
|
|
3746
3893
|
return __async(this, null, function* () {
|
|
3747
3894
|
var _a2, _b, _c;
|
|
3748
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allK8sClusters(envId, name,
|
|
3895
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allK8sClusters(envId, name, options);
|
|
3749
3896
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
3750
3897
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["KubernetesClustersApi.allK8sClusters"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
3751
3898
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3809,7 +3956,7 @@ var KubernetesClustersApiFactory = function(configuration, basePath, axios) {
|
|
|
3809
3956
|
* @throws {RequiredError}
|
|
3810
3957
|
*/
|
|
3811
3958
|
allK8sClusters(requestParameters = {}, options) {
|
|
3812
|
-
return localVarFp.allK8sClusters(requestParameters.envId, requestParameters.name,
|
|
3959
|
+
return localVarFp.allK8sClusters(requestParameters.envId, requestParameters.name, options).then((request) => request(axios, basePath));
|
|
3813
3960
|
},
|
|
3814
3961
|
/**
|
|
3815
3962
|
*
|
|
@@ -3846,17 +3993,15 @@ var KubernetesClustersApi = class extends BaseAPI {
|
|
|
3846
3993
|
* @param {KubernetesClustersApiAllK8sClustersRequest} requestParameters Request parameters.
|
|
3847
3994
|
* @param {*} [options] Override http request option.
|
|
3848
3995
|
* @throws {RequiredError}
|
|
3849
|
-
* @memberof KubernetesClustersApi
|
|
3850
3996
|
*/
|
|
3851
3997
|
allK8sClusters(requestParameters = {}, options) {
|
|
3852
|
-
return KubernetesClustersApiFp(this.configuration).allK8sClusters(requestParameters.envId, requestParameters.name,
|
|
3998
|
+
return KubernetesClustersApiFp(this.configuration).allK8sClusters(requestParameters.envId, requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
3853
3999
|
}
|
|
3854
4000
|
/**
|
|
3855
4001
|
*
|
|
3856
4002
|
* @param {KubernetesClustersApiDeleteK8sClusterRequest} requestParameters Request parameters.
|
|
3857
4003
|
* @param {*} [options] Override http request option.
|
|
3858
4004
|
* @throws {RequiredError}
|
|
3859
|
-
* @memberof KubernetesClustersApi
|
|
3860
4005
|
*/
|
|
3861
4006
|
deleteK8sCluster(requestParameters, options) {
|
|
3862
4007
|
return KubernetesClustersApiFp(this.configuration).deleteK8sCluster(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3866,7 +4011,6 @@ var KubernetesClustersApi = class extends BaseAPI {
|
|
|
3866
4011
|
* @param {KubernetesClustersApiGetK8sClusterRequest} requestParameters Request parameters.
|
|
3867
4012
|
* @param {*} [options] Override http request option.
|
|
3868
4013
|
* @throws {RequiredError}
|
|
3869
|
-
* @memberof KubernetesClustersApi
|
|
3870
4014
|
*/
|
|
3871
4015
|
getK8sCluster(requestParameters, options) {
|
|
3872
4016
|
return KubernetesClustersApiFp(this.configuration).getK8sCluster(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3876,7 +4020,6 @@ var KubernetesClustersApi = class extends BaseAPI {
|
|
|
3876
4020
|
* @param {KubernetesClustersApiUpdateK8sClusterRequest} requestParameters Request parameters.
|
|
3877
4021
|
* @param {*} [options] Override http request option.
|
|
3878
4022
|
* @throws {RequiredError}
|
|
3879
|
-
* @memberof KubernetesClustersApi
|
|
3880
4023
|
*/
|
|
3881
4024
|
updateK8sCluster(requestParameters, options) {
|
|
3882
4025
|
return KubernetesClustersApiFp(this.configuration).updateK8sCluster(requestParameters.id, requestParameters.updateK8sCluster, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -3890,12 +4033,10 @@ var KubernetesResourcesApiAxiosParamCreator = function(configuration) {
|
|
|
3890
4033
|
* @param {string | null} [deploymentId]
|
|
3891
4034
|
* @param {string | null} [kind]
|
|
3892
4035
|
* @param {string | null} [name]
|
|
3893
|
-
* @param {number | null} [page]
|
|
3894
|
-
* @param {number | null} [perPage]
|
|
3895
4036
|
* @param {*} [options] Override http request option.
|
|
3896
4037
|
* @throws {RequiredError}
|
|
3897
4038
|
*/
|
|
3898
|
-
allK8sResources: (_0, _1, _2, _3, _4
|
|
4039
|
+
allK8sResources: (_0, _1, _2, _3, ..._4) => __async(null, [_0, _1, _2, _3, ..._4], function* (clusterId, deploymentId, kind, name, options = {}) {
|
|
3899
4040
|
const localVarPath = `/api/v2/k8s-resources`;
|
|
3900
4041
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3901
4042
|
let baseOptions;
|
|
@@ -3919,12 +4060,7 @@ var KubernetesResourcesApiAxiosParamCreator = function(configuration) {
|
|
|
3919
4060
|
if (name !== void 0) {
|
|
3920
4061
|
localVarQueryParameter["name"] = name;
|
|
3921
4062
|
}
|
|
3922
|
-
|
|
3923
|
-
localVarQueryParameter["page"] = page;
|
|
3924
|
-
}
|
|
3925
|
-
if (perPage !== void 0) {
|
|
3926
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
3927
|
-
}
|
|
4063
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3928
4064
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3929
4065
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3930
4066
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3939,9 +4075,9 @@ var KubernetesResourcesApiAxiosParamCreator = function(configuration) {
|
|
|
3939
4075
|
* @param {*} [options] Override http request option.
|
|
3940
4076
|
* @throws {RequiredError}
|
|
3941
4077
|
*/
|
|
3942
|
-
getK8sResource: (_0, ..._1) => __async(
|
|
4078
|
+
getK8sResource: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
3943
4079
|
assertParamExists("getK8sResource", "id", id);
|
|
3944
|
-
const localVarPath = `/api/v2/k8s-resources/{id}`.replace(
|
|
4080
|
+
const localVarPath = `/api/v2/k8s-resources/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
3945
4081
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3946
4082
|
let baseOptions;
|
|
3947
4083
|
if (configuration) {
|
|
@@ -3952,6 +4088,7 @@ var KubernetesResourcesApiAxiosParamCreator = function(configuration) {
|
|
|
3952
4088
|
const localVarQueryParameter = {};
|
|
3953
4089
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3954
4090
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
4091
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
3955
4092
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3956
4093
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3957
4094
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -3971,15 +4108,13 @@ var KubernetesResourcesApiFp = function(configuration) {
|
|
|
3971
4108
|
* @param {string | null} [deploymentId]
|
|
3972
4109
|
* @param {string | null} [kind]
|
|
3973
4110
|
* @param {string | null} [name]
|
|
3974
|
-
* @param {number | null} [page]
|
|
3975
|
-
* @param {number | null} [perPage]
|
|
3976
4111
|
* @param {*} [options] Override http request option.
|
|
3977
4112
|
* @throws {RequiredError}
|
|
3978
4113
|
*/
|
|
3979
|
-
allK8sResources(clusterId, deploymentId, kind, name,
|
|
4114
|
+
allK8sResources(clusterId, deploymentId, kind, name, options) {
|
|
3980
4115
|
return __async(this, null, function* () {
|
|
3981
4116
|
var _a2, _b, _c;
|
|
3982
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allK8sResources(clusterId, deploymentId, kind, name,
|
|
4117
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allK8sResources(clusterId, deploymentId, kind, name, options);
|
|
3983
4118
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
3984
4119
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["KubernetesResourcesApi.allK8sResources"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
3985
4120
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -4012,7 +4147,7 @@ var KubernetesResourcesApiFactory = function(configuration, basePath, axios) {
|
|
|
4012
4147
|
* @throws {RequiredError}
|
|
4013
4148
|
*/
|
|
4014
4149
|
allK8sResources(requestParameters = {}, options) {
|
|
4015
|
-
return localVarFp.allK8sResources(requestParameters.clusterId, requestParameters.deploymentId, requestParameters.kind, requestParameters.name,
|
|
4150
|
+
return localVarFp.allK8sResources(requestParameters.clusterId, requestParameters.deploymentId, requestParameters.kind, requestParameters.name, options).then((request) => request(axios, basePath));
|
|
4016
4151
|
},
|
|
4017
4152
|
/**
|
|
4018
4153
|
*
|
|
@@ -4031,17 +4166,15 @@ var KubernetesResourcesApi = class extends BaseAPI {
|
|
|
4031
4166
|
* @param {KubernetesResourcesApiAllK8sResourcesRequest} requestParameters Request parameters.
|
|
4032
4167
|
* @param {*} [options] Override http request option.
|
|
4033
4168
|
* @throws {RequiredError}
|
|
4034
|
-
* @memberof KubernetesResourcesApi
|
|
4035
4169
|
*/
|
|
4036
4170
|
allK8sResources(requestParameters = {}, options) {
|
|
4037
|
-
return KubernetesResourcesApiFp(this.configuration).allK8sResources(requestParameters.clusterId, requestParameters.deploymentId, requestParameters.kind, requestParameters.name,
|
|
4171
|
+
return KubernetesResourcesApiFp(this.configuration).allK8sResources(requestParameters.clusterId, requestParameters.deploymentId, requestParameters.kind, requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
4038
4172
|
}
|
|
4039
4173
|
/**
|
|
4040
4174
|
*
|
|
4041
4175
|
* @param {KubernetesResourcesApiGetK8sResourceRequest} requestParameters Request parameters.
|
|
4042
4176
|
* @param {*} [options] Override http request option.
|
|
4043
4177
|
* @throws {RequiredError}
|
|
4044
|
-
* @memberof KubernetesResourcesApi
|
|
4045
4178
|
*/
|
|
4046
4179
|
getK8sResource(requestParameters, options) {
|
|
4047
4180
|
return KubernetesResourcesApiFp(this.configuration).getK8sResource(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4054,12 +4187,10 @@ var SecretsApiAxiosParamCreator = function(configuration) {
|
|
|
4054
4187
|
* @param {string | null} [envId]
|
|
4055
4188
|
* @param {string | null} [collection]
|
|
4056
4189
|
* @param {string | null} [name]
|
|
4057
|
-
* @param {number | null} [page]
|
|
4058
|
-
* @param {number | null} [perPage]
|
|
4059
4190
|
* @param {*} [options] Override http request option.
|
|
4060
4191
|
* @throws {RequiredError}
|
|
4061
4192
|
*/
|
|
4062
|
-
allSecrets: (_0, _1, _2, _3
|
|
4193
|
+
allSecrets: (_0, _1, _2, ..._3) => __async(null, [_0, _1, _2, ..._3], function* (envId, collection, name, options = {}) {
|
|
4063
4194
|
const localVarPath = `/api/v2/secrets`;
|
|
4064
4195
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4065
4196
|
let baseOptions;
|
|
@@ -4080,12 +4211,7 @@ var SecretsApiAxiosParamCreator = function(configuration) {
|
|
|
4080
4211
|
if (name !== void 0) {
|
|
4081
4212
|
localVarQueryParameter["name"] = name;
|
|
4082
4213
|
}
|
|
4083
|
-
|
|
4084
|
-
localVarQueryParameter["page"] = page;
|
|
4085
|
-
}
|
|
4086
|
-
if (perPage !== void 0) {
|
|
4087
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
4088
|
-
}
|
|
4214
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
4089
4215
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4090
4216
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4091
4217
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4100,7 +4226,7 @@ var SecretsApiAxiosParamCreator = function(configuration) {
|
|
|
4100
4226
|
* @param {*} [options] Override http request option.
|
|
4101
4227
|
* @throws {RequiredError}
|
|
4102
4228
|
*/
|
|
4103
|
-
createSecret: (_0, ..._1) => __async(
|
|
4229
|
+
createSecret: (_0, ..._1) => __async(null, [_0, ..._1], function* (newSecret, options = {}) {
|
|
4104
4230
|
assertParamExists("createSecret", "newSecret", newSecret);
|
|
4105
4231
|
const localVarPath = `/api/v2/secrets`;
|
|
4106
4232
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -4114,6 +4240,7 @@ var SecretsApiAxiosParamCreator = function(configuration) {
|
|
|
4114
4240
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4115
4241
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
4116
4242
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
4243
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
4117
4244
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4118
4245
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4119
4246
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4129,9 +4256,9 @@ var SecretsApiAxiosParamCreator = function(configuration) {
|
|
|
4129
4256
|
* @param {*} [options] Override http request option.
|
|
4130
4257
|
* @throws {RequiredError}
|
|
4131
4258
|
*/
|
|
4132
|
-
deleteSecret: (_0, ..._1) => __async(
|
|
4259
|
+
deleteSecret: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
4133
4260
|
assertParamExists("deleteSecret", "id", id);
|
|
4134
|
-
const localVarPath = `/api/v2/secrets/{id}`.replace(
|
|
4261
|
+
const localVarPath = `/api/v2/secrets/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
4135
4262
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4136
4263
|
let baseOptions;
|
|
4137
4264
|
if (configuration) {
|
|
@@ -4156,9 +4283,9 @@ var SecretsApiAxiosParamCreator = function(configuration) {
|
|
|
4156
4283
|
* @param {*} [options] Override http request option.
|
|
4157
4284
|
* @throws {RequiredError}
|
|
4158
4285
|
*/
|
|
4159
|
-
getSecret: (_0, ..._1) => __async(
|
|
4286
|
+
getSecret: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
4160
4287
|
assertParamExists("getSecret", "id", id);
|
|
4161
|
-
const localVarPath = `/api/v2/secrets/{id}`.replace(
|
|
4288
|
+
const localVarPath = `/api/v2/secrets/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
4162
4289
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4163
4290
|
let baseOptions;
|
|
4164
4291
|
if (configuration) {
|
|
@@ -4169,6 +4296,7 @@ var SecretsApiAxiosParamCreator = function(configuration) {
|
|
|
4169
4296
|
const localVarQueryParameter = {};
|
|
4170
4297
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4171
4298
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
4299
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
4172
4300
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4173
4301
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4174
4302
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4184,10 +4312,10 @@ var SecretsApiAxiosParamCreator = function(configuration) {
|
|
|
4184
4312
|
* @param {*} [options] Override http request option.
|
|
4185
4313
|
* @throws {RequiredError}
|
|
4186
4314
|
*/
|
|
4187
|
-
updateSecret: (_0, _1, ..._2) => __async(
|
|
4315
|
+
updateSecret: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (id, updateSecret, options = {}) {
|
|
4188
4316
|
assertParamExists("updateSecret", "id", id);
|
|
4189
4317
|
assertParamExists("updateSecret", "updateSecret", updateSecret);
|
|
4190
|
-
const localVarPath = `/api/v2/secrets/{id}`.replace(
|
|
4318
|
+
const localVarPath = `/api/v2/secrets/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
4191
4319
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4192
4320
|
let baseOptions;
|
|
4193
4321
|
if (configuration) {
|
|
@@ -4199,6 +4327,7 @@ var SecretsApiAxiosParamCreator = function(configuration) {
|
|
|
4199
4327
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4200
4328
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
4201
4329
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
4330
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
4202
4331
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4203
4332
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4204
4333
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4218,15 +4347,13 @@ var SecretsApiFp = function(configuration) {
|
|
|
4218
4347
|
* @param {string | null} [envId]
|
|
4219
4348
|
* @param {string | null} [collection]
|
|
4220
4349
|
* @param {string | null} [name]
|
|
4221
|
-
* @param {number | null} [page]
|
|
4222
|
-
* @param {number | null} [perPage]
|
|
4223
4350
|
* @param {*} [options] Override http request option.
|
|
4224
4351
|
* @throws {RequiredError}
|
|
4225
4352
|
*/
|
|
4226
|
-
allSecrets(envId, collection, name,
|
|
4353
|
+
allSecrets(envId, collection, name, options) {
|
|
4227
4354
|
return __async(this, null, function* () {
|
|
4228
4355
|
var _a2, _b, _c;
|
|
4229
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allSecrets(envId, collection, name,
|
|
4356
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allSecrets(envId, collection, name, options);
|
|
4230
4357
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
4231
4358
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["SecretsApi.allSecrets"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
4232
4359
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -4305,7 +4432,7 @@ var SecretsApiFactory = function(configuration, basePath, axios) {
|
|
|
4305
4432
|
* @throws {RequiredError}
|
|
4306
4433
|
*/
|
|
4307
4434
|
allSecrets(requestParameters = {}, options) {
|
|
4308
|
-
return localVarFp.allSecrets(requestParameters.envId, requestParameters.collection, requestParameters.name,
|
|
4435
|
+
return localVarFp.allSecrets(requestParameters.envId, requestParameters.collection, requestParameters.name, options).then((request) => request(axios, basePath));
|
|
4309
4436
|
},
|
|
4310
4437
|
/**
|
|
4311
4438
|
*
|
|
@@ -4351,17 +4478,15 @@ var SecretsApi = class extends BaseAPI {
|
|
|
4351
4478
|
* @param {SecretsApiAllSecretsRequest} requestParameters Request parameters.
|
|
4352
4479
|
* @param {*} [options] Override http request option.
|
|
4353
4480
|
* @throws {RequiredError}
|
|
4354
|
-
* @memberof SecretsApi
|
|
4355
4481
|
*/
|
|
4356
4482
|
allSecrets(requestParameters = {}, options) {
|
|
4357
|
-
return SecretsApiFp(this.configuration).allSecrets(requestParameters.envId, requestParameters.collection, requestParameters.name,
|
|
4483
|
+
return SecretsApiFp(this.configuration).allSecrets(requestParameters.envId, requestParameters.collection, requestParameters.name, options).then((request) => request(this.axios, this.basePath));
|
|
4358
4484
|
}
|
|
4359
4485
|
/**
|
|
4360
4486
|
*
|
|
4361
4487
|
* @param {SecretsApiCreateSecretRequest} requestParameters Request parameters.
|
|
4362
4488
|
* @param {*} [options] Override http request option.
|
|
4363
4489
|
* @throws {RequiredError}
|
|
4364
|
-
* @memberof SecretsApi
|
|
4365
4490
|
*/
|
|
4366
4491
|
createSecret(requestParameters, options) {
|
|
4367
4492
|
return SecretsApiFp(this.configuration).createSecret(requestParameters.newSecret, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4371,7 +4496,6 @@ var SecretsApi = class extends BaseAPI {
|
|
|
4371
4496
|
* @param {SecretsApiDeleteSecretRequest} requestParameters Request parameters.
|
|
4372
4497
|
* @param {*} [options] Override http request option.
|
|
4373
4498
|
* @throws {RequiredError}
|
|
4374
|
-
* @memberof SecretsApi
|
|
4375
4499
|
*/
|
|
4376
4500
|
deleteSecret(requestParameters, options) {
|
|
4377
4501
|
return SecretsApiFp(this.configuration).deleteSecret(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4381,7 +4505,6 @@ var SecretsApi = class extends BaseAPI {
|
|
|
4381
4505
|
* @param {SecretsApiGetSecretRequest} requestParameters Request parameters.
|
|
4382
4506
|
* @param {*} [options] Override http request option.
|
|
4383
4507
|
* @throws {RequiredError}
|
|
4384
|
-
* @memberof SecretsApi
|
|
4385
4508
|
*/
|
|
4386
4509
|
getSecret(requestParameters, options) {
|
|
4387
4510
|
return SecretsApiFp(this.configuration).getSecret(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4391,7 +4514,6 @@ var SecretsApi = class extends BaseAPI {
|
|
|
4391
4514
|
* @param {SecretsApiUpdateSecretRequest} requestParameters Request parameters.
|
|
4392
4515
|
* @param {*} [options] Override http request option.
|
|
4393
4516
|
* @throws {RequiredError}
|
|
4394
|
-
* @memberof SecretsApi
|
|
4395
4517
|
*/
|
|
4396
4518
|
updateSecret(requestParameters, options) {
|
|
4397
4519
|
return SecretsApiFp(this.configuration).updateSecret(requestParameters.id, requestParameters.updateSecret, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4404,7 +4526,7 @@ var ServerApiAxiosParamCreator = function(configuration) {
|
|
|
4404
4526
|
* @param {*} [options] Override http request option.
|
|
4405
4527
|
* @throws {RequiredError}
|
|
4406
4528
|
*/
|
|
4407
|
-
getServerInfo: (..._0) => __async(
|
|
4529
|
+
getServerInfo: (..._0) => __async(null, [..._0], function* (options = {}) {
|
|
4408
4530
|
const localVarPath = `/api/v2/server`;
|
|
4409
4531
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4410
4532
|
let baseOptions;
|
|
@@ -4416,6 +4538,7 @@ var ServerApiAxiosParamCreator = function(configuration) {
|
|
|
4416
4538
|
const localVarQueryParameter = {};
|
|
4417
4539
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4418
4540
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
4541
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
4419
4542
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4420
4543
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4421
4544
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4463,7 +4586,6 @@ var ServerApi = class extends BaseAPI {
|
|
|
4463
4586
|
*
|
|
4464
4587
|
* @param {*} [options] Override http request option.
|
|
4465
4588
|
* @throws {RequiredError}
|
|
4466
|
-
* @memberof ServerApi
|
|
4467
4589
|
*/
|
|
4468
4590
|
getServerInfo(options) {
|
|
4469
4591
|
return ServerApiFp(this.configuration).getServerInfo(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4474,12 +4596,10 @@ var UserTokensApiAxiosParamCreator = function(configuration) {
|
|
|
4474
4596
|
/**
|
|
4475
4597
|
*
|
|
4476
4598
|
* @param {string | null} [userId]
|
|
4477
|
-
* @param {number | null} [page]
|
|
4478
|
-
* @param {number | null} [perPage]
|
|
4479
4599
|
* @param {*} [options] Override http request option.
|
|
4480
4600
|
* @throws {RequiredError}
|
|
4481
4601
|
*/
|
|
4482
|
-
allUserTokens: (_0, _1
|
|
4602
|
+
allUserTokens: (_0, ..._1) => __async(null, [_0, ..._1], function* (userId, options = {}) {
|
|
4483
4603
|
const localVarPath = `/api/v2/user-tokens`;
|
|
4484
4604
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4485
4605
|
let baseOptions;
|
|
@@ -4494,12 +4614,7 @@ var UserTokensApiAxiosParamCreator = function(configuration) {
|
|
|
4494
4614
|
if (userId !== void 0) {
|
|
4495
4615
|
localVarQueryParameter["user_id"] = userId;
|
|
4496
4616
|
}
|
|
4497
|
-
|
|
4498
|
-
localVarQueryParameter["page"] = page;
|
|
4499
|
-
}
|
|
4500
|
-
if (perPage !== void 0) {
|
|
4501
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
4502
|
-
}
|
|
4617
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
4503
4618
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4504
4619
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4505
4620
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4514,7 +4629,7 @@ var UserTokensApiAxiosParamCreator = function(configuration) {
|
|
|
4514
4629
|
* @param {*} [options] Override http request option.
|
|
4515
4630
|
* @throws {RequiredError}
|
|
4516
4631
|
*/
|
|
4517
|
-
createUserToken: (_0, ..._1) => __async(
|
|
4632
|
+
createUserToken: (_0, ..._1) => __async(null, [_0, ..._1], function* (createUserToken, options = {}) {
|
|
4518
4633
|
assertParamExists("createUserToken", "createUserToken", createUserToken);
|
|
4519
4634
|
const localVarPath = `/api/v2/user-tokens`;
|
|
4520
4635
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -4528,6 +4643,7 @@ var UserTokensApiAxiosParamCreator = function(configuration) {
|
|
|
4528
4643
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4529
4644
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
4530
4645
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
4646
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
4531
4647
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4532
4648
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4533
4649
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4543,9 +4659,9 @@ var UserTokensApiAxiosParamCreator = function(configuration) {
|
|
|
4543
4659
|
* @param {*} [options] Override http request option.
|
|
4544
4660
|
* @throws {RequiredError}
|
|
4545
4661
|
*/
|
|
4546
|
-
deleteUserToken: (_0, ..._1) => __async(
|
|
4662
|
+
deleteUserToken: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
4547
4663
|
assertParamExists("deleteUserToken", "id", id);
|
|
4548
|
-
const localVarPath = `/api/v2/user-tokens/{id}`.replace(
|
|
4664
|
+
const localVarPath = `/api/v2/user-tokens/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
4549
4665
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4550
4666
|
let baseOptions;
|
|
4551
4667
|
if (configuration) {
|
|
@@ -4570,9 +4686,9 @@ var UserTokensApiAxiosParamCreator = function(configuration) {
|
|
|
4570
4686
|
* @param {*} [options] Override http request option.
|
|
4571
4687
|
* @throws {RequiredError}
|
|
4572
4688
|
*/
|
|
4573
|
-
getUserToken: (_0, ..._1) => __async(
|
|
4689
|
+
getUserToken: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
4574
4690
|
assertParamExists("getUserToken", "id", id);
|
|
4575
|
-
const localVarPath = `/api/v2/user-tokens/{id}`.replace(
|
|
4691
|
+
const localVarPath = `/api/v2/user-tokens/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
4576
4692
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4577
4693
|
let baseOptions;
|
|
4578
4694
|
if (configuration) {
|
|
@@ -4583,6 +4699,7 @@ var UserTokensApiAxiosParamCreator = function(configuration) {
|
|
|
4583
4699
|
const localVarQueryParameter = {};
|
|
4584
4700
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4585
4701
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
4702
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
4586
4703
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4587
4704
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4588
4705
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4599,15 +4716,13 @@ var UserTokensApiFp = function(configuration) {
|
|
|
4599
4716
|
/**
|
|
4600
4717
|
*
|
|
4601
4718
|
* @param {string | null} [userId]
|
|
4602
|
-
* @param {number | null} [page]
|
|
4603
|
-
* @param {number | null} [perPage]
|
|
4604
4719
|
* @param {*} [options] Override http request option.
|
|
4605
4720
|
* @throws {RequiredError}
|
|
4606
4721
|
*/
|
|
4607
|
-
allUserTokens(userId,
|
|
4722
|
+
allUserTokens(userId, options) {
|
|
4608
4723
|
return __async(this, null, function* () {
|
|
4609
4724
|
var _a2, _b, _c;
|
|
4610
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allUserTokens(userId,
|
|
4725
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allUserTokens(userId, options);
|
|
4611
4726
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
4612
4727
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["UserTokensApi.allUserTokens"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
4613
4728
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -4670,7 +4785,7 @@ var UserTokensApiFactory = function(configuration, basePath, axios) {
|
|
|
4670
4785
|
* @throws {RequiredError}
|
|
4671
4786
|
*/
|
|
4672
4787
|
allUserTokens(requestParameters = {}, options) {
|
|
4673
|
-
return localVarFp.allUserTokens(requestParameters.userId,
|
|
4788
|
+
return localVarFp.allUserTokens(requestParameters.userId, options).then((request) => request(axios, basePath));
|
|
4674
4789
|
},
|
|
4675
4790
|
/**
|
|
4676
4791
|
*
|
|
@@ -4707,17 +4822,15 @@ var UserTokensApi = class extends BaseAPI {
|
|
|
4707
4822
|
* @param {UserTokensApiAllUserTokensRequest} requestParameters Request parameters.
|
|
4708
4823
|
* @param {*} [options] Override http request option.
|
|
4709
4824
|
* @throws {RequiredError}
|
|
4710
|
-
* @memberof UserTokensApi
|
|
4711
4825
|
*/
|
|
4712
4826
|
allUserTokens(requestParameters = {}, options) {
|
|
4713
|
-
return UserTokensApiFp(this.configuration).allUserTokens(requestParameters.userId,
|
|
4827
|
+
return UserTokensApiFp(this.configuration).allUserTokens(requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
|
|
4714
4828
|
}
|
|
4715
4829
|
/**
|
|
4716
4830
|
*
|
|
4717
4831
|
* @param {UserTokensApiCreateUserTokenRequest} requestParameters Request parameters.
|
|
4718
4832
|
* @param {*} [options] Override http request option.
|
|
4719
4833
|
* @throws {RequiredError}
|
|
4720
|
-
* @memberof UserTokensApi
|
|
4721
4834
|
*/
|
|
4722
4835
|
createUserToken(requestParameters, options) {
|
|
4723
4836
|
return UserTokensApiFp(this.configuration).createUserToken(requestParameters.createUserToken, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4727,7 +4840,6 @@ var UserTokensApi = class extends BaseAPI {
|
|
|
4727
4840
|
* @param {UserTokensApiDeleteUserTokenRequest} requestParameters Request parameters.
|
|
4728
4841
|
* @param {*} [options] Override http request option.
|
|
4729
4842
|
* @throws {RequiredError}
|
|
4730
|
-
* @memberof UserTokensApi
|
|
4731
4843
|
*/
|
|
4732
4844
|
deleteUserToken(requestParameters, options) {
|
|
4733
4845
|
return UserTokensApiFp(this.configuration).deleteUserToken(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4737,7 +4849,6 @@ var UserTokensApi = class extends BaseAPI {
|
|
|
4737
4849
|
* @param {UserTokensApiGetUserTokenRequest} requestParameters Request parameters.
|
|
4738
4850
|
* @param {*} [options] Override http request option.
|
|
4739
4851
|
* @throws {RequiredError}
|
|
4740
|
-
* @memberof UserTokensApi
|
|
4741
4852
|
*/
|
|
4742
4853
|
getUserToken(requestParameters, options) {
|
|
4743
4854
|
return UserTokensApiFp(this.configuration).getUserToken(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4750,12 +4861,10 @@ var UsersApiAxiosParamCreator = function(configuration) {
|
|
|
4750
4861
|
* @param {string | null} [displayName]
|
|
4751
4862
|
* @param {string | null} [email]
|
|
4752
4863
|
* @param {boolean | null} [isActive]
|
|
4753
|
-
* @param {number | null} [page]
|
|
4754
|
-
* @param {number | null} [perPage]
|
|
4755
4864
|
* @param {*} [options] Override http request option.
|
|
4756
4865
|
* @throws {RequiredError}
|
|
4757
4866
|
*/
|
|
4758
|
-
allUsers: (_0, _1, _2, _3
|
|
4867
|
+
allUsers: (_0, _1, _2, ..._3) => __async(null, [_0, _1, _2, ..._3], function* (displayName, email, isActive, options = {}) {
|
|
4759
4868
|
const localVarPath = `/api/v2/users`;
|
|
4760
4869
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4761
4870
|
let baseOptions;
|
|
@@ -4776,12 +4885,7 @@ var UsersApiAxiosParamCreator = function(configuration) {
|
|
|
4776
4885
|
if (isActive !== void 0) {
|
|
4777
4886
|
localVarQueryParameter["is_active"] = isActive;
|
|
4778
4887
|
}
|
|
4779
|
-
|
|
4780
|
-
localVarQueryParameter["page"] = page;
|
|
4781
|
-
}
|
|
4782
|
-
if (perPage !== void 0) {
|
|
4783
|
-
localVarQueryParameter["per_page"] = perPage;
|
|
4784
|
-
}
|
|
4888
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
4785
4889
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4786
4890
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4787
4891
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4796,9 +4900,9 @@ var UsersApiAxiosParamCreator = function(configuration) {
|
|
|
4796
4900
|
* @param {*} [options] Override http request option.
|
|
4797
4901
|
* @throws {RequiredError}
|
|
4798
4902
|
*/
|
|
4799
|
-
getUser: (_0, ..._1) => __async(
|
|
4903
|
+
getUser: (_0, ..._1) => __async(null, [_0, ..._1], function* (id, options = {}) {
|
|
4800
4904
|
assertParamExists("getUser", "id", id);
|
|
4801
|
-
const localVarPath = `/api/v2/users/{id}`.replace(
|
|
4905
|
+
const localVarPath = `/api/v2/users/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
4802
4906
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4803
4907
|
let baseOptions;
|
|
4804
4908
|
if (configuration) {
|
|
@@ -4809,6 +4913,7 @@ var UsersApiAxiosParamCreator = function(configuration) {
|
|
|
4809
4913
|
const localVarQueryParameter = {};
|
|
4810
4914
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4811
4915
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
4916
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
4812
4917
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4813
4918
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4814
4919
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4824,10 +4929,10 @@ var UsersApiAxiosParamCreator = function(configuration) {
|
|
|
4824
4929
|
* @param {*} [options] Override http request option.
|
|
4825
4930
|
* @throws {RequiredError}
|
|
4826
4931
|
*/
|
|
4827
|
-
updateUser: (_0, _1, ..._2) => __async(
|
|
4932
|
+
updateUser: (_0, _1, ..._2) => __async(null, [_0, _1, ..._2], function* (id, updateUser, options = {}) {
|
|
4828
4933
|
assertParamExists("updateUser", "id", id);
|
|
4829
4934
|
assertParamExists("updateUser", "updateUser", updateUser);
|
|
4830
|
-
const localVarPath = `/api/v2/users/{id}`.replace(
|
|
4935
|
+
const localVarPath = `/api/v2/users/{id}`.replace("{id}", encodeURIComponent(String(id)));
|
|
4831
4936
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4832
4937
|
let baseOptions;
|
|
4833
4938
|
if (configuration) {
|
|
@@ -4839,6 +4944,7 @@ var UsersApiAxiosParamCreator = function(configuration) {
|
|
|
4839
4944
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4840
4945
|
yield setApiKeyToObject(localVarHeaderParameter, "x-platz-token", configuration);
|
|
4841
4946
|
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
4947
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
4842
4948
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4843
4949
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4844
4950
|
localVarRequestOptions.headers = __spreadValues(__spreadValues(__spreadValues({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -4858,15 +4964,13 @@ var UsersApiFp = function(configuration) {
|
|
|
4858
4964
|
* @param {string | null} [displayName]
|
|
4859
4965
|
* @param {string | null} [email]
|
|
4860
4966
|
* @param {boolean | null} [isActive]
|
|
4861
|
-
* @param {number | null} [page]
|
|
4862
|
-
* @param {number | null} [perPage]
|
|
4863
4967
|
* @param {*} [options] Override http request option.
|
|
4864
4968
|
* @throws {RequiredError}
|
|
4865
4969
|
*/
|
|
4866
|
-
allUsers(displayName, email, isActive,
|
|
4970
|
+
allUsers(displayName, email, isActive, options) {
|
|
4867
4971
|
return __async(this, null, function* () {
|
|
4868
4972
|
var _a2, _b, _c;
|
|
4869
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.allUsers(displayName, email, isActive,
|
|
4973
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.allUsers(displayName, email, isActive, options);
|
|
4870
4974
|
const localVarOperationServerIndex = (_a2 = configuration == null ? void 0 : configuration.serverIndex) != null ? _a2 : 0;
|
|
4871
4975
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap["UsersApi.allUsers"]) == null ? void 0 : _b[localVarOperationServerIndex]) == null ? void 0 : _c.url;
|
|
4872
4976
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -4915,7 +5019,7 @@ var UsersApiFactory = function(configuration, basePath, axios) {
|
|
|
4915
5019
|
* @throws {RequiredError}
|
|
4916
5020
|
*/
|
|
4917
5021
|
allUsers(requestParameters = {}, options) {
|
|
4918
|
-
return localVarFp.allUsers(requestParameters.displayName, requestParameters.email, requestParameters.isActive,
|
|
5022
|
+
return localVarFp.allUsers(requestParameters.displayName, requestParameters.email, requestParameters.isActive, options).then((request) => request(axios, basePath));
|
|
4919
5023
|
},
|
|
4920
5024
|
/**
|
|
4921
5025
|
*
|
|
@@ -4943,17 +5047,15 @@ var UsersApi = class extends BaseAPI {
|
|
|
4943
5047
|
* @param {UsersApiAllUsersRequest} requestParameters Request parameters.
|
|
4944
5048
|
* @param {*} [options] Override http request option.
|
|
4945
5049
|
* @throws {RequiredError}
|
|
4946
|
-
* @memberof UsersApi
|
|
4947
5050
|
*/
|
|
4948
5051
|
allUsers(requestParameters = {}, options) {
|
|
4949
|
-
return UsersApiFp(this.configuration).allUsers(requestParameters.displayName, requestParameters.email, requestParameters.isActive,
|
|
5052
|
+
return UsersApiFp(this.configuration).allUsers(requestParameters.displayName, requestParameters.email, requestParameters.isActive, options).then((request) => request(this.axios, this.basePath));
|
|
4950
5053
|
}
|
|
4951
5054
|
/**
|
|
4952
5055
|
*
|
|
4953
5056
|
* @param {UsersApiGetUserRequest} requestParameters Request parameters.
|
|
4954
5057
|
* @param {*} [options] Override http request option.
|
|
4955
5058
|
* @throws {RequiredError}
|
|
4956
|
-
* @memberof UsersApi
|
|
4957
5059
|
*/
|
|
4958
5060
|
getUser(requestParameters, options) {
|
|
4959
5061
|
return UsersApiFp(this.configuration).getUser(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4963,7 +5065,6 @@ var UsersApi = class extends BaseAPI {
|
|
|
4963
5065
|
* @param {UsersApiUpdateUserRequest} requestParameters Request parameters.
|
|
4964
5066
|
* @param {*} [options] Override http request option.
|
|
4965
5067
|
* @throws {RequiredError}
|
|
4966
|
-
* @memberof UsersApi
|
|
4967
5068
|
*/
|
|
4968
5069
|
updateUser(requestParameters, options) {
|
|
4969
5070
|
return UsersApiFp(this.configuration).updateUser(requestParameters.id, requestParameters.updateUser, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -4973,13 +5074,17 @@ var UsersApi = class extends BaseAPI {
|
|
|
4973
5074
|
// src/configuration.ts
|
|
4974
5075
|
var Configuration = class {
|
|
4975
5076
|
constructor(param = {}) {
|
|
5077
|
+
var _a;
|
|
4976
5078
|
this.apiKey = param.apiKey;
|
|
4977
5079
|
this.username = param.username;
|
|
4978
5080
|
this.password = param.password;
|
|
4979
5081
|
this.accessToken = param.accessToken;
|
|
5082
|
+
this.awsv4 = param.awsv4;
|
|
4980
5083
|
this.basePath = param.basePath;
|
|
4981
5084
|
this.serverIndex = param.serverIndex;
|
|
4982
|
-
this.baseOptions = param.baseOptions
|
|
5085
|
+
this.baseOptions = __spreadProps(__spreadValues({}, param.baseOptions), {
|
|
5086
|
+
headers: __spreadValues({}, (_a = param.baseOptions) == null ? void 0 : _a.headers)
|
|
5087
|
+
});
|
|
4983
5088
|
this.formDataCtor = param.formDataCtor;
|
|
4984
5089
|
}
|
|
4985
5090
|
/**
|
|
@@ -4993,8 +5098,8 @@ var Configuration = class {
|
|
|
4993
5098
|
* @return True if the given MIME is JSON, false otherwise.
|
|
4994
5099
|
*/
|
|
4995
5100
|
isJsonMime(mime) {
|
|
4996
|
-
const jsonMime =
|
|
4997
|
-
return mime !== null &&
|
|
5101
|
+
const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
|
|
5102
|
+
return mime !== null && jsonMime.test(mime);
|
|
4998
5103
|
}
|
|
4999
5104
|
};
|
|
5000
5105
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -5003,6 +5108,10 @@ var Configuration = class {
|
|
|
5003
5108
|
AuthenticationApiAxiosParamCreator,
|
|
5004
5109
|
AuthenticationApiFactory,
|
|
5005
5110
|
AuthenticationApiFp,
|
|
5111
|
+
BotTokensApi,
|
|
5112
|
+
BotTokensApiAxiosParamCreator,
|
|
5113
|
+
BotTokensApiFactory,
|
|
5114
|
+
BotTokensApiFp,
|
|
5006
5115
|
BotsApi,
|
|
5007
5116
|
BotsApiAxiosParamCreator,
|
|
5008
5117
|
BotsApiFactory,
|
|
@@ -5067,6 +5176,7 @@ var Configuration = class {
|
|
|
5067
5176
|
HelmRegistriesApiAxiosParamCreator,
|
|
5068
5177
|
HelmRegistriesApiFactory,
|
|
5069
5178
|
HelmRegistriesApiFp,
|
|
5179
|
+
HelmRegistryProvider,
|
|
5070
5180
|
HelmTagFormatsApi,
|
|
5071
5181
|
HelmTagFormatsApiAxiosParamCreator,
|
|
5072
5182
|
HelmTagFormatsApiFactory,
|