qovery-typescript-axios 1.1.409 → 1.1.410
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 +125 -0
- package/dist/api.d.ts +81 -0
- package/dist/api.js +74 -0
- package/dist/esm/api.d.ts +81 -0
- package/dist/esm/api.js +74 -0
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -5934,6 +5934,50 @@ export interface DoCredentialsRequest {
|
|
|
5934
5934
|
*/
|
|
5935
5935
|
'spaces_secret_key'?: string;
|
|
5936
5936
|
}
|
|
5937
|
+
/**
|
|
5938
|
+
*
|
|
5939
|
+
* @export
|
|
5940
|
+
* @interface DockerfileCheckRequest
|
|
5941
|
+
*/
|
|
5942
|
+
export interface DockerfileCheckRequest {
|
|
5943
|
+
/**
|
|
5944
|
+
*
|
|
5945
|
+
* @type {GitRepository}
|
|
5946
|
+
* @memberof DockerfileCheckRequest
|
|
5947
|
+
*/
|
|
5948
|
+
'git_repository': GitRepository;
|
|
5949
|
+
/**
|
|
5950
|
+
* path of the dockerfile with root_path as base path
|
|
5951
|
+
* @type {string}
|
|
5952
|
+
* @memberof DockerfileCheckRequest
|
|
5953
|
+
*/
|
|
5954
|
+
'dockerfile_path': string;
|
|
5955
|
+
}
|
|
5956
|
+
/**
|
|
5957
|
+
*
|
|
5958
|
+
* @export
|
|
5959
|
+
* @interface DockerfileCheckResponse
|
|
5960
|
+
*/
|
|
5961
|
+
export interface DockerfileCheckResponse {
|
|
5962
|
+
/**
|
|
5963
|
+
*
|
|
5964
|
+
* @type {string}
|
|
5965
|
+
* @memberof DockerfileCheckResponse
|
|
5966
|
+
*/
|
|
5967
|
+
'dockerfile_path': string;
|
|
5968
|
+
/**
|
|
5969
|
+
* All ARG variable declared in the Dockerfile
|
|
5970
|
+
* @type {Array<string>}
|
|
5971
|
+
* @memberof DockerfileCheckResponse
|
|
5972
|
+
*/
|
|
5973
|
+
'arg'?: Array<string>;
|
|
5974
|
+
/**
|
|
5975
|
+
* All image repositories we found declared in the Dockerfile
|
|
5976
|
+
* @type {Array<string>}
|
|
5977
|
+
* @memberof DockerfileCheckResponse
|
|
5978
|
+
*/
|
|
5979
|
+
'repositories'?: Array<string>;
|
|
5980
|
+
}
|
|
5937
5981
|
/**
|
|
5938
5982
|
*
|
|
5939
5983
|
* @export
|
|
@@ -30628,6 +30672,51 @@ export class DeploymentStageMainCallsApi extends BaseAPI {
|
|
|
30628
30672
|
*/
|
|
30629
30673
|
export const EnvironmentApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
30630
30674
|
return {
|
|
30675
|
+
/**
|
|
30676
|
+
*
|
|
30677
|
+
* @summary Check dockerfile configuration is correct
|
|
30678
|
+
* @param {string} environmentId Environment ID
|
|
30679
|
+
* @param {DockerfileCheckRequest} [dockerfileCheckRequest]
|
|
30680
|
+
* @param {*} [options] Override http request option.
|
|
30681
|
+
* @throws {RequiredError}
|
|
30682
|
+
*/
|
|
30683
|
+
checkDockerfile: async (environmentId: string, dockerfileCheckRequest?: DockerfileCheckRequest, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
30684
|
+
// verify required parameter 'environmentId' is not null or undefined
|
|
30685
|
+
assertParamExists('checkDockerfile', 'environmentId', environmentId)
|
|
30686
|
+
const localVarPath = `/environment/{environmentId}/checkDockerfile`
|
|
30687
|
+
.replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
|
|
30688
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
30689
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
30690
|
+
let baseOptions;
|
|
30691
|
+
if (configuration) {
|
|
30692
|
+
baseOptions = configuration.baseOptions;
|
|
30693
|
+
}
|
|
30694
|
+
|
|
30695
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
30696
|
+
const localVarHeaderParameter = {} as any;
|
|
30697
|
+
const localVarQueryParameter = {} as any;
|
|
30698
|
+
|
|
30699
|
+
// authentication ApiKeyAuth required
|
|
30700
|
+
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)
|
|
30701
|
+
|
|
30702
|
+
// authentication bearerAuth required
|
|
30703
|
+
// http bearer authentication required
|
|
30704
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
30705
|
+
|
|
30706
|
+
|
|
30707
|
+
|
|
30708
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
30709
|
+
|
|
30710
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
30711
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
30712
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
30713
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dockerfileCheckRequest, localVarRequestOptions, configuration)
|
|
30714
|
+
|
|
30715
|
+
return {
|
|
30716
|
+
url: toPathString(localVarUrlObj),
|
|
30717
|
+
options: localVarRequestOptions,
|
|
30718
|
+
};
|
|
30719
|
+
},
|
|
30631
30720
|
/**
|
|
30632
30721
|
* Start a deployment of the environment. Any of the services within the chosen environment based on the following rule: a service is deployed only if a new version is specified in the payload for that application/container or if there was a change in its configuration that needs to be applied (vCPU,RAM etc..)
|
|
30633
30722
|
* @summary Deploy applications
|
|
@@ -30683,6 +30772,18 @@ export const EnvironmentApiAxiosParamCreator = function (configuration?: Configu
|
|
|
30683
30772
|
export const EnvironmentApiFp = function(configuration?: Configuration) {
|
|
30684
30773
|
const localVarAxiosParamCreator = EnvironmentApiAxiosParamCreator(configuration)
|
|
30685
30774
|
return {
|
|
30775
|
+
/**
|
|
30776
|
+
*
|
|
30777
|
+
* @summary Check dockerfile configuration is correct
|
|
30778
|
+
* @param {string} environmentId Environment ID
|
|
30779
|
+
* @param {DockerfileCheckRequest} [dockerfileCheckRequest]
|
|
30780
|
+
* @param {*} [options] Override http request option.
|
|
30781
|
+
* @throws {RequiredError}
|
|
30782
|
+
*/
|
|
30783
|
+
async checkDockerfile(environmentId: string, dockerfileCheckRequest?: DockerfileCheckRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DockerfileCheckResponse>> {
|
|
30784
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.checkDockerfile(environmentId, dockerfileCheckRequest, options);
|
|
30785
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
30786
|
+
},
|
|
30686
30787
|
/**
|
|
30687
30788
|
* Start a deployment of the environment. Any of the services within the chosen environment based on the following rule: a service is deployed only if a new version is specified in the payload for that application/container or if there was a change in its configuration that needs to be applied (vCPU,RAM etc..)
|
|
30688
30789
|
* @summary Deploy applications
|
|
@@ -30705,6 +30806,17 @@ export const EnvironmentApiFp = function(configuration?: Configuration) {
|
|
|
30705
30806
|
export const EnvironmentApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
30706
30807
|
const localVarFp = EnvironmentApiFp(configuration)
|
|
30707
30808
|
return {
|
|
30809
|
+
/**
|
|
30810
|
+
*
|
|
30811
|
+
* @summary Check dockerfile configuration is correct
|
|
30812
|
+
* @param {string} environmentId Environment ID
|
|
30813
|
+
* @param {DockerfileCheckRequest} [dockerfileCheckRequest]
|
|
30814
|
+
* @param {*} [options] Override http request option.
|
|
30815
|
+
* @throws {RequiredError}
|
|
30816
|
+
*/
|
|
30817
|
+
checkDockerfile(environmentId: string, dockerfileCheckRequest?: DockerfileCheckRequest, options?: any): AxiosPromise<DockerfileCheckResponse> {
|
|
30818
|
+
return localVarFp.checkDockerfile(environmentId, dockerfileCheckRequest, options).then((request) => request(axios, basePath));
|
|
30819
|
+
},
|
|
30708
30820
|
/**
|
|
30709
30821
|
* Start a deployment of the environment. Any of the services within the chosen environment based on the following rule: a service is deployed only if a new version is specified in the payload for that application/container or if there was a change in its configuration that needs to be applied (vCPU,RAM etc..)
|
|
30710
30822
|
* @summary Deploy applications
|
|
@@ -30726,6 +30838,19 @@ export const EnvironmentApiFactory = function (configuration?: Configuration, ba
|
|
|
30726
30838
|
* @extends {BaseAPI}
|
|
30727
30839
|
*/
|
|
30728
30840
|
export class EnvironmentApi extends BaseAPI {
|
|
30841
|
+
/**
|
|
30842
|
+
*
|
|
30843
|
+
* @summary Check dockerfile configuration is correct
|
|
30844
|
+
* @param {string} environmentId Environment ID
|
|
30845
|
+
* @param {DockerfileCheckRequest} [dockerfileCheckRequest]
|
|
30846
|
+
* @param {*} [options] Override http request option.
|
|
30847
|
+
* @throws {RequiredError}
|
|
30848
|
+
* @memberof EnvironmentApi
|
|
30849
|
+
*/
|
|
30850
|
+
public checkDockerfile(environmentId: string, dockerfileCheckRequest?: DockerfileCheckRequest, options?: AxiosRequestConfig) {
|
|
30851
|
+
return EnvironmentApiFp(this.configuration).checkDockerfile(environmentId, dockerfileCheckRequest, options).then((request) => request(this.axios, this.basePath));
|
|
30852
|
+
}
|
|
30853
|
+
|
|
30729
30854
|
/**
|
|
30730
30855
|
* Start a deployment of the environment. Any of the services within the chosen environment based on the following rule: a service is deployed only if a new version is specified in the payload for that application/container or if there was a change in its configuration that needs to be applied (vCPU,RAM etc..)
|
|
30731
30856
|
* @summary Deploy applications
|
package/dist/api.d.ts
CHANGED
|
@@ -5765,6 +5765,50 @@ export interface DoCredentialsRequest {
|
|
|
5765
5765
|
*/
|
|
5766
5766
|
'spaces_secret_key'?: string;
|
|
5767
5767
|
}
|
|
5768
|
+
/**
|
|
5769
|
+
*
|
|
5770
|
+
* @export
|
|
5771
|
+
* @interface DockerfileCheckRequest
|
|
5772
|
+
*/
|
|
5773
|
+
export interface DockerfileCheckRequest {
|
|
5774
|
+
/**
|
|
5775
|
+
*
|
|
5776
|
+
* @type {GitRepository}
|
|
5777
|
+
* @memberof DockerfileCheckRequest
|
|
5778
|
+
*/
|
|
5779
|
+
'git_repository': GitRepository;
|
|
5780
|
+
/**
|
|
5781
|
+
* path of the dockerfile with root_path as base path
|
|
5782
|
+
* @type {string}
|
|
5783
|
+
* @memberof DockerfileCheckRequest
|
|
5784
|
+
*/
|
|
5785
|
+
'dockerfile_path': string;
|
|
5786
|
+
}
|
|
5787
|
+
/**
|
|
5788
|
+
*
|
|
5789
|
+
* @export
|
|
5790
|
+
* @interface DockerfileCheckResponse
|
|
5791
|
+
*/
|
|
5792
|
+
export interface DockerfileCheckResponse {
|
|
5793
|
+
/**
|
|
5794
|
+
*
|
|
5795
|
+
* @type {string}
|
|
5796
|
+
* @memberof DockerfileCheckResponse
|
|
5797
|
+
*/
|
|
5798
|
+
'dockerfile_path': string;
|
|
5799
|
+
/**
|
|
5800
|
+
* All ARG variable declared in the Dockerfile
|
|
5801
|
+
* @type {Array<string>}
|
|
5802
|
+
* @memberof DockerfileCheckResponse
|
|
5803
|
+
*/
|
|
5804
|
+
'arg'?: Array<string>;
|
|
5805
|
+
/**
|
|
5806
|
+
* All image repositories we found declared in the Dockerfile
|
|
5807
|
+
* @type {Array<string>}
|
|
5808
|
+
* @memberof DockerfileCheckResponse
|
|
5809
|
+
*/
|
|
5810
|
+
'repositories'?: Array<string>;
|
|
5811
|
+
}
|
|
5768
5812
|
/**
|
|
5769
5813
|
*
|
|
5770
5814
|
* @export
|
|
@@ -21266,6 +21310,15 @@ export declare class DeploymentStageMainCallsApi extends BaseAPI {
|
|
|
21266
21310
|
* @export
|
|
21267
21311
|
*/
|
|
21268
21312
|
export declare const EnvironmentApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21313
|
+
/**
|
|
21314
|
+
*
|
|
21315
|
+
* @summary Check dockerfile configuration is correct
|
|
21316
|
+
* @param {string} environmentId Environment ID
|
|
21317
|
+
* @param {DockerfileCheckRequest} [dockerfileCheckRequest]
|
|
21318
|
+
* @param {*} [options] Override http request option.
|
|
21319
|
+
* @throws {RequiredError}
|
|
21320
|
+
*/
|
|
21321
|
+
checkDockerfile: (environmentId: string, dockerfileCheckRequest?: DockerfileCheckRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
21269
21322
|
/**
|
|
21270
21323
|
* Start a deployment of the environment. Any of the services within the chosen environment based on the following rule: a service is deployed only if a new version is specified in the payload for that application/container or if there was a change in its configuration that needs to be applied (vCPU,RAM etc..)
|
|
21271
21324
|
* @summary Deploy applications
|
|
@@ -21281,6 +21334,15 @@ export declare const EnvironmentApiAxiosParamCreator: (configuration?: Configura
|
|
|
21281
21334
|
* @export
|
|
21282
21335
|
*/
|
|
21283
21336
|
export declare const EnvironmentApiFp: (configuration?: Configuration) => {
|
|
21337
|
+
/**
|
|
21338
|
+
*
|
|
21339
|
+
* @summary Check dockerfile configuration is correct
|
|
21340
|
+
* @param {string} environmentId Environment ID
|
|
21341
|
+
* @param {DockerfileCheckRequest} [dockerfileCheckRequest]
|
|
21342
|
+
* @param {*} [options] Override http request option.
|
|
21343
|
+
* @throws {RequiredError}
|
|
21344
|
+
*/
|
|
21345
|
+
checkDockerfile(environmentId: string, dockerfileCheckRequest?: DockerfileCheckRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DockerfileCheckResponse>>;
|
|
21284
21346
|
/**
|
|
21285
21347
|
* Start a deployment of the environment. Any of the services within the chosen environment based on the following rule: a service is deployed only if a new version is specified in the payload for that application/container or if there was a change in its configuration that needs to be applied (vCPU,RAM etc..)
|
|
21286
21348
|
* @summary Deploy applications
|
|
@@ -21296,6 +21358,15 @@ export declare const EnvironmentApiFp: (configuration?: Configuration) => {
|
|
|
21296
21358
|
* @export
|
|
21297
21359
|
*/
|
|
21298
21360
|
export declare const EnvironmentApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
21361
|
+
/**
|
|
21362
|
+
*
|
|
21363
|
+
* @summary Check dockerfile configuration is correct
|
|
21364
|
+
* @param {string} environmentId Environment ID
|
|
21365
|
+
* @param {DockerfileCheckRequest} [dockerfileCheckRequest]
|
|
21366
|
+
* @param {*} [options] Override http request option.
|
|
21367
|
+
* @throws {RequiredError}
|
|
21368
|
+
*/
|
|
21369
|
+
checkDockerfile(environmentId: string, dockerfileCheckRequest?: DockerfileCheckRequest, options?: any): AxiosPromise<DockerfileCheckResponse>;
|
|
21299
21370
|
/**
|
|
21300
21371
|
* Start a deployment of the environment. Any of the services within the chosen environment based on the following rule: a service is deployed only if a new version is specified in the payload for that application/container or if there was a change in its configuration that needs to be applied (vCPU,RAM etc..)
|
|
21301
21372
|
* @summary Deploy applications
|
|
@@ -21313,6 +21384,16 @@ export declare const EnvironmentApiFactory: (configuration?: Configuration, base
|
|
|
21313
21384
|
* @extends {BaseAPI}
|
|
21314
21385
|
*/
|
|
21315
21386
|
export declare class EnvironmentApi extends BaseAPI {
|
|
21387
|
+
/**
|
|
21388
|
+
*
|
|
21389
|
+
* @summary Check dockerfile configuration is correct
|
|
21390
|
+
* @param {string} environmentId Environment ID
|
|
21391
|
+
* @param {DockerfileCheckRequest} [dockerfileCheckRequest]
|
|
21392
|
+
* @param {*} [options] Override http request option.
|
|
21393
|
+
* @throws {RequiredError}
|
|
21394
|
+
* @memberof EnvironmentApi
|
|
21395
|
+
*/
|
|
21396
|
+
checkDockerfile(environmentId: string, dockerfileCheckRequest?: DockerfileCheckRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DockerfileCheckResponse, any>>;
|
|
21316
21397
|
/**
|
|
21317
21398
|
* Start a deployment of the environment. Any of the services within the chosen environment based on the following rule: a service is deployed only if a new version is specified in the payload for that application/container or if there was a change in its configuration that needs to be applied (vCPU,RAM etc..)
|
|
21318
21399
|
* @summary Deploy applications
|
package/dist/api.js
CHANGED
|
@@ -16290,6 +16290,43 @@ exports.DeploymentStageMainCallsApi = DeploymentStageMainCallsApi;
|
|
|
16290
16290
|
*/
|
|
16291
16291
|
const EnvironmentApiAxiosParamCreator = function (configuration) {
|
|
16292
16292
|
return {
|
|
16293
|
+
/**
|
|
16294
|
+
*
|
|
16295
|
+
* @summary Check dockerfile configuration is correct
|
|
16296
|
+
* @param {string} environmentId Environment ID
|
|
16297
|
+
* @param {DockerfileCheckRequest} [dockerfileCheckRequest]
|
|
16298
|
+
* @param {*} [options] Override http request option.
|
|
16299
|
+
* @throws {RequiredError}
|
|
16300
|
+
*/
|
|
16301
|
+
checkDockerfile: (environmentId, dockerfileCheckRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
16302
|
+
// verify required parameter 'environmentId' is not null or undefined
|
|
16303
|
+
(0, common_1.assertParamExists)('checkDockerfile', 'environmentId', environmentId);
|
|
16304
|
+
const localVarPath = `/environment/{environmentId}/checkDockerfile`
|
|
16305
|
+
.replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
|
|
16306
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16307
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16308
|
+
let baseOptions;
|
|
16309
|
+
if (configuration) {
|
|
16310
|
+
baseOptions = configuration.baseOptions;
|
|
16311
|
+
}
|
|
16312
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
16313
|
+
const localVarHeaderParameter = {};
|
|
16314
|
+
const localVarQueryParameter = {};
|
|
16315
|
+
// authentication ApiKeyAuth required
|
|
16316
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
16317
|
+
// authentication bearerAuth required
|
|
16318
|
+
// http bearer authentication required
|
|
16319
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
16320
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16321
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
16322
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16323
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16324
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(dockerfileCheckRequest, localVarRequestOptions, configuration);
|
|
16325
|
+
return {
|
|
16326
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
16327
|
+
options: localVarRequestOptions,
|
|
16328
|
+
};
|
|
16329
|
+
}),
|
|
16293
16330
|
/**
|
|
16294
16331
|
* Start a deployment of the environment. Any of the services within the chosen environment based on the following rule: a service is deployed only if a new version is specified in the payload for that application/container or if there was a change in its configuration that needs to be applied (vCPU,RAM etc..)
|
|
16295
16332
|
* @summary Deploy applications
|
|
@@ -16337,6 +16374,20 @@ exports.EnvironmentApiAxiosParamCreator = EnvironmentApiAxiosParamCreator;
|
|
|
16337
16374
|
const EnvironmentApiFp = function (configuration) {
|
|
16338
16375
|
const localVarAxiosParamCreator = (0, exports.EnvironmentApiAxiosParamCreator)(configuration);
|
|
16339
16376
|
return {
|
|
16377
|
+
/**
|
|
16378
|
+
*
|
|
16379
|
+
* @summary Check dockerfile configuration is correct
|
|
16380
|
+
* @param {string} environmentId Environment ID
|
|
16381
|
+
* @param {DockerfileCheckRequest} [dockerfileCheckRequest]
|
|
16382
|
+
* @param {*} [options] Override http request option.
|
|
16383
|
+
* @throws {RequiredError}
|
|
16384
|
+
*/
|
|
16385
|
+
checkDockerfile(environmentId, dockerfileCheckRequest, options) {
|
|
16386
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16387
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.checkDockerfile(environmentId, dockerfileCheckRequest, options);
|
|
16388
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
16389
|
+
});
|
|
16390
|
+
},
|
|
16340
16391
|
/**
|
|
16341
16392
|
* Start a deployment of the environment. Any of the services within the chosen environment based on the following rule: a service is deployed only if a new version is specified in the payload for that application/container or if there was a change in its configuration that needs to be applied (vCPU,RAM etc..)
|
|
16342
16393
|
* @summary Deploy applications
|
|
@@ -16361,6 +16412,17 @@ exports.EnvironmentApiFp = EnvironmentApiFp;
|
|
|
16361
16412
|
const EnvironmentApiFactory = function (configuration, basePath, axios) {
|
|
16362
16413
|
const localVarFp = (0, exports.EnvironmentApiFp)(configuration);
|
|
16363
16414
|
return {
|
|
16415
|
+
/**
|
|
16416
|
+
*
|
|
16417
|
+
* @summary Check dockerfile configuration is correct
|
|
16418
|
+
* @param {string} environmentId Environment ID
|
|
16419
|
+
* @param {DockerfileCheckRequest} [dockerfileCheckRequest]
|
|
16420
|
+
* @param {*} [options] Override http request option.
|
|
16421
|
+
* @throws {RequiredError}
|
|
16422
|
+
*/
|
|
16423
|
+
checkDockerfile(environmentId, dockerfileCheckRequest, options) {
|
|
16424
|
+
return localVarFp.checkDockerfile(environmentId, dockerfileCheckRequest, options).then((request) => request(axios, basePath));
|
|
16425
|
+
},
|
|
16364
16426
|
/**
|
|
16365
16427
|
* Start a deployment of the environment. Any of the services within the chosen environment based on the following rule: a service is deployed only if a new version is specified in the payload for that application/container or if there was a change in its configuration that needs to be applied (vCPU,RAM etc..)
|
|
16366
16428
|
* @summary Deploy applications
|
|
@@ -16382,6 +16444,18 @@ exports.EnvironmentApiFactory = EnvironmentApiFactory;
|
|
|
16382
16444
|
* @extends {BaseAPI}
|
|
16383
16445
|
*/
|
|
16384
16446
|
class EnvironmentApi extends base_1.BaseAPI {
|
|
16447
|
+
/**
|
|
16448
|
+
*
|
|
16449
|
+
* @summary Check dockerfile configuration is correct
|
|
16450
|
+
* @param {string} environmentId Environment ID
|
|
16451
|
+
* @param {DockerfileCheckRequest} [dockerfileCheckRequest]
|
|
16452
|
+
* @param {*} [options] Override http request option.
|
|
16453
|
+
* @throws {RequiredError}
|
|
16454
|
+
* @memberof EnvironmentApi
|
|
16455
|
+
*/
|
|
16456
|
+
checkDockerfile(environmentId, dockerfileCheckRequest, options) {
|
|
16457
|
+
return (0, exports.EnvironmentApiFp)(this.configuration).checkDockerfile(environmentId, dockerfileCheckRequest, options).then((request) => request(this.axios, this.basePath));
|
|
16458
|
+
}
|
|
16385
16459
|
/**
|
|
16386
16460
|
* Start a deployment of the environment. Any of the services within the chosen environment based on the following rule: a service is deployed only if a new version is specified in the payload for that application/container or if there was a change in its configuration that needs to be applied (vCPU,RAM etc..)
|
|
16387
16461
|
* @summary Deploy applications
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -5765,6 +5765,50 @@ export interface DoCredentialsRequest {
|
|
|
5765
5765
|
*/
|
|
5766
5766
|
'spaces_secret_key'?: string;
|
|
5767
5767
|
}
|
|
5768
|
+
/**
|
|
5769
|
+
*
|
|
5770
|
+
* @export
|
|
5771
|
+
* @interface DockerfileCheckRequest
|
|
5772
|
+
*/
|
|
5773
|
+
export interface DockerfileCheckRequest {
|
|
5774
|
+
/**
|
|
5775
|
+
*
|
|
5776
|
+
* @type {GitRepository}
|
|
5777
|
+
* @memberof DockerfileCheckRequest
|
|
5778
|
+
*/
|
|
5779
|
+
'git_repository': GitRepository;
|
|
5780
|
+
/**
|
|
5781
|
+
* path of the dockerfile with root_path as base path
|
|
5782
|
+
* @type {string}
|
|
5783
|
+
* @memberof DockerfileCheckRequest
|
|
5784
|
+
*/
|
|
5785
|
+
'dockerfile_path': string;
|
|
5786
|
+
}
|
|
5787
|
+
/**
|
|
5788
|
+
*
|
|
5789
|
+
* @export
|
|
5790
|
+
* @interface DockerfileCheckResponse
|
|
5791
|
+
*/
|
|
5792
|
+
export interface DockerfileCheckResponse {
|
|
5793
|
+
/**
|
|
5794
|
+
*
|
|
5795
|
+
* @type {string}
|
|
5796
|
+
* @memberof DockerfileCheckResponse
|
|
5797
|
+
*/
|
|
5798
|
+
'dockerfile_path': string;
|
|
5799
|
+
/**
|
|
5800
|
+
* All ARG variable declared in the Dockerfile
|
|
5801
|
+
* @type {Array<string>}
|
|
5802
|
+
* @memberof DockerfileCheckResponse
|
|
5803
|
+
*/
|
|
5804
|
+
'arg'?: Array<string>;
|
|
5805
|
+
/**
|
|
5806
|
+
* All image repositories we found declared in the Dockerfile
|
|
5807
|
+
* @type {Array<string>}
|
|
5808
|
+
* @memberof DockerfileCheckResponse
|
|
5809
|
+
*/
|
|
5810
|
+
'repositories'?: Array<string>;
|
|
5811
|
+
}
|
|
5768
5812
|
/**
|
|
5769
5813
|
*
|
|
5770
5814
|
* @export
|
|
@@ -21266,6 +21310,15 @@ export declare class DeploymentStageMainCallsApi extends BaseAPI {
|
|
|
21266
21310
|
* @export
|
|
21267
21311
|
*/
|
|
21268
21312
|
export declare const EnvironmentApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
21313
|
+
/**
|
|
21314
|
+
*
|
|
21315
|
+
* @summary Check dockerfile configuration is correct
|
|
21316
|
+
* @param {string} environmentId Environment ID
|
|
21317
|
+
* @param {DockerfileCheckRequest} [dockerfileCheckRequest]
|
|
21318
|
+
* @param {*} [options] Override http request option.
|
|
21319
|
+
* @throws {RequiredError}
|
|
21320
|
+
*/
|
|
21321
|
+
checkDockerfile: (environmentId: string, dockerfileCheckRequest?: DockerfileCheckRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
21269
21322
|
/**
|
|
21270
21323
|
* Start a deployment of the environment. Any of the services within the chosen environment based on the following rule: a service is deployed only if a new version is specified in the payload for that application/container or if there was a change in its configuration that needs to be applied (vCPU,RAM etc..)
|
|
21271
21324
|
* @summary Deploy applications
|
|
@@ -21281,6 +21334,15 @@ export declare const EnvironmentApiAxiosParamCreator: (configuration?: Configura
|
|
|
21281
21334
|
* @export
|
|
21282
21335
|
*/
|
|
21283
21336
|
export declare const EnvironmentApiFp: (configuration?: Configuration) => {
|
|
21337
|
+
/**
|
|
21338
|
+
*
|
|
21339
|
+
* @summary Check dockerfile configuration is correct
|
|
21340
|
+
* @param {string} environmentId Environment ID
|
|
21341
|
+
* @param {DockerfileCheckRequest} [dockerfileCheckRequest]
|
|
21342
|
+
* @param {*} [options] Override http request option.
|
|
21343
|
+
* @throws {RequiredError}
|
|
21344
|
+
*/
|
|
21345
|
+
checkDockerfile(environmentId: string, dockerfileCheckRequest?: DockerfileCheckRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DockerfileCheckResponse>>;
|
|
21284
21346
|
/**
|
|
21285
21347
|
* Start a deployment of the environment. Any of the services within the chosen environment based on the following rule: a service is deployed only if a new version is specified in the payload for that application/container or if there was a change in its configuration that needs to be applied (vCPU,RAM etc..)
|
|
21286
21348
|
* @summary Deploy applications
|
|
@@ -21296,6 +21358,15 @@ export declare const EnvironmentApiFp: (configuration?: Configuration) => {
|
|
|
21296
21358
|
* @export
|
|
21297
21359
|
*/
|
|
21298
21360
|
export declare const EnvironmentApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
21361
|
+
/**
|
|
21362
|
+
*
|
|
21363
|
+
* @summary Check dockerfile configuration is correct
|
|
21364
|
+
* @param {string} environmentId Environment ID
|
|
21365
|
+
* @param {DockerfileCheckRequest} [dockerfileCheckRequest]
|
|
21366
|
+
* @param {*} [options] Override http request option.
|
|
21367
|
+
* @throws {RequiredError}
|
|
21368
|
+
*/
|
|
21369
|
+
checkDockerfile(environmentId: string, dockerfileCheckRequest?: DockerfileCheckRequest, options?: any): AxiosPromise<DockerfileCheckResponse>;
|
|
21299
21370
|
/**
|
|
21300
21371
|
* Start a deployment of the environment. Any of the services within the chosen environment based on the following rule: a service is deployed only if a new version is specified in the payload for that application/container or if there was a change in its configuration that needs to be applied (vCPU,RAM etc..)
|
|
21301
21372
|
* @summary Deploy applications
|
|
@@ -21313,6 +21384,16 @@ export declare const EnvironmentApiFactory: (configuration?: Configuration, base
|
|
|
21313
21384
|
* @extends {BaseAPI}
|
|
21314
21385
|
*/
|
|
21315
21386
|
export declare class EnvironmentApi extends BaseAPI {
|
|
21387
|
+
/**
|
|
21388
|
+
*
|
|
21389
|
+
* @summary Check dockerfile configuration is correct
|
|
21390
|
+
* @param {string} environmentId Environment ID
|
|
21391
|
+
* @param {DockerfileCheckRequest} [dockerfileCheckRequest]
|
|
21392
|
+
* @param {*} [options] Override http request option.
|
|
21393
|
+
* @throws {RequiredError}
|
|
21394
|
+
* @memberof EnvironmentApi
|
|
21395
|
+
*/
|
|
21396
|
+
checkDockerfile(environmentId: string, dockerfileCheckRequest?: DockerfileCheckRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DockerfileCheckResponse, any>>;
|
|
21316
21397
|
/**
|
|
21317
21398
|
* Start a deployment of the environment. Any of the services within the chosen environment based on the following rule: a service is deployed only if a new version is specified in the payload for that application/container or if there was a change in its configuration that needs to be applied (vCPU,RAM etc..)
|
|
21318
21399
|
* @summary Deploy applications
|
package/dist/esm/api.js
CHANGED
|
@@ -16152,6 +16152,43 @@ export class DeploymentStageMainCallsApi extends BaseAPI {
|
|
|
16152
16152
|
*/
|
|
16153
16153
|
export const EnvironmentApiAxiosParamCreator = function (configuration) {
|
|
16154
16154
|
return {
|
|
16155
|
+
/**
|
|
16156
|
+
*
|
|
16157
|
+
* @summary Check dockerfile configuration is correct
|
|
16158
|
+
* @param {string} environmentId Environment ID
|
|
16159
|
+
* @param {DockerfileCheckRequest} [dockerfileCheckRequest]
|
|
16160
|
+
* @param {*} [options] Override http request option.
|
|
16161
|
+
* @throws {RequiredError}
|
|
16162
|
+
*/
|
|
16163
|
+
checkDockerfile: (environmentId, dockerfileCheckRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
16164
|
+
// verify required parameter 'environmentId' is not null or undefined
|
|
16165
|
+
assertParamExists('checkDockerfile', 'environmentId', environmentId);
|
|
16166
|
+
const localVarPath = `/environment/{environmentId}/checkDockerfile`
|
|
16167
|
+
.replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
|
|
16168
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16169
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16170
|
+
let baseOptions;
|
|
16171
|
+
if (configuration) {
|
|
16172
|
+
baseOptions = configuration.baseOptions;
|
|
16173
|
+
}
|
|
16174
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
16175
|
+
const localVarHeaderParameter = {};
|
|
16176
|
+
const localVarQueryParameter = {};
|
|
16177
|
+
// authentication ApiKeyAuth required
|
|
16178
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
16179
|
+
// authentication bearerAuth required
|
|
16180
|
+
// http bearer authentication required
|
|
16181
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
16182
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16183
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16184
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16185
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16186
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dockerfileCheckRequest, localVarRequestOptions, configuration);
|
|
16187
|
+
return {
|
|
16188
|
+
url: toPathString(localVarUrlObj),
|
|
16189
|
+
options: localVarRequestOptions,
|
|
16190
|
+
};
|
|
16191
|
+
}),
|
|
16155
16192
|
/**
|
|
16156
16193
|
* Start a deployment of the environment. Any of the services within the chosen environment based on the following rule: a service is deployed only if a new version is specified in the payload for that application/container or if there was a change in its configuration that needs to be applied (vCPU,RAM etc..)
|
|
16157
16194
|
* @summary Deploy applications
|
|
@@ -16198,6 +16235,20 @@ export const EnvironmentApiAxiosParamCreator = function (configuration) {
|
|
|
16198
16235
|
export const EnvironmentApiFp = function (configuration) {
|
|
16199
16236
|
const localVarAxiosParamCreator = EnvironmentApiAxiosParamCreator(configuration);
|
|
16200
16237
|
return {
|
|
16238
|
+
/**
|
|
16239
|
+
*
|
|
16240
|
+
* @summary Check dockerfile configuration is correct
|
|
16241
|
+
* @param {string} environmentId Environment ID
|
|
16242
|
+
* @param {DockerfileCheckRequest} [dockerfileCheckRequest]
|
|
16243
|
+
* @param {*} [options] Override http request option.
|
|
16244
|
+
* @throws {RequiredError}
|
|
16245
|
+
*/
|
|
16246
|
+
checkDockerfile(environmentId, dockerfileCheckRequest, options) {
|
|
16247
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16248
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.checkDockerfile(environmentId, dockerfileCheckRequest, options);
|
|
16249
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
16250
|
+
});
|
|
16251
|
+
},
|
|
16201
16252
|
/**
|
|
16202
16253
|
* Start a deployment of the environment. Any of the services within the chosen environment based on the following rule: a service is deployed only if a new version is specified in the payload for that application/container or if there was a change in its configuration that needs to be applied (vCPU,RAM etc..)
|
|
16203
16254
|
* @summary Deploy applications
|
|
@@ -16221,6 +16272,17 @@ export const EnvironmentApiFp = function (configuration) {
|
|
|
16221
16272
|
export const EnvironmentApiFactory = function (configuration, basePath, axios) {
|
|
16222
16273
|
const localVarFp = EnvironmentApiFp(configuration);
|
|
16223
16274
|
return {
|
|
16275
|
+
/**
|
|
16276
|
+
*
|
|
16277
|
+
* @summary Check dockerfile configuration is correct
|
|
16278
|
+
* @param {string} environmentId Environment ID
|
|
16279
|
+
* @param {DockerfileCheckRequest} [dockerfileCheckRequest]
|
|
16280
|
+
* @param {*} [options] Override http request option.
|
|
16281
|
+
* @throws {RequiredError}
|
|
16282
|
+
*/
|
|
16283
|
+
checkDockerfile(environmentId, dockerfileCheckRequest, options) {
|
|
16284
|
+
return localVarFp.checkDockerfile(environmentId, dockerfileCheckRequest, options).then((request) => request(axios, basePath));
|
|
16285
|
+
},
|
|
16224
16286
|
/**
|
|
16225
16287
|
* Start a deployment of the environment. Any of the services within the chosen environment based on the following rule: a service is deployed only if a new version is specified in the payload for that application/container or if there was a change in its configuration that needs to be applied (vCPU,RAM etc..)
|
|
16226
16288
|
* @summary Deploy applications
|
|
@@ -16241,6 +16303,18 @@ export const EnvironmentApiFactory = function (configuration, basePath, axios) {
|
|
|
16241
16303
|
* @extends {BaseAPI}
|
|
16242
16304
|
*/
|
|
16243
16305
|
export class EnvironmentApi extends BaseAPI {
|
|
16306
|
+
/**
|
|
16307
|
+
*
|
|
16308
|
+
* @summary Check dockerfile configuration is correct
|
|
16309
|
+
* @param {string} environmentId Environment ID
|
|
16310
|
+
* @param {DockerfileCheckRequest} [dockerfileCheckRequest]
|
|
16311
|
+
* @param {*} [options] Override http request option.
|
|
16312
|
+
* @throws {RequiredError}
|
|
16313
|
+
* @memberof EnvironmentApi
|
|
16314
|
+
*/
|
|
16315
|
+
checkDockerfile(environmentId, dockerfileCheckRequest, options) {
|
|
16316
|
+
return EnvironmentApiFp(this.configuration).checkDockerfile(environmentId, dockerfileCheckRequest, options).then((request) => request(this.axios, this.basePath));
|
|
16317
|
+
}
|
|
16244
16318
|
/**
|
|
16245
16319
|
* Start a deployment of the environment. Any of the services within the chosen environment based on the following rule: a service is deployed only if a new version is specified in the payload for that application/container or if there was a change in its configuration that needs to be applied (vCPU,RAM etc..)
|
|
16246
16320
|
* @summary Deploy applications
|