@platzio/sdk 0.5.3-beta.0 → 0.5.3-beta.4
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/.openapi-generator/VERSION +1 -1
- package/api.ts +180 -62
- package/base.ts +15 -1
- package/configuration.ts +9 -0
- package/openapitools.json +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.1.0
|
package/api.ts
CHANGED
|
@@ -21,7 +21,7 @@ import globalAxios from 'axios';
|
|
|
21
21
|
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
22
22
|
import type { RequestArgs } from './base';
|
|
23
23
|
// @ts-ignore
|
|
24
|
-
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError } from './base';
|
|
24
|
+
import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
*
|
|
@@ -3931,10 +3931,10 @@ export interface UiSchemaInput {
|
|
|
3931
3931
|
'itemType'?: string | null;
|
|
3932
3932
|
/**
|
|
3933
3933
|
*
|
|
3934
|
-
* @type {
|
|
3934
|
+
* @type {object}
|
|
3935
3935
|
* @memberof UiSchemaInput
|
|
3936
3936
|
*/
|
|
3937
|
-
'collection'?:
|
|
3937
|
+
'collection'?: object | null;
|
|
3938
3938
|
/**
|
|
3939
3939
|
*
|
|
3940
3940
|
* @type {string}
|
|
@@ -4668,7 +4668,9 @@ export const AuthenticationApiFp = function(configuration?: Configuration) {
|
|
|
4668
4668
|
*/
|
|
4669
4669
|
async authMe(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MeResponse>> {
|
|
4670
4670
|
const localVarAxiosArgs = await localVarAxiosParamCreator.authMe(options);
|
|
4671
|
-
|
|
4671
|
+
const index = configuration?.serverIndex ?? 0;
|
|
4672
|
+
const operationBasePath = operationServerMap['AuthenticationApi.authMe']?.[index]?.url;
|
|
4673
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
4672
4674
|
},
|
|
4673
4675
|
/**
|
|
4674
4676
|
*
|
|
@@ -4678,7 +4680,9 @@ export const AuthenticationApiFp = function(configuration?: Configuration) {
|
|
|
4678
4680
|
*/
|
|
4679
4681
|
async finishGoogleLogin(oAuth2Response: OAuth2Response, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FinishGoogleLoginResponse>> {
|
|
4680
4682
|
const localVarAxiosArgs = await localVarAxiosParamCreator.finishGoogleLogin(oAuth2Response, options);
|
|
4681
|
-
|
|
4683
|
+
const index = configuration?.serverIndex ?? 0;
|
|
4684
|
+
const operationBasePath = operationServerMap['AuthenticationApi.finishGoogleLogin']?.[index]?.url;
|
|
4685
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
4682
4686
|
},
|
|
4683
4687
|
/**
|
|
4684
4688
|
*
|
|
@@ -4687,7 +4691,9 @@ export const AuthenticationApiFp = function(configuration?: Configuration) {
|
|
|
4687
4691
|
*/
|
|
4688
4692
|
async startGoogleLogin(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<StartGoogleLoginResponse>> {
|
|
4689
4693
|
const localVarAxiosArgs = await localVarAxiosParamCreator.startGoogleLogin(options);
|
|
4690
|
-
|
|
4694
|
+
const index = configuration?.serverIndex ?? 0;
|
|
4695
|
+
const operationBasePath = operationServerMap['AuthenticationApi.startGoogleLogin']?.[index]?.url;
|
|
4696
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
4691
4697
|
},
|
|
4692
4698
|
}
|
|
4693
4699
|
};
|
|
@@ -4981,7 +4987,9 @@ export const DeploymentPermissionsApiFp = function(configuration?: Configuration
|
|
|
4981
4987
|
*/
|
|
4982
4988
|
async allDeploymentPermissions(envId?: string | null, page?: number | null, perPage?: number | null, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AllDeploymentPermissions200Response>> {
|
|
4983
4989
|
const localVarAxiosArgs = await localVarAxiosParamCreator.allDeploymentPermissions(envId, page, perPage, options);
|
|
4984
|
-
|
|
4990
|
+
const index = configuration?.serverIndex ?? 0;
|
|
4991
|
+
const operationBasePath = operationServerMap['DeploymentPermissionsApi.allDeploymentPermissions']?.[index]?.url;
|
|
4992
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
4985
4993
|
},
|
|
4986
4994
|
/**
|
|
4987
4995
|
*
|
|
@@ -4991,7 +4999,9 @@ export const DeploymentPermissionsApiFp = function(configuration?: Configuration
|
|
|
4991
4999
|
*/
|
|
4992
5000
|
async createDeploymentPermission(newDeploymentPermission: NewDeploymentPermission, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeploymentPermission>> {
|
|
4993
5001
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createDeploymentPermission(newDeploymentPermission, options);
|
|
4994
|
-
|
|
5002
|
+
const index = configuration?.serverIndex ?? 0;
|
|
5003
|
+
const operationBasePath = operationServerMap['DeploymentPermissionsApi.createDeploymentPermission']?.[index]?.url;
|
|
5004
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
4995
5005
|
},
|
|
4996
5006
|
/**
|
|
4997
5007
|
*
|
|
@@ -5001,7 +5011,9 @@ export const DeploymentPermissionsApiFp = function(configuration?: Configuration
|
|
|
5001
5011
|
*/
|
|
5002
5012
|
async deleteDeploymentPermission(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
5003
5013
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDeploymentPermission(id, options);
|
|
5004
|
-
|
|
5014
|
+
const index = configuration?.serverIndex ?? 0;
|
|
5015
|
+
const operationBasePath = operationServerMap['DeploymentPermissionsApi.deleteDeploymentPermission']?.[index]?.url;
|
|
5016
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
5005
5017
|
},
|
|
5006
5018
|
/**
|
|
5007
5019
|
*
|
|
@@ -5011,7 +5023,9 @@ export const DeploymentPermissionsApiFp = function(configuration?: Configuration
|
|
|
5011
5023
|
*/
|
|
5012
5024
|
async getDeploymentPermission(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeploymentPermission>> {
|
|
5013
5025
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getDeploymentPermission(id, options);
|
|
5014
|
-
|
|
5026
|
+
const index = configuration?.serverIndex ?? 0;
|
|
5027
|
+
const operationBasePath = operationServerMap['DeploymentPermissionsApi.getDeploymentPermission']?.[index]?.url;
|
|
5028
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
5015
5029
|
},
|
|
5016
5030
|
}
|
|
5017
5031
|
};
|
|
@@ -5315,7 +5329,9 @@ export const DeploymentResourceTypesApiFp = function(configuration?: Configurati
|
|
|
5315
5329
|
*/
|
|
5316
5330
|
async allDeploymentResourceTypes(envId?: string | null, deploymentKind?: string | null, key?: string | null, page?: number | null, perPage?: number | null, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AllDeploymentResourceTypes200Response>> {
|
|
5317
5331
|
const localVarAxiosArgs = await localVarAxiosParamCreator.allDeploymentResourceTypes(envId, deploymentKind, key, page, perPage, options);
|
|
5318
|
-
|
|
5332
|
+
const index = configuration?.serverIndex ?? 0;
|
|
5333
|
+
const operationBasePath = operationServerMap['DeploymentResourceTypesApi.allDeploymentResourceTypes']?.[index]?.url;
|
|
5334
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
5319
5335
|
},
|
|
5320
5336
|
/**
|
|
5321
5337
|
*
|
|
@@ -5325,7 +5341,9 @@ export const DeploymentResourceTypesApiFp = function(configuration?: Configurati
|
|
|
5325
5341
|
*/
|
|
5326
5342
|
async getDeploymentResourceType(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeploymentResourceType>> {
|
|
5327
5343
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getDeploymentResourceType(id, options);
|
|
5328
|
-
|
|
5344
|
+
const index = configuration?.serverIndex ?? 0;
|
|
5345
|
+
const operationBasePath = operationServerMap['DeploymentResourceTypesApi.getDeploymentResourceType']?.[index]?.url;
|
|
5346
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
5329
5347
|
},
|
|
5330
5348
|
}
|
|
5331
5349
|
};
|
|
@@ -5691,7 +5709,9 @@ export const DeploymentResourcesApiFp = function(configuration?: Configuration)
|
|
|
5691
5709
|
*/
|
|
5692
5710
|
async allDeploymentResources(typeId?: string | null, page?: number | null, perPage?: number | null, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AllDeploymentResources200Response>> {
|
|
5693
5711
|
const localVarAxiosArgs = await localVarAxiosParamCreator.allDeploymentResources(typeId, page, perPage, options);
|
|
5694
|
-
|
|
5712
|
+
const index = configuration?.serverIndex ?? 0;
|
|
5713
|
+
const operationBasePath = operationServerMap['DeploymentResourcesApi.allDeploymentResources']?.[index]?.url;
|
|
5714
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
5695
5715
|
},
|
|
5696
5716
|
/**
|
|
5697
5717
|
*
|
|
@@ -5701,7 +5721,9 @@ export const DeploymentResourcesApiFp = function(configuration?: Configuration)
|
|
|
5701
5721
|
*/
|
|
5702
5722
|
async createDeploymentResource(newDeploymentResource: NewDeploymentResource, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeploymentResource>> {
|
|
5703
5723
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createDeploymentResource(newDeploymentResource, options);
|
|
5704
|
-
|
|
5724
|
+
const index = configuration?.serverIndex ?? 0;
|
|
5725
|
+
const operationBasePath = operationServerMap['DeploymentResourcesApi.createDeploymentResource']?.[index]?.url;
|
|
5726
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
5705
5727
|
},
|
|
5706
5728
|
/**
|
|
5707
5729
|
*
|
|
@@ -5711,7 +5733,9 @@ export const DeploymentResourcesApiFp = function(configuration?: Configuration)
|
|
|
5711
5733
|
*/
|
|
5712
5734
|
async deleteDeploymentResource(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
5713
5735
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDeploymentResource(id, options);
|
|
5714
|
-
|
|
5736
|
+
const index = configuration?.serverIndex ?? 0;
|
|
5737
|
+
const operationBasePath = operationServerMap['DeploymentResourcesApi.deleteDeploymentResource']?.[index]?.url;
|
|
5738
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
5715
5739
|
},
|
|
5716
5740
|
/**
|
|
5717
5741
|
*
|
|
@@ -5721,7 +5745,9 @@ export const DeploymentResourcesApiFp = function(configuration?: Configuration)
|
|
|
5721
5745
|
*/
|
|
5722
5746
|
async getDeploymentResource(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeploymentResource>> {
|
|
5723
5747
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getDeploymentResource(id, options);
|
|
5724
|
-
|
|
5748
|
+
const index = configuration?.serverIndex ?? 0;
|
|
5749
|
+
const operationBasePath = operationServerMap['DeploymentResourcesApi.getDeploymentResource']?.[index]?.url;
|
|
5750
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
5725
5751
|
},
|
|
5726
5752
|
/**
|
|
5727
5753
|
*
|
|
@@ -5732,7 +5758,9 @@ export const DeploymentResourcesApiFp = function(configuration?: Configuration)
|
|
|
5732
5758
|
*/
|
|
5733
5759
|
async updateDeploymentResource(id: string, updateDeploymentResource: UpdateDeploymentResource, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeploymentResource>> {
|
|
5734
5760
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateDeploymentResource(id, updateDeploymentResource, options);
|
|
5735
|
-
|
|
5761
|
+
const index = configuration?.serverIndex ?? 0;
|
|
5762
|
+
const operationBasePath = operationServerMap['DeploymentResourcesApi.updateDeploymentResource']?.[index]?.url;
|
|
5763
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
5736
5764
|
},
|
|
5737
5765
|
}
|
|
5738
5766
|
};
|
|
@@ -6113,7 +6141,9 @@ export const DeploymentTasksApiFp = function(configuration?: Configuration) {
|
|
|
6113
6141
|
*/
|
|
6114
6142
|
async allDeploymentTasks(clusterId?: string | null, deploymentId?: string | null, page?: number | null, perPage?: number | null, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AllDeploymentTasks200Response>> {
|
|
6115
6143
|
const localVarAxiosArgs = await localVarAxiosParamCreator.allDeploymentTasks(clusterId, deploymentId, page, perPage, options);
|
|
6116
|
-
|
|
6144
|
+
const index = configuration?.serverIndex ?? 0;
|
|
6145
|
+
const operationBasePath = operationServerMap['DeploymentTasksApi.allDeploymentTasks']?.[index]?.url;
|
|
6146
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
6117
6147
|
},
|
|
6118
6148
|
/**
|
|
6119
6149
|
*
|
|
@@ -6123,7 +6153,9 @@ export const DeploymentTasksApiFp = function(configuration?: Configuration) {
|
|
|
6123
6153
|
*/
|
|
6124
6154
|
async createDeploymentTask(createDeploymentTask: CreateDeploymentTask, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeploymentTask>> {
|
|
6125
6155
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createDeploymentTask(createDeploymentTask, options);
|
|
6126
|
-
|
|
6156
|
+
const index = configuration?.serverIndex ?? 0;
|
|
6157
|
+
const operationBasePath = operationServerMap['DeploymentTasksApi.createDeploymentTask']?.[index]?.url;
|
|
6158
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
6127
6159
|
},
|
|
6128
6160
|
/**
|
|
6129
6161
|
*
|
|
@@ -6133,7 +6165,9 @@ export const DeploymentTasksApiFp = function(configuration?: Configuration) {
|
|
|
6133
6165
|
*/
|
|
6134
6166
|
async getDeploymentTask(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeploymentTask>> {
|
|
6135
6167
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getDeploymentTask(id, options);
|
|
6136
|
-
|
|
6168
|
+
const index = configuration?.serverIndex ?? 0;
|
|
6169
|
+
const operationBasePath = operationServerMap['DeploymentTasksApi.getDeploymentTask']?.[index]?.url;
|
|
6170
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
6137
6171
|
},
|
|
6138
6172
|
}
|
|
6139
6173
|
};
|
|
@@ -6544,7 +6578,9 @@ export const DeploymentsApiFp = function(configuration?: Configuration) {
|
|
|
6544
6578
|
*/
|
|
6545
6579
|
async allDeployments(name?: string | null, kind?: string | null, clusterId?: string | null, enabled?: boolean | null, page?: number | null, perPage?: number | null, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AllDeployments200Response>> {
|
|
6546
6580
|
const localVarAxiosArgs = await localVarAxiosParamCreator.allDeployments(name, kind, clusterId, enabled, page, perPage, options);
|
|
6547
|
-
|
|
6581
|
+
const index = configuration?.serverIndex ?? 0;
|
|
6582
|
+
const operationBasePath = operationServerMap['DeploymentsApi.allDeployments']?.[index]?.url;
|
|
6583
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
6548
6584
|
},
|
|
6549
6585
|
/**
|
|
6550
6586
|
*
|
|
@@ -6554,7 +6590,9 @@ export const DeploymentsApiFp = function(configuration?: Configuration) {
|
|
|
6554
6590
|
*/
|
|
6555
6591
|
async createDeployment(newDeployment: NewDeployment, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Deployment>> {
|
|
6556
6592
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createDeployment(newDeployment, options);
|
|
6557
|
-
|
|
6593
|
+
const index = configuration?.serverIndex ?? 0;
|
|
6594
|
+
const operationBasePath = operationServerMap['DeploymentsApi.createDeployment']?.[index]?.url;
|
|
6595
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
6558
6596
|
},
|
|
6559
6597
|
/**
|
|
6560
6598
|
*
|
|
@@ -6564,7 +6602,9 @@ export const DeploymentsApiFp = function(configuration?: Configuration) {
|
|
|
6564
6602
|
*/
|
|
6565
6603
|
async deleteDeployment(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
6566
6604
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteDeployment(id, options);
|
|
6567
|
-
|
|
6605
|
+
const index = configuration?.serverIndex ?? 0;
|
|
6606
|
+
const operationBasePath = operationServerMap['DeploymentsApi.deleteDeployment']?.[index]?.url;
|
|
6607
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
6568
6608
|
},
|
|
6569
6609
|
/**
|
|
6570
6610
|
*
|
|
@@ -6574,7 +6614,9 @@ export const DeploymentsApiFp = function(configuration?: Configuration) {
|
|
|
6574
6614
|
*/
|
|
6575
6615
|
async getDeployment(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Deployment>> {
|
|
6576
6616
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getDeployment(id, options);
|
|
6577
|
-
|
|
6617
|
+
const index = configuration?.serverIndex ?? 0;
|
|
6618
|
+
const operationBasePath = operationServerMap['DeploymentsApi.getDeployment']?.[index]?.url;
|
|
6619
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
6578
6620
|
},
|
|
6579
6621
|
/**
|
|
6580
6622
|
*
|
|
@@ -6585,7 +6627,9 @@ export const DeploymentsApiFp = function(configuration?: Configuration) {
|
|
|
6585
6627
|
*/
|
|
6586
6628
|
async updateDeployment(id: string, updateDeployment: UpdateDeployment, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Deployment>> {
|
|
6587
6629
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateDeployment(id, updateDeployment, options);
|
|
6588
|
-
|
|
6630
|
+
const index = configuration?.serverIndex ?? 0;
|
|
6631
|
+
const operationBasePath = operationServerMap['DeploymentsApi.updateDeployment']?.[index]?.url;
|
|
6632
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
6589
6633
|
},
|
|
6590
6634
|
}
|
|
6591
6635
|
};
|
|
@@ -7021,7 +7065,9 @@ export const EnvUserPermissionsApiFp = function(configuration?: Configuration) {
|
|
|
7021
7065
|
*/
|
|
7022
7066
|
async allEnvUserPermissions(envId?: string | null, page?: number | null, perPage?: number | null, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AllEnvUserPermissions200Response>> {
|
|
7023
7067
|
const localVarAxiosArgs = await localVarAxiosParamCreator.allEnvUserPermissions(envId, page, perPage, options);
|
|
7024
|
-
|
|
7068
|
+
const index = configuration?.serverIndex ?? 0;
|
|
7069
|
+
const operationBasePath = operationServerMap['EnvUserPermissionsApi.allEnvUserPermissions']?.[index]?.url;
|
|
7070
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
7025
7071
|
},
|
|
7026
7072
|
/**
|
|
7027
7073
|
*
|
|
@@ -7031,7 +7077,9 @@ export const EnvUserPermissionsApiFp = function(configuration?: Configuration) {
|
|
|
7031
7077
|
*/
|
|
7032
7078
|
async createEnvUserPermission(newEnvUserPermission: NewEnvUserPermission, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EnvUserPermission>> {
|
|
7033
7079
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createEnvUserPermission(newEnvUserPermission, options);
|
|
7034
|
-
|
|
7080
|
+
const index = configuration?.serverIndex ?? 0;
|
|
7081
|
+
const operationBasePath = operationServerMap['EnvUserPermissionsApi.createEnvUserPermission']?.[index]?.url;
|
|
7082
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
7035
7083
|
},
|
|
7036
7084
|
/**
|
|
7037
7085
|
*
|
|
@@ -7041,7 +7089,9 @@ export const EnvUserPermissionsApiFp = function(configuration?: Configuration) {
|
|
|
7041
7089
|
*/
|
|
7042
7090
|
async deleteEnvUserPermission(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
7043
7091
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteEnvUserPermission(id, options);
|
|
7044
|
-
|
|
7092
|
+
const index = configuration?.serverIndex ?? 0;
|
|
7093
|
+
const operationBasePath = operationServerMap['EnvUserPermissionsApi.deleteEnvUserPermission']?.[index]?.url;
|
|
7094
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
7045
7095
|
},
|
|
7046
7096
|
/**
|
|
7047
7097
|
*
|
|
@@ -7051,7 +7101,9 @@ export const EnvUserPermissionsApiFp = function(configuration?: Configuration) {
|
|
|
7051
7101
|
*/
|
|
7052
7102
|
async getEnvUserPermission(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EnvUserPermission>> {
|
|
7053
7103
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getEnvUserPermission(id, options);
|
|
7054
|
-
|
|
7104
|
+
const index = configuration?.serverIndex ?? 0;
|
|
7105
|
+
const operationBasePath = operationServerMap['EnvUserPermissionsApi.getEnvUserPermission']?.[index]?.url;
|
|
7106
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
7055
7107
|
},
|
|
7056
7108
|
}
|
|
7057
7109
|
};
|
|
@@ -7477,7 +7529,9 @@ export const EnvsApiFp = function(configuration?: Configuration) {
|
|
|
7477
7529
|
*/
|
|
7478
7530
|
async allEnvs(name?: string | null, autoAddNewUsers?: boolean | null, page?: number | null, perPage?: number | null, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AllEnvs200Response>> {
|
|
7479
7531
|
const localVarAxiosArgs = await localVarAxiosParamCreator.allEnvs(name, autoAddNewUsers, page, perPage, options);
|
|
7480
|
-
|
|
7532
|
+
const index = configuration?.serverIndex ?? 0;
|
|
7533
|
+
const operationBasePath = operationServerMap['EnvsApi.allEnvs']?.[index]?.url;
|
|
7534
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
7481
7535
|
},
|
|
7482
7536
|
/**
|
|
7483
7537
|
*
|
|
@@ -7487,7 +7541,9 @@ export const EnvsApiFp = function(configuration?: Configuration) {
|
|
|
7487
7541
|
*/
|
|
7488
7542
|
async createEnv(newEnv: NewEnv, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Env>> {
|
|
7489
7543
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createEnv(newEnv, options);
|
|
7490
|
-
|
|
7544
|
+
const index = configuration?.serverIndex ?? 0;
|
|
7545
|
+
const operationBasePath = operationServerMap['EnvsApi.createEnv']?.[index]?.url;
|
|
7546
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
7491
7547
|
},
|
|
7492
7548
|
/**
|
|
7493
7549
|
*
|
|
@@ -7497,7 +7553,9 @@ export const EnvsApiFp = function(configuration?: Configuration) {
|
|
|
7497
7553
|
*/
|
|
7498
7554
|
async deleteEnv(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
7499
7555
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteEnv(id, options);
|
|
7500
|
-
|
|
7556
|
+
const index = configuration?.serverIndex ?? 0;
|
|
7557
|
+
const operationBasePath = operationServerMap['EnvsApi.deleteEnv']?.[index]?.url;
|
|
7558
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
7501
7559
|
},
|
|
7502
7560
|
/**
|
|
7503
7561
|
*
|
|
@@ -7507,7 +7565,9 @@ export const EnvsApiFp = function(configuration?: Configuration) {
|
|
|
7507
7565
|
*/
|
|
7508
7566
|
async getEnv(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Env>> {
|
|
7509
7567
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getEnv(id, options);
|
|
7510
|
-
|
|
7568
|
+
const index = configuration?.serverIndex ?? 0;
|
|
7569
|
+
const operationBasePath = operationServerMap['EnvsApi.getEnv']?.[index]?.url;
|
|
7570
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
7511
7571
|
},
|
|
7512
7572
|
/**
|
|
7513
7573
|
*
|
|
@@ -7518,7 +7578,9 @@ export const EnvsApiFp = function(configuration?: Configuration) {
|
|
|
7518
7578
|
*/
|
|
7519
7579
|
async updateEnv(id: string, updateEnv: UpdateEnv, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Env>> {
|
|
7520
7580
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateEnv(id, updateEnv, options);
|
|
7521
|
-
|
|
7581
|
+
const index = configuration?.serverIndex ?? 0;
|
|
7582
|
+
const operationBasePath = operationServerMap['EnvsApi.updateEnv']?.[index]?.url;
|
|
7583
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
7522
7584
|
},
|
|
7523
7585
|
}
|
|
7524
7586
|
};
|
|
@@ -7864,7 +7926,9 @@ export const HelmChartsApiFp = function(configuration?: Configuration) {
|
|
|
7864
7926
|
*/
|
|
7865
7927
|
async allHelmCharts(helmRegistryId?: string | null, parsedBranch?: string | null, page?: number | null, perPage?: number | null, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AllHelmCharts200Response>> {
|
|
7866
7928
|
const localVarAxiosArgs = await localVarAxiosParamCreator.allHelmCharts(helmRegistryId, parsedBranch, page, perPage, options);
|
|
7867
|
-
|
|
7929
|
+
const index = configuration?.serverIndex ?? 0;
|
|
7930
|
+
const operationBasePath = operationServerMap['HelmChartsApi.allHelmCharts']?.[index]?.url;
|
|
7931
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
7868
7932
|
},
|
|
7869
7933
|
/**
|
|
7870
7934
|
*
|
|
@@ -7874,7 +7938,9 @@ export const HelmChartsApiFp = function(configuration?: Configuration) {
|
|
|
7874
7938
|
*/
|
|
7875
7939
|
async getHelmChart(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HelmChart>> {
|
|
7876
7940
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getHelmChart(id, options);
|
|
7877
|
-
|
|
7941
|
+
const index = configuration?.serverIndex ?? 0;
|
|
7942
|
+
const operationBasePath = operationServerMap['HelmChartsApi.getHelmChart']?.[index]?.url;
|
|
7943
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
7878
7944
|
},
|
|
7879
7945
|
}
|
|
7880
7946
|
};
|
|
@@ -8157,7 +8223,9 @@ export const HelmRegistriesApiFp = function(configuration?: Configuration) {
|
|
|
8157
8223
|
*/
|
|
8158
8224
|
async allHelmRegistries(repoName?: string | null, kind?: string | null, page?: number | null, perPage?: number | null, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AllHelmRegistries200Response>> {
|
|
8159
8225
|
const localVarAxiosArgs = await localVarAxiosParamCreator.allHelmRegistries(repoName, kind, page, perPage, options);
|
|
8160
|
-
|
|
8226
|
+
const index = configuration?.serverIndex ?? 0;
|
|
8227
|
+
const operationBasePath = operationServerMap['HelmRegistriesApi.allHelmRegistries']?.[index]?.url;
|
|
8228
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
8161
8229
|
},
|
|
8162
8230
|
/**
|
|
8163
8231
|
*
|
|
@@ -8167,7 +8235,9 @@ export const HelmRegistriesApiFp = function(configuration?: Configuration) {
|
|
|
8167
8235
|
*/
|
|
8168
8236
|
async getHelmRegistry(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HelmRegistry>> {
|
|
8169
8237
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getHelmRegistry(id, options);
|
|
8170
|
-
|
|
8238
|
+
const index = configuration?.serverIndex ?? 0;
|
|
8239
|
+
const operationBasePath = operationServerMap['HelmRegistriesApi.getHelmRegistry']?.[index]?.url;
|
|
8240
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
8171
8241
|
},
|
|
8172
8242
|
/**
|
|
8173
8243
|
*
|
|
@@ -8178,7 +8248,9 @@ export const HelmRegistriesApiFp = function(configuration?: Configuration) {
|
|
|
8178
8248
|
*/
|
|
8179
8249
|
async updateHelmRegistry(id: string, updateHelmRegistry: UpdateHelmRegistry, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HelmRegistry>> {
|
|
8180
8250
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateHelmRegistry(id, updateHelmRegistry, options);
|
|
8181
|
-
|
|
8251
|
+
const index = configuration?.serverIndex ?? 0;
|
|
8252
|
+
const operationBasePath = operationServerMap['HelmRegistriesApi.updateHelmRegistry']?.[index]?.url;
|
|
8253
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
8182
8254
|
},
|
|
8183
8255
|
}
|
|
8184
8256
|
};
|
|
@@ -8532,7 +8604,9 @@ export const HelmTagFormatsApiFp = function(configuration?: Configuration) {
|
|
|
8532
8604
|
*/
|
|
8533
8605
|
async allHelmTagFormats(pattern?: string | null, page?: number | null, perPage?: number | null, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AllHelmTagFormats200Response>> {
|
|
8534
8606
|
const localVarAxiosArgs = await localVarAxiosParamCreator.allHelmTagFormats(pattern, page, perPage, options);
|
|
8535
|
-
|
|
8607
|
+
const index = configuration?.serverIndex ?? 0;
|
|
8608
|
+
const operationBasePath = operationServerMap['HelmTagFormatsApi.allHelmTagFormats']?.[index]?.url;
|
|
8609
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
8536
8610
|
},
|
|
8537
8611
|
/**
|
|
8538
8612
|
*
|
|
@@ -8542,7 +8616,9 @@ export const HelmTagFormatsApiFp = function(configuration?: Configuration) {
|
|
|
8542
8616
|
*/
|
|
8543
8617
|
async createHelmTagFormat(newHelmTagFormat: NewHelmTagFormat, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HelmTagFormat>> {
|
|
8544
8618
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createHelmTagFormat(newHelmTagFormat, options);
|
|
8545
|
-
|
|
8619
|
+
const index = configuration?.serverIndex ?? 0;
|
|
8620
|
+
const operationBasePath = operationServerMap['HelmTagFormatsApi.createHelmTagFormat']?.[index]?.url;
|
|
8621
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
8546
8622
|
},
|
|
8547
8623
|
/**
|
|
8548
8624
|
*
|
|
@@ -8552,7 +8628,9 @@ export const HelmTagFormatsApiFp = function(configuration?: Configuration) {
|
|
|
8552
8628
|
*/
|
|
8553
8629
|
async deleteHelmTagFormat(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
8554
8630
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteHelmTagFormat(id, options);
|
|
8555
|
-
|
|
8631
|
+
const index = configuration?.serverIndex ?? 0;
|
|
8632
|
+
const operationBasePath = operationServerMap['HelmTagFormatsApi.deleteHelmTagFormat']?.[index]?.url;
|
|
8633
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
8556
8634
|
},
|
|
8557
8635
|
/**
|
|
8558
8636
|
*
|
|
@@ -8562,7 +8640,9 @@ export const HelmTagFormatsApiFp = function(configuration?: Configuration) {
|
|
|
8562
8640
|
*/
|
|
8563
8641
|
async getHelmTagFormat(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HelmTagFormat>> {
|
|
8564
8642
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getHelmTagFormat(id, options);
|
|
8565
|
-
|
|
8643
|
+
const index = configuration?.serverIndex ?? 0;
|
|
8644
|
+
const operationBasePath = operationServerMap['HelmTagFormatsApi.getHelmTagFormat']?.[index]?.url;
|
|
8645
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
8566
8646
|
},
|
|
8567
8647
|
}
|
|
8568
8648
|
};
|
|
@@ -8946,7 +9026,9 @@ export const KubernetesClustersApiFp = function(configuration?: Configuration) {
|
|
|
8946
9026
|
*/
|
|
8947
9027
|
async allK8sClusters(envId?: string | null, name?: string | null, page?: number | null, perPage?: number | null, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AllK8sClusters200Response>> {
|
|
8948
9028
|
const localVarAxiosArgs = await localVarAxiosParamCreator.allK8sClusters(envId, name, page, perPage, options);
|
|
8949
|
-
|
|
9029
|
+
const index = configuration?.serverIndex ?? 0;
|
|
9030
|
+
const operationBasePath = operationServerMap['KubernetesClustersApi.allK8sClusters']?.[index]?.url;
|
|
9031
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
8950
9032
|
},
|
|
8951
9033
|
/**
|
|
8952
9034
|
*
|
|
@@ -8956,7 +9038,9 @@ export const KubernetesClustersApiFp = function(configuration?: Configuration) {
|
|
|
8956
9038
|
*/
|
|
8957
9039
|
async deleteK8sCluster(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
8958
9040
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteK8sCluster(id, options);
|
|
8959
|
-
|
|
9041
|
+
const index = configuration?.serverIndex ?? 0;
|
|
9042
|
+
const operationBasePath = operationServerMap['KubernetesClustersApi.deleteK8sCluster']?.[index]?.url;
|
|
9043
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
8960
9044
|
},
|
|
8961
9045
|
/**
|
|
8962
9046
|
*
|
|
@@ -8966,7 +9050,9 @@ export const KubernetesClustersApiFp = function(configuration?: Configuration) {
|
|
|
8966
9050
|
*/
|
|
8967
9051
|
async getK8sCluster(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<K8sCluster>> {
|
|
8968
9052
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getK8sCluster(id, options);
|
|
8969
|
-
|
|
9053
|
+
const index = configuration?.serverIndex ?? 0;
|
|
9054
|
+
const operationBasePath = operationServerMap['KubernetesClustersApi.getK8sCluster']?.[index]?.url;
|
|
9055
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
8970
9056
|
},
|
|
8971
9057
|
/**
|
|
8972
9058
|
*
|
|
@@ -8977,7 +9063,9 @@ export const KubernetesClustersApiFp = function(configuration?: Configuration) {
|
|
|
8977
9063
|
*/
|
|
8978
9064
|
async updateK8sCluster(id: string, updateK8sCluster: UpdateK8sCluster, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<K8sCluster>> {
|
|
8979
9065
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateK8sCluster(id, updateK8sCluster, options);
|
|
8980
|
-
|
|
9066
|
+
const index = configuration?.serverIndex ?? 0;
|
|
9067
|
+
const operationBasePath = operationServerMap['KubernetesClustersApi.updateK8sCluster']?.[index]?.url;
|
|
9068
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
8981
9069
|
},
|
|
8982
9070
|
}
|
|
8983
9071
|
};
|
|
@@ -9301,7 +9389,9 @@ export const KubernetesResourcesApiFp = function(configuration?: Configuration)
|
|
|
9301
9389
|
*/
|
|
9302
9390
|
async allK8sResources(clusterId?: string | null, deploymentId?: string | null, kind?: string | null, name?: string | null, page?: number | null, perPage?: number | null, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AllK8sResources200Response>> {
|
|
9303
9391
|
const localVarAxiosArgs = await localVarAxiosParamCreator.allK8sResources(clusterId, deploymentId, kind, name, page, perPage, options);
|
|
9304
|
-
|
|
9392
|
+
const index = configuration?.serverIndex ?? 0;
|
|
9393
|
+
const operationBasePath = operationServerMap['KubernetesResourcesApi.allK8sResources']?.[index]?.url;
|
|
9394
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
9305
9395
|
},
|
|
9306
9396
|
/**
|
|
9307
9397
|
*
|
|
@@ -9311,7 +9401,9 @@ export const KubernetesResourcesApiFp = function(configuration?: Configuration)
|
|
|
9311
9401
|
*/
|
|
9312
9402
|
async getK8sResource(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<K8sResource>> {
|
|
9313
9403
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getK8sResource(id, options);
|
|
9314
|
-
|
|
9404
|
+
const index = configuration?.serverIndex ?? 0;
|
|
9405
|
+
const operationBasePath = operationServerMap['KubernetesResourcesApi.getK8sResource']?.[index]?.url;
|
|
9406
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
9315
9407
|
},
|
|
9316
9408
|
}
|
|
9317
9409
|
};
|
|
@@ -9696,7 +9788,9 @@ export const SecretsApiFp = function(configuration?: Configuration) {
|
|
|
9696
9788
|
*/
|
|
9697
9789
|
async allSecrets(envId?: string | null, collection?: string | null, name?: string | null, page?: number | null, perPage?: number | null, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AllSecrets200Response>> {
|
|
9698
9790
|
const localVarAxiosArgs = await localVarAxiosParamCreator.allSecrets(envId, collection, name, page, perPage, options);
|
|
9699
|
-
|
|
9791
|
+
const index = configuration?.serverIndex ?? 0;
|
|
9792
|
+
const operationBasePath = operationServerMap['SecretsApi.allSecrets']?.[index]?.url;
|
|
9793
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
9700
9794
|
},
|
|
9701
9795
|
/**
|
|
9702
9796
|
*
|
|
@@ -9706,7 +9800,9 @@ export const SecretsApiFp = function(configuration?: Configuration) {
|
|
|
9706
9800
|
*/
|
|
9707
9801
|
async createSecret(newSecret: NewSecret, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Secret>> {
|
|
9708
9802
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createSecret(newSecret, options);
|
|
9709
|
-
|
|
9803
|
+
const index = configuration?.serverIndex ?? 0;
|
|
9804
|
+
const operationBasePath = operationServerMap['SecretsApi.createSecret']?.[index]?.url;
|
|
9805
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
9710
9806
|
},
|
|
9711
9807
|
/**
|
|
9712
9808
|
*
|
|
@@ -9716,7 +9812,9 @@ export const SecretsApiFp = function(configuration?: Configuration) {
|
|
|
9716
9812
|
*/
|
|
9717
9813
|
async deleteSecret(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
9718
9814
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteSecret(id, options);
|
|
9719
|
-
|
|
9815
|
+
const index = configuration?.serverIndex ?? 0;
|
|
9816
|
+
const operationBasePath = operationServerMap['SecretsApi.deleteSecret']?.[index]?.url;
|
|
9817
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
9720
9818
|
},
|
|
9721
9819
|
/**
|
|
9722
9820
|
*
|
|
@@ -9726,7 +9824,9 @@ export const SecretsApiFp = function(configuration?: Configuration) {
|
|
|
9726
9824
|
*/
|
|
9727
9825
|
async getSecret(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Secret>> {
|
|
9728
9826
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getSecret(id, options);
|
|
9729
|
-
|
|
9827
|
+
const index = configuration?.serverIndex ?? 0;
|
|
9828
|
+
const operationBasePath = operationServerMap['SecretsApi.getSecret']?.[index]?.url;
|
|
9829
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
9730
9830
|
},
|
|
9731
9831
|
/**
|
|
9732
9832
|
*
|
|
@@ -9737,7 +9837,9 @@ export const SecretsApiFp = function(configuration?: Configuration) {
|
|
|
9737
9837
|
*/
|
|
9738
9838
|
async updateSecret(id: string, updateSecretApi: UpdateSecretApi, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Secret>> {
|
|
9739
9839
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateSecret(id, updateSecretApi, options);
|
|
9740
|
-
|
|
9840
|
+
const index = configuration?.serverIndex ?? 0;
|
|
9841
|
+
const operationBasePath = operationServerMap['SecretsApi.updateSecret']?.[index]?.url;
|
|
9842
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
9741
9843
|
},
|
|
9742
9844
|
}
|
|
9743
9845
|
};
|
|
@@ -10026,7 +10128,9 @@ export const ServerApiFp = function(configuration?: Configuration) {
|
|
|
10026
10128
|
*/
|
|
10027
10129
|
async getServerInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ServerInfo>> {
|
|
10028
10130
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getServerInfo(options);
|
|
10029
|
-
|
|
10131
|
+
const index = configuration?.serverIndex ?? 0;
|
|
10132
|
+
const operationBasePath = operationServerMap['ServerApi.getServerInfo']?.[index]?.url;
|
|
10133
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
10030
10134
|
},
|
|
10031
10135
|
}
|
|
10032
10136
|
};
|
|
@@ -10268,7 +10372,9 @@ export const UserTokensApiFp = function(configuration?: Configuration) {
|
|
|
10268
10372
|
*/
|
|
10269
10373
|
async allUserTokens(userId?: string | null, page?: number | null, perPage?: number | null, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AllUserTokens200Response>> {
|
|
10270
10374
|
const localVarAxiosArgs = await localVarAxiosParamCreator.allUserTokens(userId, page, perPage, options);
|
|
10271
|
-
|
|
10375
|
+
const index = configuration?.serverIndex ?? 0;
|
|
10376
|
+
const operationBasePath = operationServerMap['UserTokensApi.allUserTokens']?.[index]?.url;
|
|
10377
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
10272
10378
|
},
|
|
10273
10379
|
/**
|
|
10274
10380
|
*
|
|
@@ -10278,7 +10384,9 @@ export const UserTokensApiFp = function(configuration?: Configuration) {
|
|
|
10278
10384
|
*/
|
|
10279
10385
|
async createUserToken(createUserToken: CreateUserToken, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatedUserToken>> {
|
|
10280
10386
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createUserToken(createUserToken, options);
|
|
10281
|
-
|
|
10387
|
+
const index = configuration?.serverIndex ?? 0;
|
|
10388
|
+
const operationBasePath = operationServerMap['UserTokensApi.createUserToken']?.[index]?.url;
|
|
10389
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
10282
10390
|
},
|
|
10283
10391
|
/**
|
|
10284
10392
|
*
|
|
@@ -10288,7 +10396,9 @@ export const UserTokensApiFp = function(configuration?: Configuration) {
|
|
|
10288
10396
|
*/
|
|
10289
10397
|
async deleteUserToken(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
10290
10398
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteUserToken(id, options);
|
|
10291
|
-
|
|
10399
|
+
const index = configuration?.serverIndex ?? 0;
|
|
10400
|
+
const operationBasePath = operationServerMap['UserTokensApi.deleteUserToken']?.[index]?.url;
|
|
10401
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
10292
10402
|
},
|
|
10293
10403
|
/**
|
|
10294
10404
|
*
|
|
@@ -10298,7 +10408,9 @@ export const UserTokensApiFp = function(configuration?: Configuration) {
|
|
|
10298
10408
|
*/
|
|
10299
10409
|
async getUserToken(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserToken>> {
|
|
10300
10410
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getUserToken(id, options);
|
|
10301
|
-
|
|
10411
|
+
const index = configuration?.serverIndex ?? 0;
|
|
10412
|
+
const operationBasePath = operationServerMap['UserTokensApi.getUserToken']?.[index]?.url;
|
|
10413
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
10302
10414
|
},
|
|
10303
10415
|
}
|
|
10304
10416
|
};
|
|
@@ -10648,7 +10760,9 @@ export const UsersApiFp = function(configuration?: Configuration) {
|
|
|
10648
10760
|
*/
|
|
10649
10761
|
async allUsers(displayName?: string | null, email?: string | null, isActive?: boolean | null, page?: number | null, perPage?: number | null, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AllUsers200Response>> {
|
|
10650
10762
|
const localVarAxiosArgs = await localVarAxiosParamCreator.allUsers(displayName, email, isActive, page, perPage, options);
|
|
10651
|
-
|
|
10763
|
+
const index = configuration?.serverIndex ?? 0;
|
|
10764
|
+
const operationBasePath = operationServerMap['UsersApi.allUsers']?.[index]?.url;
|
|
10765
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
10652
10766
|
},
|
|
10653
10767
|
/**
|
|
10654
10768
|
*
|
|
@@ -10658,7 +10772,9 @@ export const UsersApiFp = function(configuration?: Configuration) {
|
|
|
10658
10772
|
*/
|
|
10659
10773
|
async getUser(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<User>> {
|
|
10660
10774
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getUser(id, options);
|
|
10661
|
-
|
|
10775
|
+
const index = configuration?.serverIndex ?? 0;
|
|
10776
|
+
const operationBasePath = operationServerMap['UsersApi.getUser']?.[index]?.url;
|
|
10777
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
10662
10778
|
},
|
|
10663
10779
|
/**
|
|
10664
10780
|
*
|
|
@@ -10669,7 +10785,9 @@ export const UsersApiFp = function(configuration?: Configuration) {
|
|
|
10669
10785
|
*/
|
|
10670
10786
|
async updateUser(id: string, updateUser: UpdateUser, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<User>> {
|
|
10671
10787
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateUser(id, updateUser, options);
|
|
10672
|
-
|
|
10788
|
+
const index = configuration?.serverIndex ?? 0;
|
|
10789
|
+
const operationBasePath = operationServerMap['UsersApi.updateUser']?.[index]?.url;
|
|
10790
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
|
|
10673
10791
|
},
|
|
10674
10792
|
}
|
|
10675
10793
|
};
|
package/base.ts
CHANGED
|
@@ -53,7 +53,7 @@ export class BaseAPI {
|
|
|
53
53
|
constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {
|
|
54
54
|
if (configuration) {
|
|
55
55
|
this.configuration = configuration;
|
|
56
|
-
this.basePath = configuration.basePath
|
|
56
|
+
this.basePath = configuration.basePath ?? basePath;
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
};
|
|
@@ -70,3 +70,17 @@ export class RequiredError extends Error {
|
|
|
70
70
|
this.name = "RequiredError"
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
+
|
|
74
|
+
interface ServerMap {
|
|
75
|
+
[key: string]: {
|
|
76
|
+
url: string,
|
|
77
|
+
description: string,
|
|
78
|
+
}[];
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @export
|
|
84
|
+
*/
|
|
85
|
+
export const operationServerMap: ServerMap = {
|
|
86
|
+
}
|
package/configuration.ts
CHANGED
|
@@ -19,6 +19,7 @@ export interface ConfigurationParameters {
|
|
|
19
19
|
password?: string;
|
|
20
20
|
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
|
|
21
21
|
basePath?: string;
|
|
22
|
+
serverIndex?: number;
|
|
22
23
|
baseOptions?: any;
|
|
23
24
|
formDataCtor?: new () => any;
|
|
24
25
|
}
|
|
@@ -58,6 +59,13 @@ export class Configuration {
|
|
|
58
59
|
* @memberof Configuration
|
|
59
60
|
*/
|
|
60
61
|
basePath?: string;
|
|
62
|
+
/**
|
|
63
|
+
* override server index
|
|
64
|
+
*
|
|
65
|
+
* @type {number}
|
|
66
|
+
* @memberof Configuration
|
|
67
|
+
*/
|
|
68
|
+
serverIndex?: number;
|
|
61
69
|
/**
|
|
62
70
|
* base options for axios calls
|
|
63
71
|
*
|
|
@@ -80,6 +88,7 @@ export class Configuration {
|
|
|
80
88
|
this.password = param.password;
|
|
81
89
|
this.accessToken = param.accessToken;
|
|
82
90
|
this.basePath = param.basePath;
|
|
91
|
+
this.serverIndex = param.serverIndex;
|
|
83
92
|
this.baseOptions = param.baseOptions;
|
|
84
93
|
this.formDataCtor = param.formDataCtor;
|
|
85
94
|
}
|
package/openapitools.json
CHANGED