qovery-typescript-axios 1.1.45 → 1.1.48
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 +337 -176
- package/dist/api.d.ts +184 -92
- package/dist/api.js +337 -176
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -19429,13 +19429,17 @@ const JobActionsApiAxiosParamCreator = function (configuration) {
|
|
|
19429
19429
|
/**
|
|
19430
19430
|
* You must provide a git commit id
|
|
19431
19431
|
* @summary Deploy job
|
|
19432
|
+
* @param {string} jobId Job ID
|
|
19432
19433
|
* @param {boolean} [force] Enable or Disable the force trigger of the job
|
|
19433
19434
|
* @param {JobDeployRequest} [jobDeployRequest]
|
|
19434
19435
|
* @param {*} [options] Override http request option.
|
|
19435
19436
|
* @throws {RequiredError}
|
|
19436
19437
|
*/
|
|
19437
|
-
deployJob: (force, jobDeployRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
19438
|
-
|
|
19438
|
+
deployJob: (jobId, force, jobDeployRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
19439
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
19440
|
+
(0, common_1.assertParamExists)('deployJob', 'jobId', jobId);
|
|
19441
|
+
const localVarPath = `/job/{jobId}/deploy`
|
|
19442
|
+
.replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
|
|
19439
19443
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19440
19444
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19441
19445
|
let baseOptions;
|
|
@@ -19464,12 +19468,16 @@ const JobActionsApiAxiosParamCreator = function (configuration) {
|
|
|
19464
19468
|
/**
|
|
19465
19469
|
*
|
|
19466
19470
|
* @summary Restart job
|
|
19471
|
+
* @param {string} jobId Job ID
|
|
19467
19472
|
* @param {boolean} [force] Enable or Disable the force trigger of the job
|
|
19468
19473
|
* @param {*} [options] Override http request option.
|
|
19469
19474
|
* @throws {RequiredError}
|
|
19470
19475
|
*/
|
|
19471
|
-
restartJob: (force, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
19472
|
-
|
|
19476
|
+
restartJob: (jobId, force, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
19477
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
19478
|
+
(0, common_1.assertParamExists)('restartJob', 'jobId', jobId);
|
|
19479
|
+
const localVarPath = `/job/{jobId}/restart`
|
|
19480
|
+
.replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
|
|
19473
19481
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19474
19482
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19475
19483
|
let baseOptions;
|
|
@@ -19496,11 +19504,15 @@ const JobActionsApiAxiosParamCreator = function (configuration) {
|
|
|
19496
19504
|
/**
|
|
19497
19505
|
*
|
|
19498
19506
|
* @summary Stop job
|
|
19507
|
+
* @param {string} jobId Job ID
|
|
19499
19508
|
* @param {*} [options] Override http request option.
|
|
19500
19509
|
* @throws {RequiredError}
|
|
19501
19510
|
*/
|
|
19502
|
-
stopJob: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
19503
|
-
|
|
19511
|
+
stopJob: (jobId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
19512
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
19513
|
+
(0, common_1.assertParamExists)('stopJob', 'jobId', jobId);
|
|
19514
|
+
const localVarPath = `/job/{jobId}/stop`
|
|
19515
|
+
.replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
|
|
19504
19516
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19505
19517
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19506
19518
|
let baseOptions;
|
|
@@ -19534,39 +19546,42 @@ const JobActionsApiFp = function (configuration) {
|
|
|
19534
19546
|
/**
|
|
19535
19547
|
* You must provide a git commit id
|
|
19536
19548
|
* @summary Deploy job
|
|
19549
|
+
* @param {string} jobId Job ID
|
|
19537
19550
|
* @param {boolean} [force] Enable or Disable the force trigger of the job
|
|
19538
19551
|
* @param {JobDeployRequest} [jobDeployRequest]
|
|
19539
19552
|
* @param {*} [options] Override http request option.
|
|
19540
19553
|
* @throws {RequiredError}
|
|
19541
19554
|
*/
|
|
19542
|
-
deployJob(force, jobDeployRequest, options) {
|
|
19555
|
+
deployJob(jobId, force, jobDeployRequest, options) {
|
|
19543
19556
|
return __awaiter(this, void 0, void 0, function* () {
|
|
19544
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deployJob(force, jobDeployRequest, options);
|
|
19557
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deployJob(jobId, force, jobDeployRequest, options);
|
|
19545
19558
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
19546
19559
|
});
|
|
19547
19560
|
},
|
|
19548
19561
|
/**
|
|
19549
19562
|
*
|
|
19550
19563
|
* @summary Restart job
|
|
19564
|
+
* @param {string} jobId Job ID
|
|
19551
19565
|
* @param {boolean} [force] Enable or Disable the force trigger of the job
|
|
19552
19566
|
* @param {*} [options] Override http request option.
|
|
19553
19567
|
* @throws {RequiredError}
|
|
19554
19568
|
*/
|
|
19555
|
-
restartJob(force, options) {
|
|
19569
|
+
restartJob(jobId, force, options) {
|
|
19556
19570
|
return __awaiter(this, void 0, void 0, function* () {
|
|
19557
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.restartJob(force, options);
|
|
19571
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.restartJob(jobId, force, options);
|
|
19558
19572
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
19559
19573
|
});
|
|
19560
19574
|
},
|
|
19561
19575
|
/**
|
|
19562
19576
|
*
|
|
19563
19577
|
* @summary Stop job
|
|
19578
|
+
* @param {string} jobId Job ID
|
|
19564
19579
|
* @param {*} [options] Override http request option.
|
|
19565
19580
|
* @throws {RequiredError}
|
|
19566
19581
|
*/
|
|
19567
|
-
stopJob(options) {
|
|
19582
|
+
stopJob(jobId, options) {
|
|
19568
19583
|
return __awaiter(this, void 0, void 0, function* () {
|
|
19569
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.stopJob(options);
|
|
19584
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.stopJob(jobId, options);
|
|
19570
19585
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
19571
19586
|
});
|
|
19572
19587
|
},
|
|
@@ -19583,32 +19598,35 @@ const JobActionsApiFactory = function (configuration, basePath, axios) {
|
|
|
19583
19598
|
/**
|
|
19584
19599
|
* You must provide a git commit id
|
|
19585
19600
|
* @summary Deploy job
|
|
19601
|
+
* @param {string} jobId Job ID
|
|
19586
19602
|
* @param {boolean} [force] Enable or Disable the force trigger of the job
|
|
19587
19603
|
* @param {JobDeployRequest} [jobDeployRequest]
|
|
19588
19604
|
* @param {*} [options] Override http request option.
|
|
19589
19605
|
* @throws {RequiredError}
|
|
19590
19606
|
*/
|
|
19591
|
-
deployJob(force, jobDeployRequest, options) {
|
|
19592
|
-
return localVarFp.deployJob(force, jobDeployRequest, options).then((request) => request(axios, basePath));
|
|
19607
|
+
deployJob(jobId, force, jobDeployRequest, options) {
|
|
19608
|
+
return localVarFp.deployJob(jobId, force, jobDeployRequest, options).then((request) => request(axios, basePath));
|
|
19593
19609
|
},
|
|
19594
19610
|
/**
|
|
19595
19611
|
*
|
|
19596
19612
|
* @summary Restart job
|
|
19613
|
+
* @param {string} jobId Job ID
|
|
19597
19614
|
* @param {boolean} [force] Enable or Disable the force trigger of the job
|
|
19598
19615
|
* @param {*} [options] Override http request option.
|
|
19599
19616
|
* @throws {RequiredError}
|
|
19600
19617
|
*/
|
|
19601
|
-
restartJob(force, options) {
|
|
19602
|
-
return localVarFp.restartJob(force, options).then((request) => request(axios, basePath));
|
|
19618
|
+
restartJob(jobId, force, options) {
|
|
19619
|
+
return localVarFp.restartJob(jobId, force, options).then((request) => request(axios, basePath));
|
|
19603
19620
|
},
|
|
19604
19621
|
/**
|
|
19605
19622
|
*
|
|
19606
19623
|
* @summary Stop job
|
|
19624
|
+
* @param {string} jobId Job ID
|
|
19607
19625
|
* @param {*} [options] Override http request option.
|
|
19608
19626
|
* @throws {RequiredError}
|
|
19609
19627
|
*/
|
|
19610
|
-
stopJob(options) {
|
|
19611
|
-
return localVarFp.stopJob(options).then((request) => request(axios, basePath));
|
|
19628
|
+
stopJob(jobId, options) {
|
|
19629
|
+
return localVarFp.stopJob(jobId, options).then((request) => request(axios, basePath));
|
|
19612
19630
|
},
|
|
19613
19631
|
};
|
|
19614
19632
|
};
|
|
@@ -19623,35 +19641,38 @@ class JobActionsApi extends base_1.BaseAPI {
|
|
|
19623
19641
|
/**
|
|
19624
19642
|
* You must provide a git commit id
|
|
19625
19643
|
* @summary Deploy job
|
|
19644
|
+
* @param {string} jobId Job ID
|
|
19626
19645
|
* @param {boolean} [force] Enable or Disable the force trigger of the job
|
|
19627
19646
|
* @param {JobDeployRequest} [jobDeployRequest]
|
|
19628
19647
|
* @param {*} [options] Override http request option.
|
|
19629
19648
|
* @throws {RequiredError}
|
|
19630
19649
|
* @memberof JobActionsApi
|
|
19631
19650
|
*/
|
|
19632
|
-
deployJob(force, jobDeployRequest, options) {
|
|
19633
|
-
return (0, exports.JobActionsApiFp)(this.configuration).deployJob(force, jobDeployRequest, options).then((request) => request(this.axios, this.basePath));
|
|
19651
|
+
deployJob(jobId, force, jobDeployRequest, options) {
|
|
19652
|
+
return (0, exports.JobActionsApiFp)(this.configuration).deployJob(jobId, force, jobDeployRequest, options).then((request) => request(this.axios, this.basePath));
|
|
19634
19653
|
}
|
|
19635
19654
|
/**
|
|
19636
19655
|
*
|
|
19637
19656
|
* @summary Restart job
|
|
19657
|
+
* @param {string} jobId Job ID
|
|
19638
19658
|
* @param {boolean} [force] Enable or Disable the force trigger of the job
|
|
19639
19659
|
* @param {*} [options] Override http request option.
|
|
19640
19660
|
* @throws {RequiredError}
|
|
19641
19661
|
* @memberof JobActionsApi
|
|
19642
19662
|
*/
|
|
19643
|
-
restartJob(force, options) {
|
|
19644
|
-
return (0, exports.JobActionsApiFp)(this.configuration).restartJob(force, options).then((request) => request(this.axios, this.basePath));
|
|
19663
|
+
restartJob(jobId, force, options) {
|
|
19664
|
+
return (0, exports.JobActionsApiFp)(this.configuration).restartJob(jobId, force, options).then((request) => request(this.axios, this.basePath));
|
|
19645
19665
|
}
|
|
19646
19666
|
/**
|
|
19647
19667
|
*
|
|
19648
19668
|
* @summary Stop job
|
|
19669
|
+
* @param {string} jobId Job ID
|
|
19649
19670
|
* @param {*} [options] Override http request option.
|
|
19650
19671
|
* @throws {RequiredError}
|
|
19651
19672
|
* @memberof JobActionsApi
|
|
19652
19673
|
*/
|
|
19653
|
-
stopJob(options) {
|
|
19654
|
-
return (0, exports.JobActionsApiFp)(this.configuration).stopJob(options).then((request) => request(this.axios, this.basePath));
|
|
19674
|
+
stopJob(jobId, options) {
|
|
19675
|
+
return (0, exports.JobActionsApiFp)(this.configuration).stopJob(jobId, options).then((request) => request(this.axios, this.basePath));
|
|
19655
19676
|
}
|
|
19656
19677
|
}
|
|
19657
19678
|
exports.JobActionsApi = JobActionsApi;
|
|
@@ -19664,12 +19685,16 @@ const JobConfigurationApiAxiosParamCreator = function (configuration) {
|
|
|
19664
19685
|
/**
|
|
19665
19686
|
* Edit advanced settings by returning table of advanced settings.
|
|
19666
19687
|
* @summary Edit advanced settings
|
|
19688
|
+
* @param {string} jobId Job ID
|
|
19667
19689
|
* @param {JobAdvancedSettings} [jobAdvancedSettings]
|
|
19668
19690
|
* @param {*} [options] Override http request option.
|
|
19669
19691
|
* @throws {RequiredError}
|
|
19670
19692
|
*/
|
|
19671
|
-
editJobAdvancedSettings: (jobAdvancedSettings, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
19672
|
-
|
|
19693
|
+
editJobAdvancedSettings: (jobId, jobAdvancedSettings, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
19694
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
19695
|
+
(0, common_1.assertParamExists)('editJobAdvancedSettings', 'jobId', jobId);
|
|
19696
|
+
const localVarPath = `/job/{jobId}/advancedSettings`
|
|
19697
|
+
.replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
|
|
19673
19698
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19674
19699
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19675
19700
|
let baseOptions;
|
|
@@ -19695,11 +19720,15 @@ const JobConfigurationApiAxiosParamCreator = function (configuration) {
|
|
|
19695
19720
|
/**
|
|
19696
19721
|
* Get list and values of the advanced settings of the job.
|
|
19697
19722
|
* @summary Get advanced settings
|
|
19723
|
+
* @param {string} jobId Job ID
|
|
19698
19724
|
* @param {*} [options] Override http request option.
|
|
19699
19725
|
* @throws {RequiredError}
|
|
19700
19726
|
*/
|
|
19701
|
-
getJobAdvancedSettings: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
19702
|
-
|
|
19727
|
+
getJobAdvancedSettings: (jobId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
19728
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
19729
|
+
(0, common_1.assertParamExists)('getJobAdvancedSettings', 'jobId', jobId);
|
|
19730
|
+
const localVarPath = `/job/{jobId}/advancedSettings`
|
|
19731
|
+
.replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
|
|
19703
19732
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19704
19733
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19705
19734
|
let baseOptions;
|
|
@@ -19733,25 +19762,27 @@ const JobConfigurationApiFp = function (configuration) {
|
|
|
19733
19762
|
/**
|
|
19734
19763
|
* Edit advanced settings by returning table of advanced settings.
|
|
19735
19764
|
* @summary Edit advanced settings
|
|
19765
|
+
* @param {string} jobId Job ID
|
|
19736
19766
|
* @param {JobAdvancedSettings} [jobAdvancedSettings]
|
|
19737
19767
|
* @param {*} [options] Override http request option.
|
|
19738
19768
|
* @throws {RequiredError}
|
|
19739
19769
|
*/
|
|
19740
|
-
editJobAdvancedSettings(jobAdvancedSettings, options) {
|
|
19770
|
+
editJobAdvancedSettings(jobId, jobAdvancedSettings, options) {
|
|
19741
19771
|
return __awaiter(this, void 0, void 0, function* () {
|
|
19742
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.editJobAdvancedSettings(jobAdvancedSettings, options);
|
|
19772
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.editJobAdvancedSettings(jobId, jobAdvancedSettings, options);
|
|
19743
19773
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
19744
19774
|
});
|
|
19745
19775
|
},
|
|
19746
19776
|
/**
|
|
19747
19777
|
* Get list and values of the advanced settings of the job.
|
|
19748
19778
|
* @summary Get advanced settings
|
|
19779
|
+
* @param {string} jobId Job ID
|
|
19749
19780
|
* @param {*} [options] Override http request option.
|
|
19750
19781
|
* @throws {RequiredError}
|
|
19751
19782
|
*/
|
|
19752
|
-
getJobAdvancedSettings(options) {
|
|
19783
|
+
getJobAdvancedSettings(jobId, options) {
|
|
19753
19784
|
return __awaiter(this, void 0, void 0, function* () {
|
|
19754
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getJobAdvancedSettings(options);
|
|
19785
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getJobAdvancedSettings(jobId, options);
|
|
19755
19786
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
19756
19787
|
});
|
|
19757
19788
|
},
|
|
@@ -19768,21 +19799,23 @@ const JobConfigurationApiFactory = function (configuration, basePath, axios) {
|
|
|
19768
19799
|
/**
|
|
19769
19800
|
* Edit advanced settings by returning table of advanced settings.
|
|
19770
19801
|
* @summary Edit advanced settings
|
|
19802
|
+
* @param {string} jobId Job ID
|
|
19771
19803
|
* @param {JobAdvancedSettings} [jobAdvancedSettings]
|
|
19772
19804
|
* @param {*} [options] Override http request option.
|
|
19773
19805
|
* @throws {RequiredError}
|
|
19774
19806
|
*/
|
|
19775
|
-
editJobAdvancedSettings(jobAdvancedSettings, options) {
|
|
19776
|
-
return localVarFp.editJobAdvancedSettings(jobAdvancedSettings, options).then((request) => request(axios, basePath));
|
|
19807
|
+
editJobAdvancedSettings(jobId, jobAdvancedSettings, options) {
|
|
19808
|
+
return localVarFp.editJobAdvancedSettings(jobId, jobAdvancedSettings, options).then((request) => request(axios, basePath));
|
|
19777
19809
|
},
|
|
19778
19810
|
/**
|
|
19779
19811
|
* Get list and values of the advanced settings of the job.
|
|
19780
19812
|
* @summary Get advanced settings
|
|
19813
|
+
* @param {string} jobId Job ID
|
|
19781
19814
|
* @param {*} [options] Override http request option.
|
|
19782
19815
|
* @throws {RequiredError}
|
|
19783
19816
|
*/
|
|
19784
|
-
getJobAdvancedSettings(options) {
|
|
19785
|
-
return localVarFp.getJobAdvancedSettings(options).then((request) => request(axios, basePath));
|
|
19817
|
+
getJobAdvancedSettings(jobId, options) {
|
|
19818
|
+
return localVarFp.getJobAdvancedSettings(jobId, options).then((request) => request(axios, basePath));
|
|
19786
19819
|
},
|
|
19787
19820
|
};
|
|
19788
19821
|
};
|
|
@@ -19797,23 +19830,25 @@ class JobConfigurationApi extends base_1.BaseAPI {
|
|
|
19797
19830
|
/**
|
|
19798
19831
|
* Edit advanced settings by returning table of advanced settings.
|
|
19799
19832
|
* @summary Edit advanced settings
|
|
19833
|
+
* @param {string} jobId Job ID
|
|
19800
19834
|
* @param {JobAdvancedSettings} [jobAdvancedSettings]
|
|
19801
19835
|
* @param {*} [options] Override http request option.
|
|
19802
19836
|
* @throws {RequiredError}
|
|
19803
19837
|
* @memberof JobConfigurationApi
|
|
19804
19838
|
*/
|
|
19805
|
-
editJobAdvancedSettings(jobAdvancedSettings, options) {
|
|
19806
|
-
return (0, exports.JobConfigurationApiFp)(this.configuration).editJobAdvancedSettings(jobAdvancedSettings, options).then((request) => request(this.axios, this.basePath));
|
|
19839
|
+
editJobAdvancedSettings(jobId, jobAdvancedSettings, options) {
|
|
19840
|
+
return (0, exports.JobConfigurationApiFp)(this.configuration).editJobAdvancedSettings(jobId, jobAdvancedSettings, options).then((request) => request(this.axios, this.basePath));
|
|
19807
19841
|
}
|
|
19808
19842
|
/**
|
|
19809
19843
|
* Get list and values of the advanced settings of the job.
|
|
19810
19844
|
* @summary Get advanced settings
|
|
19845
|
+
* @param {string} jobId Job ID
|
|
19811
19846
|
* @param {*} [options] Override http request option.
|
|
19812
19847
|
* @throws {RequiredError}
|
|
19813
19848
|
* @memberof JobConfigurationApi
|
|
19814
19849
|
*/
|
|
19815
|
-
getJobAdvancedSettings(options) {
|
|
19816
|
-
return (0, exports.JobConfigurationApiFp)(this.configuration).getJobAdvancedSettings(options).then((request) => request(this.axios, this.basePath));
|
|
19850
|
+
getJobAdvancedSettings(jobId, options) {
|
|
19851
|
+
return (0, exports.JobConfigurationApiFp)(this.configuration).getJobAdvancedSettings(jobId, options).then((request) => request(this.axios, this.basePath));
|
|
19817
19852
|
}
|
|
19818
19853
|
}
|
|
19819
19854
|
exports.JobConfigurationApi = JobConfigurationApi;
|
|
@@ -19826,11 +19861,15 @@ const JobDeploymentHistoryApiAxiosParamCreator = function (configuration) {
|
|
|
19826
19861
|
/**
|
|
19827
19862
|
* Returns the 20 last job deployments
|
|
19828
19863
|
* @summary List job deployments
|
|
19864
|
+
* @param {string} jobId Job ID
|
|
19829
19865
|
* @param {*} [options] Override http request option.
|
|
19830
19866
|
* @throws {RequiredError}
|
|
19831
19867
|
*/
|
|
19832
|
-
listJobDeploymentHistory: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
19833
|
-
|
|
19868
|
+
listJobDeploymentHistory: (jobId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
19869
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
19870
|
+
(0, common_1.assertParamExists)('listJobDeploymentHistory', 'jobId', jobId);
|
|
19871
|
+
const localVarPath = `/job/{jobId}/deploymentHistory`
|
|
19872
|
+
.replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
|
|
19834
19873
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19835
19874
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19836
19875
|
let baseOptions;
|
|
@@ -19864,12 +19903,13 @@ const JobDeploymentHistoryApiFp = function (configuration) {
|
|
|
19864
19903
|
/**
|
|
19865
19904
|
* Returns the 20 last job deployments
|
|
19866
19905
|
* @summary List job deployments
|
|
19906
|
+
* @param {string} jobId Job ID
|
|
19867
19907
|
* @param {*} [options] Override http request option.
|
|
19868
19908
|
* @throws {RequiredError}
|
|
19869
19909
|
*/
|
|
19870
|
-
listJobDeploymentHistory(options) {
|
|
19910
|
+
listJobDeploymentHistory(jobId, options) {
|
|
19871
19911
|
return __awaiter(this, void 0, void 0, function* () {
|
|
19872
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listJobDeploymentHistory(options);
|
|
19912
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listJobDeploymentHistory(jobId, options);
|
|
19873
19913
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
19874
19914
|
});
|
|
19875
19915
|
},
|
|
@@ -19886,11 +19926,12 @@ const JobDeploymentHistoryApiFactory = function (configuration, basePath, axios)
|
|
|
19886
19926
|
/**
|
|
19887
19927
|
* Returns the 20 last job deployments
|
|
19888
19928
|
* @summary List job deployments
|
|
19929
|
+
* @param {string} jobId Job ID
|
|
19889
19930
|
* @param {*} [options] Override http request option.
|
|
19890
19931
|
* @throws {RequiredError}
|
|
19891
19932
|
*/
|
|
19892
|
-
listJobDeploymentHistory(options) {
|
|
19893
|
-
return localVarFp.listJobDeploymentHistory(options).then((request) => request(axios, basePath));
|
|
19933
|
+
listJobDeploymentHistory(jobId, options) {
|
|
19934
|
+
return localVarFp.listJobDeploymentHistory(jobId, options).then((request) => request(axios, basePath));
|
|
19894
19935
|
},
|
|
19895
19936
|
};
|
|
19896
19937
|
};
|
|
@@ -19905,12 +19946,13 @@ class JobDeploymentHistoryApi extends base_1.BaseAPI {
|
|
|
19905
19946
|
/**
|
|
19906
19947
|
* Returns the 20 last job deployments
|
|
19907
19948
|
* @summary List job deployments
|
|
19949
|
+
* @param {string} jobId Job ID
|
|
19908
19950
|
* @param {*} [options] Override http request option.
|
|
19909
19951
|
* @throws {RequiredError}
|
|
19910
19952
|
* @memberof JobDeploymentHistoryApi
|
|
19911
19953
|
*/
|
|
19912
|
-
listJobDeploymentHistory(options) {
|
|
19913
|
-
return (0, exports.JobDeploymentHistoryApiFp)(this.configuration).listJobDeploymentHistory(options).then((request) => request(this.axios, this.basePath));
|
|
19954
|
+
listJobDeploymentHistory(jobId, options) {
|
|
19955
|
+
return (0, exports.JobDeploymentHistoryApiFp)(this.configuration).listJobDeploymentHistory(jobId, options).then((request) => request(this.axios, this.basePath));
|
|
19914
19956
|
}
|
|
19915
19957
|
}
|
|
19916
19958
|
exports.JobDeploymentHistoryApi = JobDeploymentHistoryApi;
|
|
@@ -19923,12 +19965,16 @@ const JobEnvironmentVariableApiAxiosParamCreator = function (configuration) {
|
|
|
19923
19965
|
/**
|
|
19924
19966
|
* - Add an environment variable to the job.
|
|
19925
19967
|
* @summary Add an environment variable to the job
|
|
19968
|
+
* @param {string} jobId Job ID
|
|
19926
19969
|
* @param {EnvironmentVariableRequest} [environmentVariableRequest]
|
|
19927
19970
|
* @param {*} [options] Override http request option.
|
|
19928
19971
|
* @throws {RequiredError}
|
|
19929
19972
|
*/
|
|
19930
|
-
createJobEnvironmentVariable: (environmentVariableRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
19931
|
-
|
|
19973
|
+
createJobEnvironmentVariable: (jobId, environmentVariableRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
19974
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
19975
|
+
(0, common_1.assertParamExists)('createJobEnvironmentVariable', 'jobId', jobId);
|
|
19976
|
+
const localVarPath = `/job/{jobId}/environmentVariable`
|
|
19977
|
+
.replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
|
|
19932
19978
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19933
19979
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19934
19980
|
let baseOptions;
|
|
@@ -19954,15 +20000,19 @@ const JobEnvironmentVariableApiAxiosParamCreator = function (configuration) {
|
|
|
19954
20000
|
/**
|
|
19955
20001
|
* - Allows you to add an alias at job level on an existing environment variable having higher scope, in order to customize its key. - You only have to specify a key in the request body - The system will create a new environment variable at job level with the same value as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the aliased_variable will be exposed in the \"aliased_variable\" field of the newly created variable - Only 1 alias level is allowed. You can\'t create an alias on an alias
|
|
19956
20002
|
* @summary Create an environment variable alias at the job level
|
|
20003
|
+
* @param {string} jobId Job ID
|
|
19957
20004
|
* @param {string} environmentVariableId Environment Variable ID
|
|
19958
20005
|
* @param {Key} [key]
|
|
19959
20006
|
* @param {*} [options] Override http request option.
|
|
19960
20007
|
* @throws {RequiredError}
|
|
19961
20008
|
*/
|
|
19962
|
-
createJobEnvironmentVariableAlias: (environmentVariableId, key, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
20009
|
+
createJobEnvironmentVariableAlias: (jobId, environmentVariableId, key, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
20010
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
20011
|
+
(0, common_1.assertParamExists)('createJobEnvironmentVariableAlias', 'jobId', jobId);
|
|
19963
20012
|
// verify required parameter 'environmentVariableId' is not null or undefined
|
|
19964
20013
|
(0, common_1.assertParamExists)('createJobEnvironmentVariableAlias', 'environmentVariableId', environmentVariableId);
|
|
19965
20014
|
const localVarPath = `/job/{jobId}/environmentVariable/{environmentVariableId}/alias`
|
|
20015
|
+
.replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)))
|
|
19966
20016
|
.replace(`{${"environmentVariableId"}}`, encodeURIComponent(String(environmentVariableId)));
|
|
19967
20017
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19968
20018
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -19989,15 +20039,19 @@ const JobEnvironmentVariableApiAxiosParamCreator = function (configuration) {
|
|
|
19989
20039
|
/**
|
|
19990
20040
|
* - Allows you to override at job level an environment variable that has a higher scope. - You only have to specify a value in the request body - The system will create a new environment variable at job level with the same key as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the overridden_variable will be exposed in the \"overridden_variable\" field of the newly created variable
|
|
19991
20041
|
* @summary Create an environment variable override at the job level
|
|
20042
|
+
* @param {string} jobId Job ID
|
|
19992
20043
|
* @param {string} environmentVariableId Environment Variable ID
|
|
19993
20044
|
* @param {Value} [value]
|
|
19994
20045
|
* @param {*} [options] Override http request option.
|
|
19995
20046
|
* @throws {RequiredError}
|
|
19996
20047
|
*/
|
|
19997
|
-
createJobEnvironmentVariableOverride: (environmentVariableId, value, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
20048
|
+
createJobEnvironmentVariableOverride: (jobId, environmentVariableId, value, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
20049
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
20050
|
+
(0, common_1.assertParamExists)('createJobEnvironmentVariableOverride', 'jobId', jobId);
|
|
19998
20051
|
// verify required parameter 'environmentVariableId' is not null or undefined
|
|
19999
20052
|
(0, common_1.assertParamExists)('createJobEnvironmentVariableOverride', 'environmentVariableId', environmentVariableId);
|
|
20000
20053
|
const localVarPath = `/job/{jobId}/environmentVariable/{environmentVariableId}/override`
|
|
20054
|
+
.replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)))
|
|
20001
20055
|
.replace(`{${"environmentVariableId"}}`, encodeURIComponent(String(environmentVariableId)));
|
|
20002
20056
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20003
20057
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -20024,14 +20078,18 @@ const JobEnvironmentVariableApiAxiosParamCreator = function (configuration) {
|
|
|
20024
20078
|
/**
|
|
20025
20079
|
* - To delete an environment variable from an job you must have the project user permission - You can\'t delete a BUILT_IN variable - If you delete a variable having override or alias, the associated override/alias will be deleted as well
|
|
20026
20080
|
* @summary Delete an environment variable from a job
|
|
20081
|
+
* @param {string} jobId Job ID
|
|
20027
20082
|
* @param {string} environmentVariableId Environment Variable ID
|
|
20028
20083
|
* @param {*} [options] Override http request option.
|
|
20029
20084
|
* @throws {RequiredError}
|
|
20030
20085
|
*/
|
|
20031
|
-
deleteJobEnvironmentVariable: (environmentVariableId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
20086
|
+
deleteJobEnvironmentVariable: (jobId, environmentVariableId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
20087
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
20088
|
+
(0, common_1.assertParamExists)('deleteJobEnvironmentVariable', 'jobId', jobId);
|
|
20032
20089
|
// verify required parameter 'environmentVariableId' is not null or undefined
|
|
20033
20090
|
(0, common_1.assertParamExists)('deleteJobEnvironmentVariable', 'environmentVariableId', environmentVariableId);
|
|
20034
20091
|
const localVarPath = `/job/{jobId}/environmentVariable/{environmentVariableId}`
|
|
20092
|
+
.replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)))
|
|
20035
20093
|
.replace(`{${"environmentVariableId"}}`, encodeURIComponent(String(environmentVariableId)));
|
|
20036
20094
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20037
20095
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -20056,17 +20114,21 @@ const JobEnvironmentVariableApiAxiosParamCreator = function (configuration) {
|
|
|
20056
20114
|
/**
|
|
20057
20115
|
* - You can\'t edit a BUILT_IN variable - For an override, you can\'t edit the key - For an alias, you can\'t edit the value - An override can only have a scope lower to the variable it is overriding (hierarchy is BUILT_IN > PROJECT > ENVIRONMENT > CONTAINER)
|
|
20058
20116
|
* @summary Edit an environment variable belonging to the job
|
|
20117
|
+
* @param {string} jobId Job ID
|
|
20059
20118
|
* @param {string} environmentVariableId Environment Variable ID
|
|
20060
20119
|
* @param {EnvironmentVariableEditRequest} environmentVariableEditRequest
|
|
20061
20120
|
* @param {*} [options] Override http request option.
|
|
20062
20121
|
* @throws {RequiredError}
|
|
20063
20122
|
*/
|
|
20064
|
-
editJobEnvironmentVariable: (environmentVariableId, environmentVariableEditRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
20123
|
+
editJobEnvironmentVariable: (jobId, environmentVariableId, environmentVariableEditRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
20124
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
20125
|
+
(0, common_1.assertParamExists)('editJobEnvironmentVariable', 'jobId', jobId);
|
|
20065
20126
|
// verify required parameter 'environmentVariableId' is not null or undefined
|
|
20066
20127
|
(0, common_1.assertParamExists)('editJobEnvironmentVariable', 'environmentVariableId', environmentVariableId);
|
|
20067
20128
|
// verify required parameter 'environmentVariableEditRequest' is not null or undefined
|
|
20068
20129
|
(0, common_1.assertParamExists)('editJobEnvironmentVariable', 'environmentVariableEditRequest', environmentVariableEditRequest);
|
|
20069
20130
|
const localVarPath = `/job/{jobId}/environmentVariable/{environmentVariableId}`
|
|
20131
|
+
.replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)))
|
|
20070
20132
|
.replace(`{${"environmentVariableId"}}`, encodeURIComponent(String(environmentVariableId)));
|
|
20071
20133
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20072
20134
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -20093,12 +20155,16 @@ const JobEnvironmentVariableApiAxiosParamCreator = function (configuration) {
|
|
|
20093
20155
|
/**
|
|
20094
20156
|
* Import environment variables in a defined scope, with a defined visibility.
|
|
20095
20157
|
* @summary Import variables
|
|
20158
|
+
* @param {string} jobId Job ID
|
|
20096
20159
|
* @param {VariableImportRequest} [variableImportRequest]
|
|
20097
20160
|
* @param {*} [options] Override http request option.
|
|
20098
20161
|
* @throws {RequiredError}
|
|
20099
20162
|
*/
|
|
20100
|
-
importJobEnvironmentVariable: (variableImportRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
20101
|
-
|
|
20163
|
+
importJobEnvironmentVariable: (jobId, variableImportRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
20164
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
20165
|
+
(0, common_1.assertParamExists)('importJobEnvironmentVariable', 'jobId', jobId);
|
|
20166
|
+
const localVarPath = `/job/{jobId}/environmentVariable/import`
|
|
20167
|
+
.replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
|
|
20102
20168
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20103
20169
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
20104
20170
|
let baseOptions;
|
|
@@ -20124,11 +20190,15 @@ const JobEnvironmentVariableApiAxiosParamCreator = function (configuration) {
|
|
|
20124
20190
|
/**
|
|
20125
20191
|
*
|
|
20126
20192
|
* @summary List environment variables
|
|
20193
|
+
* @param {string} jobId Job ID
|
|
20127
20194
|
* @param {*} [options] Override http request option.
|
|
20128
20195
|
* @throws {RequiredError}
|
|
20129
20196
|
*/
|
|
20130
|
-
listJobEnvironmentVariable: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
20131
|
-
|
|
20197
|
+
listJobEnvironmentVariable: (jobId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
20198
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
20199
|
+
(0, common_1.assertParamExists)('listJobEnvironmentVariable', 'jobId', jobId);
|
|
20200
|
+
const localVarPath = `/job/{jobId}/environmentVariable`
|
|
20201
|
+
.replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
|
|
20132
20202
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20133
20203
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
20134
20204
|
let baseOptions;
|
|
@@ -20162,93 +20232,100 @@ const JobEnvironmentVariableApiFp = function (configuration) {
|
|
|
20162
20232
|
/**
|
|
20163
20233
|
* - Add an environment variable to the job.
|
|
20164
20234
|
* @summary Add an environment variable to the job
|
|
20235
|
+
* @param {string} jobId Job ID
|
|
20165
20236
|
* @param {EnvironmentVariableRequest} [environmentVariableRequest]
|
|
20166
20237
|
* @param {*} [options] Override http request option.
|
|
20167
20238
|
* @throws {RequiredError}
|
|
20168
20239
|
*/
|
|
20169
|
-
createJobEnvironmentVariable(environmentVariableRequest, options) {
|
|
20240
|
+
createJobEnvironmentVariable(jobId, environmentVariableRequest, options) {
|
|
20170
20241
|
return __awaiter(this, void 0, void 0, function* () {
|
|
20171
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createJobEnvironmentVariable(environmentVariableRequest, options);
|
|
20242
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createJobEnvironmentVariable(jobId, environmentVariableRequest, options);
|
|
20172
20243
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
20173
20244
|
});
|
|
20174
20245
|
},
|
|
20175
20246
|
/**
|
|
20176
20247
|
* - Allows you to add an alias at job level on an existing environment variable having higher scope, in order to customize its key. - You only have to specify a key in the request body - The system will create a new environment variable at job level with the same value as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the aliased_variable will be exposed in the \"aliased_variable\" field of the newly created variable - Only 1 alias level is allowed. You can\'t create an alias on an alias
|
|
20177
20248
|
* @summary Create an environment variable alias at the job level
|
|
20249
|
+
* @param {string} jobId Job ID
|
|
20178
20250
|
* @param {string} environmentVariableId Environment Variable ID
|
|
20179
20251
|
* @param {Key} [key]
|
|
20180
20252
|
* @param {*} [options] Override http request option.
|
|
20181
20253
|
* @throws {RequiredError}
|
|
20182
20254
|
*/
|
|
20183
|
-
createJobEnvironmentVariableAlias(environmentVariableId, key, options) {
|
|
20255
|
+
createJobEnvironmentVariableAlias(jobId, environmentVariableId, key, options) {
|
|
20184
20256
|
return __awaiter(this, void 0, void 0, function* () {
|
|
20185
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createJobEnvironmentVariableAlias(environmentVariableId, key, options);
|
|
20257
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createJobEnvironmentVariableAlias(jobId, environmentVariableId, key, options);
|
|
20186
20258
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
20187
20259
|
});
|
|
20188
20260
|
},
|
|
20189
20261
|
/**
|
|
20190
20262
|
* - Allows you to override at job level an environment variable that has a higher scope. - You only have to specify a value in the request body - The system will create a new environment variable at job level with the same key as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the overridden_variable will be exposed in the \"overridden_variable\" field of the newly created variable
|
|
20191
20263
|
* @summary Create an environment variable override at the job level
|
|
20264
|
+
* @param {string} jobId Job ID
|
|
20192
20265
|
* @param {string} environmentVariableId Environment Variable ID
|
|
20193
20266
|
* @param {Value} [value]
|
|
20194
20267
|
* @param {*} [options] Override http request option.
|
|
20195
20268
|
* @throws {RequiredError}
|
|
20196
20269
|
*/
|
|
20197
|
-
createJobEnvironmentVariableOverride(environmentVariableId, value, options) {
|
|
20270
|
+
createJobEnvironmentVariableOverride(jobId, environmentVariableId, value, options) {
|
|
20198
20271
|
return __awaiter(this, void 0, void 0, function* () {
|
|
20199
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createJobEnvironmentVariableOverride(environmentVariableId, value, options);
|
|
20272
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createJobEnvironmentVariableOverride(jobId, environmentVariableId, value, options);
|
|
20200
20273
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
20201
20274
|
});
|
|
20202
20275
|
},
|
|
20203
20276
|
/**
|
|
20204
20277
|
* - To delete an environment variable from an job you must have the project user permission - You can\'t delete a BUILT_IN variable - If you delete a variable having override or alias, the associated override/alias will be deleted as well
|
|
20205
20278
|
* @summary Delete an environment variable from a job
|
|
20279
|
+
* @param {string} jobId Job ID
|
|
20206
20280
|
* @param {string} environmentVariableId Environment Variable ID
|
|
20207
20281
|
* @param {*} [options] Override http request option.
|
|
20208
20282
|
* @throws {RequiredError}
|
|
20209
20283
|
*/
|
|
20210
|
-
deleteJobEnvironmentVariable(environmentVariableId, options) {
|
|
20284
|
+
deleteJobEnvironmentVariable(jobId, environmentVariableId, options) {
|
|
20211
20285
|
return __awaiter(this, void 0, void 0, function* () {
|
|
20212
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteJobEnvironmentVariable(environmentVariableId, options);
|
|
20286
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteJobEnvironmentVariable(jobId, environmentVariableId, options);
|
|
20213
20287
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
20214
20288
|
});
|
|
20215
20289
|
},
|
|
20216
20290
|
/**
|
|
20217
20291
|
* - You can\'t edit a BUILT_IN variable - For an override, you can\'t edit the key - For an alias, you can\'t edit the value - An override can only have a scope lower to the variable it is overriding (hierarchy is BUILT_IN > PROJECT > ENVIRONMENT > CONTAINER)
|
|
20218
20292
|
* @summary Edit an environment variable belonging to the job
|
|
20293
|
+
* @param {string} jobId Job ID
|
|
20219
20294
|
* @param {string} environmentVariableId Environment Variable ID
|
|
20220
20295
|
* @param {EnvironmentVariableEditRequest} environmentVariableEditRequest
|
|
20221
20296
|
* @param {*} [options] Override http request option.
|
|
20222
20297
|
* @throws {RequiredError}
|
|
20223
20298
|
*/
|
|
20224
|
-
editJobEnvironmentVariable(environmentVariableId, environmentVariableEditRequest, options) {
|
|
20299
|
+
editJobEnvironmentVariable(jobId, environmentVariableId, environmentVariableEditRequest, options) {
|
|
20225
20300
|
return __awaiter(this, void 0, void 0, function* () {
|
|
20226
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.editJobEnvironmentVariable(environmentVariableId, environmentVariableEditRequest, options);
|
|
20301
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.editJobEnvironmentVariable(jobId, environmentVariableId, environmentVariableEditRequest, options);
|
|
20227
20302
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
20228
20303
|
});
|
|
20229
20304
|
},
|
|
20230
20305
|
/**
|
|
20231
20306
|
* Import environment variables in a defined scope, with a defined visibility.
|
|
20232
20307
|
* @summary Import variables
|
|
20308
|
+
* @param {string} jobId Job ID
|
|
20233
20309
|
* @param {VariableImportRequest} [variableImportRequest]
|
|
20234
20310
|
* @param {*} [options] Override http request option.
|
|
20235
20311
|
* @throws {RequiredError}
|
|
20236
20312
|
*/
|
|
20237
|
-
importJobEnvironmentVariable(variableImportRequest, options) {
|
|
20313
|
+
importJobEnvironmentVariable(jobId, variableImportRequest, options) {
|
|
20238
20314
|
return __awaiter(this, void 0, void 0, function* () {
|
|
20239
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.importJobEnvironmentVariable(variableImportRequest, options);
|
|
20315
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.importJobEnvironmentVariable(jobId, variableImportRequest, options);
|
|
20240
20316
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
20241
20317
|
});
|
|
20242
20318
|
},
|
|
20243
20319
|
/**
|
|
20244
20320
|
*
|
|
20245
20321
|
* @summary List environment variables
|
|
20322
|
+
* @param {string} jobId Job ID
|
|
20246
20323
|
* @param {*} [options] Override http request option.
|
|
20247
20324
|
* @throws {RequiredError}
|
|
20248
20325
|
*/
|
|
20249
|
-
listJobEnvironmentVariable(options) {
|
|
20326
|
+
listJobEnvironmentVariable(jobId, options) {
|
|
20250
20327
|
return __awaiter(this, void 0, void 0, function* () {
|
|
20251
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listJobEnvironmentVariable(options);
|
|
20328
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listJobEnvironmentVariable(jobId, options);
|
|
20252
20329
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
20253
20330
|
});
|
|
20254
20331
|
},
|
|
@@ -20265,74 +20342,81 @@ const JobEnvironmentVariableApiFactory = function (configuration, basePath, axio
|
|
|
20265
20342
|
/**
|
|
20266
20343
|
* - Add an environment variable to the job.
|
|
20267
20344
|
* @summary Add an environment variable to the job
|
|
20345
|
+
* @param {string} jobId Job ID
|
|
20268
20346
|
* @param {EnvironmentVariableRequest} [environmentVariableRequest]
|
|
20269
20347
|
* @param {*} [options] Override http request option.
|
|
20270
20348
|
* @throws {RequiredError}
|
|
20271
20349
|
*/
|
|
20272
|
-
createJobEnvironmentVariable(environmentVariableRequest, options) {
|
|
20273
|
-
return localVarFp.createJobEnvironmentVariable(environmentVariableRequest, options).then((request) => request(axios, basePath));
|
|
20350
|
+
createJobEnvironmentVariable(jobId, environmentVariableRequest, options) {
|
|
20351
|
+
return localVarFp.createJobEnvironmentVariable(jobId, environmentVariableRequest, options).then((request) => request(axios, basePath));
|
|
20274
20352
|
},
|
|
20275
20353
|
/**
|
|
20276
20354
|
* - Allows you to add an alias at job level on an existing environment variable having higher scope, in order to customize its key. - You only have to specify a key in the request body - The system will create a new environment variable at job level with the same value as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the aliased_variable will be exposed in the \"aliased_variable\" field of the newly created variable - Only 1 alias level is allowed. You can\'t create an alias on an alias
|
|
20277
20355
|
* @summary Create an environment variable alias at the job level
|
|
20356
|
+
* @param {string} jobId Job ID
|
|
20278
20357
|
* @param {string} environmentVariableId Environment Variable ID
|
|
20279
20358
|
* @param {Key} [key]
|
|
20280
20359
|
* @param {*} [options] Override http request option.
|
|
20281
20360
|
* @throws {RequiredError}
|
|
20282
20361
|
*/
|
|
20283
|
-
createJobEnvironmentVariableAlias(environmentVariableId, key, options) {
|
|
20284
|
-
return localVarFp.createJobEnvironmentVariableAlias(environmentVariableId, key, options).then((request) => request(axios, basePath));
|
|
20362
|
+
createJobEnvironmentVariableAlias(jobId, environmentVariableId, key, options) {
|
|
20363
|
+
return localVarFp.createJobEnvironmentVariableAlias(jobId, environmentVariableId, key, options).then((request) => request(axios, basePath));
|
|
20285
20364
|
},
|
|
20286
20365
|
/**
|
|
20287
20366
|
* - Allows you to override at job level an environment variable that has a higher scope. - You only have to specify a value in the request body - The system will create a new environment variable at job level with the same key as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the overridden_variable will be exposed in the \"overridden_variable\" field of the newly created variable
|
|
20288
20367
|
* @summary Create an environment variable override at the job level
|
|
20368
|
+
* @param {string} jobId Job ID
|
|
20289
20369
|
* @param {string} environmentVariableId Environment Variable ID
|
|
20290
20370
|
* @param {Value} [value]
|
|
20291
20371
|
* @param {*} [options] Override http request option.
|
|
20292
20372
|
* @throws {RequiredError}
|
|
20293
20373
|
*/
|
|
20294
|
-
createJobEnvironmentVariableOverride(environmentVariableId, value, options) {
|
|
20295
|
-
return localVarFp.createJobEnvironmentVariableOverride(environmentVariableId, value, options).then((request) => request(axios, basePath));
|
|
20374
|
+
createJobEnvironmentVariableOverride(jobId, environmentVariableId, value, options) {
|
|
20375
|
+
return localVarFp.createJobEnvironmentVariableOverride(jobId, environmentVariableId, value, options).then((request) => request(axios, basePath));
|
|
20296
20376
|
},
|
|
20297
20377
|
/**
|
|
20298
20378
|
* - To delete an environment variable from an job you must have the project user permission - You can\'t delete a BUILT_IN variable - If you delete a variable having override or alias, the associated override/alias will be deleted as well
|
|
20299
20379
|
* @summary Delete an environment variable from a job
|
|
20380
|
+
* @param {string} jobId Job ID
|
|
20300
20381
|
* @param {string} environmentVariableId Environment Variable ID
|
|
20301
20382
|
* @param {*} [options] Override http request option.
|
|
20302
20383
|
* @throws {RequiredError}
|
|
20303
20384
|
*/
|
|
20304
|
-
deleteJobEnvironmentVariable(environmentVariableId, options) {
|
|
20305
|
-
return localVarFp.deleteJobEnvironmentVariable(environmentVariableId, options).then((request) => request(axios, basePath));
|
|
20385
|
+
deleteJobEnvironmentVariable(jobId, environmentVariableId, options) {
|
|
20386
|
+
return localVarFp.deleteJobEnvironmentVariable(jobId, environmentVariableId, options).then((request) => request(axios, basePath));
|
|
20306
20387
|
},
|
|
20307
20388
|
/**
|
|
20308
20389
|
* - You can\'t edit a BUILT_IN variable - For an override, you can\'t edit the key - For an alias, you can\'t edit the value - An override can only have a scope lower to the variable it is overriding (hierarchy is BUILT_IN > PROJECT > ENVIRONMENT > CONTAINER)
|
|
20309
20390
|
* @summary Edit an environment variable belonging to the job
|
|
20391
|
+
* @param {string} jobId Job ID
|
|
20310
20392
|
* @param {string} environmentVariableId Environment Variable ID
|
|
20311
20393
|
* @param {EnvironmentVariableEditRequest} environmentVariableEditRequest
|
|
20312
20394
|
* @param {*} [options] Override http request option.
|
|
20313
20395
|
* @throws {RequiredError}
|
|
20314
20396
|
*/
|
|
20315
|
-
editJobEnvironmentVariable(environmentVariableId, environmentVariableEditRequest, options) {
|
|
20316
|
-
return localVarFp.editJobEnvironmentVariable(environmentVariableId, environmentVariableEditRequest, options).then((request) => request(axios, basePath));
|
|
20397
|
+
editJobEnvironmentVariable(jobId, environmentVariableId, environmentVariableEditRequest, options) {
|
|
20398
|
+
return localVarFp.editJobEnvironmentVariable(jobId, environmentVariableId, environmentVariableEditRequest, options).then((request) => request(axios, basePath));
|
|
20317
20399
|
},
|
|
20318
20400
|
/**
|
|
20319
20401
|
* Import environment variables in a defined scope, with a defined visibility.
|
|
20320
20402
|
* @summary Import variables
|
|
20403
|
+
* @param {string} jobId Job ID
|
|
20321
20404
|
* @param {VariableImportRequest} [variableImportRequest]
|
|
20322
20405
|
* @param {*} [options] Override http request option.
|
|
20323
20406
|
* @throws {RequiredError}
|
|
20324
20407
|
*/
|
|
20325
|
-
importJobEnvironmentVariable(variableImportRequest, options) {
|
|
20326
|
-
return localVarFp.importJobEnvironmentVariable(variableImportRequest, options).then((request) => request(axios, basePath));
|
|
20408
|
+
importJobEnvironmentVariable(jobId, variableImportRequest, options) {
|
|
20409
|
+
return localVarFp.importJobEnvironmentVariable(jobId, variableImportRequest, options).then((request) => request(axios, basePath));
|
|
20327
20410
|
},
|
|
20328
20411
|
/**
|
|
20329
20412
|
*
|
|
20330
20413
|
* @summary List environment variables
|
|
20414
|
+
* @param {string} jobId Job ID
|
|
20331
20415
|
* @param {*} [options] Override http request option.
|
|
20332
20416
|
* @throws {RequiredError}
|
|
20333
20417
|
*/
|
|
20334
|
-
listJobEnvironmentVariable(options) {
|
|
20335
|
-
return localVarFp.listJobEnvironmentVariable(options).then((request) => request(axios, basePath));
|
|
20418
|
+
listJobEnvironmentVariable(jobId, options) {
|
|
20419
|
+
return localVarFp.listJobEnvironmentVariable(jobId, options).then((request) => request(axios, basePath));
|
|
20336
20420
|
},
|
|
20337
20421
|
};
|
|
20338
20422
|
};
|
|
@@ -20347,81 +20431,88 @@ class JobEnvironmentVariableApi extends base_1.BaseAPI {
|
|
|
20347
20431
|
/**
|
|
20348
20432
|
* - Add an environment variable to the job.
|
|
20349
20433
|
* @summary Add an environment variable to the job
|
|
20434
|
+
* @param {string} jobId Job ID
|
|
20350
20435
|
* @param {EnvironmentVariableRequest} [environmentVariableRequest]
|
|
20351
20436
|
* @param {*} [options] Override http request option.
|
|
20352
20437
|
* @throws {RequiredError}
|
|
20353
20438
|
* @memberof JobEnvironmentVariableApi
|
|
20354
20439
|
*/
|
|
20355
|
-
createJobEnvironmentVariable(environmentVariableRequest, options) {
|
|
20356
|
-
return (0, exports.JobEnvironmentVariableApiFp)(this.configuration).createJobEnvironmentVariable(environmentVariableRequest, options).then((request) => request(this.axios, this.basePath));
|
|
20440
|
+
createJobEnvironmentVariable(jobId, environmentVariableRequest, options) {
|
|
20441
|
+
return (0, exports.JobEnvironmentVariableApiFp)(this.configuration).createJobEnvironmentVariable(jobId, environmentVariableRequest, options).then((request) => request(this.axios, this.basePath));
|
|
20357
20442
|
}
|
|
20358
20443
|
/**
|
|
20359
20444
|
* - Allows you to add an alias at job level on an existing environment variable having higher scope, in order to customize its key. - You only have to specify a key in the request body - The system will create a new environment variable at job level with the same value as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the aliased_variable will be exposed in the \"aliased_variable\" field of the newly created variable - Only 1 alias level is allowed. You can\'t create an alias on an alias
|
|
20360
20445
|
* @summary Create an environment variable alias at the job level
|
|
20446
|
+
* @param {string} jobId Job ID
|
|
20361
20447
|
* @param {string} environmentVariableId Environment Variable ID
|
|
20362
20448
|
* @param {Key} [key]
|
|
20363
20449
|
* @param {*} [options] Override http request option.
|
|
20364
20450
|
* @throws {RequiredError}
|
|
20365
20451
|
* @memberof JobEnvironmentVariableApi
|
|
20366
20452
|
*/
|
|
20367
|
-
createJobEnvironmentVariableAlias(environmentVariableId, key, options) {
|
|
20368
|
-
return (0, exports.JobEnvironmentVariableApiFp)(this.configuration).createJobEnvironmentVariableAlias(environmentVariableId, key, options).then((request) => request(this.axios, this.basePath));
|
|
20453
|
+
createJobEnvironmentVariableAlias(jobId, environmentVariableId, key, options) {
|
|
20454
|
+
return (0, exports.JobEnvironmentVariableApiFp)(this.configuration).createJobEnvironmentVariableAlias(jobId, environmentVariableId, key, options).then((request) => request(this.axios, this.basePath));
|
|
20369
20455
|
}
|
|
20370
20456
|
/**
|
|
20371
20457
|
* - Allows you to override at job level an environment variable that has a higher scope. - You only have to specify a value in the request body - The system will create a new environment variable at job level with the same key as the one corresponding to the variable id in the path - The response body will contain the newly created variable - Information regarding the overridden_variable will be exposed in the \"overridden_variable\" field of the newly created variable
|
|
20372
20458
|
* @summary Create an environment variable override at the job level
|
|
20459
|
+
* @param {string} jobId Job ID
|
|
20373
20460
|
* @param {string} environmentVariableId Environment Variable ID
|
|
20374
20461
|
* @param {Value} [value]
|
|
20375
20462
|
* @param {*} [options] Override http request option.
|
|
20376
20463
|
* @throws {RequiredError}
|
|
20377
20464
|
* @memberof JobEnvironmentVariableApi
|
|
20378
20465
|
*/
|
|
20379
|
-
createJobEnvironmentVariableOverride(environmentVariableId, value, options) {
|
|
20380
|
-
return (0, exports.JobEnvironmentVariableApiFp)(this.configuration).createJobEnvironmentVariableOverride(environmentVariableId, value, options).then((request) => request(this.axios, this.basePath));
|
|
20466
|
+
createJobEnvironmentVariableOverride(jobId, environmentVariableId, value, options) {
|
|
20467
|
+
return (0, exports.JobEnvironmentVariableApiFp)(this.configuration).createJobEnvironmentVariableOverride(jobId, environmentVariableId, value, options).then((request) => request(this.axios, this.basePath));
|
|
20381
20468
|
}
|
|
20382
20469
|
/**
|
|
20383
20470
|
* - To delete an environment variable from an job you must have the project user permission - You can\'t delete a BUILT_IN variable - If you delete a variable having override or alias, the associated override/alias will be deleted as well
|
|
20384
20471
|
* @summary Delete an environment variable from a job
|
|
20472
|
+
* @param {string} jobId Job ID
|
|
20385
20473
|
* @param {string} environmentVariableId Environment Variable ID
|
|
20386
20474
|
* @param {*} [options] Override http request option.
|
|
20387
20475
|
* @throws {RequiredError}
|
|
20388
20476
|
* @memberof JobEnvironmentVariableApi
|
|
20389
20477
|
*/
|
|
20390
|
-
deleteJobEnvironmentVariable(environmentVariableId, options) {
|
|
20391
|
-
return (0, exports.JobEnvironmentVariableApiFp)(this.configuration).deleteJobEnvironmentVariable(environmentVariableId, options).then((request) => request(this.axios, this.basePath));
|
|
20478
|
+
deleteJobEnvironmentVariable(jobId, environmentVariableId, options) {
|
|
20479
|
+
return (0, exports.JobEnvironmentVariableApiFp)(this.configuration).deleteJobEnvironmentVariable(jobId, environmentVariableId, options).then((request) => request(this.axios, this.basePath));
|
|
20392
20480
|
}
|
|
20393
20481
|
/**
|
|
20394
20482
|
* - You can\'t edit a BUILT_IN variable - For an override, you can\'t edit the key - For an alias, you can\'t edit the value - An override can only have a scope lower to the variable it is overriding (hierarchy is BUILT_IN > PROJECT > ENVIRONMENT > CONTAINER)
|
|
20395
20483
|
* @summary Edit an environment variable belonging to the job
|
|
20484
|
+
* @param {string} jobId Job ID
|
|
20396
20485
|
* @param {string} environmentVariableId Environment Variable ID
|
|
20397
20486
|
* @param {EnvironmentVariableEditRequest} environmentVariableEditRequest
|
|
20398
20487
|
* @param {*} [options] Override http request option.
|
|
20399
20488
|
* @throws {RequiredError}
|
|
20400
20489
|
* @memberof JobEnvironmentVariableApi
|
|
20401
20490
|
*/
|
|
20402
|
-
editJobEnvironmentVariable(environmentVariableId, environmentVariableEditRequest, options) {
|
|
20403
|
-
return (0, exports.JobEnvironmentVariableApiFp)(this.configuration).editJobEnvironmentVariable(environmentVariableId, environmentVariableEditRequest, options).then((request) => request(this.axios, this.basePath));
|
|
20491
|
+
editJobEnvironmentVariable(jobId, environmentVariableId, environmentVariableEditRequest, options) {
|
|
20492
|
+
return (0, exports.JobEnvironmentVariableApiFp)(this.configuration).editJobEnvironmentVariable(jobId, environmentVariableId, environmentVariableEditRequest, options).then((request) => request(this.axios, this.basePath));
|
|
20404
20493
|
}
|
|
20405
20494
|
/**
|
|
20406
20495
|
* Import environment variables in a defined scope, with a defined visibility.
|
|
20407
20496
|
* @summary Import variables
|
|
20497
|
+
* @param {string} jobId Job ID
|
|
20408
20498
|
* @param {VariableImportRequest} [variableImportRequest]
|
|
20409
20499
|
* @param {*} [options] Override http request option.
|
|
20410
20500
|
* @throws {RequiredError}
|
|
20411
20501
|
* @memberof JobEnvironmentVariableApi
|
|
20412
20502
|
*/
|
|
20413
|
-
importJobEnvironmentVariable(variableImportRequest, options) {
|
|
20414
|
-
return (0, exports.JobEnvironmentVariableApiFp)(this.configuration).importJobEnvironmentVariable(variableImportRequest, options).then((request) => request(this.axios, this.basePath));
|
|
20503
|
+
importJobEnvironmentVariable(jobId, variableImportRequest, options) {
|
|
20504
|
+
return (0, exports.JobEnvironmentVariableApiFp)(this.configuration).importJobEnvironmentVariable(jobId, variableImportRequest, options).then((request) => request(this.axios, this.basePath));
|
|
20415
20505
|
}
|
|
20416
20506
|
/**
|
|
20417
20507
|
*
|
|
20418
20508
|
* @summary List environment variables
|
|
20509
|
+
* @param {string} jobId Job ID
|
|
20419
20510
|
* @param {*} [options] Override http request option.
|
|
20420
20511
|
* @throws {RequiredError}
|
|
20421
20512
|
* @memberof JobEnvironmentVariableApi
|
|
20422
20513
|
*/
|
|
20423
|
-
listJobEnvironmentVariable(options) {
|
|
20424
|
-
return (0, exports.JobEnvironmentVariableApiFp)(this.configuration).listJobEnvironmentVariable(options).then((request) => request(this.axios, this.basePath));
|
|
20514
|
+
listJobEnvironmentVariable(jobId, options) {
|
|
20515
|
+
return (0, exports.JobEnvironmentVariableApiFp)(this.configuration).listJobEnvironmentVariable(jobId, options).then((request) => request(this.axios, this.basePath));
|
|
20425
20516
|
}
|
|
20426
20517
|
}
|
|
20427
20518
|
exports.JobEnvironmentVariableApi = JobEnvironmentVariableApi;
|
|
@@ -20434,11 +20525,15 @@ const JobMainCallsApiAxiosParamCreator = function (configuration) {
|
|
|
20434
20525
|
/**
|
|
20435
20526
|
* To delete the job you must have the admin permission
|
|
20436
20527
|
* @summary Delete job
|
|
20528
|
+
* @param {string} jobId Job ID
|
|
20437
20529
|
* @param {*} [options] Override http request option.
|
|
20438
20530
|
* @throws {RequiredError}
|
|
20439
20531
|
*/
|
|
20440
|
-
deleteJob: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
20441
|
-
|
|
20532
|
+
deleteJob: (jobId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
20533
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
20534
|
+
(0, common_1.assertParamExists)('deleteJob', 'jobId', jobId);
|
|
20535
|
+
const localVarPath = `/job/{jobId}`
|
|
20536
|
+
.replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
|
|
20442
20537
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20443
20538
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
20444
20539
|
let baseOptions;
|
|
@@ -20462,12 +20557,16 @@ const JobMainCallsApiAxiosParamCreator = function (configuration) {
|
|
|
20462
20557
|
/**
|
|
20463
20558
|
* - To edit the job you must have the admin permission.
|
|
20464
20559
|
* @summary Edit job
|
|
20560
|
+
* @param {string} jobId Job ID
|
|
20465
20561
|
* @param {JobRequest} [jobRequest]
|
|
20466
20562
|
* @param {*} [options] Override http request option.
|
|
20467
20563
|
* @throws {RequiredError}
|
|
20468
20564
|
*/
|
|
20469
|
-
editJob: (jobRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
20470
|
-
|
|
20565
|
+
editJob: (jobId, jobRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
20566
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
20567
|
+
(0, common_1.assertParamExists)('editJob', 'jobId', jobId);
|
|
20568
|
+
const localVarPath = `/job/{jobId}`
|
|
20569
|
+
.replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
|
|
20471
20570
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20472
20571
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
20473
20572
|
let baseOptions;
|
|
@@ -20525,11 +20624,15 @@ const JobMainCallsApiAxiosParamCreator = function (configuration) {
|
|
|
20525
20624
|
/**
|
|
20526
20625
|
*
|
|
20527
20626
|
* @summary Get job status
|
|
20627
|
+
* @param {string} jobId Job ID
|
|
20528
20628
|
* @param {*} [options] Override http request option.
|
|
20529
20629
|
* @throws {RequiredError}
|
|
20530
20630
|
*/
|
|
20531
|
-
getJobStatus: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
20532
|
-
|
|
20631
|
+
getJobStatus: (jobId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
20632
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
20633
|
+
(0, common_1.assertParamExists)('getJobStatus', 'jobId', jobId);
|
|
20634
|
+
const localVarPath = `/job/{jobId}/status`
|
|
20635
|
+
.replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
|
|
20533
20636
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20534
20637
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
20535
20638
|
let baseOptions;
|
|
@@ -20563,25 +20666,27 @@ const JobMainCallsApiFp = function (configuration) {
|
|
|
20563
20666
|
/**
|
|
20564
20667
|
* To delete the job you must have the admin permission
|
|
20565
20668
|
* @summary Delete job
|
|
20669
|
+
* @param {string} jobId Job ID
|
|
20566
20670
|
* @param {*} [options] Override http request option.
|
|
20567
20671
|
* @throws {RequiredError}
|
|
20568
20672
|
*/
|
|
20569
|
-
deleteJob(options) {
|
|
20673
|
+
deleteJob(jobId, options) {
|
|
20570
20674
|
return __awaiter(this, void 0, void 0, function* () {
|
|
20571
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteJob(options);
|
|
20675
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteJob(jobId, options);
|
|
20572
20676
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
20573
20677
|
});
|
|
20574
20678
|
},
|
|
20575
20679
|
/**
|
|
20576
20680
|
* - To edit the job you must have the admin permission.
|
|
20577
20681
|
* @summary Edit job
|
|
20682
|
+
* @param {string} jobId Job ID
|
|
20578
20683
|
* @param {JobRequest} [jobRequest]
|
|
20579
20684
|
* @param {*} [options] Override http request option.
|
|
20580
20685
|
* @throws {RequiredError}
|
|
20581
20686
|
*/
|
|
20582
|
-
editJob(jobRequest, options) {
|
|
20687
|
+
editJob(jobId, jobRequest, options) {
|
|
20583
20688
|
return __awaiter(this, void 0, void 0, function* () {
|
|
20584
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.editJob(jobRequest, options);
|
|
20689
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.editJob(jobId, jobRequest, options);
|
|
20585
20690
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
20586
20691
|
});
|
|
20587
20692
|
},
|
|
@@ -20601,12 +20706,13 @@ const JobMainCallsApiFp = function (configuration) {
|
|
|
20601
20706
|
/**
|
|
20602
20707
|
*
|
|
20603
20708
|
* @summary Get job status
|
|
20709
|
+
* @param {string} jobId Job ID
|
|
20604
20710
|
* @param {*} [options] Override http request option.
|
|
20605
20711
|
* @throws {RequiredError}
|
|
20606
20712
|
*/
|
|
20607
|
-
getJobStatus(options) {
|
|
20713
|
+
getJobStatus(jobId, options) {
|
|
20608
20714
|
return __awaiter(this, void 0, void 0, function* () {
|
|
20609
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getJobStatus(options);
|
|
20715
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getJobStatus(jobId, options);
|
|
20610
20716
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
20611
20717
|
});
|
|
20612
20718
|
},
|
|
@@ -20623,21 +20729,23 @@ const JobMainCallsApiFactory = function (configuration, basePath, axios) {
|
|
|
20623
20729
|
/**
|
|
20624
20730
|
* To delete the job you must have the admin permission
|
|
20625
20731
|
* @summary Delete job
|
|
20732
|
+
* @param {string} jobId Job ID
|
|
20626
20733
|
* @param {*} [options] Override http request option.
|
|
20627
20734
|
* @throws {RequiredError}
|
|
20628
20735
|
*/
|
|
20629
|
-
deleteJob(options) {
|
|
20630
|
-
return localVarFp.deleteJob(options).then((request) => request(axios, basePath));
|
|
20736
|
+
deleteJob(jobId, options) {
|
|
20737
|
+
return localVarFp.deleteJob(jobId, options).then((request) => request(axios, basePath));
|
|
20631
20738
|
},
|
|
20632
20739
|
/**
|
|
20633
20740
|
* - To edit the job you must have the admin permission.
|
|
20634
20741
|
* @summary Edit job
|
|
20742
|
+
* @param {string} jobId Job ID
|
|
20635
20743
|
* @param {JobRequest} [jobRequest]
|
|
20636
20744
|
* @param {*} [options] Override http request option.
|
|
20637
20745
|
* @throws {RequiredError}
|
|
20638
20746
|
*/
|
|
20639
|
-
editJob(jobRequest, options) {
|
|
20640
|
-
return localVarFp.editJob(jobRequest, options).then((request) => request(axios, basePath));
|
|
20747
|
+
editJob(jobId, jobRequest, options) {
|
|
20748
|
+
return localVarFp.editJob(jobId, jobRequest, options).then((request) => request(axios, basePath));
|
|
20641
20749
|
},
|
|
20642
20750
|
/**
|
|
20643
20751
|
*
|
|
@@ -20652,11 +20760,12 @@ const JobMainCallsApiFactory = function (configuration, basePath, axios) {
|
|
|
20652
20760
|
/**
|
|
20653
20761
|
*
|
|
20654
20762
|
* @summary Get job status
|
|
20763
|
+
* @param {string} jobId Job ID
|
|
20655
20764
|
* @param {*} [options] Override http request option.
|
|
20656
20765
|
* @throws {RequiredError}
|
|
20657
20766
|
*/
|
|
20658
|
-
getJobStatus(options) {
|
|
20659
|
-
return localVarFp.getJobStatus(options).then((request) => request(axios, basePath));
|
|
20767
|
+
getJobStatus(jobId, options) {
|
|
20768
|
+
return localVarFp.getJobStatus(jobId, options).then((request) => request(axios, basePath));
|
|
20660
20769
|
},
|
|
20661
20770
|
};
|
|
20662
20771
|
};
|
|
@@ -20671,23 +20780,25 @@ class JobMainCallsApi extends base_1.BaseAPI {
|
|
|
20671
20780
|
/**
|
|
20672
20781
|
* To delete the job you must have the admin permission
|
|
20673
20782
|
* @summary Delete job
|
|
20783
|
+
* @param {string} jobId Job ID
|
|
20674
20784
|
* @param {*} [options] Override http request option.
|
|
20675
20785
|
* @throws {RequiredError}
|
|
20676
20786
|
* @memberof JobMainCallsApi
|
|
20677
20787
|
*/
|
|
20678
|
-
deleteJob(options) {
|
|
20679
|
-
return (0, exports.JobMainCallsApiFp)(this.configuration).deleteJob(options).then((request) => request(this.axios, this.basePath));
|
|
20788
|
+
deleteJob(jobId, options) {
|
|
20789
|
+
return (0, exports.JobMainCallsApiFp)(this.configuration).deleteJob(jobId, options).then((request) => request(this.axios, this.basePath));
|
|
20680
20790
|
}
|
|
20681
20791
|
/**
|
|
20682
20792
|
* - To edit the job you must have the admin permission.
|
|
20683
20793
|
* @summary Edit job
|
|
20794
|
+
* @param {string} jobId Job ID
|
|
20684
20795
|
* @param {JobRequest} [jobRequest]
|
|
20685
20796
|
* @param {*} [options] Override http request option.
|
|
20686
20797
|
* @throws {RequiredError}
|
|
20687
20798
|
* @memberof JobMainCallsApi
|
|
20688
20799
|
*/
|
|
20689
|
-
editJob(jobRequest, options) {
|
|
20690
|
-
return (0, exports.JobMainCallsApiFp)(this.configuration).editJob(jobRequest, options).then((request) => request(this.axios, this.basePath));
|
|
20800
|
+
editJob(jobId, jobRequest, options) {
|
|
20801
|
+
return (0, exports.JobMainCallsApiFp)(this.configuration).editJob(jobId, jobRequest, options).then((request) => request(this.axios, this.basePath));
|
|
20691
20802
|
}
|
|
20692
20803
|
/**
|
|
20693
20804
|
*
|
|
@@ -20703,12 +20814,13 @@ class JobMainCallsApi extends base_1.BaseAPI {
|
|
|
20703
20814
|
/**
|
|
20704
20815
|
*
|
|
20705
20816
|
* @summary Get job status
|
|
20817
|
+
* @param {string} jobId Job ID
|
|
20706
20818
|
* @param {*} [options] Override http request option.
|
|
20707
20819
|
* @throws {RequiredError}
|
|
20708
20820
|
* @memberof JobMainCallsApi
|
|
20709
20821
|
*/
|
|
20710
|
-
getJobStatus(options) {
|
|
20711
|
-
return (0, exports.JobMainCallsApiFp)(this.configuration).getJobStatus(options).then((request) => request(this.axios, this.basePath));
|
|
20822
|
+
getJobStatus(jobId, options) {
|
|
20823
|
+
return (0, exports.JobMainCallsApiFp)(this.configuration).getJobStatus(jobId, options).then((request) => request(this.axios, this.basePath));
|
|
20712
20824
|
}
|
|
20713
20825
|
}
|
|
20714
20826
|
exports.JobMainCallsApi = JobMainCallsApi;
|
|
@@ -20721,11 +20833,15 @@ const JobMetricsApiAxiosParamCreator = function (configuration) {
|
|
|
20721
20833
|
/**
|
|
20722
20834
|
*
|
|
20723
20835
|
* @summary List currently running instances of the job with their CPU and RAM metrics
|
|
20836
|
+
* @param {string} jobId Job ID
|
|
20724
20837
|
* @param {*} [options] Override http request option.
|
|
20725
20838
|
* @throws {RequiredError}
|
|
20726
20839
|
*/
|
|
20727
|
-
getJobCurrentInstance: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
20728
|
-
|
|
20840
|
+
getJobCurrentInstance: (jobId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
20841
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
20842
|
+
(0, common_1.assertParamExists)('getJobCurrentInstance', 'jobId', jobId);
|
|
20843
|
+
const localVarPath = `/job/{jobId}/instance`
|
|
20844
|
+
.replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
|
|
20729
20845
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20730
20846
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
20731
20847
|
let baseOptions;
|
|
@@ -20759,12 +20875,13 @@ const JobMetricsApiFp = function (configuration) {
|
|
|
20759
20875
|
/**
|
|
20760
20876
|
*
|
|
20761
20877
|
* @summary List currently running instances of the job with their CPU and RAM metrics
|
|
20878
|
+
* @param {string} jobId Job ID
|
|
20762
20879
|
* @param {*} [options] Override http request option.
|
|
20763
20880
|
* @throws {RequiredError}
|
|
20764
20881
|
*/
|
|
20765
|
-
getJobCurrentInstance(options) {
|
|
20882
|
+
getJobCurrentInstance(jobId, options) {
|
|
20766
20883
|
return __awaiter(this, void 0, void 0, function* () {
|
|
20767
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getJobCurrentInstance(options);
|
|
20884
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getJobCurrentInstance(jobId, options);
|
|
20768
20885
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
20769
20886
|
});
|
|
20770
20887
|
},
|
|
@@ -20781,11 +20898,12 @@ const JobMetricsApiFactory = function (configuration, basePath, axios) {
|
|
|
20781
20898
|
/**
|
|
20782
20899
|
*
|
|
20783
20900
|
* @summary List currently running instances of the job with their CPU and RAM metrics
|
|
20901
|
+
* @param {string} jobId Job ID
|
|
20784
20902
|
* @param {*} [options] Override http request option.
|
|
20785
20903
|
* @throws {RequiredError}
|
|
20786
20904
|
*/
|
|
20787
|
-
getJobCurrentInstance(options) {
|
|
20788
|
-
return localVarFp.getJobCurrentInstance(options).then((request) => request(axios, basePath));
|
|
20905
|
+
getJobCurrentInstance(jobId, options) {
|
|
20906
|
+
return localVarFp.getJobCurrentInstance(jobId, options).then((request) => request(axios, basePath));
|
|
20789
20907
|
},
|
|
20790
20908
|
};
|
|
20791
20909
|
};
|
|
@@ -20800,12 +20918,13 @@ class JobMetricsApi extends base_1.BaseAPI {
|
|
|
20800
20918
|
/**
|
|
20801
20919
|
*
|
|
20802
20920
|
* @summary List currently running instances of the job with their CPU and RAM metrics
|
|
20921
|
+
* @param {string} jobId Job ID
|
|
20803
20922
|
* @param {*} [options] Override http request option.
|
|
20804
20923
|
* @throws {RequiredError}
|
|
20805
20924
|
* @memberof JobMetricsApi
|
|
20806
20925
|
*/
|
|
20807
|
-
getJobCurrentInstance(options) {
|
|
20808
|
-
return (0, exports.JobMetricsApiFp)(this.configuration).getJobCurrentInstance(options).then((request) => request(this.axios, this.basePath));
|
|
20926
|
+
getJobCurrentInstance(jobId, options) {
|
|
20927
|
+
return (0, exports.JobMetricsApiFp)(this.configuration).getJobCurrentInstance(jobId, options).then((request) => request(this.axios, this.basePath));
|
|
20809
20928
|
}
|
|
20810
20929
|
}
|
|
20811
20930
|
exports.JobMetricsApi = JobMetricsApi;
|
|
@@ -20818,12 +20937,16 @@ const JobSecretApiAxiosParamCreator = function (configuration) {
|
|
|
20818
20937
|
/**
|
|
20819
20938
|
* - Add a secret to the job.
|
|
20820
20939
|
* @summary Add a secret to the job
|
|
20940
|
+
* @param {string} jobId Job ID
|
|
20821
20941
|
* @param {SecretRequest} [secretRequest]
|
|
20822
20942
|
* @param {*} [options] Override http request option.
|
|
20823
20943
|
* @throws {RequiredError}
|
|
20824
20944
|
*/
|
|
20825
|
-
createJobSecret: (secretRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
20826
|
-
|
|
20945
|
+
createJobSecret: (jobId, secretRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
20946
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
20947
|
+
(0, common_1.assertParamExists)('createJobSecret', 'jobId', jobId);
|
|
20948
|
+
const localVarPath = `/job/{jobId}/secret`
|
|
20949
|
+
.replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
|
|
20827
20950
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20828
20951
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
20829
20952
|
let baseOptions;
|
|
@@ -20849,15 +20972,19 @@ const JobSecretApiAxiosParamCreator = function (configuration) {
|
|
|
20849
20972
|
/**
|
|
20850
20973
|
* - Allows you to add an alias at job level on an existing secret having higher scope, in order to customize its key. - You only have to specify a key in the request body - The system will create a new secret at job level with the same value as the one corresponding to the secret id in the path - The response body will contain the newly created secret - Information regarding the aliased_secret will be exposed in the \"aliased_secret\" field of the newly created secret - Only 1 alias level is allowed. You can\'t create an alias on an alias
|
|
20851
20974
|
* @summary Create a secret alias at the job level
|
|
20975
|
+
* @param {string} jobId Job ID
|
|
20852
20976
|
* @param {string} secretId Secret ID
|
|
20853
20977
|
* @param {Key} [key]
|
|
20854
20978
|
* @param {*} [options] Override http request option.
|
|
20855
20979
|
* @throws {RequiredError}
|
|
20856
20980
|
*/
|
|
20857
|
-
createJobSecretAlias: (secretId, key, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
20981
|
+
createJobSecretAlias: (jobId, secretId, key, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
20982
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
20983
|
+
(0, common_1.assertParamExists)('createJobSecretAlias', 'jobId', jobId);
|
|
20858
20984
|
// verify required parameter 'secretId' is not null or undefined
|
|
20859
20985
|
(0, common_1.assertParamExists)('createJobSecretAlias', 'secretId', secretId);
|
|
20860
20986
|
const localVarPath = `/job/{jobId}/secret/{secretId}/alias`
|
|
20987
|
+
.replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)))
|
|
20861
20988
|
.replace(`{${"secretId"}}`, encodeURIComponent(String(secretId)));
|
|
20862
20989
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20863
20990
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -20884,15 +21011,19 @@ const JobSecretApiAxiosParamCreator = function (configuration) {
|
|
|
20884
21011
|
/**
|
|
20885
21012
|
* - Allows you to override at job level a secret that has a higher scope. - You only have to specify a value in the request body - The system will create a new secret at job level with the same key as the one corresponding to the secret id in the path - The response body will contain the newly created secret - Information regarding the overridden_secret will be exposed in the \"overridden_secret\" field of the newly created secret
|
|
20886
21013
|
* @summary Create a secret override at the job level
|
|
21014
|
+
* @param {string} jobId Job ID
|
|
20887
21015
|
* @param {string} secretId Secret ID
|
|
20888
21016
|
* @param {Value} [value]
|
|
20889
21017
|
* @param {*} [options] Override http request option.
|
|
20890
21018
|
* @throws {RequiredError}
|
|
20891
21019
|
*/
|
|
20892
|
-
createJobSecretOverride: (secretId, value, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
21020
|
+
createJobSecretOverride: (jobId, secretId, value, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
21021
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
21022
|
+
(0, common_1.assertParamExists)('createJobSecretOverride', 'jobId', jobId);
|
|
20893
21023
|
// verify required parameter 'secretId' is not null or undefined
|
|
20894
21024
|
(0, common_1.assertParamExists)('createJobSecretOverride', 'secretId', secretId);
|
|
20895
21025
|
const localVarPath = `/job/{jobId}/secret/{secretId}/override`
|
|
21026
|
+
.replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)))
|
|
20896
21027
|
.replace(`{${"secretId"}}`, encodeURIComponent(String(secretId)));
|
|
20897
21028
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20898
21029
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -20919,14 +21050,18 @@ const JobSecretApiAxiosParamCreator = function (configuration) {
|
|
|
20919
21050
|
/**
|
|
20920
21051
|
* - To delete a secret you must have the project user permission - You can\'t delete a BUILT_IN secret - If you delete a secret having override or alias, the associated override/alias will be deleted as well
|
|
20921
21052
|
* @summary Delete a secret from an job
|
|
21053
|
+
* @param {string} jobId Job ID
|
|
20922
21054
|
* @param {string} secretId Secret ID
|
|
20923
21055
|
* @param {*} [options] Override http request option.
|
|
20924
21056
|
* @throws {RequiredError}
|
|
20925
21057
|
*/
|
|
20926
|
-
deleteJobSecret: (secretId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
21058
|
+
deleteJobSecret: (jobId, secretId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
21059
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
21060
|
+
(0, common_1.assertParamExists)('deleteJobSecret', 'jobId', jobId);
|
|
20927
21061
|
// verify required parameter 'secretId' is not null or undefined
|
|
20928
21062
|
(0, common_1.assertParamExists)('deleteJobSecret', 'secretId', secretId);
|
|
20929
21063
|
const localVarPath = `/job/{jobId}/secret/{secretId}`
|
|
21064
|
+
.replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)))
|
|
20930
21065
|
.replace(`{${"secretId"}}`, encodeURIComponent(String(secretId)));
|
|
20931
21066
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20932
21067
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -20951,17 +21086,21 @@ const JobSecretApiAxiosParamCreator = function (configuration) {
|
|
|
20951
21086
|
/**
|
|
20952
21087
|
* - You can\'t edit a BUILT_IN secret - For an override, you can\'t edit the key - For an alias, you can\'t edit the value - An override can only have a scope lower to the secret it is overriding (hierarchy is BUILT_IN > PROJECT > ENVIRONMENT > CONTAINER)
|
|
20953
21088
|
* @summary Edit a secret belonging to the job
|
|
21089
|
+
* @param {string} jobId Job ID
|
|
20954
21090
|
* @param {string} secretId Secret ID
|
|
20955
21091
|
* @param {SecretEditRequest} secretEditRequest
|
|
20956
21092
|
* @param {*} [options] Override http request option.
|
|
20957
21093
|
* @throws {RequiredError}
|
|
20958
21094
|
*/
|
|
20959
|
-
editJobSecret: (secretId, secretEditRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
21095
|
+
editJobSecret: (jobId, secretId, secretEditRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
21096
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
21097
|
+
(0, common_1.assertParamExists)('editJobSecret', 'jobId', jobId);
|
|
20960
21098
|
// verify required parameter 'secretId' is not null or undefined
|
|
20961
21099
|
(0, common_1.assertParamExists)('editJobSecret', 'secretId', secretId);
|
|
20962
21100
|
// verify required parameter 'secretEditRequest' is not null or undefined
|
|
20963
21101
|
(0, common_1.assertParamExists)('editJobSecret', 'secretEditRequest', secretEditRequest);
|
|
20964
21102
|
const localVarPath = `/job/{jobId}/secret/{secretId}`
|
|
21103
|
+
.replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)))
|
|
20965
21104
|
.replace(`{${"secretId"}}`, encodeURIComponent(String(secretId)));
|
|
20966
21105
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20967
21106
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -20988,11 +21127,15 @@ const JobSecretApiAxiosParamCreator = function (configuration) {
|
|
|
20988
21127
|
/**
|
|
20989
21128
|
* Secrets are like environment variables, but they are secured and can\'t be revealed.
|
|
20990
21129
|
* @summary List job secrets
|
|
21130
|
+
* @param {string} jobId Job ID
|
|
20991
21131
|
* @param {*} [options] Override http request option.
|
|
20992
21132
|
* @throws {RequiredError}
|
|
20993
21133
|
*/
|
|
20994
|
-
listJobSecrets: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
20995
|
-
|
|
21134
|
+
listJobSecrets: (jobId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
21135
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
21136
|
+
(0, common_1.assertParamExists)('listJobSecrets', 'jobId', jobId);
|
|
21137
|
+
const localVarPath = `/job/{jobId}/secret`
|
|
21138
|
+
.replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
|
|
20996
21139
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20997
21140
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
20998
21141
|
let baseOptions;
|
|
@@ -21026,80 +21169,86 @@ const JobSecretApiFp = function (configuration) {
|
|
|
21026
21169
|
/**
|
|
21027
21170
|
* - Add a secret to the job.
|
|
21028
21171
|
* @summary Add a secret to the job
|
|
21172
|
+
* @param {string} jobId Job ID
|
|
21029
21173
|
* @param {SecretRequest} [secretRequest]
|
|
21030
21174
|
* @param {*} [options] Override http request option.
|
|
21031
21175
|
* @throws {RequiredError}
|
|
21032
21176
|
*/
|
|
21033
|
-
createJobSecret(secretRequest, options) {
|
|
21177
|
+
createJobSecret(jobId, secretRequest, options) {
|
|
21034
21178
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21035
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createJobSecret(secretRequest, options);
|
|
21179
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createJobSecret(jobId, secretRequest, options);
|
|
21036
21180
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
21037
21181
|
});
|
|
21038
21182
|
},
|
|
21039
21183
|
/**
|
|
21040
21184
|
* - Allows you to add an alias at job level on an existing secret having higher scope, in order to customize its key. - You only have to specify a key in the request body - The system will create a new secret at job level with the same value as the one corresponding to the secret id in the path - The response body will contain the newly created secret - Information regarding the aliased_secret will be exposed in the \"aliased_secret\" field of the newly created secret - Only 1 alias level is allowed. You can\'t create an alias on an alias
|
|
21041
21185
|
* @summary Create a secret alias at the job level
|
|
21186
|
+
* @param {string} jobId Job ID
|
|
21042
21187
|
* @param {string} secretId Secret ID
|
|
21043
21188
|
* @param {Key} [key]
|
|
21044
21189
|
* @param {*} [options] Override http request option.
|
|
21045
21190
|
* @throws {RequiredError}
|
|
21046
21191
|
*/
|
|
21047
|
-
createJobSecretAlias(secretId, key, options) {
|
|
21192
|
+
createJobSecretAlias(jobId, secretId, key, options) {
|
|
21048
21193
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21049
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createJobSecretAlias(secretId, key, options);
|
|
21194
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createJobSecretAlias(jobId, secretId, key, options);
|
|
21050
21195
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
21051
21196
|
});
|
|
21052
21197
|
},
|
|
21053
21198
|
/**
|
|
21054
21199
|
* - Allows you to override at job level a secret that has a higher scope. - You only have to specify a value in the request body - The system will create a new secret at job level with the same key as the one corresponding to the secret id in the path - The response body will contain the newly created secret - Information regarding the overridden_secret will be exposed in the \"overridden_secret\" field of the newly created secret
|
|
21055
21200
|
* @summary Create a secret override at the job level
|
|
21201
|
+
* @param {string} jobId Job ID
|
|
21056
21202
|
* @param {string} secretId Secret ID
|
|
21057
21203
|
* @param {Value} [value]
|
|
21058
21204
|
* @param {*} [options] Override http request option.
|
|
21059
21205
|
* @throws {RequiredError}
|
|
21060
21206
|
*/
|
|
21061
|
-
createJobSecretOverride(secretId, value, options) {
|
|
21207
|
+
createJobSecretOverride(jobId, secretId, value, options) {
|
|
21062
21208
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21063
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createJobSecretOverride(secretId, value, options);
|
|
21209
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createJobSecretOverride(jobId, secretId, value, options);
|
|
21064
21210
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
21065
21211
|
});
|
|
21066
21212
|
},
|
|
21067
21213
|
/**
|
|
21068
21214
|
* - To delete a secret you must have the project user permission - You can\'t delete a BUILT_IN secret - If you delete a secret having override or alias, the associated override/alias will be deleted as well
|
|
21069
21215
|
* @summary Delete a secret from an job
|
|
21216
|
+
* @param {string} jobId Job ID
|
|
21070
21217
|
* @param {string} secretId Secret ID
|
|
21071
21218
|
* @param {*} [options] Override http request option.
|
|
21072
21219
|
* @throws {RequiredError}
|
|
21073
21220
|
*/
|
|
21074
|
-
deleteJobSecret(secretId, options) {
|
|
21221
|
+
deleteJobSecret(jobId, secretId, options) {
|
|
21075
21222
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21076
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteJobSecret(secretId, options);
|
|
21223
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteJobSecret(jobId, secretId, options);
|
|
21077
21224
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
21078
21225
|
});
|
|
21079
21226
|
},
|
|
21080
21227
|
/**
|
|
21081
21228
|
* - You can\'t edit a BUILT_IN secret - For an override, you can\'t edit the key - For an alias, you can\'t edit the value - An override can only have a scope lower to the secret it is overriding (hierarchy is BUILT_IN > PROJECT > ENVIRONMENT > CONTAINER)
|
|
21082
21229
|
* @summary Edit a secret belonging to the job
|
|
21230
|
+
* @param {string} jobId Job ID
|
|
21083
21231
|
* @param {string} secretId Secret ID
|
|
21084
21232
|
* @param {SecretEditRequest} secretEditRequest
|
|
21085
21233
|
* @param {*} [options] Override http request option.
|
|
21086
21234
|
* @throws {RequiredError}
|
|
21087
21235
|
*/
|
|
21088
|
-
editJobSecret(secretId, secretEditRequest, options) {
|
|
21236
|
+
editJobSecret(jobId, secretId, secretEditRequest, options) {
|
|
21089
21237
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21090
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.editJobSecret(secretId, secretEditRequest, options);
|
|
21238
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.editJobSecret(jobId, secretId, secretEditRequest, options);
|
|
21091
21239
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
21092
21240
|
});
|
|
21093
21241
|
},
|
|
21094
21242
|
/**
|
|
21095
21243
|
* Secrets are like environment variables, but they are secured and can\'t be revealed.
|
|
21096
21244
|
* @summary List job secrets
|
|
21245
|
+
* @param {string} jobId Job ID
|
|
21097
21246
|
* @param {*} [options] Override http request option.
|
|
21098
21247
|
* @throws {RequiredError}
|
|
21099
21248
|
*/
|
|
21100
|
-
listJobSecrets(options) {
|
|
21249
|
+
listJobSecrets(jobId, options) {
|
|
21101
21250
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21102
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listJobSecrets(options);
|
|
21251
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listJobSecrets(jobId, options);
|
|
21103
21252
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
21104
21253
|
});
|
|
21105
21254
|
},
|
|
@@ -21116,64 +21265,70 @@ const JobSecretApiFactory = function (configuration, basePath, axios) {
|
|
|
21116
21265
|
/**
|
|
21117
21266
|
* - Add a secret to the job.
|
|
21118
21267
|
* @summary Add a secret to the job
|
|
21268
|
+
* @param {string} jobId Job ID
|
|
21119
21269
|
* @param {SecretRequest} [secretRequest]
|
|
21120
21270
|
* @param {*} [options] Override http request option.
|
|
21121
21271
|
* @throws {RequiredError}
|
|
21122
21272
|
*/
|
|
21123
|
-
createJobSecret(secretRequest, options) {
|
|
21124
|
-
return localVarFp.createJobSecret(secretRequest, options).then((request) => request(axios, basePath));
|
|
21273
|
+
createJobSecret(jobId, secretRequest, options) {
|
|
21274
|
+
return localVarFp.createJobSecret(jobId, secretRequest, options).then((request) => request(axios, basePath));
|
|
21125
21275
|
},
|
|
21126
21276
|
/**
|
|
21127
21277
|
* - Allows you to add an alias at job level on an existing secret having higher scope, in order to customize its key. - You only have to specify a key in the request body - The system will create a new secret at job level with the same value as the one corresponding to the secret id in the path - The response body will contain the newly created secret - Information regarding the aliased_secret will be exposed in the \"aliased_secret\" field of the newly created secret - Only 1 alias level is allowed. You can\'t create an alias on an alias
|
|
21128
21278
|
* @summary Create a secret alias at the job level
|
|
21279
|
+
* @param {string} jobId Job ID
|
|
21129
21280
|
* @param {string} secretId Secret ID
|
|
21130
21281
|
* @param {Key} [key]
|
|
21131
21282
|
* @param {*} [options] Override http request option.
|
|
21132
21283
|
* @throws {RequiredError}
|
|
21133
21284
|
*/
|
|
21134
|
-
createJobSecretAlias(secretId, key, options) {
|
|
21135
|
-
return localVarFp.createJobSecretAlias(secretId, key, options).then((request) => request(axios, basePath));
|
|
21285
|
+
createJobSecretAlias(jobId, secretId, key, options) {
|
|
21286
|
+
return localVarFp.createJobSecretAlias(jobId, secretId, key, options).then((request) => request(axios, basePath));
|
|
21136
21287
|
},
|
|
21137
21288
|
/**
|
|
21138
21289
|
* - Allows you to override at job level a secret that has a higher scope. - You only have to specify a value in the request body - The system will create a new secret at job level with the same key as the one corresponding to the secret id in the path - The response body will contain the newly created secret - Information regarding the overridden_secret will be exposed in the \"overridden_secret\" field of the newly created secret
|
|
21139
21290
|
* @summary Create a secret override at the job level
|
|
21291
|
+
* @param {string} jobId Job ID
|
|
21140
21292
|
* @param {string} secretId Secret ID
|
|
21141
21293
|
* @param {Value} [value]
|
|
21142
21294
|
* @param {*} [options] Override http request option.
|
|
21143
21295
|
* @throws {RequiredError}
|
|
21144
21296
|
*/
|
|
21145
|
-
createJobSecretOverride(secretId, value, options) {
|
|
21146
|
-
return localVarFp.createJobSecretOverride(secretId, value, options).then((request) => request(axios, basePath));
|
|
21297
|
+
createJobSecretOverride(jobId, secretId, value, options) {
|
|
21298
|
+
return localVarFp.createJobSecretOverride(jobId, secretId, value, options).then((request) => request(axios, basePath));
|
|
21147
21299
|
},
|
|
21148
21300
|
/**
|
|
21149
21301
|
* - To delete a secret you must have the project user permission - You can\'t delete a BUILT_IN secret - If you delete a secret having override or alias, the associated override/alias will be deleted as well
|
|
21150
21302
|
* @summary Delete a secret from an job
|
|
21303
|
+
* @param {string} jobId Job ID
|
|
21151
21304
|
* @param {string} secretId Secret ID
|
|
21152
21305
|
* @param {*} [options] Override http request option.
|
|
21153
21306
|
* @throws {RequiredError}
|
|
21154
21307
|
*/
|
|
21155
|
-
deleteJobSecret(secretId, options) {
|
|
21156
|
-
return localVarFp.deleteJobSecret(secretId, options).then((request) => request(axios, basePath));
|
|
21308
|
+
deleteJobSecret(jobId, secretId, options) {
|
|
21309
|
+
return localVarFp.deleteJobSecret(jobId, secretId, options).then((request) => request(axios, basePath));
|
|
21157
21310
|
},
|
|
21158
21311
|
/**
|
|
21159
21312
|
* - You can\'t edit a BUILT_IN secret - For an override, you can\'t edit the key - For an alias, you can\'t edit the value - An override can only have a scope lower to the secret it is overriding (hierarchy is BUILT_IN > PROJECT > ENVIRONMENT > CONTAINER)
|
|
21160
21313
|
* @summary Edit a secret belonging to the job
|
|
21314
|
+
* @param {string} jobId Job ID
|
|
21161
21315
|
* @param {string} secretId Secret ID
|
|
21162
21316
|
* @param {SecretEditRequest} secretEditRequest
|
|
21163
21317
|
* @param {*} [options] Override http request option.
|
|
21164
21318
|
* @throws {RequiredError}
|
|
21165
21319
|
*/
|
|
21166
|
-
editJobSecret(secretId, secretEditRequest, options) {
|
|
21167
|
-
return localVarFp.editJobSecret(secretId, secretEditRequest, options).then((request) => request(axios, basePath));
|
|
21320
|
+
editJobSecret(jobId, secretId, secretEditRequest, options) {
|
|
21321
|
+
return localVarFp.editJobSecret(jobId, secretId, secretEditRequest, options).then((request) => request(axios, basePath));
|
|
21168
21322
|
},
|
|
21169
21323
|
/**
|
|
21170
21324
|
* Secrets are like environment variables, but they are secured and can\'t be revealed.
|
|
21171
21325
|
* @summary List job secrets
|
|
21326
|
+
* @param {string} jobId Job ID
|
|
21172
21327
|
* @param {*} [options] Override http request option.
|
|
21173
21328
|
* @throws {RequiredError}
|
|
21174
21329
|
*/
|
|
21175
|
-
listJobSecrets(options) {
|
|
21176
|
-
return localVarFp.listJobSecrets(options).then((request) => request(axios, basePath));
|
|
21330
|
+
listJobSecrets(jobId, options) {
|
|
21331
|
+
return localVarFp.listJobSecrets(jobId, options).then((request) => request(axios, basePath));
|
|
21177
21332
|
},
|
|
21178
21333
|
};
|
|
21179
21334
|
};
|
|
@@ -21188,70 +21343,76 @@ class JobSecretApi extends base_1.BaseAPI {
|
|
|
21188
21343
|
/**
|
|
21189
21344
|
* - Add a secret to the job.
|
|
21190
21345
|
* @summary Add a secret to the job
|
|
21346
|
+
* @param {string} jobId Job ID
|
|
21191
21347
|
* @param {SecretRequest} [secretRequest]
|
|
21192
21348
|
* @param {*} [options] Override http request option.
|
|
21193
21349
|
* @throws {RequiredError}
|
|
21194
21350
|
* @memberof JobSecretApi
|
|
21195
21351
|
*/
|
|
21196
|
-
createJobSecret(secretRequest, options) {
|
|
21197
|
-
return (0, exports.JobSecretApiFp)(this.configuration).createJobSecret(secretRequest, options).then((request) => request(this.axios, this.basePath));
|
|
21352
|
+
createJobSecret(jobId, secretRequest, options) {
|
|
21353
|
+
return (0, exports.JobSecretApiFp)(this.configuration).createJobSecret(jobId, secretRequest, options).then((request) => request(this.axios, this.basePath));
|
|
21198
21354
|
}
|
|
21199
21355
|
/**
|
|
21200
21356
|
* - Allows you to add an alias at job level on an existing secret having higher scope, in order to customize its key. - You only have to specify a key in the request body - The system will create a new secret at job level with the same value as the one corresponding to the secret id in the path - The response body will contain the newly created secret - Information regarding the aliased_secret will be exposed in the \"aliased_secret\" field of the newly created secret - Only 1 alias level is allowed. You can\'t create an alias on an alias
|
|
21201
21357
|
* @summary Create a secret alias at the job level
|
|
21358
|
+
* @param {string} jobId Job ID
|
|
21202
21359
|
* @param {string} secretId Secret ID
|
|
21203
21360
|
* @param {Key} [key]
|
|
21204
21361
|
* @param {*} [options] Override http request option.
|
|
21205
21362
|
* @throws {RequiredError}
|
|
21206
21363
|
* @memberof JobSecretApi
|
|
21207
21364
|
*/
|
|
21208
|
-
createJobSecretAlias(secretId, key, options) {
|
|
21209
|
-
return (0, exports.JobSecretApiFp)(this.configuration).createJobSecretAlias(secretId, key, options).then((request) => request(this.axios, this.basePath));
|
|
21365
|
+
createJobSecretAlias(jobId, secretId, key, options) {
|
|
21366
|
+
return (0, exports.JobSecretApiFp)(this.configuration).createJobSecretAlias(jobId, secretId, key, options).then((request) => request(this.axios, this.basePath));
|
|
21210
21367
|
}
|
|
21211
21368
|
/**
|
|
21212
21369
|
* - Allows you to override at job level a secret that has a higher scope. - You only have to specify a value in the request body - The system will create a new secret at job level with the same key as the one corresponding to the secret id in the path - The response body will contain the newly created secret - Information regarding the overridden_secret will be exposed in the \"overridden_secret\" field of the newly created secret
|
|
21213
21370
|
* @summary Create a secret override at the job level
|
|
21371
|
+
* @param {string} jobId Job ID
|
|
21214
21372
|
* @param {string} secretId Secret ID
|
|
21215
21373
|
* @param {Value} [value]
|
|
21216
21374
|
* @param {*} [options] Override http request option.
|
|
21217
21375
|
* @throws {RequiredError}
|
|
21218
21376
|
* @memberof JobSecretApi
|
|
21219
21377
|
*/
|
|
21220
|
-
createJobSecretOverride(secretId, value, options) {
|
|
21221
|
-
return (0, exports.JobSecretApiFp)(this.configuration).createJobSecretOverride(secretId, value, options).then((request) => request(this.axios, this.basePath));
|
|
21378
|
+
createJobSecretOverride(jobId, secretId, value, options) {
|
|
21379
|
+
return (0, exports.JobSecretApiFp)(this.configuration).createJobSecretOverride(jobId, secretId, value, options).then((request) => request(this.axios, this.basePath));
|
|
21222
21380
|
}
|
|
21223
21381
|
/**
|
|
21224
21382
|
* - To delete a secret you must have the project user permission - You can\'t delete a BUILT_IN secret - If you delete a secret having override or alias, the associated override/alias will be deleted as well
|
|
21225
21383
|
* @summary Delete a secret from an job
|
|
21384
|
+
* @param {string} jobId Job ID
|
|
21226
21385
|
* @param {string} secretId Secret ID
|
|
21227
21386
|
* @param {*} [options] Override http request option.
|
|
21228
21387
|
* @throws {RequiredError}
|
|
21229
21388
|
* @memberof JobSecretApi
|
|
21230
21389
|
*/
|
|
21231
|
-
deleteJobSecret(secretId, options) {
|
|
21232
|
-
return (0, exports.JobSecretApiFp)(this.configuration).deleteJobSecret(secretId, options).then((request) => request(this.axios, this.basePath));
|
|
21390
|
+
deleteJobSecret(jobId, secretId, options) {
|
|
21391
|
+
return (0, exports.JobSecretApiFp)(this.configuration).deleteJobSecret(jobId, secretId, options).then((request) => request(this.axios, this.basePath));
|
|
21233
21392
|
}
|
|
21234
21393
|
/**
|
|
21235
21394
|
* - You can\'t edit a BUILT_IN secret - For an override, you can\'t edit the key - For an alias, you can\'t edit the value - An override can only have a scope lower to the secret it is overriding (hierarchy is BUILT_IN > PROJECT > ENVIRONMENT > CONTAINER)
|
|
21236
21395
|
* @summary Edit a secret belonging to the job
|
|
21396
|
+
* @param {string} jobId Job ID
|
|
21237
21397
|
* @param {string} secretId Secret ID
|
|
21238
21398
|
* @param {SecretEditRequest} secretEditRequest
|
|
21239
21399
|
* @param {*} [options] Override http request option.
|
|
21240
21400
|
* @throws {RequiredError}
|
|
21241
21401
|
* @memberof JobSecretApi
|
|
21242
21402
|
*/
|
|
21243
|
-
editJobSecret(secretId, secretEditRequest, options) {
|
|
21244
|
-
return (0, exports.JobSecretApiFp)(this.configuration).editJobSecret(secretId, secretEditRequest, options).then((request) => request(this.axios, this.basePath));
|
|
21403
|
+
editJobSecret(jobId, secretId, secretEditRequest, options) {
|
|
21404
|
+
return (0, exports.JobSecretApiFp)(this.configuration).editJobSecret(jobId, secretId, secretEditRequest, options).then((request) => request(this.axios, this.basePath));
|
|
21245
21405
|
}
|
|
21246
21406
|
/**
|
|
21247
21407
|
* Secrets are like environment variables, but they are secured and can\'t be revealed.
|
|
21248
21408
|
* @summary List job secrets
|
|
21409
|
+
* @param {string} jobId Job ID
|
|
21249
21410
|
* @param {*} [options] Override http request option.
|
|
21250
21411
|
* @throws {RequiredError}
|
|
21251
21412
|
* @memberof JobSecretApi
|
|
21252
21413
|
*/
|
|
21253
|
-
listJobSecrets(options) {
|
|
21254
|
-
return (0, exports.JobSecretApiFp)(this.configuration).listJobSecrets(options).then((request) => request(this.axios, this.basePath));
|
|
21414
|
+
listJobSecrets(jobId, options) {
|
|
21415
|
+
return (0, exports.JobSecretApiFp)(this.configuration).listJobSecrets(jobId, options).then((request) => request(this.axios, this.basePath));
|
|
21255
21416
|
}
|
|
21256
21417
|
}
|
|
21257
21418
|
exports.JobSecretApi = JobSecretApi;
|