qovery-typescript-axios 1.1.285 → 1.1.286

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
@@ -35,7 +35,8 @@ export const APIVariableScopeEnum = {
35
35
  ENVIRONMENT: 'ENVIRONMENT',
36
36
  PROJECT: 'PROJECT',
37
37
  CONTAINER: 'CONTAINER',
38
- JOB: 'JOB'
38
+ JOB: 'JOB',
39
+ HELM: 'HELM'
39
40
  } as const;
40
41
 
41
42
  export type APIVariableScopeEnum = typeof APIVariableScopeEnum[keyof typeof APIVariableScopeEnum];
@@ -48133,6 +48134,61 @@ export const VariableMainCallsApiAxiosParamCreator = function (configuration?: C
48133
48134
  options: localVarRequestOptions,
48134
48135
  };
48135
48136
  },
48137
+ /**
48138
+ * Import environment variables in a defined scope, with a defined visibility.
48139
+ * @summary Import variables
48140
+ * @param {string} serviceId service id
48141
+ * @param {APIVariableScopeEnum} scope scope
48142
+ * @param {VariableImportRequest} [variableImportRequest]
48143
+ * @param {*} [options] Override http request option.
48144
+ * @throws {RequiredError}
48145
+ */
48146
+ importEnvironmentVariables: async (serviceId: string, scope: APIVariableScopeEnum, variableImportRequest?: VariableImportRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
48147
+ // verify required parameter 'serviceId' is not null or undefined
48148
+ assertParamExists('importEnvironmentVariables', 'serviceId', serviceId)
48149
+ // verify required parameter 'scope' is not null or undefined
48150
+ assertParamExists('importEnvironmentVariables', 'scope', scope)
48151
+ const localVarPath = `/variable/import`;
48152
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
48153
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
48154
+ let baseOptions;
48155
+ if (configuration) {
48156
+ baseOptions = configuration.baseOptions;
48157
+ }
48158
+
48159
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
48160
+ const localVarHeaderParameter = {} as any;
48161
+ const localVarQueryParameter = {} as any;
48162
+
48163
+ // authentication ApiKeyAuth required
48164
+ await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
48165
+
48166
+ // authentication bearerAuth required
48167
+ // http bearer authentication required
48168
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
48169
+
48170
+ if (serviceId !== undefined) {
48171
+ localVarQueryParameter['service_id'] = serviceId;
48172
+ }
48173
+
48174
+ if (scope !== undefined) {
48175
+ localVarQueryParameter['scope'] = scope;
48176
+ }
48177
+
48178
+
48179
+
48180
+ localVarHeaderParameter['Content-Type'] = 'application/json';
48181
+
48182
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
48183
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
48184
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
48185
+ localVarRequestOptions.data = serializeDataIfNeeded(variableImportRequest, localVarRequestOptions, configuration)
48186
+
48187
+ return {
48188
+ url: toPathString(localVarUrlObj),
48189
+ options: localVarRequestOptions,
48190
+ };
48191
+ },
48136
48192
  /**
48137
48193
  * Returns a list of variables. The result can be filtered by using the query parameters.
48138
48194
  * @summary List variables
@@ -48257,6 +48313,19 @@ export const VariableMainCallsApiFp = function(configuration?: Configuration) {
48257
48313
  const localVarAxiosArgs = await localVarAxiosParamCreator.editVariable(variableId, variableEditRequest, options);
48258
48314
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
48259
48315
  },
48316
+ /**
48317
+ * Import environment variables in a defined scope, with a defined visibility.
48318
+ * @summary Import variables
48319
+ * @param {string} serviceId service id
48320
+ * @param {APIVariableScopeEnum} scope scope
48321
+ * @param {VariableImportRequest} [variableImportRequest]
48322
+ * @param {*} [options] Override http request option.
48323
+ * @throws {RequiredError}
48324
+ */
48325
+ async importEnvironmentVariables(serviceId: string, scope: APIVariableScopeEnum, variableImportRequest?: VariableImportRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VariableImport>> {
48326
+ const localVarAxiosArgs = await localVarAxiosParamCreator.importEnvironmentVariables(serviceId, scope, variableImportRequest, options);
48327
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
48328
+ },
48260
48329
  /**
48261
48330
  * Returns a list of variables. The result can be filtered by using the query parameters.
48262
48331
  * @summary List variables
@@ -48333,6 +48402,18 @@ export const VariableMainCallsApiFactory = function (configuration?: Configurati
48333
48402
  editVariable(variableId: string, variableEditRequest: VariableEditRequest, options?: any): AxiosPromise<VariableResponse> {
48334
48403
  return localVarFp.editVariable(variableId, variableEditRequest, options).then((request) => request(axios, basePath));
48335
48404
  },
48405
+ /**
48406
+ * Import environment variables in a defined scope, with a defined visibility.
48407
+ * @summary Import variables
48408
+ * @param {string} serviceId service id
48409
+ * @param {APIVariableScopeEnum} scope scope
48410
+ * @param {VariableImportRequest} [variableImportRequest]
48411
+ * @param {*} [options] Override http request option.
48412
+ * @throws {RequiredError}
48413
+ */
48414
+ importEnvironmentVariables(serviceId: string, scope: APIVariableScopeEnum, variableImportRequest?: VariableImportRequest, options?: any): AxiosPromise<VariableImport> {
48415
+ return localVarFp.importEnvironmentVariables(serviceId, scope, variableImportRequest, options).then((request) => request(axios, basePath));
48416
+ },
48336
48417
  /**
48337
48418
  * Returns a list of variables. The result can be filtered by using the query parameters.
48338
48419
  * @summary List variables
@@ -48418,6 +48499,20 @@ export class VariableMainCallsApi extends BaseAPI {
48418
48499
  return VariableMainCallsApiFp(this.configuration).editVariable(variableId, variableEditRequest, options).then((request) => request(this.axios, this.basePath));
48419
48500
  }
48420
48501
 
48502
+ /**
48503
+ * Import environment variables in a defined scope, with a defined visibility.
48504
+ * @summary Import variables
48505
+ * @param {string} serviceId service id
48506
+ * @param {APIVariableScopeEnum} scope scope
48507
+ * @param {VariableImportRequest} [variableImportRequest]
48508
+ * @param {*} [options] Override http request option.
48509
+ * @throws {RequiredError}
48510
+ * @memberof VariableMainCallsApi
48511
+ */
48512
+ public importEnvironmentVariables(serviceId: string, scope: APIVariableScopeEnum, variableImportRequest?: VariableImportRequest, options?: AxiosRequestConfig) {
48513
+ return VariableMainCallsApiFp(this.configuration).importEnvironmentVariables(serviceId, scope, variableImportRequest, options).then((request) => request(this.axios, this.basePath));
48514
+ }
48515
+
48421
48516
  /**
48422
48517
  * Returns a list of variables. The result can be filtered by using the query parameters.
48423
48518
  * @summary List variables
package/dist/api.d.ts CHANGED
@@ -25,6 +25,7 @@ export declare const APIVariableScopeEnum: {
25
25
  readonly PROJECT: "PROJECT";
26
26
  readonly CONTAINER: "CONTAINER";
27
27
  readonly JOB: "JOB";
28
+ readonly HELM: "HELM";
28
29
  };
29
30
  export type APIVariableScopeEnum = typeof APIVariableScopeEnum[keyof typeof APIVariableScopeEnum];
30
31
  /**
@@ -29454,6 +29455,16 @@ export declare const VariableMainCallsApiAxiosParamCreator: (configuration?: Con
29454
29455
  * @throws {RequiredError}
29455
29456
  */
29456
29457
  editVariable: (variableId: string, variableEditRequest: VariableEditRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
29458
+ /**
29459
+ * Import environment variables in a defined scope, with a defined visibility.
29460
+ * @summary Import variables
29461
+ * @param {string} serviceId service id
29462
+ * @param {APIVariableScopeEnum} scope scope
29463
+ * @param {VariableImportRequest} [variableImportRequest]
29464
+ * @param {*} [options] Override http request option.
29465
+ * @throws {RequiredError}
29466
+ */
29467
+ importEnvironmentVariables: (serviceId: string, scope: APIVariableScopeEnum, variableImportRequest?: VariableImportRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
29457
29468
  /**
29458
29469
  * Returns a list of variables. The result can be filtered by using the query parameters.
29459
29470
  * @summary List variables
@@ -29513,6 +29524,16 @@ export declare const VariableMainCallsApiFp: (configuration?: Configuration) =>
29513
29524
  * @throws {RequiredError}
29514
29525
  */
29515
29526
  editVariable(variableId: string, variableEditRequest: VariableEditRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VariableResponse>>;
29527
+ /**
29528
+ * Import environment variables in a defined scope, with a defined visibility.
29529
+ * @summary Import variables
29530
+ * @param {string} serviceId service id
29531
+ * @param {APIVariableScopeEnum} scope scope
29532
+ * @param {VariableImportRequest} [variableImportRequest]
29533
+ * @param {*} [options] Override http request option.
29534
+ * @throws {RequiredError}
29535
+ */
29536
+ importEnvironmentVariables(serviceId: string, scope: APIVariableScopeEnum, variableImportRequest?: VariableImportRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VariableImport>>;
29516
29537
  /**
29517
29538
  * Returns a list of variables. The result can be filtered by using the query parameters.
29518
29539
  * @summary List variables
@@ -29572,6 +29593,16 @@ export declare const VariableMainCallsApiFactory: (configuration?: Configuration
29572
29593
  * @throws {RequiredError}
29573
29594
  */
29574
29595
  editVariable(variableId: string, variableEditRequest: VariableEditRequest, options?: any): AxiosPromise<VariableResponse>;
29596
+ /**
29597
+ * Import environment variables in a defined scope, with a defined visibility.
29598
+ * @summary Import variables
29599
+ * @param {string} serviceId service id
29600
+ * @param {APIVariableScopeEnum} scope scope
29601
+ * @param {VariableImportRequest} [variableImportRequest]
29602
+ * @param {*} [options] Override http request option.
29603
+ * @throws {RequiredError}
29604
+ */
29605
+ importEnvironmentVariables(serviceId: string, scope: APIVariableScopeEnum, variableImportRequest?: VariableImportRequest, options?: any): AxiosPromise<VariableImport>;
29575
29606
  /**
29576
29607
  * Returns a list of variables. The result can be filtered by using the query parameters.
29577
29608
  * @summary List variables
@@ -29638,6 +29669,17 @@ export declare class VariableMainCallsApi extends BaseAPI {
29638
29669
  * @memberof VariableMainCallsApi
29639
29670
  */
29640
29671
  editVariable(variableId: string, variableEditRequest: VariableEditRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<VariableResponse, any>>;
29672
+ /**
29673
+ * Import environment variables in a defined scope, with a defined visibility.
29674
+ * @summary Import variables
29675
+ * @param {string} serviceId service id
29676
+ * @param {APIVariableScopeEnum} scope scope
29677
+ * @param {VariableImportRequest} [variableImportRequest]
29678
+ * @param {*} [options] Override http request option.
29679
+ * @throws {RequiredError}
29680
+ * @memberof VariableMainCallsApi
29681
+ */
29682
+ importEnvironmentVariables(serviceId: string, scope: APIVariableScopeEnum, variableImportRequest?: VariableImportRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<VariableImport, any>>;
29641
29683
  /**
29642
29684
  * Returns a list of variables. The result can be filtered by using the query parameters.
29643
29685
  * @summary List variables
package/dist/api.js CHANGED
@@ -47,7 +47,8 @@ exports.APIVariableScopeEnum = {
47
47
  ENVIRONMENT: 'ENVIRONMENT',
48
48
  PROJECT: 'PROJECT',
49
49
  CONTAINER: 'CONTAINER',
50
- JOB: 'JOB'
50
+ JOB: 'JOB',
51
+ HELM: 'HELM'
51
52
  };
52
53
  /**
53
54
  * type of the environment variable (VALUE, FILE, ALIAS, OVERRIDE or BUIT_IN)
@@ -32460,6 +32461,51 @@ const VariableMainCallsApiAxiosParamCreator = function (configuration) {
32460
32461
  options: localVarRequestOptions,
32461
32462
  };
32462
32463
  }),
32464
+ /**
32465
+ * Import environment variables in a defined scope, with a defined visibility.
32466
+ * @summary Import variables
32467
+ * @param {string} serviceId service id
32468
+ * @param {APIVariableScopeEnum} scope scope
32469
+ * @param {VariableImportRequest} [variableImportRequest]
32470
+ * @param {*} [options] Override http request option.
32471
+ * @throws {RequiredError}
32472
+ */
32473
+ importEnvironmentVariables: (serviceId, scope, variableImportRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
32474
+ // verify required parameter 'serviceId' is not null or undefined
32475
+ (0, common_1.assertParamExists)('importEnvironmentVariables', 'serviceId', serviceId);
32476
+ // verify required parameter 'scope' is not null or undefined
32477
+ (0, common_1.assertParamExists)('importEnvironmentVariables', 'scope', scope);
32478
+ const localVarPath = `/variable/import`;
32479
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32480
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
32481
+ let baseOptions;
32482
+ if (configuration) {
32483
+ baseOptions = configuration.baseOptions;
32484
+ }
32485
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
32486
+ const localVarHeaderParameter = {};
32487
+ const localVarQueryParameter = {};
32488
+ // authentication ApiKeyAuth required
32489
+ yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
32490
+ // authentication bearerAuth required
32491
+ // http bearer authentication required
32492
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
32493
+ if (serviceId !== undefined) {
32494
+ localVarQueryParameter['service_id'] = serviceId;
32495
+ }
32496
+ if (scope !== undefined) {
32497
+ localVarQueryParameter['scope'] = scope;
32498
+ }
32499
+ localVarHeaderParameter['Content-Type'] = 'application/json';
32500
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
32501
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32502
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
32503
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(variableImportRequest, localVarRequestOptions, configuration);
32504
+ return {
32505
+ url: (0, common_1.toPathString)(localVarUrlObj),
32506
+ options: localVarRequestOptions,
32507
+ };
32508
+ }),
32463
32509
  /**
32464
32510
  * Returns a list of variables. The result can be filtered by using the query parameters.
32465
32511
  * @summary List variables
@@ -32584,6 +32630,21 @@ const VariableMainCallsApiFp = function (configuration) {
32584
32630
  return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
32585
32631
  });
32586
32632
  },
32633
+ /**
32634
+ * Import environment variables in a defined scope, with a defined visibility.
32635
+ * @summary Import variables
32636
+ * @param {string} serviceId service id
32637
+ * @param {APIVariableScopeEnum} scope scope
32638
+ * @param {VariableImportRequest} [variableImportRequest]
32639
+ * @param {*} [options] Override http request option.
32640
+ * @throws {RequiredError}
32641
+ */
32642
+ importEnvironmentVariables(serviceId, scope, variableImportRequest, options) {
32643
+ return __awaiter(this, void 0, void 0, function* () {
32644
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.importEnvironmentVariables(serviceId, scope, variableImportRequest, options);
32645
+ return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
32646
+ });
32647
+ },
32587
32648
  /**
32588
32649
  * Returns a list of variables. The result can be filtered by using the query parameters.
32589
32650
  * @summary List variables
@@ -32662,6 +32723,18 @@ const VariableMainCallsApiFactory = function (configuration, basePath, axios) {
32662
32723
  editVariable(variableId, variableEditRequest, options) {
32663
32724
  return localVarFp.editVariable(variableId, variableEditRequest, options).then((request) => request(axios, basePath));
32664
32725
  },
32726
+ /**
32727
+ * Import environment variables in a defined scope, with a defined visibility.
32728
+ * @summary Import variables
32729
+ * @param {string} serviceId service id
32730
+ * @param {APIVariableScopeEnum} scope scope
32731
+ * @param {VariableImportRequest} [variableImportRequest]
32732
+ * @param {*} [options] Override http request option.
32733
+ * @throws {RequiredError}
32734
+ */
32735
+ importEnvironmentVariables(serviceId, scope, variableImportRequest, options) {
32736
+ return localVarFp.importEnvironmentVariables(serviceId, scope, variableImportRequest, options).then((request) => request(axios, basePath));
32737
+ },
32665
32738
  /**
32666
32739
  * Returns a list of variables. The result can be filtered by using the query parameters.
32667
32740
  * @summary List variables
@@ -32742,6 +32815,19 @@ class VariableMainCallsApi extends base_1.BaseAPI {
32742
32815
  editVariable(variableId, variableEditRequest, options) {
32743
32816
  return (0, exports.VariableMainCallsApiFp)(this.configuration).editVariable(variableId, variableEditRequest, options).then((request) => request(this.axios, this.basePath));
32744
32817
  }
32818
+ /**
32819
+ * Import environment variables in a defined scope, with a defined visibility.
32820
+ * @summary Import variables
32821
+ * @param {string} serviceId service id
32822
+ * @param {APIVariableScopeEnum} scope scope
32823
+ * @param {VariableImportRequest} [variableImportRequest]
32824
+ * @param {*} [options] Override http request option.
32825
+ * @throws {RequiredError}
32826
+ * @memberof VariableMainCallsApi
32827
+ */
32828
+ importEnvironmentVariables(serviceId, scope, variableImportRequest, options) {
32829
+ return (0, exports.VariableMainCallsApiFp)(this.configuration).importEnvironmentVariables(serviceId, scope, variableImportRequest, options).then((request) => request(this.axios, this.basePath));
32830
+ }
32745
32831
  /**
32746
32832
  * Returns a list of variables. The result can be filtered by using the query parameters.
32747
32833
  * @summary List variables
package/dist/esm/api.d.ts CHANGED
@@ -25,6 +25,7 @@ export declare const APIVariableScopeEnum: {
25
25
  readonly PROJECT: "PROJECT";
26
26
  readonly CONTAINER: "CONTAINER";
27
27
  readonly JOB: "JOB";
28
+ readonly HELM: "HELM";
28
29
  };
29
30
  export type APIVariableScopeEnum = typeof APIVariableScopeEnum[keyof typeof APIVariableScopeEnum];
30
31
  /**
@@ -29454,6 +29455,16 @@ export declare const VariableMainCallsApiAxiosParamCreator: (configuration?: Con
29454
29455
  * @throws {RequiredError}
29455
29456
  */
29456
29457
  editVariable: (variableId: string, variableEditRequest: VariableEditRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
29458
+ /**
29459
+ * Import environment variables in a defined scope, with a defined visibility.
29460
+ * @summary Import variables
29461
+ * @param {string} serviceId service id
29462
+ * @param {APIVariableScopeEnum} scope scope
29463
+ * @param {VariableImportRequest} [variableImportRequest]
29464
+ * @param {*} [options] Override http request option.
29465
+ * @throws {RequiredError}
29466
+ */
29467
+ importEnvironmentVariables: (serviceId: string, scope: APIVariableScopeEnum, variableImportRequest?: VariableImportRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
29457
29468
  /**
29458
29469
  * Returns a list of variables. The result can be filtered by using the query parameters.
29459
29470
  * @summary List variables
@@ -29513,6 +29524,16 @@ export declare const VariableMainCallsApiFp: (configuration?: Configuration) =>
29513
29524
  * @throws {RequiredError}
29514
29525
  */
29515
29526
  editVariable(variableId: string, variableEditRequest: VariableEditRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VariableResponse>>;
29527
+ /**
29528
+ * Import environment variables in a defined scope, with a defined visibility.
29529
+ * @summary Import variables
29530
+ * @param {string} serviceId service id
29531
+ * @param {APIVariableScopeEnum} scope scope
29532
+ * @param {VariableImportRequest} [variableImportRequest]
29533
+ * @param {*} [options] Override http request option.
29534
+ * @throws {RequiredError}
29535
+ */
29536
+ importEnvironmentVariables(serviceId: string, scope: APIVariableScopeEnum, variableImportRequest?: VariableImportRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VariableImport>>;
29516
29537
  /**
29517
29538
  * Returns a list of variables. The result can be filtered by using the query parameters.
29518
29539
  * @summary List variables
@@ -29572,6 +29593,16 @@ export declare const VariableMainCallsApiFactory: (configuration?: Configuration
29572
29593
  * @throws {RequiredError}
29573
29594
  */
29574
29595
  editVariable(variableId: string, variableEditRequest: VariableEditRequest, options?: any): AxiosPromise<VariableResponse>;
29596
+ /**
29597
+ * Import environment variables in a defined scope, with a defined visibility.
29598
+ * @summary Import variables
29599
+ * @param {string} serviceId service id
29600
+ * @param {APIVariableScopeEnum} scope scope
29601
+ * @param {VariableImportRequest} [variableImportRequest]
29602
+ * @param {*} [options] Override http request option.
29603
+ * @throws {RequiredError}
29604
+ */
29605
+ importEnvironmentVariables(serviceId: string, scope: APIVariableScopeEnum, variableImportRequest?: VariableImportRequest, options?: any): AxiosPromise<VariableImport>;
29575
29606
  /**
29576
29607
  * Returns a list of variables. The result can be filtered by using the query parameters.
29577
29608
  * @summary List variables
@@ -29638,6 +29669,17 @@ export declare class VariableMainCallsApi extends BaseAPI {
29638
29669
  * @memberof VariableMainCallsApi
29639
29670
  */
29640
29671
  editVariable(variableId: string, variableEditRequest: VariableEditRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<VariableResponse, any>>;
29672
+ /**
29673
+ * Import environment variables in a defined scope, with a defined visibility.
29674
+ * @summary Import variables
29675
+ * @param {string} serviceId service id
29676
+ * @param {APIVariableScopeEnum} scope scope
29677
+ * @param {VariableImportRequest} [variableImportRequest]
29678
+ * @param {*} [options] Override http request option.
29679
+ * @throws {RequiredError}
29680
+ * @memberof VariableMainCallsApi
29681
+ */
29682
+ importEnvironmentVariables(serviceId: string, scope: APIVariableScopeEnum, variableImportRequest?: VariableImportRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<VariableImport, any>>;
29641
29683
  /**
29642
29684
  * Returns a list of variables. The result can be filtered by using the query parameters.
29643
29685
  * @summary List variables
package/dist/esm/api.js CHANGED
@@ -37,7 +37,8 @@ export const APIVariableScopeEnum = {
37
37
  ENVIRONMENT: 'ENVIRONMENT',
38
38
  PROJECT: 'PROJECT',
39
39
  CONTAINER: 'CONTAINER',
40
- JOB: 'JOB'
40
+ JOB: 'JOB',
41
+ HELM: 'HELM'
41
42
  };
42
43
  /**
43
44
  * type of the environment variable (VALUE, FILE, ALIAS, OVERRIDE or BUIT_IN)
@@ -32138,6 +32139,51 @@ export const VariableMainCallsApiAxiosParamCreator = function (configuration) {
32138
32139
  options: localVarRequestOptions,
32139
32140
  };
32140
32141
  }),
32142
+ /**
32143
+ * Import environment variables in a defined scope, with a defined visibility.
32144
+ * @summary Import variables
32145
+ * @param {string} serviceId service id
32146
+ * @param {APIVariableScopeEnum} scope scope
32147
+ * @param {VariableImportRequest} [variableImportRequest]
32148
+ * @param {*} [options] Override http request option.
32149
+ * @throws {RequiredError}
32150
+ */
32151
+ importEnvironmentVariables: (serviceId, scope, variableImportRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
32152
+ // verify required parameter 'serviceId' is not null or undefined
32153
+ assertParamExists('importEnvironmentVariables', 'serviceId', serviceId);
32154
+ // verify required parameter 'scope' is not null or undefined
32155
+ assertParamExists('importEnvironmentVariables', 'scope', scope);
32156
+ const localVarPath = `/variable/import`;
32157
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
32158
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
32159
+ let baseOptions;
32160
+ if (configuration) {
32161
+ baseOptions = configuration.baseOptions;
32162
+ }
32163
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
32164
+ const localVarHeaderParameter = {};
32165
+ const localVarQueryParameter = {};
32166
+ // authentication ApiKeyAuth required
32167
+ yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
32168
+ // authentication bearerAuth required
32169
+ // http bearer authentication required
32170
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
32171
+ if (serviceId !== undefined) {
32172
+ localVarQueryParameter['service_id'] = serviceId;
32173
+ }
32174
+ if (scope !== undefined) {
32175
+ localVarQueryParameter['scope'] = scope;
32176
+ }
32177
+ localVarHeaderParameter['Content-Type'] = 'application/json';
32178
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
32179
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32180
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
32181
+ localVarRequestOptions.data = serializeDataIfNeeded(variableImportRequest, localVarRequestOptions, configuration);
32182
+ return {
32183
+ url: toPathString(localVarUrlObj),
32184
+ options: localVarRequestOptions,
32185
+ };
32186
+ }),
32141
32187
  /**
32142
32188
  * Returns a list of variables. The result can be filtered by using the query parameters.
32143
32189
  * @summary List variables
@@ -32261,6 +32307,21 @@ export const VariableMainCallsApiFp = function (configuration) {
32261
32307
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
32262
32308
  });
32263
32309
  },
32310
+ /**
32311
+ * Import environment variables in a defined scope, with a defined visibility.
32312
+ * @summary Import variables
32313
+ * @param {string} serviceId service id
32314
+ * @param {APIVariableScopeEnum} scope scope
32315
+ * @param {VariableImportRequest} [variableImportRequest]
32316
+ * @param {*} [options] Override http request option.
32317
+ * @throws {RequiredError}
32318
+ */
32319
+ importEnvironmentVariables(serviceId, scope, variableImportRequest, options) {
32320
+ return __awaiter(this, void 0, void 0, function* () {
32321
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.importEnvironmentVariables(serviceId, scope, variableImportRequest, options);
32322
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
32323
+ });
32324
+ },
32264
32325
  /**
32265
32326
  * Returns a list of variables. The result can be filtered by using the query parameters.
32266
32327
  * @summary List variables
@@ -32338,6 +32399,18 @@ export const VariableMainCallsApiFactory = function (configuration, basePath, ax
32338
32399
  editVariable(variableId, variableEditRequest, options) {
32339
32400
  return localVarFp.editVariable(variableId, variableEditRequest, options).then((request) => request(axios, basePath));
32340
32401
  },
32402
+ /**
32403
+ * Import environment variables in a defined scope, with a defined visibility.
32404
+ * @summary Import variables
32405
+ * @param {string} serviceId service id
32406
+ * @param {APIVariableScopeEnum} scope scope
32407
+ * @param {VariableImportRequest} [variableImportRequest]
32408
+ * @param {*} [options] Override http request option.
32409
+ * @throws {RequiredError}
32410
+ */
32411
+ importEnvironmentVariables(serviceId, scope, variableImportRequest, options) {
32412
+ return localVarFp.importEnvironmentVariables(serviceId, scope, variableImportRequest, options).then((request) => request(axios, basePath));
32413
+ },
32341
32414
  /**
32342
32415
  * Returns a list of variables. The result can be filtered by using the query parameters.
32343
32416
  * @summary List variables
@@ -32417,6 +32490,19 @@ export class VariableMainCallsApi extends BaseAPI {
32417
32490
  editVariable(variableId, variableEditRequest, options) {
32418
32491
  return VariableMainCallsApiFp(this.configuration).editVariable(variableId, variableEditRequest, options).then((request) => request(this.axios, this.basePath));
32419
32492
  }
32493
+ /**
32494
+ * Import environment variables in a defined scope, with a defined visibility.
32495
+ * @summary Import variables
32496
+ * @param {string} serviceId service id
32497
+ * @param {APIVariableScopeEnum} scope scope
32498
+ * @param {VariableImportRequest} [variableImportRequest]
32499
+ * @param {*} [options] Override http request option.
32500
+ * @throws {RequiredError}
32501
+ * @memberof VariableMainCallsApi
32502
+ */
32503
+ importEnvironmentVariables(serviceId, scope, variableImportRequest, options) {
32504
+ return VariableMainCallsApiFp(this.configuration).importEnvironmentVariables(serviceId, scope, variableImportRequest, options).then((request) => request(this.axios, this.basePath));
32505
+ }
32420
32506
  /**
32421
32507
  * Returns a list of variables. The result can be filtered by using the query parameters.
32422
32508
  * @summary List variables
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "qovery-typescript-axios",
3
- "version": "v1.1.285",
3
+ "version": "v1.1.286",
4
4
  "description": "OpenAPI client for qovery-typescript-axios",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {