qovery-typescript-axios 1.1.39 → 1.1.41
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 +14906 -11923
- package/dist/api.d.ts +9117 -7266
- package/dist/api.js +2130 -20
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -22,12 +22,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
25
|
+
exports.AccountInfoApiFp = exports.AccountInfoApiAxiosParamCreator = exports.WeekdayEnum = exports.TypeOfUseEnum = exports.ThresholdMetricStatusEnum = exports.StorageTypeEnum = exports.StatusKindEnum = exports.StateEnum = exports.ServiceTypeEnum = exports.ServiceDeploymentStatusEnum = exports.RewardClaimTypeEnum = exports.PortProtocolEnum = exports.PlanEnum = exports.OrganizationWebhookKindEnum = exports.OrganizationWebhookEventEnum = exports.OrganizationCustomRoleProjectPermission = exports.OrganizationCustomRoleClusterPermission = exports.OrganizationApiTokenScope = exports.LinkedServiceTypeEnum = exports.KubernetesEnum = exports.JobScheduleEvent = exports.JobAdvancedSettingsLivenessProbeTypeEnum = exports.JobAdvancedSettingsReadinessProbeTypeEnum = exports.InvoiceStatusEnum = exports.InviteStatusEnum = exports.InviteMemberRoleEnum = exports.HealthcheckProtocolEnum = exports.GitProviderEnum = exports.EnvironmentModeEnum = exports.EnvironmentLogTypeEnum = exports.DeploymentRestrictionTypeEnum = exports.DeploymentRestrictionModeEnum = exports.DeploymentHistoryStatusEnum = exports.DatabaseTypeEnum = exports.DatabaseModeEnum = exports.DatabaseAccessibilityEnum = exports.CustomDomainStatusEnum = exports.CreateEnvironmentModeEnum = exports.ContainerRegistryKindEnum = exports.ContainerAdvancedSettingsLivenessProbeTypeEnum = exports.ContainerAdvancedSettingsReadinessProbeTypeEnum = exports.CompanySizeEnum = exports.ClusterLogsStepEnum = exports.ClusterFeatureValueTypeEnum = exports.CloudProviderEnum = exports.BuildPackLanguageEnum = exports.BuildModeEnum = exports.ApplicationAdvancedSettingsLivenessProbeTypeEnum = exports.ApplicationAdvancedSettingsReadinessProbeTypeEnum = exports.APIVariableScopeEnum = void 0;
|
|
26
|
+
exports.BackupsApi = exports.BackupsApiFactory = exports.BackupsApiFp = exports.BackupsApiAxiosParamCreator = exports.ApplicationsApi = exports.ApplicationsApiFactory = exports.ApplicationsApiFp = exports.ApplicationsApiAxiosParamCreator = exports.ApplicationSecretApi = exports.ApplicationSecretApiFactory = exports.ApplicationSecretApiFp = exports.ApplicationSecretApiAxiosParamCreator = exports.ApplicationMetricsApi = exports.ApplicationMetricsApiFactory = exports.ApplicationMetricsApiFp = exports.ApplicationMetricsApiAxiosParamCreator = exports.ApplicationMainCallsApi = exports.ApplicationMainCallsApiFactory = exports.ApplicationMainCallsApiFp = exports.ApplicationMainCallsApiAxiosParamCreator = exports.ApplicationLogsApi = exports.ApplicationLogsApiFactory = exports.ApplicationLogsApiFp = exports.ApplicationLogsApiAxiosParamCreator = exports.ApplicationEventApi = exports.ApplicationEventApiFactory = exports.ApplicationEventApiFp = exports.ApplicationEventApiAxiosParamCreator = exports.ApplicationEnvironmentVariableApi = exports.ApplicationEnvironmentVariableApiFactory = exports.ApplicationEnvironmentVariableApiFp = exports.ApplicationEnvironmentVariableApiAxiosParamCreator = exports.ApplicationDeploymentRestrictionApi = exports.ApplicationDeploymentRestrictionApiFactory = exports.ApplicationDeploymentRestrictionApiFp = exports.ApplicationDeploymentRestrictionApiAxiosParamCreator = exports.ApplicationDeploymentHistoryApi = exports.ApplicationDeploymentHistoryApiFactory = exports.ApplicationDeploymentHistoryApiFp = exports.ApplicationDeploymentHistoryApiAxiosParamCreator = exports.ApplicationConfigurationApi = exports.ApplicationConfigurationApiFactory = exports.ApplicationConfigurationApiFp = exports.ApplicationConfigurationApiAxiosParamCreator = exports.ApplicationActionsApi = exports.ApplicationActionsApiFactory = exports.ApplicationActionsApiFp = exports.ApplicationActionsApiAxiosParamCreator = exports.AccountInfoApi = exports.AccountInfoApiFactory = void 0;
|
|
27
|
+
exports.ContainerMetricsApiFp = exports.ContainerMetricsApiAxiosParamCreator = exports.ContainerMainCallsApi = exports.ContainerMainCallsApiFactory = exports.ContainerMainCallsApiFp = exports.ContainerMainCallsApiAxiosParamCreator = exports.ContainerLogsApi = exports.ContainerLogsApiFactory = exports.ContainerLogsApiFp = exports.ContainerLogsApiAxiosParamCreator = exports.ContainerEnvironmentVariableApi = exports.ContainerEnvironmentVariableApiFactory = exports.ContainerEnvironmentVariableApiFp = exports.ContainerEnvironmentVariableApiAxiosParamCreator = exports.ContainerDeploymentHistoryApi = exports.ContainerDeploymentHistoryApiFactory = exports.ContainerDeploymentHistoryApiFp = exports.ContainerDeploymentHistoryApiAxiosParamCreator = exports.ContainerDependencyApi = exports.ContainerDependencyApiFactory = exports.ContainerDependencyApiFp = exports.ContainerDependencyApiAxiosParamCreator = exports.ContainerCustomDomainApi = exports.ContainerCustomDomainApiFactory = exports.ContainerCustomDomainApiFp = exports.ContainerCustomDomainApiAxiosParamCreator = exports.ContainerConfigurationApi = exports.ContainerConfigurationApiFactory = exports.ContainerConfigurationApiFp = exports.ContainerConfigurationApiAxiosParamCreator = exports.ContainerActionsApi = exports.ContainerActionsApiFactory = exports.ContainerActionsApiFp = exports.ContainerActionsApiAxiosParamCreator = exports.ClustersApi = exports.ClustersApiFactory = exports.ClustersApiFp = exports.ClustersApiAxiosParamCreator = exports.CloudProviderCredentialsApi = exports.CloudProviderCredentialsApiFactory = exports.CloudProviderCredentialsApiFp = exports.CloudProviderCredentialsApiAxiosParamCreator = exports.CloudProviderApi = exports.CloudProviderApiFactory = exports.CloudProviderApiFp = exports.CloudProviderApiAxiosParamCreator = exports.BillingApi = exports.BillingApiFactory = exports.BillingApiFp = exports.BillingApiAxiosParamCreator = void 0;
|
|
28
|
+
exports.DependencyApi = exports.DependencyApiFactory = exports.DependencyApiFp = exports.DependencyApiAxiosParamCreator = exports.DatabasesApi = exports.DatabasesApiFactory = exports.DatabasesApiFp = exports.DatabasesApiAxiosParamCreator = exports.DatabaseMetricsApi = exports.DatabaseMetricsApiFactory = exports.DatabaseMetricsApiFp = exports.DatabaseMetricsApiAxiosParamCreator = exports.DatabaseMainCallsApi = exports.DatabaseMainCallsApiFactory = exports.DatabaseMainCallsApiFp = exports.DatabaseMainCallsApiAxiosParamCreator = exports.DatabaseEventApi = exports.DatabaseEventApiFactory = exports.DatabaseEventApiFp = exports.DatabaseEventApiAxiosParamCreator = exports.DatabaseDeploymentHistoryApi = exports.DatabaseDeploymentHistoryApiFactory = exports.DatabaseDeploymentHistoryApiFp = exports.DatabaseDeploymentHistoryApiAxiosParamCreator = exports.DatabaseApplicationApi = exports.DatabaseApplicationApiFactory = exports.DatabaseApplicationApiFp = exports.DatabaseApplicationApiAxiosParamCreator = exports.DatabaseActionsApi = exports.DatabaseActionsApiFactory = exports.DatabaseActionsApiFp = exports.DatabaseActionsApiAxiosParamCreator = exports.CustomDomainApi = exports.CustomDomainApiFactory = exports.CustomDomainApiFp = exports.CustomDomainApiAxiosParamCreator = exports.ContainersApi = exports.ContainersApiFactory = exports.ContainersApiFp = exports.ContainersApiAxiosParamCreator = exports.ContainerSecretApi = exports.ContainerSecretApiFactory = exports.ContainerSecretApiFp = exports.ContainerSecretApiAxiosParamCreator = exports.ContainerRegistriesApi = exports.ContainerRegistriesApiFactory = exports.ContainerRegistriesApiFp = exports.ContainerRegistriesApiAxiosParamCreator = exports.ContainerMetricsApi = exports.ContainerMetricsApiFactory = void 0;
|
|
29
|
+
exports.JobConfigurationApiFp = exports.JobConfigurationApiAxiosParamCreator = exports.JobActionsApi = exports.JobActionsApiFactory = exports.JobActionsApiFp = exports.JobActionsApiAxiosParamCreator = exports.GithubAppApi = exports.GithubAppApiFactory = exports.GithubAppApiFp = exports.GithubAppApiAxiosParamCreator = exports.GitRepositoriesApi = exports.GitRepositoriesApiFactory = exports.GitRepositoriesApiFp = exports.GitRepositoriesApiAxiosParamCreator = exports.EnvironmentsApi = exports.EnvironmentsApiFactory = exports.EnvironmentsApiFp = exports.EnvironmentsApiAxiosParamCreator = exports.EnvironmentVariableApi = exports.EnvironmentVariableApiFactory = exports.EnvironmentVariableApiFp = exports.EnvironmentVariableApiAxiosParamCreator = exports.EnvironmentSecretApi = exports.EnvironmentSecretApiFactory = exports.EnvironmentSecretApiFp = exports.EnvironmentSecretApiAxiosParamCreator = exports.EnvironmentMainCallsApi = exports.EnvironmentMainCallsApiFactory = exports.EnvironmentMainCallsApiFp = exports.EnvironmentMainCallsApiAxiosParamCreator = exports.EnvironmentLogsApi = exports.EnvironmentLogsApiFactory = exports.EnvironmentLogsApiFp = exports.EnvironmentLogsApiAxiosParamCreator = exports.EnvironmentDeploymentRuleApi = exports.EnvironmentDeploymentRuleApiFactory = exports.EnvironmentDeploymentRuleApiFp = exports.EnvironmentDeploymentRuleApiAxiosParamCreator = exports.EnvironmentDeploymentHistoryApi = exports.EnvironmentDeploymentHistoryApiFactory = exports.EnvironmentDeploymentHistoryApiFp = exports.EnvironmentDeploymentHistoryApiAxiosParamCreator = exports.EnvironmentActionsApi = exports.EnvironmentActionsApiFactory = exports.EnvironmentActionsApiFp = exports.EnvironmentActionsApiAxiosParamCreator = exports.EnvironmentApi = exports.EnvironmentApiFactory = exports.EnvironmentApiFp = exports.EnvironmentApiAxiosParamCreator = void 0;
|
|
30
|
+
exports.OrganizationMainCallsApi = exports.OrganizationMainCallsApiFactory = exports.OrganizationMainCallsApiFp = exports.OrganizationMainCallsApiAxiosParamCreator = exports.OrganizationCustomRoleApi = exports.OrganizationCustomRoleApiFactory = exports.OrganizationCustomRoleApiFp = exports.OrganizationCustomRoleApiAxiosParamCreator = exports.OrganizationApiTokenApi = exports.OrganizationApiTokenApiFactory = exports.OrganizationApiTokenApiFp = exports.OrganizationApiTokenApiAxiosParamCreator = exports.OrganizationAccountGitRepositoriesApi = exports.OrganizationAccountGitRepositoriesApiFactory = exports.OrganizationAccountGitRepositoriesApiFp = exports.OrganizationAccountGitRepositoriesApiAxiosParamCreator = exports.MembersApi = exports.MembersApiFactory = exports.MembersApiFp = exports.MembersApiAxiosParamCreator = exports.LogicalDatabaseApi = exports.LogicalDatabaseApiFactory = exports.LogicalDatabaseApiFp = exports.LogicalDatabaseApiAxiosParamCreator = exports.JobsApi = exports.JobsApiFactory = exports.JobsApiFp = exports.JobsApiAxiosParamCreator = exports.JobSecretApi = exports.JobSecretApiFactory = exports.JobSecretApiFp = exports.JobSecretApiAxiosParamCreator = exports.JobMetricsApi = exports.JobMetricsApiFactory = exports.JobMetricsApiFp = exports.JobMetricsApiAxiosParamCreator = exports.JobMainCallsApi = exports.JobMainCallsApiFactory = exports.JobMainCallsApiFp = exports.JobMainCallsApiAxiosParamCreator = exports.JobEnvironmentVariableApi = exports.JobEnvironmentVariableApiFactory = exports.JobEnvironmentVariableApiFp = exports.JobEnvironmentVariableApiAxiosParamCreator = exports.JobDeploymentHistoryApi = exports.JobDeploymentHistoryApiFactory = exports.JobDeploymentHistoryApiFp = exports.JobDeploymentHistoryApiAxiosParamCreator = exports.JobConfigurationApi = exports.JobConfigurationApiFactory = void 0;
|
|
31
|
+
exports.UserSignUpApi = exports.UserSignUpApiFactory = exports.UserSignUpApiFp = exports.UserSignUpApiAxiosParamCreator = exports.ReferralRewardsApi = exports.ReferralRewardsApiFactory = exports.ReferralRewardsApiFp = exports.ReferralRewardsApiAxiosParamCreator = exports.ProjectsApi = exports.ProjectsApiFactory = exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = exports.ProjectSecretApi = exports.ProjectSecretApiFactory = exports.ProjectSecretApiFp = exports.ProjectSecretApiAxiosParamCreator = exports.ProjectMainCallsApi = exports.ProjectMainCallsApiFactory = exports.ProjectMainCallsApiFp = exports.ProjectMainCallsApiAxiosParamCreator = exports.ProjectEnvironmentVariableApi = exports.ProjectEnvironmentVariableApiFactory = exports.ProjectEnvironmentVariableApiFp = exports.ProjectEnvironmentVariableApiAxiosParamCreator = exports.ProjectDeploymentRuleApi = exports.ProjectDeploymentRuleApiFactory = exports.ProjectDeploymentRuleApiFp = exports.ProjectDeploymentRuleApiAxiosParamCreator = exports.OrganizationWebhookApi = exports.OrganizationWebhookApiFactory = exports.OrganizationWebhookApiFp = exports.OrganizationWebhookApiAxiosParamCreator = void 0;
|
|
31
32
|
const axios_1 = require("axios");
|
|
32
33
|
// Some imports not used depending on template conditions
|
|
33
34
|
// @ts-ignore
|
|
@@ -345,6 +346,38 @@ var InvoiceStatusEnum;
|
|
|
345
346
|
InvoiceStatusEnum["UNKNOWN"] = "UNKNOWN";
|
|
346
347
|
InvoiceStatusEnum["VOIDED"] = "VOIDED";
|
|
347
348
|
})(InvoiceStatusEnum = exports.InvoiceStatusEnum || (exports.InvoiceStatusEnum = {}));
|
|
349
|
+
/**
|
|
350
|
+
* @export
|
|
351
|
+
* @enum {string}
|
|
352
|
+
*/
|
|
353
|
+
var JobAdvancedSettingsReadinessProbeTypeEnum;
|
|
354
|
+
(function (JobAdvancedSettingsReadinessProbeTypeEnum) {
|
|
355
|
+
JobAdvancedSettingsReadinessProbeTypeEnum["NONE"] = "NONE";
|
|
356
|
+
JobAdvancedSettingsReadinessProbeTypeEnum["TCP"] = "TCP";
|
|
357
|
+
JobAdvancedSettingsReadinessProbeTypeEnum["HTTP"] = "HTTP";
|
|
358
|
+
})(JobAdvancedSettingsReadinessProbeTypeEnum = exports.JobAdvancedSettingsReadinessProbeTypeEnum || (exports.JobAdvancedSettingsReadinessProbeTypeEnum = {}));
|
|
359
|
+
/**
|
|
360
|
+
* @export
|
|
361
|
+
* @enum {string}
|
|
362
|
+
*/
|
|
363
|
+
var JobAdvancedSettingsLivenessProbeTypeEnum;
|
|
364
|
+
(function (JobAdvancedSettingsLivenessProbeTypeEnum) {
|
|
365
|
+
JobAdvancedSettingsLivenessProbeTypeEnum["NONE"] = "NONE";
|
|
366
|
+
JobAdvancedSettingsLivenessProbeTypeEnum["TCP"] = "TCP";
|
|
367
|
+
JobAdvancedSettingsLivenessProbeTypeEnum["HTTP"] = "HTTP";
|
|
368
|
+
})(JobAdvancedSettingsLivenessProbeTypeEnum = exports.JobAdvancedSettingsLivenessProbeTypeEnum || (exports.JobAdvancedSettingsLivenessProbeTypeEnum = {}));
|
|
369
|
+
/**
|
|
370
|
+
* On which event the job is going to run. ON_START means when a deployment is requested for the environment ON_STOP means when a stop of the environment is requested CRON means at a scheduled interval
|
|
371
|
+
* @export
|
|
372
|
+
* @enum {string}
|
|
373
|
+
*/
|
|
374
|
+
var JobScheduleEvent;
|
|
375
|
+
(function (JobScheduleEvent) {
|
|
376
|
+
JobScheduleEvent["ON_START"] = "ON_START";
|
|
377
|
+
JobScheduleEvent["ON_STOP"] = "ON_STOP";
|
|
378
|
+
JobScheduleEvent["ON_DELETE"] = "ON_DELETE";
|
|
379
|
+
JobScheduleEvent["CRON"] = "CRON";
|
|
380
|
+
})(JobScheduleEvent = exports.JobScheduleEvent || (exports.JobScheduleEvent = {}));
|
|
348
381
|
/**
|
|
349
382
|
*
|
|
350
383
|
* @export
|
|
@@ -13032,11 +13065,10 @@ const ContainersApiAxiosParamCreator = function (configuration) {
|
|
|
13032
13065
|
*
|
|
13033
13066
|
* @summary List containers
|
|
13034
13067
|
* @param {string} environmentId Environment ID
|
|
13035
|
-
* @param {boolean} [toUpdate] return (or not) results that must be updated
|
|
13036
13068
|
* @param {*} [options] Override http request option.
|
|
13037
13069
|
* @throws {RequiredError}
|
|
13038
13070
|
*/
|
|
13039
|
-
listContainer: (environmentId,
|
|
13071
|
+
listContainer: (environmentId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
13040
13072
|
// verify required parameter 'environmentId' is not null or undefined
|
|
13041
13073
|
(0, common_1.assertParamExists)('listContainer', 'environmentId', environmentId);
|
|
13042
13074
|
const localVarPath = `/environment/{environmentId}/container`
|
|
@@ -13053,9 +13085,6 @@ const ContainersApiAxiosParamCreator = function (configuration) {
|
|
|
13053
13085
|
// authentication bearerAuth required
|
|
13054
13086
|
// http bearer authentication required
|
|
13055
13087
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13056
|
-
if (toUpdate !== undefined) {
|
|
13057
|
-
localVarQueryParameter['toUpdate'] = toUpdate;
|
|
13058
|
-
}
|
|
13059
13088
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13060
13089
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13061
13090
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -13208,13 +13237,12 @@ const ContainersApiFp = function (configuration) {
|
|
|
13208
13237
|
*
|
|
13209
13238
|
* @summary List containers
|
|
13210
13239
|
* @param {string} environmentId Environment ID
|
|
13211
|
-
* @param {boolean} [toUpdate] return (or not) results that must be updated
|
|
13212
13240
|
* @param {*} [options] Override http request option.
|
|
13213
13241
|
* @throws {RequiredError}
|
|
13214
13242
|
*/
|
|
13215
|
-
listContainer(environmentId,
|
|
13243
|
+
listContainer(environmentId, options) {
|
|
13216
13244
|
return __awaiter(this, void 0, void 0, function* () {
|
|
13217
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listContainer(environmentId,
|
|
13245
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listContainer(environmentId, options);
|
|
13218
13246
|
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
13219
13247
|
});
|
|
13220
13248
|
},
|
|
@@ -13320,12 +13348,11 @@ const ContainersApiFactory = function (configuration, basePath, axios) {
|
|
|
13320
13348
|
*
|
|
13321
13349
|
* @summary List containers
|
|
13322
13350
|
* @param {string} environmentId Environment ID
|
|
13323
|
-
* @param {boolean} [toUpdate] return (or not) results that must be updated
|
|
13324
13351
|
* @param {*} [options] Override http request option.
|
|
13325
13352
|
* @throws {RequiredError}
|
|
13326
13353
|
*/
|
|
13327
|
-
listContainer(environmentId,
|
|
13328
|
-
return localVarFp.listContainer(environmentId,
|
|
13354
|
+
listContainer(environmentId, options) {
|
|
13355
|
+
return localVarFp.listContainer(environmentId, options).then((request) => request(axios, basePath));
|
|
13329
13356
|
},
|
|
13330
13357
|
/**
|
|
13331
13358
|
* Triggers a new container preview for each environment matching the following conditions - preview environment feature should be enabled for the container - the container should have the same image name and a different tag
|
|
@@ -13433,13 +13460,12 @@ class ContainersApi extends base_1.BaseAPI {
|
|
|
13433
13460
|
*
|
|
13434
13461
|
* @summary List containers
|
|
13435
13462
|
* @param {string} environmentId Environment ID
|
|
13436
|
-
* @param {boolean} [toUpdate] return (or not) results that must be updated
|
|
13437
13463
|
* @param {*} [options] Override http request option.
|
|
13438
13464
|
* @throws {RequiredError}
|
|
13439
13465
|
* @memberof ContainersApi
|
|
13440
13466
|
*/
|
|
13441
|
-
listContainer(environmentId,
|
|
13442
|
-
return (0, exports.ContainersApiFp)(this.configuration).listContainer(environmentId,
|
|
13467
|
+
listContainer(environmentId, options) {
|
|
13468
|
+
return (0, exports.ContainersApiFp)(this.configuration).listContainer(environmentId, options).then((request) => request(this.axios, this.basePath));
|
|
13443
13469
|
}
|
|
13444
13470
|
/**
|
|
13445
13471
|
* Triggers a new container preview for each environment matching the following conditions - preview environment feature should be enabled for the container - the container should have the same image name and a different tag
|
|
@@ -19335,6 +19361,2090 @@ class GithubAppApi extends base_1.BaseAPI {
|
|
|
19335
19361
|
}
|
|
19336
19362
|
}
|
|
19337
19363
|
exports.GithubAppApi = GithubAppApi;
|
|
19364
|
+
/**
|
|
19365
|
+
* JobActionsApi - axios parameter creator
|
|
19366
|
+
* @export
|
|
19367
|
+
*/
|
|
19368
|
+
const JobActionsApiAxiosParamCreator = function (configuration) {
|
|
19369
|
+
return {
|
|
19370
|
+
/**
|
|
19371
|
+
* You must provide a git commit id
|
|
19372
|
+
* @summary Deploy job
|
|
19373
|
+
* @param {boolean} [force] Enable or Disable the force trigger of the job
|
|
19374
|
+
* @param {JobDeployRequest} [jobDeployRequest]
|
|
19375
|
+
* @param {*} [options] Override http request option.
|
|
19376
|
+
* @throws {RequiredError}
|
|
19377
|
+
*/
|
|
19378
|
+
deployJob: (force, jobDeployRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
19379
|
+
const localVarPath = `/job/{jobId}/deploy`;
|
|
19380
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19381
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19382
|
+
let baseOptions;
|
|
19383
|
+
if (configuration) {
|
|
19384
|
+
baseOptions = configuration.baseOptions;
|
|
19385
|
+
}
|
|
19386
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
19387
|
+
const localVarHeaderParameter = {};
|
|
19388
|
+
const localVarQueryParameter = {};
|
|
19389
|
+
// authentication bearerAuth required
|
|
19390
|
+
// http bearer authentication required
|
|
19391
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
19392
|
+
if (force !== undefined) {
|
|
19393
|
+
localVarQueryParameter['force'] = force;
|
|
19394
|
+
}
|
|
19395
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
19396
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
19397
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19398
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
19399
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(jobDeployRequest, localVarRequestOptions, configuration);
|
|
19400
|
+
return {
|
|
19401
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
19402
|
+
options: localVarRequestOptions,
|
|
19403
|
+
};
|
|
19404
|
+
}),
|
|
19405
|
+
/**
|
|
19406
|
+
*
|
|
19407
|
+
* @summary Restart job
|
|
19408
|
+
* @param {boolean} [force] Enable or Disable the force trigger of the job
|
|
19409
|
+
* @param {*} [options] Override http request option.
|
|
19410
|
+
* @throws {RequiredError}
|
|
19411
|
+
*/
|
|
19412
|
+
restartJob: (force, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
19413
|
+
const localVarPath = `/job/{jobId}/restart`;
|
|
19414
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19415
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19416
|
+
let baseOptions;
|
|
19417
|
+
if (configuration) {
|
|
19418
|
+
baseOptions = configuration.baseOptions;
|
|
19419
|
+
}
|
|
19420
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
19421
|
+
const localVarHeaderParameter = {};
|
|
19422
|
+
const localVarQueryParameter = {};
|
|
19423
|
+
// authentication bearerAuth required
|
|
19424
|
+
// http bearer authentication required
|
|
19425
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
19426
|
+
if (force !== undefined) {
|
|
19427
|
+
localVarQueryParameter['force'] = force;
|
|
19428
|
+
}
|
|
19429
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
19430
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19431
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
19432
|
+
return {
|
|
19433
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
19434
|
+
options: localVarRequestOptions,
|
|
19435
|
+
};
|
|
19436
|
+
}),
|
|
19437
|
+
/**
|
|
19438
|
+
*
|
|
19439
|
+
* @summary Stop job
|
|
19440
|
+
* @param {*} [options] Override http request option.
|
|
19441
|
+
* @throws {RequiredError}
|
|
19442
|
+
*/
|
|
19443
|
+
stopJob: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
19444
|
+
const localVarPath = `/job/{jobId}/stop`;
|
|
19445
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19446
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19447
|
+
let baseOptions;
|
|
19448
|
+
if (configuration) {
|
|
19449
|
+
baseOptions = configuration.baseOptions;
|
|
19450
|
+
}
|
|
19451
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
19452
|
+
const localVarHeaderParameter = {};
|
|
19453
|
+
const localVarQueryParameter = {};
|
|
19454
|
+
// authentication bearerAuth required
|
|
19455
|
+
// http bearer authentication required
|
|
19456
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
19457
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
19458
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19459
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
19460
|
+
return {
|
|
19461
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
19462
|
+
options: localVarRequestOptions,
|
|
19463
|
+
};
|
|
19464
|
+
}),
|
|
19465
|
+
};
|
|
19466
|
+
};
|
|
19467
|
+
exports.JobActionsApiAxiosParamCreator = JobActionsApiAxiosParamCreator;
|
|
19468
|
+
/**
|
|
19469
|
+
* JobActionsApi - functional programming interface
|
|
19470
|
+
* @export
|
|
19471
|
+
*/
|
|
19472
|
+
const JobActionsApiFp = function (configuration) {
|
|
19473
|
+
const localVarAxiosParamCreator = (0, exports.JobActionsApiAxiosParamCreator)(configuration);
|
|
19474
|
+
return {
|
|
19475
|
+
/**
|
|
19476
|
+
* You must provide a git commit id
|
|
19477
|
+
* @summary Deploy job
|
|
19478
|
+
* @param {boolean} [force] Enable or Disable the force trigger of the job
|
|
19479
|
+
* @param {JobDeployRequest} [jobDeployRequest]
|
|
19480
|
+
* @param {*} [options] Override http request option.
|
|
19481
|
+
* @throws {RequiredError}
|
|
19482
|
+
*/
|
|
19483
|
+
deployJob(force, jobDeployRequest, options) {
|
|
19484
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19485
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deployJob(force, jobDeployRequest, options);
|
|
19486
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
19487
|
+
});
|
|
19488
|
+
},
|
|
19489
|
+
/**
|
|
19490
|
+
*
|
|
19491
|
+
* @summary Restart job
|
|
19492
|
+
* @param {boolean} [force] Enable or Disable the force trigger of the job
|
|
19493
|
+
* @param {*} [options] Override http request option.
|
|
19494
|
+
* @throws {RequiredError}
|
|
19495
|
+
*/
|
|
19496
|
+
restartJob(force, options) {
|
|
19497
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19498
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.restartJob(force, options);
|
|
19499
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
19500
|
+
});
|
|
19501
|
+
},
|
|
19502
|
+
/**
|
|
19503
|
+
*
|
|
19504
|
+
* @summary Stop job
|
|
19505
|
+
* @param {*} [options] Override http request option.
|
|
19506
|
+
* @throws {RequiredError}
|
|
19507
|
+
*/
|
|
19508
|
+
stopJob(options) {
|
|
19509
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19510
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.stopJob(options);
|
|
19511
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
19512
|
+
});
|
|
19513
|
+
},
|
|
19514
|
+
};
|
|
19515
|
+
};
|
|
19516
|
+
exports.JobActionsApiFp = JobActionsApiFp;
|
|
19517
|
+
/**
|
|
19518
|
+
* JobActionsApi - factory interface
|
|
19519
|
+
* @export
|
|
19520
|
+
*/
|
|
19521
|
+
const JobActionsApiFactory = function (configuration, basePath, axios) {
|
|
19522
|
+
const localVarFp = (0, exports.JobActionsApiFp)(configuration);
|
|
19523
|
+
return {
|
|
19524
|
+
/**
|
|
19525
|
+
* You must provide a git commit id
|
|
19526
|
+
* @summary Deploy job
|
|
19527
|
+
* @param {boolean} [force] Enable or Disable the force trigger of the job
|
|
19528
|
+
* @param {JobDeployRequest} [jobDeployRequest]
|
|
19529
|
+
* @param {*} [options] Override http request option.
|
|
19530
|
+
* @throws {RequiredError}
|
|
19531
|
+
*/
|
|
19532
|
+
deployJob(force, jobDeployRequest, options) {
|
|
19533
|
+
return localVarFp.deployJob(force, jobDeployRequest, options).then((request) => request(axios, basePath));
|
|
19534
|
+
},
|
|
19535
|
+
/**
|
|
19536
|
+
*
|
|
19537
|
+
* @summary Restart job
|
|
19538
|
+
* @param {boolean} [force] Enable or Disable the force trigger of the job
|
|
19539
|
+
* @param {*} [options] Override http request option.
|
|
19540
|
+
* @throws {RequiredError}
|
|
19541
|
+
*/
|
|
19542
|
+
restartJob(force, options) {
|
|
19543
|
+
return localVarFp.restartJob(force, options).then((request) => request(axios, basePath));
|
|
19544
|
+
},
|
|
19545
|
+
/**
|
|
19546
|
+
*
|
|
19547
|
+
* @summary Stop job
|
|
19548
|
+
* @param {*} [options] Override http request option.
|
|
19549
|
+
* @throws {RequiredError}
|
|
19550
|
+
*/
|
|
19551
|
+
stopJob(options) {
|
|
19552
|
+
return localVarFp.stopJob(options).then((request) => request(axios, basePath));
|
|
19553
|
+
},
|
|
19554
|
+
};
|
|
19555
|
+
};
|
|
19556
|
+
exports.JobActionsApiFactory = JobActionsApiFactory;
|
|
19557
|
+
/**
|
|
19558
|
+
* JobActionsApi - object-oriented interface
|
|
19559
|
+
* @export
|
|
19560
|
+
* @class JobActionsApi
|
|
19561
|
+
* @extends {BaseAPI}
|
|
19562
|
+
*/
|
|
19563
|
+
class JobActionsApi extends base_1.BaseAPI {
|
|
19564
|
+
/**
|
|
19565
|
+
* You must provide a git commit id
|
|
19566
|
+
* @summary Deploy job
|
|
19567
|
+
* @param {boolean} [force] Enable or Disable the force trigger of the job
|
|
19568
|
+
* @param {JobDeployRequest} [jobDeployRequest]
|
|
19569
|
+
* @param {*} [options] Override http request option.
|
|
19570
|
+
* @throws {RequiredError}
|
|
19571
|
+
* @memberof JobActionsApi
|
|
19572
|
+
*/
|
|
19573
|
+
deployJob(force, jobDeployRequest, options) {
|
|
19574
|
+
return (0, exports.JobActionsApiFp)(this.configuration).deployJob(force, jobDeployRequest, options).then((request) => request(this.axios, this.basePath));
|
|
19575
|
+
}
|
|
19576
|
+
/**
|
|
19577
|
+
*
|
|
19578
|
+
* @summary Restart job
|
|
19579
|
+
* @param {boolean} [force] Enable or Disable the force trigger of the job
|
|
19580
|
+
* @param {*} [options] Override http request option.
|
|
19581
|
+
* @throws {RequiredError}
|
|
19582
|
+
* @memberof JobActionsApi
|
|
19583
|
+
*/
|
|
19584
|
+
restartJob(force, options) {
|
|
19585
|
+
return (0, exports.JobActionsApiFp)(this.configuration).restartJob(force, options).then((request) => request(this.axios, this.basePath));
|
|
19586
|
+
}
|
|
19587
|
+
/**
|
|
19588
|
+
*
|
|
19589
|
+
* @summary Stop job
|
|
19590
|
+
* @param {*} [options] Override http request option.
|
|
19591
|
+
* @throws {RequiredError}
|
|
19592
|
+
* @memberof JobActionsApi
|
|
19593
|
+
*/
|
|
19594
|
+
stopJob(options) {
|
|
19595
|
+
return (0, exports.JobActionsApiFp)(this.configuration).stopJob(options).then((request) => request(this.axios, this.basePath));
|
|
19596
|
+
}
|
|
19597
|
+
}
|
|
19598
|
+
exports.JobActionsApi = JobActionsApi;
|
|
19599
|
+
/**
|
|
19600
|
+
* JobConfigurationApi - axios parameter creator
|
|
19601
|
+
* @export
|
|
19602
|
+
*/
|
|
19603
|
+
const JobConfigurationApiAxiosParamCreator = function (configuration) {
|
|
19604
|
+
return {
|
|
19605
|
+
/**
|
|
19606
|
+
* Edit advanced settings by returning table of advanced settings.
|
|
19607
|
+
* @summary Edit advanced settings
|
|
19608
|
+
* @param {JobAdvancedSettings} [jobAdvancedSettings]
|
|
19609
|
+
* @param {*} [options] Override http request option.
|
|
19610
|
+
* @throws {RequiredError}
|
|
19611
|
+
*/
|
|
19612
|
+
editJobAdvancedSettings: (jobAdvancedSettings, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
19613
|
+
const localVarPath = `/job/{jobId}/advancedSettings`;
|
|
19614
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19615
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19616
|
+
let baseOptions;
|
|
19617
|
+
if (configuration) {
|
|
19618
|
+
baseOptions = configuration.baseOptions;
|
|
19619
|
+
}
|
|
19620
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
19621
|
+
const localVarHeaderParameter = {};
|
|
19622
|
+
const localVarQueryParameter = {};
|
|
19623
|
+
// authentication bearerAuth required
|
|
19624
|
+
// http bearer authentication required
|
|
19625
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
19626
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
19627
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
19628
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19629
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
19630
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(jobAdvancedSettings, localVarRequestOptions, configuration);
|
|
19631
|
+
return {
|
|
19632
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
19633
|
+
options: localVarRequestOptions,
|
|
19634
|
+
};
|
|
19635
|
+
}),
|
|
19636
|
+
/**
|
|
19637
|
+
* Get list and values of the advanced settings of the job.
|
|
19638
|
+
* @summary Get advanced settings
|
|
19639
|
+
* @param {*} [options] Override http request option.
|
|
19640
|
+
* @throws {RequiredError}
|
|
19641
|
+
*/
|
|
19642
|
+
getJobAdvancedSettings: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
19643
|
+
const localVarPath = `/job/{jobId}/advancedSettings`;
|
|
19644
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19645
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19646
|
+
let baseOptions;
|
|
19647
|
+
if (configuration) {
|
|
19648
|
+
baseOptions = configuration.baseOptions;
|
|
19649
|
+
}
|
|
19650
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
19651
|
+
const localVarHeaderParameter = {};
|
|
19652
|
+
const localVarQueryParameter = {};
|
|
19653
|
+
// authentication bearerAuth required
|
|
19654
|
+
// http bearer authentication required
|
|
19655
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
19656
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
19657
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19658
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
19659
|
+
return {
|
|
19660
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
19661
|
+
options: localVarRequestOptions,
|
|
19662
|
+
};
|
|
19663
|
+
}),
|
|
19664
|
+
};
|
|
19665
|
+
};
|
|
19666
|
+
exports.JobConfigurationApiAxiosParamCreator = JobConfigurationApiAxiosParamCreator;
|
|
19667
|
+
/**
|
|
19668
|
+
* JobConfigurationApi - functional programming interface
|
|
19669
|
+
* @export
|
|
19670
|
+
*/
|
|
19671
|
+
const JobConfigurationApiFp = function (configuration) {
|
|
19672
|
+
const localVarAxiosParamCreator = (0, exports.JobConfigurationApiAxiosParamCreator)(configuration);
|
|
19673
|
+
return {
|
|
19674
|
+
/**
|
|
19675
|
+
* Edit advanced settings by returning table of advanced settings.
|
|
19676
|
+
* @summary Edit advanced settings
|
|
19677
|
+
* @param {JobAdvancedSettings} [jobAdvancedSettings]
|
|
19678
|
+
* @param {*} [options] Override http request option.
|
|
19679
|
+
* @throws {RequiredError}
|
|
19680
|
+
*/
|
|
19681
|
+
editJobAdvancedSettings(jobAdvancedSettings, options) {
|
|
19682
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19683
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.editJobAdvancedSettings(jobAdvancedSettings, options);
|
|
19684
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
19685
|
+
});
|
|
19686
|
+
},
|
|
19687
|
+
/**
|
|
19688
|
+
* Get list and values of the advanced settings of the job.
|
|
19689
|
+
* @summary Get advanced settings
|
|
19690
|
+
* @param {*} [options] Override http request option.
|
|
19691
|
+
* @throws {RequiredError}
|
|
19692
|
+
*/
|
|
19693
|
+
getJobAdvancedSettings(options) {
|
|
19694
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19695
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getJobAdvancedSettings(options);
|
|
19696
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
19697
|
+
});
|
|
19698
|
+
},
|
|
19699
|
+
};
|
|
19700
|
+
};
|
|
19701
|
+
exports.JobConfigurationApiFp = JobConfigurationApiFp;
|
|
19702
|
+
/**
|
|
19703
|
+
* JobConfigurationApi - factory interface
|
|
19704
|
+
* @export
|
|
19705
|
+
*/
|
|
19706
|
+
const JobConfigurationApiFactory = function (configuration, basePath, axios) {
|
|
19707
|
+
const localVarFp = (0, exports.JobConfigurationApiFp)(configuration);
|
|
19708
|
+
return {
|
|
19709
|
+
/**
|
|
19710
|
+
* Edit advanced settings by returning table of advanced settings.
|
|
19711
|
+
* @summary Edit advanced settings
|
|
19712
|
+
* @param {JobAdvancedSettings} [jobAdvancedSettings]
|
|
19713
|
+
* @param {*} [options] Override http request option.
|
|
19714
|
+
* @throws {RequiredError}
|
|
19715
|
+
*/
|
|
19716
|
+
editJobAdvancedSettings(jobAdvancedSettings, options) {
|
|
19717
|
+
return localVarFp.editJobAdvancedSettings(jobAdvancedSettings, options).then((request) => request(axios, basePath));
|
|
19718
|
+
},
|
|
19719
|
+
/**
|
|
19720
|
+
* Get list and values of the advanced settings of the job.
|
|
19721
|
+
* @summary Get advanced settings
|
|
19722
|
+
* @param {*} [options] Override http request option.
|
|
19723
|
+
* @throws {RequiredError}
|
|
19724
|
+
*/
|
|
19725
|
+
getJobAdvancedSettings(options) {
|
|
19726
|
+
return localVarFp.getJobAdvancedSettings(options).then((request) => request(axios, basePath));
|
|
19727
|
+
},
|
|
19728
|
+
};
|
|
19729
|
+
};
|
|
19730
|
+
exports.JobConfigurationApiFactory = JobConfigurationApiFactory;
|
|
19731
|
+
/**
|
|
19732
|
+
* JobConfigurationApi - object-oriented interface
|
|
19733
|
+
* @export
|
|
19734
|
+
* @class JobConfigurationApi
|
|
19735
|
+
* @extends {BaseAPI}
|
|
19736
|
+
*/
|
|
19737
|
+
class JobConfigurationApi extends base_1.BaseAPI {
|
|
19738
|
+
/**
|
|
19739
|
+
* Edit advanced settings by returning table of advanced settings.
|
|
19740
|
+
* @summary Edit advanced settings
|
|
19741
|
+
* @param {JobAdvancedSettings} [jobAdvancedSettings]
|
|
19742
|
+
* @param {*} [options] Override http request option.
|
|
19743
|
+
* @throws {RequiredError}
|
|
19744
|
+
* @memberof JobConfigurationApi
|
|
19745
|
+
*/
|
|
19746
|
+
editJobAdvancedSettings(jobAdvancedSettings, options) {
|
|
19747
|
+
return (0, exports.JobConfigurationApiFp)(this.configuration).editJobAdvancedSettings(jobAdvancedSettings, options).then((request) => request(this.axios, this.basePath));
|
|
19748
|
+
}
|
|
19749
|
+
/**
|
|
19750
|
+
* Get list and values of the advanced settings of the job.
|
|
19751
|
+
* @summary Get advanced settings
|
|
19752
|
+
* @param {*} [options] Override http request option.
|
|
19753
|
+
* @throws {RequiredError}
|
|
19754
|
+
* @memberof JobConfigurationApi
|
|
19755
|
+
*/
|
|
19756
|
+
getJobAdvancedSettings(options) {
|
|
19757
|
+
return (0, exports.JobConfigurationApiFp)(this.configuration).getJobAdvancedSettings(options).then((request) => request(this.axios, this.basePath));
|
|
19758
|
+
}
|
|
19759
|
+
}
|
|
19760
|
+
exports.JobConfigurationApi = JobConfigurationApi;
|
|
19761
|
+
/**
|
|
19762
|
+
* JobDeploymentHistoryApi - axios parameter creator
|
|
19763
|
+
* @export
|
|
19764
|
+
*/
|
|
19765
|
+
const JobDeploymentHistoryApiAxiosParamCreator = function (configuration) {
|
|
19766
|
+
return {
|
|
19767
|
+
/**
|
|
19768
|
+
* Returns the 20 last job deployments
|
|
19769
|
+
* @summary List job deployments
|
|
19770
|
+
* @param {*} [options] Override http request option.
|
|
19771
|
+
* @throws {RequiredError}
|
|
19772
|
+
*/
|
|
19773
|
+
listJobDeploymentHistory: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
19774
|
+
const localVarPath = `/job/{jobId}/deploymentHistory`;
|
|
19775
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19776
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19777
|
+
let baseOptions;
|
|
19778
|
+
if (configuration) {
|
|
19779
|
+
baseOptions = configuration.baseOptions;
|
|
19780
|
+
}
|
|
19781
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
19782
|
+
const localVarHeaderParameter = {};
|
|
19783
|
+
const localVarQueryParameter = {};
|
|
19784
|
+
// authentication bearerAuth required
|
|
19785
|
+
// http bearer authentication required
|
|
19786
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
19787
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
19788
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19789
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
19790
|
+
return {
|
|
19791
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
19792
|
+
options: localVarRequestOptions,
|
|
19793
|
+
};
|
|
19794
|
+
}),
|
|
19795
|
+
};
|
|
19796
|
+
};
|
|
19797
|
+
exports.JobDeploymentHistoryApiAxiosParamCreator = JobDeploymentHistoryApiAxiosParamCreator;
|
|
19798
|
+
/**
|
|
19799
|
+
* JobDeploymentHistoryApi - functional programming interface
|
|
19800
|
+
* @export
|
|
19801
|
+
*/
|
|
19802
|
+
const JobDeploymentHistoryApiFp = function (configuration) {
|
|
19803
|
+
const localVarAxiosParamCreator = (0, exports.JobDeploymentHistoryApiAxiosParamCreator)(configuration);
|
|
19804
|
+
return {
|
|
19805
|
+
/**
|
|
19806
|
+
* Returns the 20 last job deployments
|
|
19807
|
+
* @summary List job deployments
|
|
19808
|
+
* @param {*} [options] Override http request option.
|
|
19809
|
+
* @throws {RequiredError}
|
|
19810
|
+
*/
|
|
19811
|
+
listJobDeploymentHistory(options) {
|
|
19812
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19813
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listJobDeploymentHistory(options);
|
|
19814
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
19815
|
+
});
|
|
19816
|
+
},
|
|
19817
|
+
};
|
|
19818
|
+
};
|
|
19819
|
+
exports.JobDeploymentHistoryApiFp = JobDeploymentHistoryApiFp;
|
|
19820
|
+
/**
|
|
19821
|
+
* JobDeploymentHistoryApi - factory interface
|
|
19822
|
+
* @export
|
|
19823
|
+
*/
|
|
19824
|
+
const JobDeploymentHistoryApiFactory = function (configuration, basePath, axios) {
|
|
19825
|
+
const localVarFp = (0, exports.JobDeploymentHistoryApiFp)(configuration);
|
|
19826
|
+
return {
|
|
19827
|
+
/**
|
|
19828
|
+
* Returns the 20 last job deployments
|
|
19829
|
+
* @summary List job deployments
|
|
19830
|
+
* @param {*} [options] Override http request option.
|
|
19831
|
+
* @throws {RequiredError}
|
|
19832
|
+
*/
|
|
19833
|
+
listJobDeploymentHistory(options) {
|
|
19834
|
+
return localVarFp.listJobDeploymentHistory(options).then((request) => request(axios, basePath));
|
|
19835
|
+
},
|
|
19836
|
+
};
|
|
19837
|
+
};
|
|
19838
|
+
exports.JobDeploymentHistoryApiFactory = JobDeploymentHistoryApiFactory;
|
|
19839
|
+
/**
|
|
19840
|
+
* JobDeploymentHistoryApi - object-oriented interface
|
|
19841
|
+
* @export
|
|
19842
|
+
* @class JobDeploymentHistoryApi
|
|
19843
|
+
* @extends {BaseAPI}
|
|
19844
|
+
*/
|
|
19845
|
+
class JobDeploymentHistoryApi extends base_1.BaseAPI {
|
|
19846
|
+
/**
|
|
19847
|
+
* Returns the 20 last job deployments
|
|
19848
|
+
* @summary List job deployments
|
|
19849
|
+
* @param {*} [options] Override http request option.
|
|
19850
|
+
* @throws {RequiredError}
|
|
19851
|
+
* @memberof JobDeploymentHistoryApi
|
|
19852
|
+
*/
|
|
19853
|
+
listJobDeploymentHistory(options) {
|
|
19854
|
+
return (0, exports.JobDeploymentHistoryApiFp)(this.configuration).listJobDeploymentHistory(options).then((request) => request(this.axios, this.basePath));
|
|
19855
|
+
}
|
|
19856
|
+
}
|
|
19857
|
+
exports.JobDeploymentHistoryApi = JobDeploymentHistoryApi;
|
|
19858
|
+
/**
|
|
19859
|
+
* JobEnvironmentVariableApi - axios parameter creator
|
|
19860
|
+
* @export
|
|
19861
|
+
*/
|
|
19862
|
+
const JobEnvironmentVariableApiAxiosParamCreator = function (configuration) {
|
|
19863
|
+
return {
|
|
19864
|
+
/**
|
|
19865
|
+
* - Add an environment variable to the job.
|
|
19866
|
+
* @summary Add an environment variable to the job
|
|
19867
|
+
* @param {EnvironmentVariableRequest} [environmentVariableRequest]
|
|
19868
|
+
* @param {*} [options] Override http request option.
|
|
19869
|
+
* @throws {RequiredError}
|
|
19870
|
+
*/
|
|
19871
|
+
createJobEnvironmentVariable: (environmentVariableRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
19872
|
+
const localVarPath = `/job/{jobId}/environmentVariable`;
|
|
19873
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19874
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19875
|
+
let baseOptions;
|
|
19876
|
+
if (configuration) {
|
|
19877
|
+
baseOptions = configuration.baseOptions;
|
|
19878
|
+
}
|
|
19879
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
19880
|
+
const localVarHeaderParameter = {};
|
|
19881
|
+
const localVarQueryParameter = {};
|
|
19882
|
+
// authentication bearerAuth required
|
|
19883
|
+
// http bearer authentication required
|
|
19884
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
19885
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
19886
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
19887
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19888
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
19889
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(environmentVariableRequest, localVarRequestOptions, configuration);
|
|
19890
|
+
return {
|
|
19891
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
19892
|
+
options: localVarRequestOptions,
|
|
19893
|
+
};
|
|
19894
|
+
}),
|
|
19895
|
+
/**
|
|
19896
|
+
* - 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
|
|
19897
|
+
* @summary Create an environment variable alias at the job level
|
|
19898
|
+
* @param {string} environmentVariableId Environment Variable ID
|
|
19899
|
+
* @param {Key} [key]
|
|
19900
|
+
* @param {*} [options] Override http request option.
|
|
19901
|
+
* @throws {RequiredError}
|
|
19902
|
+
*/
|
|
19903
|
+
createJobEnvironmentVariableAlias: (environmentVariableId, key, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
19904
|
+
// verify required parameter 'environmentVariableId' is not null or undefined
|
|
19905
|
+
(0, common_1.assertParamExists)('createJobEnvironmentVariableAlias', 'environmentVariableId', environmentVariableId);
|
|
19906
|
+
const localVarPath = `/job/{jobId}/environmentVariable/{environmentVariableId}/alias`
|
|
19907
|
+
.replace(`{${"environmentVariableId"}}`, encodeURIComponent(String(environmentVariableId)));
|
|
19908
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19909
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19910
|
+
let baseOptions;
|
|
19911
|
+
if (configuration) {
|
|
19912
|
+
baseOptions = configuration.baseOptions;
|
|
19913
|
+
}
|
|
19914
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
19915
|
+
const localVarHeaderParameter = {};
|
|
19916
|
+
const localVarQueryParameter = {};
|
|
19917
|
+
// authentication bearerAuth required
|
|
19918
|
+
// http bearer authentication required
|
|
19919
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
19920
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
19921
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
19922
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19923
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
19924
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(key, localVarRequestOptions, configuration);
|
|
19925
|
+
return {
|
|
19926
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
19927
|
+
options: localVarRequestOptions,
|
|
19928
|
+
};
|
|
19929
|
+
}),
|
|
19930
|
+
/**
|
|
19931
|
+
* - 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
|
|
19932
|
+
* @summary Create an environment variable override at the job level
|
|
19933
|
+
* @param {string} environmentVariableId Environment Variable ID
|
|
19934
|
+
* @param {Value} [value]
|
|
19935
|
+
* @param {*} [options] Override http request option.
|
|
19936
|
+
* @throws {RequiredError}
|
|
19937
|
+
*/
|
|
19938
|
+
createJobEnvironmentVariableOverride: (environmentVariableId, value, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
19939
|
+
// verify required parameter 'environmentVariableId' is not null or undefined
|
|
19940
|
+
(0, common_1.assertParamExists)('createJobEnvironmentVariableOverride', 'environmentVariableId', environmentVariableId);
|
|
19941
|
+
const localVarPath = `/job/{jobId}/environmentVariable/{environmentVariableId}/override`
|
|
19942
|
+
.replace(`{${"environmentVariableId"}}`, encodeURIComponent(String(environmentVariableId)));
|
|
19943
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19944
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19945
|
+
let baseOptions;
|
|
19946
|
+
if (configuration) {
|
|
19947
|
+
baseOptions = configuration.baseOptions;
|
|
19948
|
+
}
|
|
19949
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
19950
|
+
const localVarHeaderParameter = {};
|
|
19951
|
+
const localVarQueryParameter = {};
|
|
19952
|
+
// authentication bearerAuth required
|
|
19953
|
+
// http bearer authentication required
|
|
19954
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
19955
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
19956
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
19957
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19958
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
19959
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(value, localVarRequestOptions, configuration);
|
|
19960
|
+
return {
|
|
19961
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
19962
|
+
options: localVarRequestOptions,
|
|
19963
|
+
};
|
|
19964
|
+
}),
|
|
19965
|
+
/**
|
|
19966
|
+
* - 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
|
|
19967
|
+
* @summary Delete an environment variable from a job
|
|
19968
|
+
* @param {string} environmentVariableId Environment Variable ID
|
|
19969
|
+
* @param {*} [options] Override http request option.
|
|
19970
|
+
* @throws {RequiredError}
|
|
19971
|
+
*/
|
|
19972
|
+
deleteJobEnvironmentVariable: (environmentVariableId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
19973
|
+
// verify required parameter 'environmentVariableId' is not null or undefined
|
|
19974
|
+
(0, common_1.assertParamExists)('deleteJobEnvironmentVariable', 'environmentVariableId', environmentVariableId);
|
|
19975
|
+
const localVarPath = `/job/{jobId}/environmentVariable/{environmentVariableId}`
|
|
19976
|
+
.replace(`{${"environmentVariableId"}}`, encodeURIComponent(String(environmentVariableId)));
|
|
19977
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19978
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19979
|
+
let baseOptions;
|
|
19980
|
+
if (configuration) {
|
|
19981
|
+
baseOptions = configuration.baseOptions;
|
|
19982
|
+
}
|
|
19983
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
19984
|
+
const localVarHeaderParameter = {};
|
|
19985
|
+
const localVarQueryParameter = {};
|
|
19986
|
+
// authentication bearerAuth required
|
|
19987
|
+
// http bearer authentication required
|
|
19988
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
19989
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
19990
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19991
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
19992
|
+
return {
|
|
19993
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
19994
|
+
options: localVarRequestOptions,
|
|
19995
|
+
};
|
|
19996
|
+
}),
|
|
19997
|
+
/**
|
|
19998
|
+
* - 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)
|
|
19999
|
+
* @summary Edit an environment variable belonging to the job
|
|
20000
|
+
* @param {string} environmentVariableId Environment Variable ID
|
|
20001
|
+
* @param {EnvironmentVariableEditRequest} environmentVariableEditRequest
|
|
20002
|
+
* @param {*} [options] Override http request option.
|
|
20003
|
+
* @throws {RequiredError}
|
|
20004
|
+
*/
|
|
20005
|
+
editJobEnvironmentVariable: (environmentVariableId, environmentVariableEditRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
20006
|
+
// verify required parameter 'environmentVariableId' is not null or undefined
|
|
20007
|
+
(0, common_1.assertParamExists)('editJobEnvironmentVariable', 'environmentVariableId', environmentVariableId);
|
|
20008
|
+
// verify required parameter 'environmentVariableEditRequest' is not null or undefined
|
|
20009
|
+
(0, common_1.assertParamExists)('editJobEnvironmentVariable', 'environmentVariableEditRequest', environmentVariableEditRequest);
|
|
20010
|
+
const localVarPath = `/job/{jobId}/environmentVariable/{environmentVariableId}`
|
|
20011
|
+
.replace(`{${"environmentVariableId"}}`, encodeURIComponent(String(environmentVariableId)));
|
|
20012
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20013
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
20014
|
+
let baseOptions;
|
|
20015
|
+
if (configuration) {
|
|
20016
|
+
baseOptions = configuration.baseOptions;
|
|
20017
|
+
}
|
|
20018
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
20019
|
+
const localVarHeaderParameter = {};
|
|
20020
|
+
const localVarQueryParameter = {};
|
|
20021
|
+
// authentication bearerAuth required
|
|
20022
|
+
// http bearer authentication required
|
|
20023
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
20024
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
20025
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
20026
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20027
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
20028
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(environmentVariableEditRequest, localVarRequestOptions, configuration);
|
|
20029
|
+
return {
|
|
20030
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
20031
|
+
options: localVarRequestOptions,
|
|
20032
|
+
};
|
|
20033
|
+
}),
|
|
20034
|
+
/**
|
|
20035
|
+
* Import environment variables in a defined scope, with a defined visibility.
|
|
20036
|
+
* @summary Import variables
|
|
20037
|
+
* @param {VariableImportRequest} [variableImportRequest]
|
|
20038
|
+
* @param {*} [options] Override http request option.
|
|
20039
|
+
* @throws {RequiredError}
|
|
20040
|
+
*/
|
|
20041
|
+
importJobEnvironmentVariable: (variableImportRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
20042
|
+
const localVarPath = `/job/{jobId}/environmentVariable/import`;
|
|
20043
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20044
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
20045
|
+
let baseOptions;
|
|
20046
|
+
if (configuration) {
|
|
20047
|
+
baseOptions = configuration.baseOptions;
|
|
20048
|
+
}
|
|
20049
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
20050
|
+
const localVarHeaderParameter = {};
|
|
20051
|
+
const localVarQueryParameter = {};
|
|
20052
|
+
// authentication bearerAuth required
|
|
20053
|
+
// http bearer authentication required
|
|
20054
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
20055
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
20056
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
20057
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20058
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
20059
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(variableImportRequest, localVarRequestOptions, configuration);
|
|
20060
|
+
return {
|
|
20061
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
20062
|
+
options: localVarRequestOptions,
|
|
20063
|
+
};
|
|
20064
|
+
}),
|
|
20065
|
+
/**
|
|
20066
|
+
*
|
|
20067
|
+
* @summary List environment variables
|
|
20068
|
+
* @param {*} [options] Override http request option.
|
|
20069
|
+
* @throws {RequiredError}
|
|
20070
|
+
*/
|
|
20071
|
+
listJobEnvironmentVariable: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
20072
|
+
const localVarPath = `/job/{jobId}/environmentVariable`;
|
|
20073
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20074
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
20075
|
+
let baseOptions;
|
|
20076
|
+
if (configuration) {
|
|
20077
|
+
baseOptions = configuration.baseOptions;
|
|
20078
|
+
}
|
|
20079
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
20080
|
+
const localVarHeaderParameter = {};
|
|
20081
|
+
const localVarQueryParameter = {};
|
|
20082
|
+
// authentication bearerAuth required
|
|
20083
|
+
// http bearer authentication required
|
|
20084
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
20085
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
20086
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20087
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
20088
|
+
return {
|
|
20089
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
20090
|
+
options: localVarRequestOptions,
|
|
20091
|
+
};
|
|
20092
|
+
}),
|
|
20093
|
+
};
|
|
20094
|
+
};
|
|
20095
|
+
exports.JobEnvironmentVariableApiAxiosParamCreator = JobEnvironmentVariableApiAxiosParamCreator;
|
|
20096
|
+
/**
|
|
20097
|
+
* JobEnvironmentVariableApi - functional programming interface
|
|
20098
|
+
* @export
|
|
20099
|
+
*/
|
|
20100
|
+
const JobEnvironmentVariableApiFp = function (configuration) {
|
|
20101
|
+
const localVarAxiosParamCreator = (0, exports.JobEnvironmentVariableApiAxiosParamCreator)(configuration);
|
|
20102
|
+
return {
|
|
20103
|
+
/**
|
|
20104
|
+
* - Add an environment variable to the job.
|
|
20105
|
+
* @summary Add an environment variable to the job
|
|
20106
|
+
* @param {EnvironmentVariableRequest} [environmentVariableRequest]
|
|
20107
|
+
* @param {*} [options] Override http request option.
|
|
20108
|
+
* @throws {RequiredError}
|
|
20109
|
+
*/
|
|
20110
|
+
createJobEnvironmentVariable(environmentVariableRequest, options) {
|
|
20111
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
20112
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createJobEnvironmentVariable(environmentVariableRequest, options);
|
|
20113
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
20114
|
+
});
|
|
20115
|
+
},
|
|
20116
|
+
/**
|
|
20117
|
+
* - 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
|
|
20118
|
+
* @summary Create an environment variable alias at the job level
|
|
20119
|
+
* @param {string} environmentVariableId Environment Variable ID
|
|
20120
|
+
* @param {Key} [key]
|
|
20121
|
+
* @param {*} [options] Override http request option.
|
|
20122
|
+
* @throws {RequiredError}
|
|
20123
|
+
*/
|
|
20124
|
+
createJobEnvironmentVariableAlias(environmentVariableId, key, options) {
|
|
20125
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
20126
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createJobEnvironmentVariableAlias(environmentVariableId, key, options);
|
|
20127
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
20128
|
+
});
|
|
20129
|
+
},
|
|
20130
|
+
/**
|
|
20131
|
+
* - 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
|
|
20132
|
+
* @summary Create an environment variable override at the job level
|
|
20133
|
+
* @param {string} environmentVariableId Environment Variable ID
|
|
20134
|
+
* @param {Value} [value]
|
|
20135
|
+
* @param {*} [options] Override http request option.
|
|
20136
|
+
* @throws {RequiredError}
|
|
20137
|
+
*/
|
|
20138
|
+
createJobEnvironmentVariableOverride(environmentVariableId, value, options) {
|
|
20139
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
20140
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createJobEnvironmentVariableOverride(environmentVariableId, value, options);
|
|
20141
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
20142
|
+
});
|
|
20143
|
+
},
|
|
20144
|
+
/**
|
|
20145
|
+
* - 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
|
|
20146
|
+
* @summary Delete an environment variable from a job
|
|
20147
|
+
* @param {string} environmentVariableId Environment Variable ID
|
|
20148
|
+
* @param {*} [options] Override http request option.
|
|
20149
|
+
* @throws {RequiredError}
|
|
20150
|
+
*/
|
|
20151
|
+
deleteJobEnvironmentVariable(environmentVariableId, options) {
|
|
20152
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
20153
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteJobEnvironmentVariable(environmentVariableId, options);
|
|
20154
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
20155
|
+
});
|
|
20156
|
+
},
|
|
20157
|
+
/**
|
|
20158
|
+
* - 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)
|
|
20159
|
+
* @summary Edit an environment variable belonging to the job
|
|
20160
|
+
* @param {string} environmentVariableId Environment Variable ID
|
|
20161
|
+
* @param {EnvironmentVariableEditRequest} environmentVariableEditRequest
|
|
20162
|
+
* @param {*} [options] Override http request option.
|
|
20163
|
+
* @throws {RequiredError}
|
|
20164
|
+
*/
|
|
20165
|
+
editJobEnvironmentVariable(environmentVariableId, environmentVariableEditRequest, options) {
|
|
20166
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
20167
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.editJobEnvironmentVariable(environmentVariableId, environmentVariableEditRequest, options);
|
|
20168
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
20169
|
+
});
|
|
20170
|
+
},
|
|
20171
|
+
/**
|
|
20172
|
+
* Import environment variables in a defined scope, with a defined visibility.
|
|
20173
|
+
* @summary Import variables
|
|
20174
|
+
* @param {VariableImportRequest} [variableImportRequest]
|
|
20175
|
+
* @param {*} [options] Override http request option.
|
|
20176
|
+
* @throws {RequiredError}
|
|
20177
|
+
*/
|
|
20178
|
+
importJobEnvironmentVariable(variableImportRequest, options) {
|
|
20179
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
20180
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.importJobEnvironmentVariable(variableImportRequest, options);
|
|
20181
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
20182
|
+
});
|
|
20183
|
+
},
|
|
20184
|
+
/**
|
|
20185
|
+
*
|
|
20186
|
+
* @summary List environment variables
|
|
20187
|
+
* @param {*} [options] Override http request option.
|
|
20188
|
+
* @throws {RequiredError}
|
|
20189
|
+
*/
|
|
20190
|
+
listJobEnvironmentVariable(options) {
|
|
20191
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
20192
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listJobEnvironmentVariable(options);
|
|
20193
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
20194
|
+
});
|
|
20195
|
+
},
|
|
20196
|
+
};
|
|
20197
|
+
};
|
|
20198
|
+
exports.JobEnvironmentVariableApiFp = JobEnvironmentVariableApiFp;
|
|
20199
|
+
/**
|
|
20200
|
+
* JobEnvironmentVariableApi - factory interface
|
|
20201
|
+
* @export
|
|
20202
|
+
*/
|
|
20203
|
+
const JobEnvironmentVariableApiFactory = function (configuration, basePath, axios) {
|
|
20204
|
+
const localVarFp = (0, exports.JobEnvironmentVariableApiFp)(configuration);
|
|
20205
|
+
return {
|
|
20206
|
+
/**
|
|
20207
|
+
* - Add an environment variable to the job.
|
|
20208
|
+
* @summary Add an environment variable to the job
|
|
20209
|
+
* @param {EnvironmentVariableRequest} [environmentVariableRequest]
|
|
20210
|
+
* @param {*} [options] Override http request option.
|
|
20211
|
+
* @throws {RequiredError}
|
|
20212
|
+
*/
|
|
20213
|
+
createJobEnvironmentVariable(environmentVariableRequest, options) {
|
|
20214
|
+
return localVarFp.createJobEnvironmentVariable(environmentVariableRequest, options).then((request) => request(axios, basePath));
|
|
20215
|
+
},
|
|
20216
|
+
/**
|
|
20217
|
+
* - 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
|
|
20218
|
+
* @summary Create an environment variable alias at the job level
|
|
20219
|
+
* @param {string} environmentVariableId Environment Variable ID
|
|
20220
|
+
* @param {Key} [key]
|
|
20221
|
+
* @param {*} [options] Override http request option.
|
|
20222
|
+
* @throws {RequiredError}
|
|
20223
|
+
*/
|
|
20224
|
+
createJobEnvironmentVariableAlias(environmentVariableId, key, options) {
|
|
20225
|
+
return localVarFp.createJobEnvironmentVariableAlias(environmentVariableId, key, options).then((request) => request(axios, basePath));
|
|
20226
|
+
},
|
|
20227
|
+
/**
|
|
20228
|
+
* - 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
|
|
20229
|
+
* @summary Create an environment variable override at the job level
|
|
20230
|
+
* @param {string} environmentVariableId Environment Variable ID
|
|
20231
|
+
* @param {Value} [value]
|
|
20232
|
+
* @param {*} [options] Override http request option.
|
|
20233
|
+
* @throws {RequiredError}
|
|
20234
|
+
*/
|
|
20235
|
+
createJobEnvironmentVariableOverride(environmentVariableId, value, options) {
|
|
20236
|
+
return localVarFp.createJobEnvironmentVariableOverride(environmentVariableId, value, options).then((request) => request(axios, basePath));
|
|
20237
|
+
},
|
|
20238
|
+
/**
|
|
20239
|
+
* - 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
|
|
20240
|
+
* @summary Delete an environment variable from a job
|
|
20241
|
+
* @param {string} environmentVariableId Environment Variable ID
|
|
20242
|
+
* @param {*} [options] Override http request option.
|
|
20243
|
+
* @throws {RequiredError}
|
|
20244
|
+
*/
|
|
20245
|
+
deleteJobEnvironmentVariable(environmentVariableId, options) {
|
|
20246
|
+
return localVarFp.deleteJobEnvironmentVariable(environmentVariableId, options).then((request) => request(axios, basePath));
|
|
20247
|
+
},
|
|
20248
|
+
/**
|
|
20249
|
+
* - 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)
|
|
20250
|
+
* @summary Edit an environment variable belonging to the job
|
|
20251
|
+
* @param {string} environmentVariableId Environment Variable ID
|
|
20252
|
+
* @param {EnvironmentVariableEditRequest} environmentVariableEditRequest
|
|
20253
|
+
* @param {*} [options] Override http request option.
|
|
20254
|
+
* @throws {RequiredError}
|
|
20255
|
+
*/
|
|
20256
|
+
editJobEnvironmentVariable(environmentVariableId, environmentVariableEditRequest, options) {
|
|
20257
|
+
return localVarFp.editJobEnvironmentVariable(environmentVariableId, environmentVariableEditRequest, options).then((request) => request(axios, basePath));
|
|
20258
|
+
},
|
|
20259
|
+
/**
|
|
20260
|
+
* Import environment variables in a defined scope, with a defined visibility.
|
|
20261
|
+
* @summary Import variables
|
|
20262
|
+
* @param {VariableImportRequest} [variableImportRequest]
|
|
20263
|
+
* @param {*} [options] Override http request option.
|
|
20264
|
+
* @throws {RequiredError}
|
|
20265
|
+
*/
|
|
20266
|
+
importJobEnvironmentVariable(variableImportRequest, options) {
|
|
20267
|
+
return localVarFp.importJobEnvironmentVariable(variableImportRequest, options).then((request) => request(axios, basePath));
|
|
20268
|
+
},
|
|
20269
|
+
/**
|
|
20270
|
+
*
|
|
20271
|
+
* @summary List environment variables
|
|
20272
|
+
* @param {*} [options] Override http request option.
|
|
20273
|
+
* @throws {RequiredError}
|
|
20274
|
+
*/
|
|
20275
|
+
listJobEnvironmentVariable(options) {
|
|
20276
|
+
return localVarFp.listJobEnvironmentVariable(options).then((request) => request(axios, basePath));
|
|
20277
|
+
},
|
|
20278
|
+
};
|
|
20279
|
+
};
|
|
20280
|
+
exports.JobEnvironmentVariableApiFactory = JobEnvironmentVariableApiFactory;
|
|
20281
|
+
/**
|
|
20282
|
+
* JobEnvironmentVariableApi - object-oriented interface
|
|
20283
|
+
* @export
|
|
20284
|
+
* @class JobEnvironmentVariableApi
|
|
20285
|
+
* @extends {BaseAPI}
|
|
20286
|
+
*/
|
|
20287
|
+
class JobEnvironmentVariableApi extends base_1.BaseAPI {
|
|
20288
|
+
/**
|
|
20289
|
+
* - Add an environment variable to the job.
|
|
20290
|
+
* @summary Add an environment variable to the job
|
|
20291
|
+
* @param {EnvironmentVariableRequest} [environmentVariableRequest]
|
|
20292
|
+
* @param {*} [options] Override http request option.
|
|
20293
|
+
* @throws {RequiredError}
|
|
20294
|
+
* @memberof JobEnvironmentVariableApi
|
|
20295
|
+
*/
|
|
20296
|
+
createJobEnvironmentVariable(environmentVariableRequest, options) {
|
|
20297
|
+
return (0, exports.JobEnvironmentVariableApiFp)(this.configuration).createJobEnvironmentVariable(environmentVariableRequest, options).then((request) => request(this.axios, this.basePath));
|
|
20298
|
+
}
|
|
20299
|
+
/**
|
|
20300
|
+
* - 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
|
|
20301
|
+
* @summary Create an environment variable alias at the job level
|
|
20302
|
+
* @param {string} environmentVariableId Environment Variable ID
|
|
20303
|
+
* @param {Key} [key]
|
|
20304
|
+
* @param {*} [options] Override http request option.
|
|
20305
|
+
* @throws {RequiredError}
|
|
20306
|
+
* @memberof JobEnvironmentVariableApi
|
|
20307
|
+
*/
|
|
20308
|
+
createJobEnvironmentVariableAlias(environmentVariableId, key, options) {
|
|
20309
|
+
return (0, exports.JobEnvironmentVariableApiFp)(this.configuration).createJobEnvironmentVariableAlias(environmentVariableId, key, options).then((request) => request(this.axios, this.basePath));
|
|
20310
|
+
}
|
|
20311
|
+
/**
|
|
20312
|
+
* - 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
|
|
20313
|
+
* @summary Create an environment variable override at the job level
|
|
20314
|
+
* @param {string} environmentVariableId Environment Variable ID
|
|
20315
|
+
* @param {Value} [value]
|
|
20316
|
+
* @param {*} [options] Override http request option.
|
|
20317
|
+
* @throws {RequiredError}
|
|
20318
|
+
* @memberof JobEnvironmentVariableApi
|
|
20319
|
+
*/
|
|
20320
|
+
createJobEnvironmentVariableOverride(environmentVariableId, value, options) {
|
|
20321
|
+
return (0, exports.JobEnvironmentVariableApiFp)(this.configuration).createJobEnvironmentVariableOverride(environmentVariableId, value, options).then((request) => request(this.axios, this.basePath));
|
|
20322
|
+
}
|
|
20323
|
+
/**
|
|
20324
|
+
* - 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
|
|
20325
|
+
* @summary Delete an environment variable from a job
|
|
20326
|
+
* @param {string} environmentVariableId Environment Variable ID
|
|
20327
|
+
* @param {*} [options] Override http request option.
|
|
20328
|
+
* @throws {RequiredError}
|
|
20329
|
+
* @memberof JobEnvironmentVariableApi
|
|
20330
|
+
*/
|
|
20331
|
+
deleteJobEnvironmentVariable(environmentVariableId, options) {
|
|
20332
|
+
return (0, exports.JobEnvironmentVariableApiFp)(this.configuration).deleteJobEnvironmentVariable(environmentVariableId, options).then((request) => request(this.axios, this.basePath));
|
|
20333
|
+
}
|
|
20334
|
+
/**
|
|
20335
|
+
* - 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)
|
|
20336
|
+
* @summary Edit an environment variable belonging to the job
|
|
20337
|
+
* @param {string} environmentVariableId Environment Variable ID
|
|
20338
|
+
* @param {EnvironmentVariableEditRequest} environmentVariableEditRequest
|
|
20339
|
+
* @param {*} [options] Override http request option.
|
|
20340
|
+
* @throws {RequiredError}
|
|
20341
|
+
* @memberof JobEnvironmentVariableApi
|
|
20342
|
+
*/
|
|
20343
|
+
editJobEnvironmentVariable(environmentVariableId, environmentVariableEditRequest, options) {
|
|
20344
|
+
return (0, exports.JobEnvironmentVariableApiFp)(this.configuration).editJobEnvironmentVariable(environmentVariableId, environmentVariableEditRequest, options).then((request) => request(this.axios, this.basePath));
|
|
20345
|
+
}
|
|
20346
|
+
/**
|
|
20347
|
+
* Import environment variables in a defined scope, with a defined visibility.
|
|
20348
|
+
* @summary Import variables
|
|
20349
|
+
* @param {VariableImportRequest} [variableImportRequest]
|
|
20350
|
+
* @param {*} [options] Override http request option.
|
|
20351
|
+
* @throws {RequiredError}
|
|
20352
|
+
* @memberof JobEnvironmentVariableApi
|
|
20353
|
+
*/
|
|
20354
|
+
importJobEnvironmentVariable(variableImportRequest, options) {
|
|
20355
|
+
return (0, exports.JobEnvironmentVariableApiFp)(this.configuration).importJobEnvironmentVariable(variableImportRequest, options).then((request) => request(this.axios, this.basePath));
|
|
20356
|
+
}
|
|
20357
|
+
/**
|
|
20358
|
+
*
|
|
20359
|
+
* @summary List environment variables
|
|
20360
|
+
* @param {*} [options] Override http request option.
|
|
20361
|
+
* @throws {RequiredError}
|
|
20362
|
+
* @memberof JobEnvironmentVariableApi
|
|
20363
|
+
*/
|
|
20364
|
+
listJobEnvironmentVariable(options) {
|
|
20365
|
+
return (0, exports.JobEnvironmentVariableApiFp)(this.configuration).listJobEnvironmentVariable(options).then((request) => request(this.axios, this.basePath));
|
|
20366
|
+
}
|
|
20367
|
+
}
|
|
20368
|
+
exports.JobEnvironmentVariableApi = JobEnvironmentVariableApi;
|
|
20369
|
+
/**
|
|
20370
|
+
* JobMainCallsApi - axios parameter creator
|
|
20371
|
+
* @export
|
|
20372
|
+
*/
|
|
20373
|
+
const JobMainCallsApiAxiosParamCreator = function (configuration) {
|
|
20374
|
+
return {
|
|
20375
|
+
/**
|
|
20376
|
+
* To delete the job you must have the admin permission
|
|
20377
|
+
* @summary Delete job
|
|
20378
|
+
* @param {*} [options] Override http request option.
|
|
20379
|
+
* @throws {RequiredError}
|
|
20380
|
+
*/
|
|
20381
|
+
deleteJob: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
20382
|
+
const localVarPath = `/job/{jobId}`;
|
|
20383
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20384
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
20385
|
+
let baseOptions;
|
|
20386
|
+
if (configuration) {
|
|
20387
|
+
baseOptions = configuration.baseOptions;
|
|
20388
|
+
}
|
|
20389
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
20390
|
+
const localVarHeaderParameter = {};
|
|
20391
|
+
const localVarQueryParameter = {};
|
|
20392
|
+
// authentication bearerAuth required
|
|
20393
|
+
// http bearer authentication required
|
|
20394
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
20395
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
20396
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20397
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
20398
|
+
return {
|
|
20399
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
20400
|
+
options: localVarRequestOptions,
|
|
20401
|
+
};
|
|
20402
|
+
}),
|
|
20403
|
+
/**
|
|
20404
|
+
* - To edit the job you must have the admin permission.
|
|
20405
|
+
* @summary Edit job
|
|
20406
|
+
* @param {JobRequest} [jobRequest]
|
|
20407
|
+
* @param {*} [options] Override http request option.
|
|
20408
|
+
* @throws {RequiredError}
|
|
20409
|
+
*/
|
|
20410
|
+
editJob: (jobRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
20411
|
+
const localVarPath = `/job/{jobId}`;
|
|
20412
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20413
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
20414
|
+
let baseOptions;
|
|
20415
|
+
if (configuration) {
|
|
20416
|
+
baseOptions = configuration.baseOptions;
|
|
20417
|
+
}
|
|
20418
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
20419
|
+
const localVarHeaderParameter = {};
|
|
20420
|
+
const localVarQueryParameter = {};
|
|
20421
|
+
// authentication bearerAuth required
|
|
20422
|
+
// http bearer authentication required
|
|
20423
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
20424
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
20425
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
20426
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20427
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
20428
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(jobRequest, localVarRequestOptions, configuration);
|
|
20429
|
+
return {
|
|
20430
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
20431
|
+
options: localVarRequestOptions,
|
|
20432
|
+
};
|
|
20433
|
+
}),
|
|
20434
|
+
/**
|
|
20435
|
+
*
|
|
20436
|
+
* @summary Get job by ID
|
|
20437
|
+
* @param {string} jobId Job ID
|
|
20438
|
+
* @param {*} [options] Override http request option.
|
|
20439
|
+
* @throws {RequiredError}
|
|
20440
|
+
*/
|
|
20441
|
+
getJob: (jobId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
20442
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
20443
|
+
(0, common_1.assertParamExists)('getJob', 'jobId', jobId);
|
|
20444
|
+
const localVarPath = `/job/{jobId}`
|
|
20445
|
+
.replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
|
|
20446
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20447
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
20448
|
+
let baseOptions;
|
|
20449
|
+
if (configuration) {
|
|
20450
|
+
baseOptions = configuration.baseOptions;
|
|
20451
|
+
}
|
|
20452
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
20453
|
+
const localVarHeaderParameter = {};
|
|
20454
|
+
const localVarQueryParameter = {};
|
|
20455
|
+
// authentication bearerAuth required
|
|
20456
|
+
// http bearer authentication required
|
|
20457
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
20458
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
20459
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20460
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
20461
|
+
return {
|
|
20462
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
20463
|
+
options: localVarRequestOptions,
|
|
20464
|
+
};
|
|
20465
|
+
}),
|
|
20466
|
+
/**
|
|
20467
|
+
*
|
|
20468
|
+
* @summary Get job status
|
|
20469
|
+
* @param {*} [options] Override http request option.
|
|
20470
|
+
* @throws {RequiredError}
|
|
20471
|
+
*/
|
|
20472
|
+
getJobStatus: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
20473
|
+
const localVarPath = `/job/{jobId}/status`;
|
|
20474
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20475
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
20476
|
+
let baseOptions;
|
|
20477
|
+
if (configuration) {
|
|
20478
|
+
baseOptions = configuration.baseOptions;
|
|
20479
|
+
}
|
|
20480
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
20481
|
+
const localVarHeaderParameter = {};
|
|
20482
|
+
const localVarQueryParameter = {};
|
|
20483
|
+
// authentication bearerAuth required
|
|
20484
|
+
// http bearer authentication required
|
|
20485
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
20486
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
20487
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20488
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
20489
|
+
return {
|
|
20490
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
20491
|
+
options: localVarRequestOptions,
|
|
20492
|
+
};
|
|
20493
|
+
}),
|
|
20494
|
+
};
|
|
20495
|
+
};
|
|
20496
|
+
exports.JobMainCallsApiAxiosParamCreator = JobMainCallsApiAxiosParamCreator;
|
|
20497
|
+
/**
|
|
20498
|
+
* JobMainCallsApi - functional programming interface
|
|
20499
|
+
* @export
|
|
20500
|
+
*/
|
|
20501
|
+
const JobMainCallsApiFp = function (configuration) {
|
|
20502
|
+
const localVarAxiosParamCreator = (0, exports.JobMainCallsApiAxiosParamCreator)(configuration);
|
|
20503
|
+
return {
|
|
20504
|
+
/**
|
|
20505
|
+
* To delete the job you must have the admin permission
|
|
20506
|
+
* @summary Delete job
|
|
20507
|
+
* @param {*} [options] Override http request option.
|
|
20508
|
+
* @throws {RequiredError}
|
|
20509
|
+
*/
|
|
20510
|
+
deleteJob(options) {
|
|
20511
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
20512
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteJob(options);
|
|
20513
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
20514
|
+
});
|
|
20515
|
+
},
|
|
20516
|
+
/**
|
|
20517
|
+
* - To edit the job you must have the admin permission.
|
|
20518
|
+
* @summary Edit job
|
|
20519
|
+
* @param {JobRequest} [jobRequest]
|
|
20520
|
+
* @param {*} [options] Override http request option.
|
|
20521
|
+
* @throws {RequiredError}
|
|
20522
|
+
*/
|
|
20523
|
+
editJob(jobRequest, options) {
|
|
20524
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
20525
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.editJob(jobRequest, options);
|
|
20526
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
20527
|
+
});
|
|
20528
|
+
},
|
|
20529
|
+
/**
|
|
20530
|
+
*
|
|
20531
|
+
* @summary Get job by ID
|
|
20532
|
+
* @param {string} jobId Job ID
|
|
20533
|
+
* @param {*} [options] Override http request option.
|
|
20534
|
+
* @throws {RequiredError}
|
|
20535
|
+
*/
|
|
20536
|
+
getJob(jobId, options) {
|
|
20537
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
20538
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getJob(jobId, options);
|
|
20539
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
20540
|
+
});
|
|
20541
|
+
},
|
|
20542
|
+
/**
|
|
20543
|
+
*
|
|
20544
|
+
* @summary Get job status
|
|
20545
|
+
* @param {*} [options] Override http request option.
|
|
20546
|
+
* @throws {RequiredError}
|
|
20547
|
+
*/
|
|
20548
|
+
getJobStatus(options) {
|
|
20549
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
20550
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getJobStatus(options);
|
|
20551
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
20552
|
+
});
|
|
20553
|
+
},
|
|
20554
|
+
};
|
|
20555
|
+
};
|
|
20556
|
+
exports.JobMainCallsApiFp = JobMainCallsApiFp;
|
|
20557
|
+
/**
|
|
20558
|
+
* JobMainCallsApi - factory interface
|
|
20559
|
+
* @export
|
|
20560
|
+
*/
|
|
20561
|
+
const JobMainCallsApiFactory = function (configuration, basePath, axios) {
|
|
20562
|
+
const localVarFp = (0, exports.JobMainCallsApiFp)(configuration);
|
|
20563
|
+
return {
|
|
20564
|
+
/**
|
|
20565
|
+
* To delete the job you must have the admin permission
|
|
20566
|
+
* @summary Delete job
|
|
20567
|
+
* @param {*} [options] Override http request option.
|
|
20568
|
+
* @throws {RequiredError}
|
|
20569
|
+
*/
|
|
20570
|
+
deleteJob(options) {
|
|
20571
|
+
return localVarFp.deleteJob(options).then((request) => request(axios, basePath));
|
|
20572
|
+
},
|
|
20573
|
+
/**
|
|
20574
|
+
* - To edit the job you must have the admin permission.
|
|
20575
|
+
* @summary Edit job
|
|
20576
|
+
* @param {JobRequest} [jobRequest]
|
|
20577
|
+
* @param {*} [options] Override http request option.
|
|
20578
|
+
* @throws {RequiredError}
|
|
20579
|
+
*/
|
|
20580
|
+
editJob(jobRequest, options) {
|
|
20581
|
+
return localVarFp.editJob(jobRequest, options).then((request) => request(axios, basePath));
|
|
20582
|
+
},
|
|
20583
|
+
/**
|
|
20584
|
+
*
|
|
20585
|
+
* @summary Get job by ID
|
|
20586
|
+
* @param {string} jobId Job ID
|
|
20587
|
+
* @param {*} [options] Override http request option.
|
|
20588
|
+
* @throws {RequiredError}
|
|
20589
|
+
*/
|
|
20590
|
+
getJob(jobId, options) {
|
|
20591
|
+
return localVarFp.getJob(jobId, options).then((request) => request(axios, basePath));
|
|
20592
|
+
},
|
|
20593
|
+
/**
|
|
20594
|
+
*
|
|
20595
|
+
* @summary Get job status
|
|
20596
|
+
* @param {*} [options] Override http request option.
|
|
20597
|
+
* @throws {RequiredError}
|
|
20598
|
+
*/
|
|
20599
|
+
getJobStatus(options) {
|
|
20600
|
+
return localVarFp.getJobStatus(options).then((request) => request(axios, basePath));
|
|
20601
|
+
},
|
|
20602
|
+
};
|
|
20603
|
+
};
|
|
20604
|
+
exports.JobMainCallsApiFactory = JobMainCallsApiFactory;
|
|
20605
|
+
/**
|
|
20606
|
+
* JobMainCallsApi - object-oriented interface
|
|
20607
|
+
* @export
|
|
20608
|
+
* @class JobMainCallsApi
|
|
20609
|
+
* @extends {BaseAPI}
|
|
20610
|
+
*/
|
|
20611
|
+
class JobMainCallsApi extends base_1.BaseAPI {
|
|
20612
|
+
/**
|
|
20613
|
+
* To delete the job you must have the admin permission
|
|
20614
|
+
* @summary Delete job
|
|
20615
|
+
* @param {*} [options] Override http request option.
|
|
20616
|
+
* @throws {RequiredError}
|
|
20617
|
+
* @memberof JobMainCallsApi
|
|
20618
|
+
*/
|
|
20619
|
+
deleteJob(options) {
|
|
20620
|
+
return (0, exports.JobMainCallsApiFp)(this.configuration).deleteJob(options).then((request) => request(this.axios, this.basePath));
|
|
20621
|
+
}
|
|
20622
|
+
/**
|
|
20623
|
+
* - To edit the job you must have the admin permission.
|
|
20624
|
+
* @summary Edit job
|
|
20625
|
+
* @param {JobRequest} [jobRequest]
|
|
20626
|
+
* @param {*} [options] Override http request option.
|
|
20627
|
+
* @throws {RequiredError}
|
|
20628
|
+
* @memberof JobMainCallsApi
|
|
20629
|
+
*/
|
|
20630
|
+
editJob(jobRequest, options) {
|
|
20631
|
+
return (0, exports.JobMainCallsApiFp)(this.configuration).editJob(jobRequest, options).then((request) => request(this.axios, this.basePath));
|
|
20632
|
+
}
|
|
20633
|
+
/**
|
|
20634
|
+
*
|
|
20635
|
+
* @summary Get job by ID
|
|
20636
|
+
* @param {string} jobId Job ID
|
|
20637
|
+
* @param {*} [options] Override http request option.
|
|
20638
|
+
* @throws {RequiredError}
|
|
20639
|
+
* @memberof JobMainCallsApi
|
|
20640
|
+
*/
|
|
20641
|
+
getJob(jobId, options) {
|
|
20642
|
+
return (0, exports.JobMainCallsApiFp)(this.configuration).getJob(jobId, options).then((request) => request(this.axios, this.basePath));
|
|
20643
|
+
}
|
|
20644
|
+
/**
|
|
20645
|
+
*
|
|
20646
|
+
* @summary Get job status
|
|
20647
|
+
* @param {*} [options] Override http request option.
|
|
20648
|
+
* @throws {RequiredError}
|
|
20649
|
+
* @memberof JobMainCallsApi
|
|
20650
|
+
*/
|
|
20651
|
+
getJobStatus(options) {
|
|
20652
|
+
return (0, exports.JobMainCallsApiFp)(this.configuration).getJobStatus(options).then((request) => request(this.axios, this.basePath));
|
|
20653
|
+
}
|
|
20654
|
+
}
|
|
20655
|
+
exports.JobMainCallsApi = JobMainCallsApi;
|
|
20656
|
+
/**
|
|
20657
|
+
* JobMetricsApi - axios parameter creator
|
|
20658
|
+
* @export
|
|
20659
|
+
*/
|
|
20660
|
+
const JobMetricsApiAxiosParamCreator = function (configuration) {
|
|
20661
|
+
return {
|
|
20662
|
+
/**
|
|
20663
|
+
*
|
|
20664
|
+
* @summary List currently running instances of the job with their CPU and RAM metrics
|
|
20665
|
+
* @param {*} [options] Override http request option.
|
|
20666
|
+
* @throws {RequiredError}
|
|
20667
|
+
*/
|
|
20668
|
+
getJobCurrentInstance: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
20669
|
+
const localVarPath = `/job/{jobId}/instance`;
|
|
20670
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20671
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
20672
|
+
let baseOptions;
|
|
20673
|
+
if (configuration) {
|
|
20674
|
+
baseOptions = configuration.baseOptions;
|
|
20675
|
+
}
|
|
20676
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
20677
|
+
const localVarHeaderParameter = {};
|
|
20678
|
+
const localVarQueryParameter = {};
|
|
20679
|
+
// authentication bearerAuth required
|
|
20680
|
+
// http bearer authentication required
|
|
20681
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
20682
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
20683
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20684
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
20685
|
+
return {
|
|
20686
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
20687
|
+
options: localVarRequestOptions,
|
|
20688
|
+
};
|
|
20689
|
+
}),
|
|
20690
|
+
};
|
|
20691
|
+
};
|
|
20692
|
+
exports.JobMetricsApiAxiosParamCreator = JobMetricsApiAxiosParamCreator;
|
|
20693
|
+
/**
|
|
20694
|
+
* JobMetricsApi - functional programming interface
|
|
20695
|
+
* @export
|
|
20696
|
+
*/
|
|
20697
|
+
const JobMetricsApiFp = function (configuration) {
|
|
20698
|
+
const localVarAxiosParamCreator = (0, exports.JobMetricsApiAxiosParamCreator)(configuration);
|
|
20699
|
+
return {
|
|
20700
|
+
/**
|
|
20701
|
+
*
|
|
20702
|
+
* @summary List currently running instances of the job with their CPU and RAM metrics
|
|
20703
|
+
* @param {*} [options] Override http request option.
|
|
20704
|
+
* @throws {RequiredError}
|
|
20705
|
+
*/
|
|
20706
|
+
getJobCurrentInstance(options) {
|
|
20707
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
20708
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getJobCurrentInstance(options);
|
|
20709
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
20710
|
+
});
|
|
20711
|
+
},
|
|
20712
|
+
};
|
|
20713
|
+
};
|
|
20714
|
+
exports.JobMetricsApiFp = JobMetricsApiFp;
|
|
20715
|
+
/**
|
|
20716
|
+
* JobMetricsApi - factory interface
|
|
20717
|
+
* @export
|
|
20718
|
+
*/
|
|
20719
|
+
const JobMetricsApiFactory = function (configuration, basePath, axios) {
|
|
20720
|
+
const localVarFp = (0, exports.JobMetricsApiFp)(configuration);
|
|
20721
|
+
return {
|
|
20722
|
+
/**
|
|
20723
|
+
*
|
|
20724
|
+
* @summary List currently running instances of the job with their CPU and RAM metrics
|
|
20725
|
+
* @param {*} [options] Override http request option.
|
|
20726
|
+
* @throws {RequiredError}
|
|
20727
|
+
*/
|
|
20728
|
+
getJobCurrentInstance(options) {
|
|
20729
|
+
return localVarFp.getJobCurrentInstance(options).then((request) => request(axios, basePath));
|
|
20730
|
+
},
|
|
20731
|
+
};
|
|
20732
|
+
};
|
|
20733
|
+
exports.JobMetricsApiFactory = JobMetricsApiFactory;
|
|
20734
|
+
/**
|
|
20735
|
+
* JobMetricsApi - object-oriented interface
|
|
20736
|
+
* @export
|
|
20737
|
+
* @class JobMetricsApi
|
|
20738
|
+
* @extends {BaseAPI}
|
|
20739
|
+
*/
|
|
20740
|
+
class JobMetricsApi extends base_1.BaseAPI {
|
|
20741
|
+
/**
|
|
20742
|
+
*
|
|
20743
|
+
* @summary List currently running instances of the job with their CPU and RAM metrics
|
|
20744
|
+
* @param {*} [options] Override http request option.
|
|
20745
|
+
* @throws {RequiredError}
|
|
20746
|
+
* @memberof JobMetricsApi
|
|
20747
|
+
*/
|
|
20748
|
+
getJobCurrentInstance(options) {
|
|
20749
|
+
return (0, exports.JobMetricsApiFp)(this.configuration).getJobCurrentInstance(options).then((request) => request(this.axios, this.basePath));
|
|
20750
|
+
}
|
|
20751
|
+
}
|
|
20752
|
+
exports.JobMetricsApi = JobMetricsApi;
|
|
20753
|
+
/**
|
|
20754
|
+
* JobSecretApi - axios parameter creator
|
|
20755
|
+
* @export
|
|
20756
|
+
*/
|
|
20757
|
+
const JobSecretApiAxiosParamCreator = function (configuration) {
|
|
20758
|
+
return {
|
|
20759
|
+
/**
|
|
20760
|
+
* - Add a secret to the job.
|
|
20761
|
+
* @summary Add a secret to the job
|
|
20762
|
+
* @param {SecretRequest} [secretRequest]
|
|
20763
|
+
* @param {*} [options] Override http request option.
|
|
20764
|
+
* @throws {RequiredError}
|
|
20765
|
+
*/
|
|
20766
|
+
createJobSecret: (secretRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
20767
|
+
const localVarPath = `/job/{jobId}/secret`;
|
|
20768
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20769
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
20770
|
+
let baseOptions;
|
|
20771
|
+
if (configuration) {
|
|
20772
|
+
baseOptions = configuration.baseOptions;
|
|
20773
|
+
}
|
|
20774
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
20775
|
+
const localVarHeaderParameter = {};
|
|
20776
|
+
const localVarQueryParameter = {};
|
|
20777
|
+
// authentication bearerAuth required
|
|
20778
|
+
// http bearer authentication required
|
|
20779
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
20780
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
20781
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
20782
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20783
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
20784
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(secretRequest, localVarRequestOptions, configuration);
|
|
20785
|
+
return {
|
|
20786
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
20787
|
+
options: localVarRequestOptions,
|
|
20788
|
+
};
|
|
20789
|
+
}),
|
|
20790
|
+
/**
|
|
20791
|
+
* - 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
|
|
20792
|
+
* @summary Create a secret alias at the job level
|
|
20793
|
+
* @param {string} secretId Secret ID
|
|
20794
|
+
* @param {Key} [key]
|
|
20795
|
+
* @param {*} [options] Override http request option.
|
|
20796
|
+
* @throws {RequiredError}
|
|
20797
|
+
*/
|
|
20798
|
+
createJobSecretAlias: (secretId, key, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
20799
|
+
// verify required parameter 'secretId' is not null or undefined
|
|
20800
|
+
(0, common_1.assertParamExists)('createJobSecretAlias', 'secretId', secretId);
|
|
20801
|
+
const localVarPath = `/job/{jobId}/secret/{secretId}/alias`
|
|
20802
|
+
.replace(`{${"secretId"}}`, encodeURIComponent(String(secretId)));
|
|
20803
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20804
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
20805
|
+
let baseOptions;
|
|
20806
|
+
if (configuration) {
|
|
20807
|
+
baseOptions = configuration.baseOptions;
|
|
20808
|
+
}
|
|
20809
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
20810
|
+
const localVarHeaderParameter = {};
|
|
20811
|
+
const localVarQueryParameter = {};
|
|
20812
|
+
// authentication bearerAuth required
|
|
20813
|
+
// http bearer authentication required
|
|
20814
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
20815
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
20816
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
20817
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20818
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
20819
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(key, localVarRequestOptions, configuration);
|
|
20820
|
+
return {
|
|
20821
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
20822
|
+
options: localVarRequestOptions,
|
|
20823
|
+
};
|
|
20824
|
+
}),
|
|
20825
|
+
/**
|
|
20826
|
+
* - 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
|
|
20827
|
+
* @summary Create a secret override at the job level
|
|
20828
|
+
* @param {string} secretId Secret ID
|
|
20829
|
+
* @param {Value} [value]
|
|
20830
|
+
* @param {*} [options] Override http request option.
|
|
20831
|
+
* @throws {RequiredError}
|
|
20832
|
+
*/
|
|
20833
|
+
createJobSecretOverride: (secretId, value, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
20834
|
+
// verify required parameter 'secretId' is not null or undefined
|
|
20835
|
+
(0, common_1.assertParamExists)('createJobSecretOverride', 'secretId', secretId);
|
|
20836
|
+
const localVarPath = `/job/{jobId}/secret/{secretId}/override`
|
|
20837
|
+
.replace(`{${"secretId"}}`, encodeURIComponent(String(secretId)));
|
|
20838
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20839
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
20840
|
+
let baseOptions;
|
|
20841
|
+
if (configuration) {
|
|
20842
|
+
baseOptions = configuration.baseOptions;
|
|
20843
|
+
}
|
|
20844
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
20845
|
+
const localVarHeaderParameter = {};
|
|
20846
|
+
const localVarQueryParameter = {};
|
|
20847
|
+
// authentication bearerAuth required
|
|
20848
|
+
// http bearer authentication required
|
|
20849
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
20850
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
20851
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
20852
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20853
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
20854
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(value, localVarRequestOptions, configuration);
|
|
20855
|
+
return {
|
|
20856
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
20857
|
+
options: localVarRequestOptions,
|
|
20858
|
+
};
|
|
20859
|
+
}),
|
|
20860
|
+
/**
|
|
20861
|
+
* - 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
|
|
20862
|
+
* @summary Delete a secret from an job
|
|
20863
|
+
* @param {string} secretId Secret ID
|
|
20864
|
+
* @param {*} [options] Override http request option.
|
|
20865
|
+
* @throws {RequiredError}
|
|
20866
|
+
*/
|
|
20867
|
+
deleteJobSecret: (secretId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
20868
|
+
// verify required parameter 'secretId' is not null or undefined
|
|
20869
|
+
(0, common_1.assertParamExists)('deleteJobSecret', 'secretId', secretId);
|
|
20870
|
+
const localVarPath = `/job/{jobId}/secret/{secretId}`
|
|
20871
|
+
.replace(`{${"secretId"}}`, encodeURIComponent(String(secretId)));
|
|
20872
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20873
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
20874
|
+
let baseOptions;
|
|
20875
|
+
if (configuration) {
|
|
20876
|
+
baseOptions = configuration.baseOptions;
|
|
20877
|
+
}
|
|
20878
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
20879
|
+
const localVarHeaderParameter = {};
|
|
20880
|
+
const localVarQueryParameter = {};
|
|
20881
|
+
// authentication bearerAuth required
|
|
20882
|
+
// http bearer authentication required
|
|
20883
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
20884
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
20885
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20886
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
20887
|
+
return {
|
|
20888
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
20889
|
+
options: localVarRequestOptions,
|
|
20890
|
+
};
|
|
20891
|
+
}),
|
|
20892
|
+
/**
|
|
20893
|
+
* - 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)
|
|
20894
|
+
* @summary Edit a secret belonging to the job
|
|
20895
|
+
* @param {string} secretId Secret ID
|
|
20896
|
+
* @param {SecretEditRequest} secretEditRequest
|
|
20897
|
+
* @param {*} [options] Override http request option.
|
|
20898
|
+
* @throws {RequiredError}
|
|
20899
|
+
*/
|
|
20900
|
+
editJobSecret: (secretId, secretEditRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
20901
|
+
// verify required parameter 'secretId' is not null or undefined
|
|
20902
|
+
(0, common_1.assertParamExists)('editJobSecret', 'secretId', secretId);
|
|
20903
|
+
// verify required parameter 'secretEditRequest' is not null or undefined
|
|
20904
|
+
(0, common_1.assertParamExists)('editJobSecret', 'secretEditRequest', secretEditRequest);
|
|
20905
|
+
const localVarPath = `/job/{jobId}/secret/{secretId}`
|
|
20906
|
+
.replace(`{${"secretId"}}`, encodeURIComponent(String(secretId)));
|
|
20907
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20908
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
20909
|
+
let baseOptions;
|
|
20910
|
+
if (configuration) {
|
|
20911
|
+
baseOptions = configuration.baseOptions;
|
|
20912
|
+
}
|
|
20913
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
20914
|
+
const localVarHeaderParameter = {};
|
|
20915
|
+
const localVarQueryParameter = {};
|
|
20916
|
+
// authentication bearerAuth required
|
|
20917
|
+
// http bearer authentication required
|
|
20918
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
20919
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
20920
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
20921
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20922
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
20923
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(secretEditRequest, localVarRequestOptions, configuration);
|
|
20924
|
+
return {
|
|
20925
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
20926
|
+
options: localVarRequestOptions,
|
|
20927
|
+
};
|
|
20928
|
+
}),
|
|
20929
|
+
/**
|
|
20930
|
+
* Secrets are like environment variables, but they are secured and can\'t be revealed.
|
|
20931
|
+
* @summary List job secrets
|
|
20932
|
+
* @param {*} [options] Override http request option.
|
|
20933
|
+
* @throws {RequiredError}
|
|
20934
|
+
*/
|
|
20935
|
+
listJobSecrets: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
20936
|
+
const localVarPath = `/job/{jobId}/secret`;
|
|
20937
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
20938
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
20939
|
+
let baseOptions;
|
|
20940
|
+
if (configuration) {
|
|
20941
|
+
baseOptions = configuration.baseOptions;
|
|
20942
|
+
}
|
|
20943
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
20944
|
+
const localVarHeaderParameter = {};
|
|
20945
|
+
const localVarQueryParameter = {};
|
|
20946
|
+
// authentication bearerAuth required
|
|
20947
|
+
// http bearer authentication required
|
|
20948
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
20949
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
20950
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20951
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
20952
|
+
return {
|
|
20953
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
20954
|
+
options: localVarRequestOptions,
|
|
20955
|
+
};
|
|
20956
|
+
}),
|
|
20957
|
+
};
|
|
20958
|
+
};
|
|
20959
|
+
exports.JobSecretApiAxiosParamCreator = JobSecretApiAxiosParamCreator;
|
|
20960
|
+
/**
|
|
20961
|
+
* JobSecretApi - functional programming interface
|
|
20962
|
+
* @export
|
|
20963
|
+
*/
|
|
20964
|
+
const JobSecretApiFp = function (configuration) {
|
|
20965
|
+
const localVarAxiosParamCreator = (0, exports.JobSecretApiAxiosParamCreator)(configuration);
|
|
20966
|
+
return {
|
|
20967
|
+
/**
|
|
20968
|
+
* - Add a secret to the job.
|
|
20969
|
+
* @summary Add a secret to the job
|
|
20970
|
+
* @param {SecretRequest} [secretRequest]
|
|
20971
|
+
* @param {*} [options] Override http request option.
|
|
20972
|
+
* @throws {RequiredError}
|
|
20973
|
+
*/
|
|
20974
|
+
createJobSecret(secretRequest, options) {
|
|
20975
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
20976
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createJobSecret(secretRequest, options);
|
|
20977
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
20978
|
+
});
|
|
20979
|
+
},
|
|
20980
|
+
/**
|
|
20981
|
+
* - 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
|
|
20982
|
+
* @summary Create a secret alias at the job level
|
|
20983
|
+
* @param {string} secretId Secret ID
|
|
20984
|
+
* @param {Key} [key]
|
|
20985
|
+
* @param {*} [options] Override http request option.
|
|
20986
|
+
* @throws {RequiredError}
|
|
20987
|
+
*/
|
|
20988
|
+
createJobSecretAlias(secretId, key, options) {
|
|
20989
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
20990
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createJobSecretAlias(secretId, key, options);
|
|
20991
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
20992
|
+
});
|
|
20993
|
+
},
|
|
20994
|
+
/**
|
|
20995
|
+
* - 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
|
|
20996
|
+
* @summary Create a secret override at the job level
|
|
20997
|
+
* @param {string} secretId Secret ID
|
|
20998
|
+
* @param {Value} [value]
|
|
20999
|
+
* @param {*} [options] Override http request option.
|
|
21000
|
+
* @throws {RequiredError}
|
|
21001
|
+
*/
|
|
21002
|
+
createJobSecretOverride(secretId, value, options) {
|
|
21003
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21004
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createJobSecretOverride(secretId, value, options);
|
|
21005
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
21006
|
+
});
|
|
21007
|
+
},
|
|
21008
|
+
/**
|
|
21009
|
+
* - 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
|
|
21010
|
+
* @summary Delete a secret from an job
|
|
21011
|
+
* @param {string} secretId Secret ID
|
|
21012
|
+
* @param {*} [options] Override http request option.
|
|
21013
|
+
* @throws {RequiredError}
|
|
21014
|
+
*/
|
|
21015
|
+
deleteJobSecret(secretId, options) {
|
|
21016
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21017
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteJobSecret(secretId, options);
|
|
21018
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
21019
|
+
});
|
|
21020
|
+
},
|
|
21021
|
+
/**
|
|
21022
|
+
* - 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)
|
|
21023
|
+
* @summary Edit a secret belonging to the job
|
|
21024
|
+
* @param {string} secretId Secret ID
|
|
21025
|
+
* @param {SecretEditRequest} secretEditRequest
|
|
21026
|
+
* @param {*} [options] Override http request option.
|
|
21027
|
+
* @throws {RequiredError}
|
|
21028
|
+
*/
|
|
21029
|
+
editJobSecret(secretId, secretEditRequest, options) {
|
|
21030
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21031
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.editJobSecret(secretId, secretEditRequest, options);
|
|
21032
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
21033
|
+
});
|
|
21034
|
+
},
|
|
21035
|
+
/**
|
|
21036
|
+
* Secrets are like environment variables, but they are secured and can\'t be revealed.
|
|
21037
|
+
* @summary List job secrets
|
|
21038
|
+
* @param {*} [options] Override http request option.
|
|
21039
|
+
* @throws {RequiredError}
|
|
21040
|
+
*/
|
|
21041
|
+
listJobSecrets(options) {
|
|
21042
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21043
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listJobSecrets(options);
|
|
21044
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
21045
|
+
});
|
|
21046
|
+
},
|
|
21047
|
+
};
|
|
21048
|
+
};
|
|
21049
|
+
exports.JobSecretApiFp = JobSecretApiFp;
|
|
21050
|
+
/**
|
|
21051
|
+
* JobSecretApi - factory interface
|
|
21052
|
+
* @export
|
|
21053
|
+
*/
|
|
21054
|
+
const JobSecretApiFactory = function (configuration, basePath, axios) {
|
|
21055
|
+
const localVarFp = (0, exports.JobSecretApiFp)(configuration);
|
|
21056
|
+
return {
|
|
21057
|
+
/**
|
|
21058
|
+
* - Add a secret to the job.
|
|
21059
|
+
* @summary Add a secret to the job
|
|
21060
|
+
* @param {SecretRequest} [secretRequest]
|
|
21061
|
+
* @param {*} [options] Override http request option.
|
|
21062
|
+
* @throws {RequiredError}
|
|
21063
|
+
*/
|
|
21064
|
+
createJobSecret(secretRequest, options) {
|
|
21065
|
+
return localVarFp.createJobSecret(secretRequest, options).then((request) => request(axios, basePath));
|
|
21066
|
+
},
|
|
21067
|
+
/**
|
|
21068
|
+
* - 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
|
|
21069
|
+
* @summary Create a secret alias at the job level
|
|
21070
|
+
* @param {string} secretId Secret ID
|
|
21071
|
+
* @param {Key} [key]
|
|
21072
|
+
* @param {*} [options] Override http request option.
|
|
21073
|
+
* @throws {RequiredError}
|
|
21074
|
+
*/
|
|
21075
|
+
createJobSecretAlias(secretId, key, options) {
|
|
21076
|
+
return localVarFp.createJobSecretAlias(secretId, key, options).then((request) => request(axios, basePath));
|
|
21077
|
+
},
|
|
21078
|
+
/**
|
|
21079
|
+
* - 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
|
|
21080
|
+
* @summary Create a secret override at the job level
|
|
21081
|
+
* @param {string} secretId Secret ID
|
|
21082
|
+
* @param {Value} [value]
|
|
21083
|
+
* @param {*} [options] Override http request option.
|
|
21084
|
+
* @throws {RequiredError}
|
|
21085
|
+
*/
|
|
21086
|
+
createJobSecretOverride(secretId, value, options) {
|
|
21087
|
+
return localVarFp.createJobSecretOverride(secretId, value, options).then((request) => request(axios, basePath));
|
|
21088
|
+
},
|
|
21089
|
+
/**
|
|
21090
|
+
* - 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
|
|
21091
|
+
* @summary Delete a secret from an job
|
|
21092
|
+
* @param {string} secretId Secret ID
|
|
21093
|
+
* @param {*} [options] Override http request option.
|
|
21094
|
+
* @throws {RequiredError}
|
|
21095
|
+
*/
|
|
21096
|
+
deleteJobSecret(secretId, options) {
|
|
21097
|
+
return localVarFp.deleteJobSecret(secretId, options).then((request) => request(axios, basePath));
|
|
21098
|
+
},
|
|
21099
|
+
/**
|
|
21100
|
+
* - 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)
|
|
21101
|
+
* @summary Edit a secret belonging to the job
|
|
21102
|
+
* @param {string} secretId Secret ID
|
|
21103
|
+
* @param {SecretEditRequest} secretEditRequest
|
|
21104
|
+
* @param {*} [options] Override http request option.
|
|
21105
|
+
* @throws {RequiredError}
|
|
21106
|
+
*/
|
|
21107
|
+
editJobSecret(secretId, secretEditRequest, options) {
|
|
21108
|
+
return localVarFp.editJobSecret(secretId, secretEditRequest, options).then((request) => request(axios, basePath));
|
|
21109
|
+
},
|
|
21110
|
+
/**
|
|
21111
|
+
* Secrets are like environment variables, but they are secured and can\'t be revealed.
|
|
21112
|
+
* @summary List job secrets
|
|
21113
|
+
* @param {*} [options] Override http request option.
|
|
21114
|
+
* @throws {RequiredError}
|
|
21115
|
+
*/
|
|
21116
|
+
listJobSecrets(options) {
|
|
21117
|
+
return localVarFp.listJobSecrets(options).then((request) => request(axios, basePath));
|
|
21118
|
+
},
|
|
21119
|
+
};
|
|
21120
|
+
};
|
|
21121
|
+
exports.JobSecretApiFactory = JobSecretApiFactory;
|
|
21122
|
+
/**
|
|
21123
|
+
* JobSecretApi - object-oriented interface
|
|
21124
|
+
* @export
|
|
21125
|
+
* @class JobSecretApi
|
|
21126
|
+
* @extends {BaseAPI}
|
|
21127
|
+
*/
|
|
21128
|
+
class JobSecretApi extends base_1.BaseAPI {
|
|
21129
|
+
/**
|
|
21130
|
+
* - Add a secret to the job.
|
|
21131
|
+
* @summary Add a secret to the job
|
|
21132
|
+
* @param {SecretRequest} [secretRequest]
|
|
21133
|
+
* @param {*} [options] Override http request option.
|
|
21134
|
+
* @throws {RequiredError}
|
|
21135
|
+
* @memberof JobSecretApi
|
|
21136
|
+
*/
|
|
21137
|
+
createJobSecret(secretRequest, options) {
|
|
21138
|
+
return (0, exports.JobSecretApiFp)(this.configuration).createJobSecret(secretRequest, options).then((request) => request(this.axios, this.basePath));
|
|
21139
|
+
}
|
|
21140
|
+
/**
|
|
21141
|
+
* - 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
|
|
21142
|
+
* @summary Create a secret alias at the job level
|
|
21143
|
+
* @param {string} secretId Secret ID
|
|
21144
|
+
* @param {Key} [key]
|
|
21145
|
+
* @param {*} [options] Override http request option.
|
|
21146
|
+
* @throws {RequiredError}
|
|
21147
|
+
* @memberof JobSecretApi
|
|
21148
|
+
*/
|
|
21149
|
+
createJobSecretAlias(secretId, key, options) {
|
|
21150
|
+
return (0, exports.JobSecretApiFp)(this.configuration).createJobSecretAlias(secretId, key, options).then((request) => request(this.axios, this.basePath));
|
|
21151
|
+
}
|
|
21152
|
+
/**
|
|
21153
|
+
* - 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
|
|
21154
|
+
* @summary Create a secret override at the job level
|
|
21155
|
+
* @param {string} secretId Secret ID
|
|
21156
|
+
* @param {Value} [value]
|
|
21157
|
+
* @param {*} [options] Override http request option.
|
|
21158
|
+
* @throws {RequiredError}
|
|
21159
|
+
* @memberof JobSecretApi
|
|
21160
|
+
*/
|
|
21161
|
+
createJobSecretOverride(secretId, value, options) {
|
|
21162
|
+
return (0, exports.JobSecretApiFp)(this.configuration).createJobSecretOverride(secretId, value, options).then((request) => request(this.axios, this.basePath));
|
|
21163
|
+
}
|
|
21164
|
+
/**
|
|
21165
|
+
* - 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
|
|
21166
|
+
* @summary Delete a secret from an job
|
|
21167
|
+
* @param {string} secretId Secret ID
|
|
21168
|
+
* @param {*} [options] Override http request option.
|
|
21169
|
+
* @throws {RequiredError}
|
|
21170
|
+
* @memberof JobSecretApi
|
|
21171
|
+
*/
|
|
21172
|
+
deleteJobSecret(secretId, options) {
|
|
21173
|
+
return (0, exports.JobSecretApiFp)(this.configuration).deleteJobSecret(secretId, options).then((request) => request(this.axios, this.basePath));
|
|
21174
|
+
}
|
|
21175
|
+
/**
|
|
21176
|
+
* - 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)
|
|
21177
|
+
* @summary Edit a secret belonging to the job
|
|
21178
|
+
* @param {string} secretId Secret ID
|
|
21179
|
+
* @param {SecretEditRequest} secretEditRequest
|
|
21180
|
+
* @param {*} [options] Override http request option.
|
|
21181
|
+
* @throws {RequiredError}
|
|
21182
|
+
* @memberof JobSecretApi
|
|
21183
|
+
*/
|
|
21184
|
+
editJobSecret(secretId, secretEditRequest, options) {
|
|
21185
|
+
return (0, exports.JobSecretApiFp)(this.configuration).editJobSecret(secretId, secretEditRequest, options).then((request) => request(this.axios, this.basePath));
|
|
21186
|
+
}
|
|
21187
|
+
/**
|
|
21188
|
+
* Secrets are like environment variables, but they are secured and can\'t be revealed.
|
|
21189
|
+
* @summary List job secrets
|
|
21190
|
+
* @param {*} [options] Override http request option.
|
|
21191
|
+
* @throws {RequiredError}
|
|
21192
|
+
* @memberof JobSecretApi
|
|
21193
|
+
*/
|
|
21194
|
+
listJobSecrets(options) {
|
|
21195
|
+
return (0, exports.JobSecretApiFp)(this.configuration).listJobSecrets(options).then((request) => request(this.axios, this.basePath));
|
|
21196
|
+
}
|
|
21197
|
+
}
|
|
21198
|
+
exports.JobSecretApi = JobSecretApi;
|
|
21199
|
+
/**
|
|
21200
|
+
* JobsApi - axios parameter creator
|
|
21201
|
+
* @export
|
|
21202
|
+
*/
|
|
21203
|
+
const JobsApiAxiosParamCreator = function (configuration) {
|
|
21204
|
+
return {
|
|
21205
|
+
/**
|
|
21206
|
+
*
|
|
21207
|
+
* @summary Create a job
|
|
21208
|
+
* @param {string} environmentId Environment ID
|
|
21209
|
+
* @param {JobRequest} [jobRequest]
|
|
21210
|
+
* @param {*} [options] Override http request option.
|
|
21211
|
+
* @throws {RequiredError}
|
|
21212
|
+
*/
|
|
21213
|
+
createJob: (environmentId, jobRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
21214
|
+
// verify required parameter 'environmentId' is not null or undefined
|
|
21215
|
+
(0, common_1.assertParamExists)('createJob', 'environmentId', environmentId);
|
|
21216
|
+
const localVarPath = `/environment/{environmentId}/job`
|
|
21217
|
+
.replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
|
|
21218
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
21219
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
21220
|
+
let baseOptions;
|
|
21221
|
+
if (configuration) {
|
|
21222
|
+
baseOptions = configuration.baseOptions;
|
|
21223
|
+
}
|
|
21224
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
21225
|
+
const localVarHeaderParameter = {};
|
|
21226
|
+
const localVarQueryParameter = {};
|
|
21227
|
+
// authentication bearerAuth required
|
|
21228
|
+
// http bearer authentication required
|
|
21229
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
21230
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
21231
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
21232
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21233
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
21234
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(jobRequest, localVarRequestOptions, configuration);
|
|
21235
|
+
return {
|
|
21236
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
21237
|
+
options: localVarRequestOptions,
|
|
21238
|
+
};
|
|
21239
|
+
}),
|
|
21240
|
+
/**
|
|
21241
|
+
* Returns a list of jobs with only their id and status.
|
|
21242
|
+
* @summary List all environment job statuses
|
|
21243
|
+
* @param {string} environmentId Environment ID
|
|
21244
|
+
* @param {*} [options] Override http request option.
|
|
21245
|
+
* @throws {RequiredError}
|
|
21246
|
+
*/
|
|
21247
|
+
getEnvironmentJobStatus: (environmentId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
21248
|
+
// verify required parameter 'environmentId' is not null or undefined
|
|
21249
|
+
(0, common_1.assertParamExists)('getEnvironmentJobStatus', 'environmentId', environmentId);
|
|
21250
|
+
const localVarPath = `/environment/{environmentId}/job/status`
|
|
21251
|
+
.replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
|
|
21252
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
21253
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
21254
|
+
let baseOptions;
|
|
21255
|
+
if (configuration) {
|
|
21256
|
+
baseOptions = configuration.baseOptions;
|
|
21257
|
+
}
|
|
21258
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
21259
|
+
const localVarHeaderParameter = {};
|
|
21260
|
+
const localVarQueryParameter = {};
|
|
21261
|
+
// authentication bearerAuth required
|
|
21262
|
+
// http bearer authentication required
|
|
21263
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
21264
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
21265
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21266
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
21267
|
+
return {
|
|
21268
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
21269
|
+
options: localVarRequestOptions,
|
|
21270
|
+
};
|
|
21271
|
+
}),
|
|
21272
|
+
/**
|
|
21273
|
+
*
|
|
21274
|
+
* @summary List jobs
|
|
21275
|
+
* @param {string} environmentId Environment ID
|
|
21276
|
+
* @param {boolean} [toUpdate] return (or not) results that must be updated
|
|
21277
|
+
* @param {*} [options] Override http request option.
|
|
21278
|
+
* @throws {RequiredError}
|
|
21279
|
+
*/
|
|
21280
|
+
listJobs: (environmentId, toUpdate, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
21281
|
+
// verify required parameter 'environmentId' is not null or undefined
|
|
21282
|
+
(0, common_1.assertParamExists)('listJobs', 'environmentId', environmentId);
|
|
21283
|
+
const localVarPath = `/environment/{environmentId}/job`
|
|
21284
|
+
.replace(`{${"environmentId"}}`, encodeURIComponent(String(environmentId)));
|
|
21285
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
21286
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
21287
|
+
let baseOptions;
|
|
21288
|
+
if (configuration) {
|
|
21289
|
+
baseOptions = configuration.baseOptions;
|
|
21290
|
+
}
|
|
21291
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
21292
|
+
const localVarHeaderParameter = {};
|
|
21293
|
+
const localVarQueryParameter = {};
|
|
21294
|
+
// authentication bearerAuth required
|
|
21295
|
+
// http bearer authentication required
|
|
21296
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
21297
|
+
if (toUpdate !== undefined) {
|
|
21298
|
+
localVarQueryParameter['toUpdate'] = toUpdate;
|
|
21299
|
+
}
|
|
21300
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
21301
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21302
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
21303
|
+
return {
|
|
21304
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
21305
|
+
options: localVarRequestOptions,
|
|
21306
|
+
};
|
|
21307
|
+
}),
|
|
21308
|
+
};
|
|
21309
|
+
};
|
|
21310
|
+
exports.JobsApiAxiosParamCreator = JobsApiAxiosParamCreator;
|
|
21311
|
+
/**
|
|
21312
|
+
* JobsApi - functional programming interface
|
|
21313
|
+
* @export
|
|
21314
|
+
*/
|
|
21315
|
+
const JobsApiFp = function (configuration) {
|
|
21316
|
+
const localVarAxiosParamCreator = (0, exports.JobsApiAxiosParamCreator)(configuration);
|
|
21317
|
+
return {
|
|
21318
|
+
/**
|
|
21319
|
+
*
|
|
21320
|
+
* @summary Create a job
|
|
21321
|
+
* @param {string} environmentId Environment ID
|
|
21322
|
+
* @param {JobRequest} [jobRequest]
|
|
21323
|
+
* @param {*} [options] Override http request option.
|
|
21324
|
+
* @throws {RequiredError}
|
|
21325
|
+
*/
|
|
21326
|
+
createJob(environmentId, jobRequest, options) {
|
|
21327
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21328
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createJob(environmentId, jobRequest, options);
|
|
21329
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
21330
|
+
});
|
|
21331
|
+
},
|
|
21332
|
+
/**
|
|
21333
|
+
* Returns a list of jobs with only their id and status.
|
|
21334
|
+
* @summary List all environment job statuses
|
|
21335
|
+
* @param {string} environmentId Environment ID
|
|
21336
|
+
* @param {*} [options] Override http request option.
|
|
21337
|
+
* @throws {RequiredError}
|
|
21338
|
+
*/
|
|
21339
|
+
getEnvironmentJobStatus(environmentId, options) {
|
|
21340
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21341
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getEnvironmentJobStatus(environmentId, options);
|
|
21342
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
21343
|
+
});
|
|
21344
|
+
},
|
|
21345
|
+
/**
|
|
21346
|
+
*
|
|
21347
|
+
* @summary List jobs
|
|
21348
|
+
* @param {string} environmentId Environment ID
|
|
21349
|
+
* @param {boolean} [toUpdate] return (or not) results that must be updated
|
|
21350
|
+
* @param {*} [options] Override http request option.
|
|
21351
|
+
* @throws {RequiredError}
|
|
21352
|
+
*/
|
|
21353
|
+
listJobs(environmentId, toUpdate, options) {
|
|
21354
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21355
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listJobs(environmentId, toUpdate, options);
|
|
21356
|
+
return (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration);
|
|
21357
|
+
});
|
|
21358
|
+
},
|
|
21359
|
+
};
|
|
21360
|
+
};
|
|
21361
|
+
exports.JobsApiFp = JobsApiFp;
|
|
21362
|
+
/**
|
|
21363
|
+
* JobsApi - factory interface
|
|
21364
|
+
* @export
|
|
21365
|
+
*/
|
|
21366
|
+
const JobsApiFactory = function (configuration, basePath, axios) {
|
|
21367
|
+
const localVarFp = (0, exports.JobsApiFp)(configuration);
|
|
21368
|
+
return {
|
|
21369
|
+
/**
|
|
21370
|
+
*
|
|
21371
|
+
* @summary Create a job
|
|
21372
|
+
* @param {string} environmentId Environment ID
|
|
21373
|
+
* @param {JobRequest} [jobRequest]
|
|
21374
|
+
* @param {*} [options] Override http request option.
|
|
21375
|
+
* @throws {RequiredError}
|
|
21376
|
+
*/
|
|
21377
|
+
createJob(environmentId, jobRequest, options) {
|
|
21378
|
+
return localVarFp.createJob(environmentId, jobRequest, options).then((request) => request(axios, basePath));
|
|
21379
|
+
},
|
|
21380
|
+
/**
|
|
21381
|
+
* Returns a list of jobs with only their id and status.
|
|
21382
|
+
* @summary List all environment job statuses
|
|
21383
|
+
* @param {string} environmentId Environment ID
|
|
21384
|
+
* @param {*} [options] Override http request option.
|
|
21385
|
+
* @throws {RequiredError}
|
|
21386
|
+
*/
|
|
21387
|
+
getEnvironmentJobStatus(environmentId, options) {
|
|
21388
|
+
return localVarFp.getEnvironmentJobStatus(environmentId, options).then((request) => request(axios, basePath));
|
|
21389
|
+
},
|
|
21390
|
+
/**
|
|
21391
|
+
*
|
|
21392
|
+
* @summary List jobs
|
|
21393
|
+
* @param {string} environmentId Environment ID
|
|
21394
|
+
* @param {boolean} [toUpdate] return (or not) results that must be updated
|
|
21395
|
+
* @param {*} [options] Override http request option.
|
|
21396
|
+
* @throws {RequiredError}
|
|
21397
|
+
*/
|
|
21398
|
+
listJobs(environmentId, toUpdate, options) {
|
|
21399
|
+
return localVarFp.listJobs(environmentId, toUpdate, options).then((request) => request(axios, basePath));
|
|
21400
|
+
},
|
|
21401
|
+
};
|
|
21402
|
+
};
|
|
21403
|
+
exports.JobsApiFactory = JobsApiFactory;
|
|
21404
|
+
/**
|
|
21405
|
+
* JobsApi - object-oriented interface
|
|
21406
|
+
* @export
|
|
21407
|
+
* @class JobsApi
|
|
21408
|
+
* @extends {BaseAPI}
|
|
21409
|
+
*/
|
|
21410
|
+
class JobsApi extends base_1.BaseAPI {
|
|
21411
|
+
/**
|
|
21412
|
+
*
|
|
21413
|
+
* @summary Create a job
|
|
21414
|
+
* @param {string} environmentId Environment ID
|
|
21415
|
+
* @param {JobRequest} [jobRequest]
|
|
21416
|
+
* @param {*} [options] Override http request option.
|
|
21417
|
+
* @throws {RequiredError}
|
|
21418
|
+
* @memberof JobsApi
|
|
21419
|
+
*/
|
|
21420
|
+
createJob(environmentId, jobRequest, options) {
|
|
21421
|
+
return (0, exports.JobsApiFp)(this.configuration).createJob(environmentId, jobRequest, options).then((request) => request(this.axios, this.basePath));
|
|
21422
|
+
}
|
|
21423
|
+
/**
|
|
21424
|
+
* Returns a list of jobs with only their id and status.
|
|
21425
|
+
* @summary List all environment job statuses
|
|
21426
|
+
* @param {string} environmentId Environment ID
|
|
21427
|
+
* @param {*} [options] Override http request option.
|
|
21428
|
+
* @throws {RequiredError}
|
|
21429
|
+
* @memberof JobsApi
|
|
21430
|
+
*/
|
|
21431
|
+
getEnvironmentJobStatus(environmentId, options) {
|
|
21432
|
+
return (0, exports.JobsApiFp)(this.configuration).getEnvironmentJobStatus(environmentId, options).then((request) => request(this.axios, this.basePath));
|
|
21433
|
+
}
|
|
21434
|
+
/**
|
|
21435
|
+
*
|
|
21436
|
+
* @summary List jobs
|
|
21437
|
+
* @param {string} environmentId Environment ID
|
|
21438
|
+
* @param {boolean} [toUpdate] return (or not) results that must be updated
|
|
21439
|
+
* @param {*} [options] Override http request option.
|
|
21440
|
+
* @throws {RequiredError}
|
|
21441
|
+
* @memberof JobsApi
|
|
21442
|
+
*/
|
|
21443
|
+
listJobs(environmentId, toUpdate, options) {
|
|
21444
|
+
return (0, exports.JobsApiFp)(this.configuration).listJobs(environmentId, toUpdate, options).then((request) => request(this.axios, this.basePath));
|
|
21445
|
+
}
|
|
21446
|
+
}
|
|
21447
|
+
exports.JobsApi = JobsApi;
|
|
19338
21448
|
/**
|
|
19339
21449
|
* LogicalDatabaseApi - axios parameter creator
|
|
19340
21450
|
* @export
|