qovery-typescript-axios 1.1.476 → 1.1.477

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
@@ -3386,37 +3386,16 @@ export interface ClusterStatus {
3386
3386
  * @memberof ClusterStatus
3387
3387
  */
3388
3388
  'is_deployed'?: boolean;
3389
- }
3390
-
3391
-
3392
- /**
3393
- *
3394
- * @export
3395
- * @interface ClusterStatusGet
3396
- */
3397
- export interface ClusterStatusGet {
3398
3389
  /**
3399
3390
  *
3400
3391
  * @type {string}
3401
- * @memberof ClusterStatusGet
3402
- */
3403
- 'cluster_id'?: string;
3404
- /**
3405
- *
3406
- * @type {ClusterStateEnum}
3407
- * @memberof ClusterStatusGet
3408
- */
3409
- 'status'?: ClusterStateEnum;
3410
- /**
3411
- *
3412
- * @type {boolean}
3413
- * @memberof ClusterStatusGet
3392
+ * @memberof ClusterStatus
3414
3393
  */
3415
- 'is_deployed'?: boolean;
3394
+ 'next_k8s_available_version'?: string | null;
3416
3395
  /**
3417
3396
  *
3418
3397
  * @type {string}
3419
- * @memberof ClusterStatusGet
3398
+ * @memberof ClusterStatus
3420
3399
  */
3421
3400
  'last_execution_id'?: string;
3422
3401
  }
