qovery-typescript-axios 1.1.795 → 1.1.796

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 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,194 @@ 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
+
13362
+ /**
13363
+ *
13364
+ * @export
13365
+ * @enum {string}
13366
+ */
13367
+
13368
+ export const KedaScalerRole = {
13369
+ PRIMARY: 'PRIMARY',
13370
+ SAFETY: 'SAFETY'
13371
+ } as const;
13372
+
13373
+ export type KedaScalerRole = typeof KedaScalerRole[keyof typeof KedaScalerRole];
13374
+
13375
+
13139
13376
  /**
13140
13377
  *
13141
13378
  * @export
@@ -25732,6 +25969,280 @@ export class ApplicationsApi extends BaseAPI {
25732
25969
 
25733
25970
 
25734
25971
 
25972
+ /**
25973
+ * AutoscalingPolicyApi - axios parameter creator
25974
+ * @export
25975
+ */
25976
+ export const AutoscalingPolicyApiAxiosParamCreator = function (configuration?: Configuration) {
25977
+ return {
25978
+ /**
25979
+ *
25980
+ * @summary createOrUpdateServiceAutoscaling
25981
+ * @param {string} serviceId Service ID of an application/job/container/database
25982
+ * @param {AutoscalingPolicyRequest} [autoscalingPolicyRequest]
25983
+ * @param {*} [options] Override http request option.
25984
+ * @throws {RequiredError}
25985
+ */
25986
+ createOrUpdateServiceAutoscaling: async (serviceId: string, autoscalingPolicyRequest?: AutoscalingPolicyRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
25987
+ // verify required parameter 'serviceId' is not null or undefined
25988
+ assertParamExists('createOrUpdateServiceAutoscaling', 'serviceId', serviceId)
25989
+ const localVarPath = `/service/{serviceId}/autoscalingPolicy`
25990
+ .replace(`{${"serviceId"}}`, encodeURIComponent(String(serviceId)));
25991
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
25992
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
25993
+ let baseOptions;
25994
+ if (configuration) {
25995
+ baseOptions = configuration.baseOptions;
25996
+ }
25997
+
25998
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
25999
+ const localVarHeaderParameter = {} as any;
26000
+ const localVarQueryParameter = {} as any;
26001
+
26002
+ // authentication ApiKeyAuth required
26003
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
26004
+
26005
+ // authentication bearerAuth required
26006
+ // http bearer authentication required
26007
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
26008
+
26009
+
26010
+
26011
+ localVarHeaderParameter['Content-Type'] = 'application/json';
26012
+
26013
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
26014
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26015
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
26016
+ localVarRequestOptions.data = serializeDataIfNeeded(autoscalingPolicyRequest, localVarRequestOptions, configuration)
26017
+
26018
+ return {
26019
+ url: toPathString(localVarUrlObj),
26020
+ options: localVarRequestOptions,
26021
+ };
26022
+ },
26023
+ /**
26024
+ *
26025
+ * @summary deleteServiceAutoscaling
26026
+ * @param {string} serviceId Service ID of an application/job/container/database
26027
+ * @param {*} [options] Override http request option.
26028
+ * @throws {RequiredError}
26029
+ */
26030
+ deleteServiceAutoscaling: async (serviceId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
26031
+ // verify required parameter 'serviceId' is not null or undefined
26032
+ assertParamExists('deleteServiceAutoscaling', 'serviceId', serviceId)
26033
+ const localVarPath = `/service/{serviceId}/autoscalingPolicy`
26034
+ .replace(`{${"serviceId"}}`, encodeURIComponent(String(serviceId)));
26035
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
26036
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26037
+ let baseOptions;
26038
+ if (configuration) {
26039
+ baseOptions = configuration.baseOptions;
26040
+ }
26041
+
26042
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
26043
+ const localVarHeaderParameter = {} as any;
26044
+ const localVarQueryParameter = {} as any;
26045
+
26046
+ // authentication ApiKeyAuth required
26047
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
26048
+
26049
+ // authentication bearerAuth required
26050
+ // http bearer authentication required
26051
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
26052
+
26053
+
26054
+
26055
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
26056
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26057
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
26058
+
26059
+ return {
26060
+ url: toPathString(localVarUrlObj),
26061
+ options: localVarRequestOptions,
26062
+ };
26063
+ },
26064
+ /**
26065
+ *
26066
+ * @summary getServiceAutoscaling
26067
+ * @param {string} serviceId Service ID of an application/job/container/database
26068
+ * @param {*} [options] Override http request option.
26069
+ * @throws {RequiredError}
26070
+ */
26071
+ getServiceAutoscaling: async (serviceId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
26072
+ // verify required parameter 'serviceId' is not null or undefined
26073
+ assertParamExists('getServiceAutoscaling', 'serviceId', serviceId)
26074
+ const localVarPath = `/service/{serviceId}/autoscalingPolicy`
26075
+ .replace(`{${"serviceId"}}`, encodeURIComponent(String(serviceId)));
26076
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
26077
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26078
+ let baseOptions;
26079
+ if (configuration) {
26080
+ baseOptions = configuration.baseOptions;
26081
+ }
26082
+
26083
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
26084
+ const localVarHeaderParameter = {} as any;
26085
+ const localVarQueryParameter = {} as any;
26086
+
26087
+ // authentication ApiKeyAuth required
26088
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
26089
+
26090
+ // authentication bearerAuth required
26091
+ // http bearer authentication required
26092
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
26093
+
26094
+
26095
+
26096
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
26097
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26098
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
26099
+
26100
+ return {
26101
+ url: toPathString(localVarUrlObj),
26102
+ options: localVarRequestOptions,
26103
+ };
26104
+ },
26105
+ }
26106
+ };
26107
+
26108
+ /**
26109
+ * AutoscalingPolicyApi - functional programming interface
26110
+ * @export
26111
+ */
26112
+ export const AutoscalingPolicyApiFp = function(configuration?: Configuration) {
26113
+ const localVarAxiosParamCreator = AutoscalingPolicyApiAxiosParamCreator(configuration)
26114
+ return {
26115
+ /**
26116
+ *
26117
+ * @summary createOrUpdateServiceAutoscaling
26118
+ * @param {string} serviceId Service ID of an application/job/container/database
26119
+ * @param {AutoscalingPolicyRequest} [autoscalingPolicyRequest]
26120
+ * @param {*} [options] Override http request option.
26121
+ * @throws {RequiredError}
26122
+ */
26123
+ async createOrUpdateServiceAutoscaling(serviceId: string, autoscalingPolicyRequest?: AutoscalingPolicyRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AutoscalingPolicyResponse>> {
26124
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createOrUpdateServiceAutoscaling(serviceId, autoscalingPolicyRequest, options);
26125
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
26126
+ const localVarOperationServerBasePath = operationServerMap['AutoscalingPolicyApi.createOrUpdateServiceAutoscaling']?.[localVarOperationServerIndex]?.url;
26127
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
26128
+ },
26129
+ /**
26130
+ *
26131
+ * @summary deleteServiceAutoscaling
26132
+ * @param {string} serviceId Service ID of an application/job/container/database
26133
+ * @param {*} [options] Override http request option.
26134
+ * @throws {RequiredError}
26135
+ */
26136
+ async deleteServiceAutoscaling(serviceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
26137
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteServiceAutoscaling(serviceId, options);
26138
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
26139
+ const localVarOperationServerBasePath = operationServerMap['AutoscalingPolicyApi.deleteServiceAutoscaling']?.[localVarOperationServerIndex]?.url;
26140
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
26141
+ },
26142
+ /**
26143
+ *
26144
+ * @summary getServiceAutoscaling
26145
+ * @param {string} serviceId Service ID of an application/job/container/database
26146
+ * @param {*} [options] Override http request option.
26147
+ * @throws {RequiredError}
26148
+ */
26149
+ async getServiceAutoscaling(serviceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AutoscalingPolicyResponse>> {
26150
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getServiceAutoscaling(serviceId, options);
26151
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
26152
+ const localVarOperationServerBasePath = operationServerMap['AutoscalingPolicyApi.getServiceAutoscaling']?.[localVarOperationServerIndex]?.url;
26153
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
26154
+ },
26155
+ }
26156
+ };
26157
+
26158
+ /**
26159
+ * AutoscalingPolicyApi - factory interface
26160
+ * @export
26161
+ */
26162
+ export const AutoscalingPolicyApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
26163
+ const localVarFp = AutoscalingPolicyApiFp(configuration)
26164
+ return {
26165
+ /**
26166
+ *
26167
+ * @summary createOrUpdateServiceAutoscaling
26168
+ * @param {string} serviceId Service ID of an application/job/container/database
26169
+ * @param {AutoscalingPolicyRequest} [autoscalingPolicyRequest]
26170
+ * @param {*} [options] Override http request option.
26171
+ * @throws {RequiredError}
26172
+ */
26173
+ createOrUpdateServiceAutoscaling(serviceId: string, autoscalingPolicyRequest?: AutoscalingPolicyRequest, options?: RawAxiosRequestConfig): AxiosPromise<AutoscalingPolicyResponse> {
26174
+ return localVarFp.createOrUpdateServiceAutoscaling(serviceId, autoscalingPolicyRequest, options).then((request) => request(axios, basePath));
26175
+ },
26176
+ /**
26177
+ *
26178
+ * @summary deleteServiceAutoscaling
26179
+ * @param {string} serviceId Service ID of an application/job/container/database
26180
+ * @param {*} [options] Override http request option.
26181
+ * @throws {RequiredError}
26182
+ */
26183
+ deleteServiceAutoscaling(serviceId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
26184
+ return localVarFp.deleteServiceAutoscaling(serviceId, options).then((request) => request(axios, basePath));
26185
+ },
26186
+ /**
26187
+ *
26188
+ * @summary getServiceAutoscaling
26189
+ * @param {string} serviceId Service ID of an application/job/container/database
26190
+ * @param {*} [options] Override http request option.
26191
+ * @throws {RequiredError}
26192
+ */
26193
+ getServiceAutoscaling(serviceId: string, options?: RawAxiosRequestConfig): AxiosPromise<AutoscalingPolicyResponse> {
26194
+ return localVarFp.getServiceAutoscaling(serviceId, options).then((request) => request(axios, basePath));
26195
+ },
26196
+ };
26197
+ };
26198
+
26199
+ /**
26200
+ * AutoscalingPolicyApi - object-oriented interface
26201
+ * @export
26202
+ * @class AutoscalingPolicyApi
26203
+ * @extends {BaseAPI}
26204
+ */
26205
+ export class AutoscalingPolicyApi extends BaseAPI {
26206
+ /**
26207
+ *
26208
+ * @summary createOrUpdateServiceAutoscaling
26209
+ * @param {string} serviceId Service ID of an application/job/container/database
26210
+ * @param {AutoscalingPolicyRequest} [autoscalingPolicyRequest]
26211
+ * @param {*} [options] Override http request option.
26212
+ * @throws {RequiredError}
26213
+ * @memberof AutoscalingPolicyApi
26214
+ */
26215
+ public createOrUpdateServiceAutoscaling(serviceId: string, autoscalingPolicyRequest?: AutoscalingPolicyRequest, options?: RawAxiosRequestConfig) {
26216
+ return AutoscalingPolicyApiFp(this.configuration).createOrUpdateServiceAutoscaling(serviceId, autoscalingPolicyRequest, options).then((request) => request(this.axios, this.basePath));
26217
+ }
26218
+
26219
+ /**
26220
+ *
26221
+ * @summary deleteServiceAutoscaling
26222
+ * @param {string} serviceId Service ID of an application/job/container/database
26223
+ * @param {*} [options] Override http request option.
26224
+ * @throws {RequiredError}
26225
+ * @memberof AutoscalingPolicyApi
26226
+ */
26227
+ public deleteServiceAutoscaling(serviceId: string, options?: RawAxiosRequestConfig) {
26228
+ return AutoscalingPolicyApiFp(this.configuration).deleteServiceAutoscaling(serviceId, options).then((request) => request(this.axios, this.basePath));
26229
+ }
26230
+
26231
+ /**
26232
+ *
26233
+ * @summary getServiceAutoscaling
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 getServiceAutoscaling(serviceId: string, options?: RawAxiosRequestConfig) {
26240
+ return AutoscalingPolicyApiFp(this.configuration).getServiceAutoscaling(serviceId, options).then((request) => request(this.axios, this.basePath));
26241
+ }
26242
+ }
26243
+
26244
+
26245
+
25735
26246
  /**
25736
26247
  * BackupsApi - axios parameter creator
25737
26248
  * @export