qovery-typescript-axios 1.1.795 → 1.1.797
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/api.ts +523 -0
- package/dist/api.d.ts +366 -0
- package/dist/api.js +284 -10
- package/dist/esm/api.d.ts +366 -0
- package/dist/esm/api.js +270 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -1108,6 +1108,12 @@ export interface Application {
|
|
|
1108
1108
|
* @memberof Application
|
|
1109
1109
|
*/
|
|
1110
1110
|
'docker_target_build_stage'?: string | null;
|
|
1111
|
+
/**
|
|
1112
|
+
*
|
|
1113
|
+
* @type {AutoscalingPolicyResponse}
|
|
1114
|
+
* @memberof Application
|
|
1115
|
+
*/
|
|
1116
|
+
'autoscaling'?: AutoscalingPolicyResponse;
|
|
1111
1117
|
}
|
|
1112
1118
|
|
|
1113
1119
|
|
|
@@ -1864,6 +1870,12 @@ export interface ApplicationRequest {
|
|
|
1864
1870
|
* @memberof ApplicationRequest
|
|
1865
1871
|
*/
|
|
1866
1872
|
'docker_target_build_stage'?: string | null;
|
|
1873
|
+
/**
|
|
1874
|
+
*
|
|
1875
|
+
* @type {AutoscalingPolicyRequest}
|
|
1876
|
+
* @memberof ApplicationRequest
|
|
1877
|
+
*/
|
|
1878
|
+
'autoscaling'?: AutoscalingPolicyRequest;
|
|
1867
1879
|
}
|
|
1868
1880
|
|
|
1869
1881
|
|
|
@@ -1880,6 +1892,31 @@ export interface ApplicationResponseList {
|
|
|
1880
1892
|
*/
|
|
1881
1893
|
'results'?: Array<Application>;
|
|
1882
1894
|
}
|
|
1895
|
+
/**
|
|
1896
|
+
*
|
|
1897
|
+
* @export
|
|
1898
|
+
* @enum {string}
|
|
1899
|
+
*/
|
|
1900
|
+
|
|
1901
|
+
export const AutoscalingMode = {
|
|
1902
|
+
KEDA: 'KEDA'
|
|
1903
|
+
} as const;
|
|
1904
|
+
|
|
1905
|
+
export type AutoscalingMode = typeof AutoscalingMode[keyof typeof AutoscalingMode];
|
|
1906
|
+
|
|
1907
|
+
|
|
1908
|
+
/**
|
|
1909
|
+
* @type AutoscalingPolicyRequest
|
|
1910
|
+
* @export
|
|
1911
|
+
*/
|
|
1912
|
+
export type AutoscalingPolicyRequest = { mode: 'KEDA' } & KedaAutoscalingRequest;
|
|
1913
|
+
|
|
1914
|
+
/**
|
|
1915
|
+
* @type AutoscalingPolicyResponse
|
|
1916
|
+
* @export
|
|
1917
|
+
*/
|
|
1918
|
+
export type AutoscalingPolicyResponse = { mode: 'KEDA' } & KedaAutoscalingResponse;
|
|
1919
|
+
|
|
1883
1920
|
/**
|
|
1884
1921
|
*
|
|
1885
1922
|
* @export
|
|
@@ -5711,6 +5748,12 @@ export interface ContainerRequest {
|
|
|
5711
5748
|
* @memberof ContainerRequest
|
|
5712
5749
|
*/
|
|
5713
5750
|
'icon_uri'?: string;
|
|
5751
|
+
/**
|
|
5752
|
+
*
|
|
5753
|
+
* @type {AutoscalingPolicyRequest}
|
|
5754
|
+
* @memberof ContainerRequest
|
|
5755
|
+
*/
|
|
5756
|
+
'autoscaling'?: AutoscalingPolicyRequest;
|
|
5714
5757
|
}
|
|
5715
5758
|
/**
|
|
5716
5759
|
*
|
|
@@ -5892,6 +5935,12 @@ export interface ContainerResponse {
|
|
|
5892
5935
|
* @memberof ContainerResponse
|
|
5893
5936
|
*/
|
|
5894
5937
|
'service_type': ServiceTypeEnum;
|
|
5938
|
+
/**
|
|
5939
|
+
*
|
|
5940
|
+
* @type {AutoscalingPolicyResponse}
|
|
5941
|
+
* @memberof ContainerResponse
|
|
5942
|
+
*/
|
|
5943
|
+
'autoscaling'?: AutoscalingPolicyResponse;
|
|
5895
5944
|
}
|
|
5896
5945
|
|
|
5897
5946
|
|
|
@@ -13136,6 +13185,206 @@ export interface KarpenterStableNodePoolOverride {
|
|
|
13136
13185
|
*/
|
|
13137
13186
|
'limits'?: KarpenterNodePoolLimits;
|
|
13138
13187
|
}
|
|
13188
|
+
/**
|
|
13189
|
+
*
|
|
13190
|
+
* @export
|
|
13191
|
+
* @interface KedaAutoscalingRequest
|
|
13192
|
+
*/
|
|
13193
|
+
export interface KedaAutoscalingRequest {
|
|
13194
|
+
/**
|
|
13195
|
+
*
|
|
13196
|
+
* @type {AutoscalingMode}
|
|
13197
|
+
* @memberof KedaAutoscalingRequest
|
|
13198
|
+
*/
|
|
13199
|
+
'mode': AutoscalingMode;
|
|
13200
|
+
/**
|
|
13201
|
+
*
|
|
13202
|
+
* @type {number}
|
|
13203
|
+
* @memberof KedaAutoscalingRequest
|
|
13204
|
+
*/
|
|
13205
|
+
'polling_interval_seconds'?: number;
|
|
13206
|
+
/**
|
|
13207
|
+
*
|
|
13208
|
+
* @type {number}
|
|
13209
|
+
* @memberof KedaAutoscalingRequest
|
|
13210
|
+
*/
|
|
13211
|
+
'cooldown_period_seconds'?: number;
|
|
13212
|
+
/**
|
|
13213
|
+
*
|
|
13214
|
+
* @type {Array<KedaScalerRequest>}
|
|
13215
|
+
* @memberof KedaAutoscalingRequest
|
|
13216
|
+
*/
|
|
13217
|
+
'scalers': Array<KedaScalerRequest>;
|
|
13218
|
+
}
|
|
13219
|
+
|
|
13220
|
+
|
|
13221
|
+
/**
|
|
13222
|
+
*
|
|
13223
|
+
* @export
|
|
13224
|
+
* @interface KedaAutoscalingResponse
|
|
13225
|
+
*/
|
|
13226
|
+
export interface KedaAutoscalingResponse {
|
|
13227
|
+
/**
|
|
13228
|
+
*
|
|
13229
|
+
* @type {string}
|
|
13230
|
+
* @memberof KedaAutoscalingResponse
|
|
13231
|
+
*/
|
|
13232
|
+
'id': string;
|
|
13233
|
+
/**
|
|
13234
|
+
*
|
|
13235
|
+
* @type {string}
|
|
13236
|
+
* @memberof KedaAutoscalingResponse
|
|
13237
|
+
*/
|
|
13238
|
+
'created_at': string;
|
|
13239
|
+
/**
|
|
13240
|
+
*
|
|
13241
|
+
* @type {string}
|
|
13242
|
+
* @memberof KedaAutoscalingResponse
|
|
13243
|
+
*/
|
|
13244
|
+
'updated_at'?: string;
|
|
13245
|
+
/**
|
|
13246
|
+
*
|
|
13247
|
+
* @type {string}
|
|
13248
|
+
* @memberof KedaAutoscalingResponse
|
|
13249
|
+
*/
|
|
13250
|
+
'service_id': string;
|
|
13251
|
+
/**
|
|
13252
|
+
*
|
|
13253
|
+
* @type {AutoscalingMode}
|
|
13254
|
+
* @memberof KedaAutoscalingResponse
|
|
13255
|
+
*/
|
|
13256
|
+
'mode': AutoscalingMode;
|
|
13257
|
+
/**
|
|
13258
|
+
*
|
|
13259
|
+
* @type {number}
|
|
13260
|
+
* @memberof KedaAutoscalingResponse
|
|
13261
|
+
*/
|
|
13262
|
+
'polling_interval_seconds': number;
|
|
13263
|
+
/**
|
|
13264
|
+
*
|
|
13265
|
+
* @type {number}
|
|
13266
|
+
* @memberof KedaAutoscalingResponse
|
|
13267
|
+
*/
|
|
13268
|
+
'cooldown_period_seconds': number;
|
|
13269
|
+
/**
|
|
13270
|
+
*
|
|
13271
|
+
* @type {Array<KedaScalerResponse>}
|
|
13272
|
+
* @memberof KedaAutoscalingResponse
|
|
13273
|
+
*/
|
|
13274
|
+
'scalers': Array<KedaScalerResponse>;
|
|
13275
|
+
}
|
|
13276
|
+
|
|
13277
|
+
|
|
13278
|
+
/**
|
|
13279
|
+
*
|
|
13280
|
+
* @export
|
|
13281
|
+
* @interface KedaScalerRequest
|
|
13282
|
+
*/
|
|
13283
|
+
export interface KedaScalerRequest {
|
|
13284
|
+
/**
|
|
13285
|
+
*
|
|
13286
|
+
* @type {string}
|
|
13287
|
+
* @memberof KedaScalerRequest
|
|
13288
|
+
*/
|
|
13289
|
+
'scaler_type': string;
|
|
13290
|
+
/**
|
|
13291
|
+
*
|
|
13292
|
+
* @type {boolean}
|
|
13293
|
+
* @memberof KedaScalerRequest
|
|
13294
|
+
*/
|
|
13295
|
+
'enabled'?: boolean;
|
|
13296
|
+
/**
|
|
13297
|
+
*
|
|
13298
|
+
* @type {KedaScalerRole}
|
|
13299
|
+
* @memberof KedaScalerRequest
|
|
13300
|
+
*/
|
|
13301
|
+
'role': KedaScalerRole;
|
|
13302
|
+
/**
|
|
13303
|
+
*
|
|
13304
|
+
* @type {object}
|
|
13305
|
+
* @memberof KedaScalerRequest
|
|
13306
|
+
*/
|
|
13307
|
+
'config_json'?: object;
|
|
13308
|
+
/**
|
|
13309
|
+
*
|
|
13310
|
+
* @type {string}
|
|
13311
|
+
* @memberof KedaScalerRequest
|
|
13312
|
+
*/
|
|
13313
|
+
'config_yaml'?: string;
|
|
13314
|
+
}
|
|
13315
|
+
|
|
13316
|
+
|
|
13317
|
+
/**
|
|
13318
|
+
*
|
|
13319
|
+
* @export
|
|
13320
|
+
* @interface KedaScalerResponse
|
|
13321
|
+
*/
|
|
13322
|
+
export interface KedaScalerResponse {
|
|
13323
|
+
/**
|
|
13324
|
+
*
|
|
13325
|
+
* @type {string}
|
|
13326
|
+
* @memberof KedaScalerResponse
|
|
13327
|
+
*/
|
|
13328
|
+
'id': string;
|
|
13329
|
+
/**
|
|
13330
|
+
*
|
|
13331
|
+
* @type {string}
|
|
13332
|
+
* @memberof KedaScalerResponse
|
|
13333
|
+
*/
|
|
13334
|
+
'created_at': string;
|
|
13335
|
+
/**
|
|
13336
|
+
*
|
|
13337
|
+
* @type {string}
|
|
13338
|
+
* @memberof KedaScalerResponse
|
|
13339
|
+
*/
|
|
13340
|
+
'updated_at'?: string;
|
|
13341
|
+
/**
|
|
13342
|
+
*
|
|
13343
|
+
* @type {string}
|
|
13344
|
+
* @memberof KedaScalerResponse
|
|
13345
|
+
*/
|
|
13346
|
+
'scaler_type': string;
|
|
13347
|
+
/**
|
|
13348
|
+
*
|
|
13349
|
+
* @type {boolean}
|
|
13350
|
+
* @memberof KedaScalerResponse
|
|
13351
|
+
*/
|
|
13352
|
+
'enabled': boolean;
|
|
13353
|
+
/**
|
|
13354
|
+
*
|
|
13355
|
+
* @type {KedaScalerRole}
|
|
13356
|
+
* @memberof KedaScalerResponse
|
|
13357
|
+
*/
|
|
13358
|
+
'role': KedaScalerRole;
|
|
13359
|
+
/**
|
|
13360
|
+
*
|
|
13361
|
+
* @type {{ [key: string]: any; }}
|
|
13362
|
+
* @memberof KedaScalerResponse
|
|
13363
|
+
*/
|
|
13364
|
+
'config_json'?: { [key: string]: any; } | null;
|
|
13365
|
+
/**
|
|
13366
|
+
*
|
|
13367
|
+
* @type {string}
|
|
13368
|
+
* @memberof KedaScalerResponse
|
|
13369
|
+
*/
|
|
13370
|
+
'config_yaml'?: string | null;
|
|
13371
|
+
}
|
|
13372
|
+
|
|
13373
|
+
|
|
13374
|
+
/**
|
|
13375
|
+
*
|
|
13376
|
+
* @export
|
|
13377
|
+
* @enum {string}
|
|
13378
|
+
*/
|
|
13379
|
+
|
|
13380
|
+
export const KedaScalerRole = {
|
|
13381
|
+
PRIMARY: 'PRIMARY',
|
|
13382
|
+
SAFETY: 'SAFETY'
|
|
13383
|
+
} as const;
|
|
13384
|
+
|
|
13385
|
+
export type KedaScalerRole = typeof KedaScalerRole[keyof typeof KedaScalerRole];
|
|
13386
|
+
|
|
13387
|
+
|
|
13139
13388
|
/**
|
|
13140
13389
|
*
|
|
13141
13390
|
* @export
|
|
@@ -25732,6 +25981,280 @@ export class ApplicationsApi extends BaseAPI {
|
|
|
25732
25981
|
|
|
25733
25982
|
|
|
25734
25983
|
|
|
25984
|
+
/**
|
|
25985
|
+
* AutoscalingPolicyApi - axios parameter creator
|
|
25986
|
+
* @export
|
|
25987
|
+
*/
|
|
25988
|
+
export const AutoscalingPolicyApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
25989
|
+
return {
|
|
25990
|
+
/**
|
|
25991
|
+
*
|
|
25992
|
+
* @summary createOrUpdateServiceAutoscaling
|
|
25993
|
+
* @param {string} serviceId Service ID of an application/job/container/database
|
|
25994
|
+
* @param {AutoscalingPolicyRequest} [autoscalingPolicyRequest]
|
|
25995
|
+
* @param {*} [options] Override http request option.
|
|
25996
|
+
* @throws {RequiredError}
|
|
25997
|
+
*/
|
|
25998
|
+
createOrUpdateServiceAutoscaling: async (serviceId: string, autoscalingPolicyRequest?: AutoscalingPolicyRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
25999
|
+
// verify required parameter 'serviceId' is not null or undefined
|
|
26000
|
+
assertParamExists('createOrUpdateServiceAutoscaling', 'serviceId', serviceId)
|
|
26001
|
+
const localVarPath = `/service/{serviceId}/autoscalingPolicy`
|
|
26002
|
+
.replace(`{${"serviceId"}}`, encodeURIComponent(String(serviceId)));
|
|
26003
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26004
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
26005
|
+
let baseOptions;
|
|
26006
|
+
if (configuration) {
|
|
26007
|
+
baseOptions = configuration.baseOptions;
|
|
26008
|
+
}
|
|
26009
|
+
|
|
26010
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
26011
|
+
const localVarHeaderParameter = {} as any;
|
|
26012
|
+
const localVarQueryParameter = {} as any;
|
|
26013
|
+
|
|
26014
|
+
// authentication ApiKeyAuth required
|
|
26015
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
26016
|
+
|
|
26017
|
+
// authentication bearerAuth required
|
|
26018
|
+
// http bearer authentication required
|
|
26019
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
26020
|
+
|
|
26021
|
+
|
|
26022
|
+
|
|
26023
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
26024
|
+
|
|
26025
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26026
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26027
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
26028
|
+
localVarRequestOptions.data = serializeDataIfNeeded(autoscalingPolicyRequest, localVarRequestOptions, configuration)
|
|
26029
|
+
|
|
26030
|
+
return {
|
|
26031
|
+
url: toPathString(localVarUrlObj),
|
|
26032
|
+
options: localVarRequestOptions,
|
|
26033
|
+
};
|
|
26034
|
+
},
|
|
26035
|
+
/**
|
|
26036
|
+
*
|
|
26037
|
+
* @summary deleteServiceAutoscaling
|
|
26038
|
+
* @param {string} serviceId Service ID of an application/job/container/database
|
|
26039
|
+
* @param {*} [options] Override http request option.
|
|
26040
|
+
* @throws {RequiredError}
|
|
26041
|
+
*/
|
|
26042
|
+
deleteServiceAutoscaling: async (serviceId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26043
|
+
// verify required parameter 'serviceId' is not null or undefined
|
|
26044
|
+
assertParamExists('deleteServiceAutoscaling', 'serviceId', serviceId)
|
|
26045
|
+
const localVarPath = `/service/{serviceId}/autoscalingPolicy`
|
|
26046
|
+
.replace(`{${"serviceId"}}`, encodeURIComponent(String(serviceId)));
|
|
26047
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26048
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
26049
|
+
let baseOptions;
|
|
26050
|
+
if (configuration) {
|
|
26051
|
+
baseOptions = configuration.baseOptions;
|
|
26052
|
+
}
|
|
26053
|
+
|
|
26054
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
26055
|
+
const localVarHeaderParameter = {} as any;
|
|
26056
|
+
const localVarQueryParameter = {} as any;
|
|
26057
|
+
|
|
26058
|
+
// authentication ApiKeyAuth required
|
|
26059
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
26060
|
+
|
|
26061
|
+
// authentication bearerAuth required
|
|
26062
|
+
// http bearer authentication required
|
|
26063
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
26064
|
+
|
|
26065
|
+
|
|
26066
|
+
|
|
26067
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26068
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26069
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
26070
|
+
|
|
26071
|
+
return {
|
|
26072
|
+
url: toPathString(localVarUrlObj),
|
|
26073
|
+
options: localVarRequestOptions,
|
|
26074
|
+
};
|
|
26075
|
+
},
|
|
26076
|
+
/**
|
|
26077
|
+
*
|
|
26078
|
+
* @summary getServiceAutoscaling
|
|
26079
|
+
* @param {string} serviceId Service ID of an application/job/container/database
|
|
26080
|
+
* @param {*} [options] Override http request option.
|
|
26081
|
+
* @throws {RequiredError}
|
|
26082
|
+
*/
|
|
26083
|
+
getServiceAutoscaling: async (serviceId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26084
|
+
// verify required parameter 'serviceId' is not null or undefined
|
|
26085
|
+
assertParamExists('getServiceAutoscaling', 'serviceId', serviceId)
|
|
26086
|
+
const localVarPath = `/service/{serviceId}/autoscalingPolicy`
|
|
26087
|
+
.replace(`{${"serviceId"}}`, encodeURIComponent(String(serviceId)));
|
|
26088
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26089
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
26090
|
+
let baseOptions;
|
|
26091
|
+
if (configuration) {
|
|
26092
|
+
baseOptions = configuration.baseOptions;
|
|
26093
|
+
}
|
|
26094
|
+
|
|
26095
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
26096
|
+
const localVarHeaderParameter = {} as any;
|
|
26097
|
+
const localVarQueryParameter = {} as any;
|
|
26098
|
+
|
|
26099
|
+
// authentication ApiKeyAuth required
|
|
26100
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
26101
|
+
|
|
26102
|
+
// authentication bearerAuth required
|
|
26103
|
+
// http bearer authentication required
|
|
26104
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
26105
|
+
|
|
26106
|
+
|
|
26107
|
+
|
|
26108
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26109
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26110
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
26111
|
+
|
|
26112
|
+
return {
|
|
26113
|
+
url: toPathString(localVarUrlObj),
|
|
26114
|
+
options: localVarRequestOptions,
|
|
26115
|
+
};
|
|
26116
|
+
},
|
|
26117
|
+
}
|
|
26118
|
+
};
|
|
26119
|
+
|
|
26120
|
+
/**
|
|
26121
|
+
* AutoscalingPolicyApi - functional programming interface
|
|
26122
|
+
* @export
|
|
26123
|
+
*/
|
|
26124
|
+
export const AutoscalingPolicyApiFp = function(configuration?: Configuration) {
|
|
26125
|
+
const localVarAxiosParamCreator = AutoscalingPolicyApiAxiosParamCreator(configuration)
|
|
26126
|
+
return {
|
|
26127
|
+
/**
|
|
26128
|
+
*
|
|
26129
|
+
* @summary createOrUpdateServiceAutoscaling
|
|
26130
|
+
* @param {string} serviceId Service ID of an application/job/container/database
|
|
26131
|
+
* @param {AutoscalingPolicyRequest} [autoscalingPolicyRequest]
|
|
26132
|
+
* @param {*} [options] Override http request option.
|
|
26133
|
+
* @throws {RequiredError}
|
|
26134
|
+
*/
|
|
26135
|
+
async createOrUpdateServiceAutoscaling(serviceId: string, autoscalingPolicyRequest?: AutoscalingPolicyRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AutoscalingPolicyResponse>> {
|
|
26136
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createOrUpdateServiceAutoscaling(serviceId, autoscalingPolicyRequest, options);
|
|
26137
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26138
|
+
const localVarOperationServerBasePath = operationServerMap['AutoscalingPolicyApi.createOrUpdateServiceAutoscaling']?.[localVarOperationServerIndex]?.url;
|
|
26139
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26140
|
+
},
|
|
26141
|
+
/**
|
|
26142
|
+
*
|
|
26143
|
+
* @summary deleteServiceAutoscaling
|
|
26144
|
+
* @param {string} serviceId Service ID of an application/job/container/database
|
|
26145
|
+
* @param {*} [options] Override http request option.
|
|
26146
|
+
* @throws {RequiredError}
|
|
26147
|
+
*/
|
|
26148
|
+
async deleteServiceAutoscaling(serviceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
26149
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteServiceAutoscaling(serviceId, options);
|
|
26150
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26151
|
+
const localVarOperationServerBasePath = operationServerMap['AutoscalingPolicyApi.deleteServiceAutoscaling']?.[localVarOperationServerIndex]?.url;
|
|
26152
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26153
|
+
},
|
|
26154
|
+
/**
|
|
26155
|
+
*
|
|
26156
|
+
* @summary getServiceAutoscaling
|
|
26157
|
+
* @param {string} serviceId Service ID of an application/job/container/database
|
|
26158
|
+
* @param {*} [options] Override http request option.
|
|
26159
|
+
* @throws {RequiredError}
|
|
26160
|
+
*/
|
|
26161
|
+
async getServiceAutoscaling(serviceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AutoscalingPolicyResponse>> {
|
|
26162
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getServiceAutoscaling(serviceId, options);
|
|
26163
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
26164
|
+
const localVarOperationServerBasePath = operationServerMap['AutoscalingPolicyApi.getServiceAutoscaling']?.[localVarOperationServerIndex]?.url;
|
|
26165
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26166
|
+
},
|
|
26167
|
+
}
|
|
26168
|
+
};
|
|
26169
|
+
|
|
26170
|
+
/**
|
|
26171
|
+
* AutoscalingPolicyApi - factory interface
|
|
26172
|
+
* @export
|
|
26173
|
+
*/
|
|
26174
|
+
export const AutoscalingPolicyApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
26175
|
+
const localVarFp = AutoscalingPolicyApiFp(configuration)
|
|
26176
|
+
return {
|
|
26177
|
+
/**
|
|
26178
|
+
*
|
|
26179
|
+
* @summary createOrUpdateServiceAutoscaling
|
|
26180
|
+
* @param {string} serviceId Service ID of an application/job/container/database
|
|
26181
|
+
* @param {AutoscalingPolicyRequest} [autoscalingPolicyRequest]
|
|
26182
|
+
* @param {*} [options] Override http request option.
|
|
26183
|
+
* @throws {RequiredError}
|
|
26184
|
+
*/
|
|
26185
|
+
createOrUpdateServiceAutoscaling(serviceId: string, autoscalingPolicyRequest?: AutoscalingPolicyRequest, options?: RawAxiosRequestConfig): AxiosPromise<AutoscalingPolicyResponse> {
|
|
26186
|
+
return localVarFp.createOrUpdateServiceAutoscaling(serviceId, autoscalingPolicyRequest, options).then((request) => request(axios, basePath));
|
|
26187
|
+
},
|
|
26188
|
+
/**
|
|
26189
|
+
*
|
|
26190
|
+
* @summary deleteServiceAutoscaling
|
|
26191
|
+
* @param {string} serviceId Service ID of an application/job/container/database
|
|
26192
|
+
* @param {*} [options] Override http request option.
|
|
26193
|
+
* @throws {RequiredError}
|
|
26194
|
+
*/
|
|
26195
|
+
deleteServiceAutoscaling(serviceId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
26196
|
+
return localVarFp.deleteServiceAutoscaling(serviceId, options).then((request) => request(axios, basePath));
|
|
26197
|
+
},
|
|
26198
|
+
/**
|
|
26199
|
+
*
|
|
26200
|
+
* @summary getServiceAutoscaling
|
|
26201
|
+
* @param {string} serviceId Service ID of an application/job/container/database
|
|
26202
|
+
* @param {*} [options] Override http request option.
|
|
26203
|
+
* @throws {RequiredError}
|
|
26204
|
+
*/
|
|
26205
|
+
getServiceAutoscaling(serviceId: string, options?: RawAxiosRequestConfig): AxiosPromise<AutoscalingPolicyResponse> {
|
|
26206
|
+
return localVarFp.getServiceAutoscaling(serviceId, options).then((request) => request(axios, basePath));
|
|
26207
|
+
},
|
|
26208
|
+
};
|
|
26209
|
+
};
|
|
26210
|
+
|
|
26211
|
+
/**
|
|
26212
|
+
* AutoscalingPolicyApi - object-oriented interface
|
|
26213
|
+
* @export
|
|
26214
|
+
* @class AutoscalingPolicyApi
|
|
26215
|
+
* @extends {BaseAPI}
|
|
26216
|
+
*/
|
|
26217
|
+
export class AutoscalingPolicyApi extends BaseAPI {
|
|
26218
|
+
/**
|
|
26219
|
+
*
|
|
26220
|
+
* @summary createOrUpdateServiceAutoscaling
|
|
26221
|
+
* @param {string} serviceId Service ID of an application/job/container/database
|
|
26222
|
+
* @param {AutoscalingPolicyRequest} [autoscalingPolicyRequest]
|
|
26223
|
+
* @param {*} [options] Override http request option.
|
|
26224
|
+
* @throws {RequiredError}
|
|
26225
|
+
* @memberof AutoscalingPolicyApi
|
|
26226
|
+
*/
|
|
26227
|
+
public createOrUpdateServiceAutoscaling(serviceId: string, autoscalingPolicyRequest?: AutoscalingPolicyRequest, options?: RawAxiosRequestConfig) {
|
|
26228
|
+
return AutoscalingPolicyApiFp(this.configuration).createOrUpdateServiceAutoscaling(serviceId, autoscalingPolicyRequest, options).then((request) => request(this.axios, this.basePath));
|
|
26229
|
+
}
|
|
26230
|
+
|
|
26231
|
+
/**
|
|
26232
|
+
*
|
|
26233
|
+
* @summary deleteServiceAutoscaling
|
|
26234
|
+
* @param {string} serviceId Service ID of an application/job/container/database
|
|
26235
|
+
* @param {*} [options] Override http request option.
|
|
26236
|
+
* @throws {RequiredError}
|
|
26237
|
+
* @memberof AutoscalingPolicyApi
|
|
26238
|
+
*/
|
|
26239
|
+
public deleteServiceAutoscaling(serviceId: string, options?: RawAxiosRequestConfig) {
|
|
26240
|
+
return AutoscalingPolicyApiFp(this.configuration).deleteServiceAutoscaling(serviceId, options).then((request) => request(this.axios, this.basePath));
|
|
26241
|
+
}
|
|
26242
|
+
|
|
26243
|
+
/**
|
|
26244
|
+
*
|
|
26245
|
+
* @summary getServiceAutoscaling
|
|
26246
|
+
* @param {string} serviceId Service ID of an application/job/container/database
|
|
26247
|
+
* @param {*} [options] Override http request option.
|
|
26248
|
+
* @throws {RequiredError}
|
|
26249
|
+
* @memberof AutoscalingPolicyApi
|
|
26250
|
+
*/
|
|
26251
|
+
public getServiceAutoscaling(serviceId: string, options?: RawAxiosRequestConfig) {
|
|
26252
|
+
return AutoscalingPolicyApiFp(this.configuration).getServiceAutoscaling(serviceId, options).then((request) => request(this.axios, this.basePath));
|
|
26253
|
+
}
|
|
26254
|
+
}
|
|
26255
|
+
|
|
26256
|
+
|
|
26257
|
+
|
|
25735
26258
|
/**
|
|
25736
26259
|
* BackupsApi - axios parameter creator
|
|
25737
26260
|
* @export
|