@@ -3430,10 +3409,10 @@ export interface ClusterStatusGet {
3430
3409
  export interface ClusterStatusResponseList {
3431
3410
  /**
3432
3411
  *
3433
- * @type {Array<ClusterStatusGet>}
3412
+ * @type {Array<ClusterStatus>}
3434
3413
  * @memberof ClusterStatusResponseList
3435
3414
  */
3436
- 'results'?: Array<ClusterStatusGet>;
3415
+ 'results'?: Array<ClusterStatus>;
3437
3416
  }
3438
3417
  /**
3439
3418
  *
@@ -24467,6 +24446,47 @@ export const ClustersApiAxiosParamCreator = function (configuration?: Configurat
24467
24446
 
24468
24447
 
24469
24448
 
24449
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
24450
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
24451
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
24452
+
24453
+ return {
24454
+ url: toPathString(localVarUrlObj),
24455
+ options: localVarRequestOptions,
24456
+ };
24457
+ },
24458
+ /**
24459
+ * allows to upgrade a cluster to next available kubernetes version
24460
+ * @summary Upgrade a cluster
24461
+ * @param {string} clusterId Cluster ID
24462
+ * @param {*} [options] Override http request option.
24463
+ * @throws {RequiredError}
24464
+ */
24465
+ upgradeCluster: async (clusterId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
24466
+ // verify required parameter 'clusterId' is not null or undefined
24467
+ assertParamExists('upgradeCluster', 'clusterId', clusterId)
24468
+ const localVarPath = `/cluster/{clusterId}/upgrade`
24469
+ .replace(`{${"clusterId"}}`, encodeURIComponent(String(clusterId)));
24470
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
24471
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
24472
+ let baseOptions;
24473
+ if (configuration) {
24474
+ baseOptions = configuration.baseOptions;
24475
+ }
24476
+
24477
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
24478
+ const localVarHeaderParameter = {} as any;
24479
+ const localVarQueryParameter = {} as any;
24480
+
24481
+ // authentication ApiKeyAuth required
24482
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
24483
+
24484
+ // authentication bearerAuth required
24485
+ // http bearer authentication required
24486
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
24487
+
24488
+
24489
+
24470
24490
  setSearchParams(localVarUrlObj, localVarQueryParameter);
24471
24491
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
24472
24492
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -24620,7 +24640,7 @@ export const ClustersApiFp = function(configuration?: Configuration) {
24620
24640
  * @param {*} [options] Override http request option.
24621
24641
  * @throws {RequiredError}
24622
24642
  */
24623
- async getClusterStatus(organizationId: string, clusterId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterStatusGet>> {
24643
+ async getClusterStatus(organizationId: string, clusterId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterStatus>> {
24624
24644
  const localVarAxiosArgs = await localVarAxiosParamCreator.getClusterStatus(organizationId, clusterId, options);
24625
24645
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
24626
24646
  },
@@ -24729,6 +24749,17 @@ export const ClustersApiFp = function(configuration?: Configuration) {
24729
24749
  const localVarAxiosArgs = await localVarAxiosParamCreator.stopCluster(organizationId, clusterId, options);
24730
24750
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
24731
24751
  },
24752
+ /**
24753
+ * allows to upgrade a cluster to next available kubernetes version
24754
+ * @summary Upgrade a cluster
24755
+ * @param {string} clusterId Cluster ID
24756
+ * @param {*} [options] Override http request option.
24757
+ * @throws {RequiredError}
24758
+ */
24759
+ async upgradeCluster(clusterId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterStatus>> {
24760
+ const localVarAxiosArgs = await localVarAxiosParamCreator.upgradeCluster(clusterId, options);
24761
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
24762
+ },
24732
24763
  }
24733
24764
  };
24734
24765
 
@@ -24863,7 +24894,7 @@ export const ClustersApiFactory = function (configuration?: Configuration, baseP
24863
24894
  * @param {*} [options] Override http request option.
24864
24895
  * @throws {RequiredError}
24865
24896
  */
24866
- getClusterStatus(organizationId: string, clusterId: string, options?: any): AxiosPromise<ClusterStatusGet> {
24897
+ getClusterStatus(organizationId: string, clusterId: string, options?: any): AxiosPromise<ClusterStatus> {
24867
24898
  return localVarFp.getClusterStatus(organizationId, clusterId, options).then((request) => request(axios, basePath));
24868
24899
  },
24869
24900
  /**
@@ -24962,6 +24993,16 @@ export const ClustersApiFactory = function (configuration?: Configuration, baseP
24962
24993
  stopCluster(organizationId: string, clusterId: string, options?: any): AxiosPromise<ClusterStatus> {
24963
24994
  return localVarFp.stopCluster(organizationId, clusterId, options).then((request) => request(axios, basePath));
24964
24995
  },
24996
+ /**
24997
+ * allows to upgrade a cluster to next available kubernetes version
24998
+ * @summary Upgrade a cluster
24999
+ * @param {string} clusterId Cluster ID
25000
+ * @param {*} [options] Override http request option.
25001
+ * @throws {RequiredError}
25002
+ */
25003
+ upgradeCluster(clusterId: string, options?: any): AxiosPromise<ClusterStatus> {
25004
+ return localVarFp.upgradeCluster(clusterId, options).then((request) => request(axios, basePath));
25005
+ },
24965
25006
  };
24966
25007
  };
24967
25008
 
@@ -25234,6 +25275,18 @@ export class ClustersApi extends BaseAPI {
25234
25275
  public stopCluster(organizationId: string, clusterId: string, options?: AxiosRequestConfig) {
25235
25276
  return ClustersApiFp(this.configuration).stopCluster(organizationId, clusterId, options).then((request) => request(this.axios, this.basePath));
25236
25277
  }
25278
+
25279
+ /**
25280
+ * allows to upgrade a cluster to next available kubernetes version
25281
+ * @summary Upgrade a cluster
25282
+ * @param {string} clusterId Cluster ID
25283
+ * @param {*} [options] Override http request option.
25284
+ * @throws {RequiredError}
25285
+ * @memberof ClustersApi
25286
+ */
25287
+ public upgradeCluster(clusterId: string, options?: AxiosRequestConfig) {
25288
+ return ClustersApiFp(this.configuration).upgradeCluster(clusterId, options).then((request) => request(this.axios, this.basePath));
25289
+ }
25237
25290
  }
25238
25291
 
25239
25292
 
package/dist/api.d.ts CHANGED
@@ -3295,35 +3295,16 @@ export interface ClusterStatus {
3295
3295
  * @memberof ClusterStatus
3296
3296
  */
3297
3297
  'is_deployed'?: boolean;
3298
- }
3299
- /**
3300
- *
3301
- * @export
3302
- * @interface ClusterStatusGet
3303
- */
3304
- export interface ClusterStatusGet {
3305
3298
  /**
3306
3299
  *
3307
3300
  * @type {string}
3308
- * @memberof ClusterStatusGet
3309
- */
3310
- 'cluster_id'?: string;
3311
- /**
3312
- *
3313
- * @type {ClusterStateEnum}
3314
- * @memberof ClusterStatusGet
3315
- */
3316
- 'status'?: ClusterStateEnum;
3317
- /**
3318
- *
3319
- * @type {boolean}
3320
- * @memberof ClusterStatusGet
3301
+ * @memberof ClusterStatus
3321
3302
  */
3322
- 'is_deployed'?: boolean;
3303
+ 'next_k8s_available_version'?: string | null;
3323
3304
  /**
3324
3305
  *
3325
3306
  * @type {string}
3326
- * @memberof ClusterStatusGet
3307
+ * @memberof ClusterStatus
3327
3308
  */
3328
3309
  'last_execution_id'?: string;
3329
3310
  }
@@ -3335,10 +3316,10 @@ export interface ClusterStatusGet {
3335
3316
  export interface ClusterStatusResponseList {
3336
3317
  /**
3337
3318
  *
3338
- * @type {Array<ClusterStatusGet>}
3319
+ * @type {Array<ClusterStatus>}
3339
3320
  * @memberof ClusterStatusResponseList
3340
3321
  */
3341
- 'results'?: Array<ClusterStatusGet>;
3322
+ 'results'?: Array<ClusterStatus>;
3342
3323
  }
3343
3324
  /**
3344
3325
  *
@@ -18890,6 +18871,14 @@ export declare const ClustersApiAxiosParamCreator: (configuration?: Configuratio
18890
18871
  * @throws {RequiredError}
18891
18872
  */
18892
18873
  stopCluster: (organizationId: string, clusterId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
18874
+ /**
18875
+ * allows to upgrade a cluster to next available kubernetes version
18876
+ * @summary Upgrade a cluster
18877
+ * @param {string} clusterId Cluster ID
18878
+ * @param {*} [options] Override http request option.
18879
+ * @throws {RequiredError}
18880
+ */
18881
+ upgradeCluster: (clusterId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
18893
18882
  };
18894
18883
  /**
18895
18884
  * ClustersApi - functional programming interface
@@ -19000,7 +18989,7 @@ export declare const ClustersApiFp: (configuration?: Configuration) => {
19000
18989
  * @param {*} [options] Override http request option.
19001
18990
  * @throws {RequiredError}
19002
18991
  */
19003
- getClusterStatus(organizationId: string, clusterId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterStatusGet>>;
18992
+ getClusterStatus(organizationId: string, clusterId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterStatus>>;
19004
18993
  /**
19005
18994
  * Default values for each setting are available in [our documentation](https://hub.qovery.com/docs/using-qovery/configuration/cluster-advanced-settings/)
19006
18995
  * @summary List default cluster advanced settings
@@ -19079,6 +19068,14 @@ export declare const ClustersApiFp: (configuration?: Configuration) => {
19079
19068
  * @throws {RequiredError}
19080
19069
  */
19081
19070
  stopCluster(organizationId: string, clusterId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterStatus>>;
19071
+ /**
19072
+ * allows to upgrade a cluster to next available kubernetes version
19073
+ * @summary Upgrade a cluster
19074
+ * @param {string} clusterId Cluster ID
19075
+ * @param {*} [options] Override http request option.
19076
+ * @throws {RequiredError}
19077
+ */
19078
+ upgradeCluster(clusterId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterStatus>>;
19082
19079
  };
19083
19080
  /**
19084
19081
  * ClustersApi - factory interface
@@ -19189,7 +19186,7 @@ export declare const ClustersApiFactory: (configuration?: Configuration, basePat
19189
19186
  * @param {*} [options] Override http request option.
19190
19187
  * @throws {RequiredError}
19191
19188
  */
19192
- getClusterStatus(organizationId: string, clusterId: string, options?: any): AxiosPromise<ClusterStatusGet>;
19189
+ getClusterStatus(organizationId: string, clusterId: string, options?: any): AxiosPromise<ClusterStatus>;
19193
19190
  /**
19194
19191
  * Default values for each setting are available in [our documentation](https://hub.qovery.com/docs/using-qovery/configuration/cluster-advanced-settings/)
19195
19192
  * @summary List default cluster advanced settings
@@ -19268,6 +19265,14 @@ export declare const ClustersApiFactory: (configuration?: Configuration, basePat
19268
19265
  * @throws {RequiredError}
19269
19266
  */
19270
19267
  stopCluster(organizationId: string, clusterId: string, options?: any): AxiosPromise<ClusterStatus>;
19268
+ /**
19269
+ * allows to upgrade a cluster to next available kubernetes version
19270
+ * @summary Upgrade a cluster
19271
+ * @param {string} clusterId Cluster ID
19272
+ * @param {*} [options] Override http request option.
19273
+ * @throws {RequiredError}
19274
+ */
19275
+ upgradeCluster(clusterId: string, options?: any): AxiosPromise<ClusterStatus>;
19271
19276
  };
19272
19277
  /**
19273
19278
  * ClustersApi - object-oriented interface
@@ -19391,7 +19396,7 @@ export declare class ClustersApi extends BaseAPI {
19391
19396
  * @throws {RequiredError}
19392
19397
  * @memberof ClustersApi
19393
19398
  */
19394
- getClusterStatus(organizationId: string, clusterId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ClusterStatusGet, any>>;
19399
+ getClusterStatus(organizationId: string, clusterId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ClusterStatus, any>>;
19395
19400
  /**
19396
19401
  * Default values for each setting are available in [our documentation](https://hub.qovery.com/docs/using-qovery/configuration/cluster-advanced-settings/)
19397
19402
  * @summary List default cluster advanced settings
@@ -19479,6 +19484,15 @@ export declare class ClustersApi extends BaseAPI {
19479
19484
  * @memberof ClustersApi
19480
19485
  */
19481
19486
  stopCluster(organizationId: string, clusterId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ClusterStatus, any>>;
19487
+ /**
19488
+ * allows to upgrade a cluster to next available kubernetes version
19489
+ * @summary Upgrade a cluster
19490
+ * @param {string} clusterId Cluster ID
19491
+ * @param {*} [options] Override http request option.
19492
+ * @throws {RequiredError}
19493
+ * @memberof ClustersApi
19494
+ */
19495
+ upgradeCluster(clusterId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ClusterStatus, any>>;
19482
19496
  }
19483
19497
  /**
19484
19498
  * ContainerActionsApi - axios parameter creator
package/dist/api.js CHANGED
@@ -9194,6 +9194,40 @@ const ClustersApiAxiosParamCreator = function (configuration) {
9194
9194
  options: localVarRequestOptions,
9195
9195
  };
9196
9196
  }),
9197
+ /**
9198
+ * allows to upgrade a cluster to next available kubernetes version
9199
+ * @summary Upgrade a cluster
9200
+ * @param {string} clusterId Cluster ID
9201
+ * @param {*} [options] Override http request option.
9202
+ * @throws {RequiredError}
9203
+ */
9204
+ upgradeCluster: (clusterId, options = {}) => __awaiter(this, void 0, void 0, function* () {
9205
+ // verify required parameter 'clusterId' is not null or undefined
9206
+ (0, common_1.assertParamExists)('upgradeCluster', 'clusterId', clusterId);
9207
+ const localVarPath = `/cluster/{clusterId}/upgrade`
9208
+ .replace(`{${"clusterId"}}`, encodeURIComponent(String(clusterId)));
9209
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9210
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9211
+ let baseOptions;
9212
+ if (configuration) {
9213
+ baseOptions = configuration.baseOptions;
9214
+ }
9215
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
9216
+ const localVarHeaderParameter = {};
9217
+ const localVarQueryParameter = {};
9218
+ // authentication ApiKeyAuth required
9219
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
9220
+ // authentication bearerAuth required
9221
+ // http bearer authentication required
9222
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
9223
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9224
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9225
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9226
+ return {
9227
+ url: (0, common_1.toPathString)(localVarUrlObj),
9228
+ options: localVarRequestOptions,
9229
+ };
9230
+ }),
9197
9231
  };
9198
9232
  };
9199
9233
  exports.ClustersApiAxiosParamCreator = ClustersApiAxiosParamCreator;
@@ -9487,6 +9521,19 @@ const ClustersApiFp = function (configuration) {
9487
9521
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
9488
9522
  });
9489
9523
  },
9524
+ /**
9525
+ * allows to upgrade a cluster to next available kubernetes version
9526
+ * @summary Upgrade a cluster
9527
+ * @param {string} clusterId Cluster ID
9528
+ * @param {*} [options] Override http request option.
9529
+ * @throws {RequiredError}
9530
+ */
9531
+ upgradeCluster(clusterId, options) {
9532
+ return __awaiter(this, void 0, void 0, function* () {
9533
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.upgradeCluster(clusterId, options);
9534
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
9535
+ });
9536
+ },
9490
9537
  };
9491
9538
  };
9492
9539
  exports.ClustersApiFp = ClustersApiFp;
@@ -9720,6 +9767,16 @@ const ClustersApiFactory = function (configuration, basePath, axios) {
9720
9767
  stopCluster(organizationId, clusterId, options) {
9721
9768
  return localVarFp.stopCluster(organizationId, clusterId, options).then((request) => request(axios, basePath));
9722
9769
  },
9770
+ /**
9771
+ * allows to upgrade a cluster to next available kubernetes version
9772
+ * @summary Upgrade a cluster
9773
+ * @param {string} clusterId Cluster ID
9774
+ * @param {*} [options] Override http request option.
9775
+ * @throws {RequiredError}
9776
+ */
9777
+ upgradeCluster(clusterId, options) {
9778
+ return localVarFp.upgradeCluster(clusterId, options).then((request) => request(axios, basePath));
9779
+ },
9723
9780
  };
9724
9781
  };
9725
9782
  exports.ClustersApiFactory = ClustersApiFactory;
@@ -9973,6 +10030,17 @@ class ClustersApi extends base_1.BaseAPI {
9973
10030
  stopCluster(organizationId, clusterId, options) {
9974
10031
  return (0, exports.ClustersApiFp)(this.configuration).stopCluster(organizationId, clusterId, options).then((request) => request(this.axios, this.basePath));
9975
10032
  }
10033
+ /**
10034
+ * allows to upgrade a cluster to next available kubernetes version
10035
+ * @summary Upgrade a cluster
10036
+ * @param {string} clusterId Cluster ID
10037
+ * @param {*} [options] Override http request option.
10038
+ * @throws {RequiredError}
10039
+ * @memberof ClustersApi
10040
+ */
10041
+ upgradeCluster(clusterId, options) {
10042
+ return (0, exports.ClustersApiFp)(this.configuration).upgradeCluster(clusterId, options).then((request) => request(this.axios, this.basePath));
10043
+ }
9976
10044
  }
9977
10045
  exports.ClustersApi = ClustersApi;
9978
10046
  /**
package/dist/esm/api.d.ts CHANGED
@@ -3295,35 +3295,16 @@ export interface ClusterStatus {
3295
3295
  * @memberof ClusterStatus
3296
3296
  */
3297
3297
  'is_deployed'?: boolean;
3298
- }
3299
- /**
3300
- *
3301
- * @export
3302
- * @interface ClusterStatusGet
3303
- */
3304
- export interface ClusterStatusGet {
3305
3298
  /**
3306
3299
  *
3307
3300
  * @type {string}
3308
- * @memberof ClusterStatusGet
3309
- */
3310
- 'cluster_id'?: string;
3311
- /**
3312
- *
3313
- * @type {ClusterStateEnum}
3314
- * @memberof ClusterStatusGet
3315
- */
3316
- 'status'?: ClusterStateEnum;
3317
- /**
3318
- *
3319
- * @type {boolean}
3320
- * @memberof ClusterStatusGet
3301
+ * @memberof ClusterStatus
3321
3302
  */
3322
- 'is_deployed'?: boolean;
3303
+ 'next_k8s_available_version'?: string | null;
3323
3304
  /**
3324
3305
  *
3325
3306
  * @type {string}
3326
- * @memberof ClusterStatusGet
3307
+ * @memberof ClusterStatus
3327
3308
  */
3328
3309
  'last_execution_id'?: string;
3329
3310
  }
@@ -3335,10 +3316,10 @@ export interface ClusterStatusGet {
3335
3316
  export interface ClusterStatusResponseList {
3336
3317
  /**
3337
3318
  *
3338
- * @type {Array<ClusterStatusGet>}
3319
+ * @type {Array<ClusterStatus>}
3339
3320
  * @memberof ClusterStatusResponseList
3340
3321
  */
3341
- 'results'?: Array<ClusterStatusGet>;
3322
+ 'results'?: Array<ClusterStatus>;
3342
3323
  }
3343
3324
  /**
3344
3325
  *
@@ -18890,6 +18871,14 @@ export declare const ClustersApiAxiosParamCreator: (configuration?: Configuratio
18890
18871
  * @throws {RequiredError}
18891
18872
  */
18892
18873
  stopCluster: (organizationId: string, clusterId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
18874
+ /**
18875
+ * allows to upgrade a cluster to next available kubernetes version
18876
+ * @summary Upgrade a cluster
18877
+ * @param {string} clusterId Cluster ID
18878
+ * @param {*} [options] Override http request option.
18879
+ * @throws {RequiredError}
18880
+ */
18881
+ upgradeCluster: (clusterId: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
18893
18882
  };
18894
18883
  /**
18895
18884
  * ClustersApi - functional programming interface
@@ -19000,7 +18989,7 @@ export declare const ClustersApiFp: (configuration?: Configuration) => {
19000
18989
  * @param {*} [options] Override http request option.
19001
18990
  * @throws {RequiredError}
19002
18991
  */
19003
- getClusterStatus(organizationId: string, clusterId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterStatusGet>>;
18992
+ getClusterStatus(organizationId: string, clusterId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterStatus>>;
19004
18993
  /**
19005
18994
  * Default values for each setting are available in [our documentation](https://hub.qovery.com/docs/using-qovery/configuration/cluster-advanced-settings/)
19006
18995
  * @summary List default cluster advanced settings
@@ -19079,6 +19068,14 @@ export declare const ClustersApiFp: (configuration?: Configuration) => {
19079
19068
  * @throws {RequiredError}
19080
19069
  */
19081
19070
  stopCluster(organizationId: string, clusterId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterStatus>>;
19071
+ /**
19072
+ * allows to upgrade a cluster to next available kubernetes version
19073
+ * @summary Upgrade a cluster
19074
+ * @param {string} clusterId Cluster ID
19075
+ * @param {*} [options] Override http request option.
19076
+ * @throws {RequiredError}
19077
+ */
19078
+ upgradeCluster(clusterId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ClusterStatus>>;
19082
19079
  };
19083
19080
  /**
19084
19081
  * ClustersApi - factory interface
@@ -19189,7 +19186,7 @@ export declare const ClustersApiFactory: (configuration?: Configuration, basePat
19189
19186
  * @param {*} [options] Override http request option.
19190
19187
  * @throws {RequiredError}
19191
19188
  */
19192
- getClusterStatus(organizationId: string, clusterId: string, options?: any): AxiosPromise<ClusterStatusGet>;
19189
+ getClusterStatus(organizationId: string, clusterId: string, options?: any): AxiosPromise<ClusterStatus>;
19193
19190
  /**
19194
19191
  * Default values for each setting are available in [our documentation](https://hub.qovery.com/docs/using-qovery/configuration/cluster-advanced-settings/)
19195
19192
  * @summary List default cluster advanced settings
@@ -19268,6 +19265,14 @@ export declare const ClustersApiFactory: (configuration?: Configuration, basePat
19268
19265
  * @throws {RequiredError}
19269
19266
  */
19270
19267
  stopCluster(organizationId: string, clusterId: string, options?: any): AxiosPromise<ClusterStatus>;
19268
+ /**
19269
+ * allows to upgrade a cluster to next available kubernetes version
19270
+ * @summary Upgrade a cluster
19271
+ * @param {string} clusterId Cluster ID
19272
+ * @param {*} [options] Override http request option.
19273
+ * @throws {RequiredError}
19274
+ */
19275
+ upgradeCluster(clusterId: string, options?: any): AxiosPromise<ClusterStatus>;
19271
19276
  };
19272
19277
  /**
19273
19278
  * ClustersApi - object-oriented interface
@@ -19391,7 +19396,7 @@ export declare class ClustersApi extends BaseAPI {
19391
19396
  * @throws {RequiredError}
19392
19397
  * @memberof ClustersApi
19393
19398
  */
19394
- getClusterStatus(organizationId: string, clusterId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ClusterStatusGet, any>>;
19399
+ getClusterStatus(organizationId: string, clusterId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ClusterStatus, any>>;
19395
19400
  /**
19396
19401
  * Default values for each setting are available in [our documentation](https://hub.qovery.com/docs/using-qovery/configuration/cluster-advanced-settings/)
19397
19402
  * @summary List default cluster advanced settings
@@ -19479,6 +19484,15 @@ export declare class ClustersApi extends BaseAPI {
19479
19484
  * @memberof ClustersApi
19480
19485
  */
19481
19486
  stopCluster(organizationId: string, clusterId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ClusterStatus, any>>;
19487
+ /**
19488
+ * allows to upgrade a cluster to next available kubernetes version
19489
+ * @summary Upgrade a cluster
19490
+ * @param {string} clusterId Cluster ID
19491
+ * @param {*} [options] Override http request option.
19492
+ * @throws {RequiredError}
19493
+ * @memberof ClustersApi
19494
+ */
19495
+ upgradeCluster(clusterId: string, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ClusterStatus, any>>;
19482
19496
  }
19483
19497
  /**
19484
19498
  * ContainerActionsApi - axios parameter creator
package/dist/esm/api.js CHANGED
@@ -9128,6 +9128,40 @@ export const ClustersApiAxiosParamCreator = function (configuration) {
9128
9128
  options: localVarRequestOptions,
9129
9129
  };
9130
9130
  }),
9131
+ /**
9132
+ * allows to upgrade a cluster to next available kubernetes version
9133
+ * @summary Upgrade a cluster
9134
+ * @param {string} clusterId Cluster ID
9135
+ * @param {*} [options] Override http request option.
9136
+ * @throws {RequiredError}
9137
+ */
9138
+ upgradeCluster: (clusterId, options = {}) => __awaiter(this, void 0, void 0, function* () {
9139
+ // verify required parameter 'clusterId' is not null or undefined
9140
+ assertParamExists('upgradeCluster', 'clusterId', clusterId);
9141
+ const localVarPath = `/cluster/{clusterId}/upgrade`
9142
+ .replace(`{${"clusterId"}}`, encodeURIComponent(String(clusterId)));
9143
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9144
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9145
+ let baseOptions;
9146
+ if (configuration) {
9147
+ baseOptions = configuration.baseOptions;
9148
+ }
9149
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
9150
+ const localVarHeaderParameter = {};
9151
+ const localVarQueryParameter = {};
9152
+ // authentication ApiKeyAuth required
9153
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
9154
+ // authentication bearerAuth required
9155
+ // http bearer authentication required
9156
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
9157
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9158
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9159
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9160
+ return {
9161
+ url: toPathString(localVarUrlObj),
9162
+ options: localVarRequestOptions,
9163
+ };
9164
+ }),
9131
9165
  };
9132
9166
  };
9133
9167
  /**
@@ -9420,6 +9454,19 @@ export const ClustersApiFp = function (configuration) {
9420
9454
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
9421
9455
  });
9422
9456
  },
9457
+ /**
9458
+ * allows to upgrade a cluster to next available kubernetes version
9459
+ * @summary Upgrade a cluster
9460
+ * @param {string} clusterId Cluster ID
9461
+ * @param {*} [options] Override http request option.
9462
+ * @throws {RequiredError}
9463
+ */
9464
+ upgradeCluster(clusterId, options) {
9465
+ return __awaiter(this, void 0, void 0, function* () {
9466
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.upgradeCluster(clusterId, options);
9467
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
9468
+ });
9469
+ },
9423
9470
  };
9424
9471
  };
9425
9472
  /**
@@ -9652,6 +9699,16 @@ export const ClustersApiFactory = function (configuration, basePath, axios) {
9652
9699
  stopCluster(organizationId, clusterId, options) {
9653
9700
  return localVarFp.stopCluster(organizationId, clusterId, options).then((request) => request(axios, basePath));
9654
9701
  },
9702
+ /**
9703
+ * allows to upgrade a cluster to next available kubernetes version
9704
+ * @summary Upgrade a cluster
9705
+ * @param {string} clusterId Cluster ID
9706
+ * @param {*} [options] Override http request option.
9707
+ * @throws {RequiredError}
9708
+ */
9709
+ upgradeCluster(clusterId, options) {
9710
+ return localVarFp.upgradeCluster(clusterId, options).then((request) => request(axios, basePath));
9711
+ },
9655
9712
  };
9656
9713
  };
9657
9714
  /**
@@ -9904,6 +9961,17 @@ export class ClustersApi extends BaseAPI {
9904
9961
  stopCluster(organizationId, clusterId, options) {
9905
9962
  return ClustersApiFp(this.configuration).stopCluster(organizationId, clusterId, options).then((request) => request(this.axios, this.basePath));
9906
9963
  }
9964
+ /**
9965
+ * allows to upgrade a cluster to next available kubernetes version
9966
+ * @summary Upgrade a cluster
9967
+ * @param {string} clusterId Cluster ID
9968
+ * @param {*} [options] Override http request option.
9969
+ * @throws {RequiredError}
9970
+ * @memberof ClustersApi
9971
+ */
9972
+ upgradeCluster(clusterId, options) {
9973
+ return ClustersApiFp(this.configuration).upgradeCluster(clusterId, options).then((request) => request(this.axios, this.basePath));
9974
+ }
9907
9975
  }
9908
9976
  /**
9909
9977
  * ContainerActionsApi - axios parameter creator
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qovery-typescript-axios",
3
- "version": "v1.1.476",
3
+ "version": "v1.1.477",
4
4
  "description": "OpenAPI client for qovery-typescript-axios",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {