@devopness/sdk-js 2.18.0 → 2.19.0
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/dist/api/generated/apis/pipelines-api.d.ts +9 -8
- package/dist/api/generated/apis/pipelines-api.js +11 -11
- package/dist/api/generated/apis/pipelines-steps-api.d.ts +17 -17
- package/dist/api/generated/apis/pipelines-steps-api.js +35 -35
- package/dist/api/generated/models/cron-job-update.d.ts +3 -4
- package/dist/api/generated/models/daemon-update.d.ts +3 -4
- package/dist/api/generated/models/index.d.ts +1 -0
- package/dist/api/generated/models/index.js +1 -0
- package/dist/api/generated/models/pipeline-step-create.d.ts +9 -3
- package/dist/api/generated/models/pipeline-step-update.d.ts +11 -5
- package/dist/api/generated/models/pipeline-step.d.ts +20 -14
- package/dist/api/generated/models/pipeline-update.d.ts +30 -0
- package/dist/api/generated/models/pipeline-update.js +14 -0
- package/dist/api/generated/models/pipeline.d.ts +19 -12
- package/package.json +1 -1
|
@@ -12,27 +12,28 @@
|
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
14
|
import { Pipeline } from '../../generated/models';
|
|
15
|
+
import { PipelineUpdate } from '../../generated/models';
|
|
15
16
|
/**
|
|
16
17
|
* PipelinesApiService - Auto-generated
|
|
17
18
|
*/
|
|
18
19
|
export declare class PipelinesApiService extends ApiBaseService {
|
|
19
20
|
/**
|
|
20
21
|
*
|
|
21
|
-
* @summary Delete a
|
|
22
|
-
* @param {number} pipelineId
|
|
22
|
+
* @summary Delete a given Pipeline
|
|
23
|
+
* @param {number} pipelineId The ID of the pipeline.
|
|
23
24
|
*/
|
|
24
25
|
deletePipeline(pipelineId: number): Promise<ApiResponse<void>>;
|
|
25
26
|
/**
|
|
26
27
|
*
|
|
27
|
-
* @summary Get a
|
|
28
|
-
* @param {number} pipelineId
|
|
28
|
+
* @summary Get a Pipeline by ID
|
|
29
|
+
* @param {number} pipelineId The ID of the pipeline.
|
|
29
30
|
*/
|
|
30
31
|
getPipeline(pipelineId: number): Promise<ApiResponse<Pipeline>>;
|
|
31
32
|
/**
|
|
32
33
|
*
|
|
33
|
-
* @summary Update
|
|
34
|
-
* @param {number} pipelineId
|
|
35
|
-
* @param {
|
|
34
|
+
* @summary Update an existing Pipeline
|
|
35
|
+
* @param {number} pipelineId The ID of the pipeline.
|
|
36
|
+
* @param {PipelineUpdate} pipelineUpdate A JSON object containing the resource data
|
|
36
37
|
*/
|
|
37
|
-
updatePipeline(pipelineId: number,
|
|
38
|
+
updatePipeline(pipelineId: number, pipelineUpdate: PipelineUpdate): Promise<ApiResponse<void>>;
|
|
38
39
|
}
|
|
@@ -31,8 +31,8 @@ const Exceptions_1 = require("../../../common/Exceptions");
|
|
|
31
31
|
class PipelinesApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
|
-
* @summary Delete a
|
|
35
|
-
* @param {number} pipelineId
|
|
34
|
+
* @summary Delete a given Pipeline
|
|
35
|
+
* @param {number} pipelineId The ID of the pipeline.
|
|
36
36
|
*/
|
|
37
37
|
deletePipeline(pipelineId) {
|
|
38
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -47,8 +47,8 @@ class PipelinesApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
|
-
* @summary Get a
|
|
51
|
-
* @param {number} pipelineId
|
|
50
|
+
* @summary Get a Pipeline by ID
|
|
51
|
+
* @param {number} pipelineId The ID of the pipeline.
|
|
52
52
|
*/
|
|
53
53
|
getPipeline(pipelineId) {
|
|
54
54
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -63,21 +63,21 @@ class PipelinesApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
63
63
|
}
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
|
-
* @summary Update
|
|
67
|
-
* @param {number} pipelineId
|
|
68
|
-
* @param {
|
|
66
|
+
* @summary Update an existing Pipeline
|
|
67
|
+
* @param {number} pipelineId The ID of the pipeline.
|
|
68
|
+
* @param {PipelineUpdate} pipelineUpdate A JSON object containing the resource data
|
|
69
69
|
*/
|
|
70
|
-
updatePipeline(pipelineId,
|
|
70
|
+
updatePipeline(pipelineId, pipelineUpdate) {
|
|
71
71
|
return __awaiter(this, void 0, void 0, function* () {
|
|
72
72
|
if (pipelineId === null || pipelineId === undefined) {
|
|
73
73
|
throw new Exceptions_1.ArgumentNullException('pipelineId', 'updatePipeline');
|
|
74
74
|
}
|
|
75
|
-
if (
|
|
76
|
-
throw new Exceptions_1.ArgumentNullException('
|
|
75
|
+
if (pipelineUpdate === null || pipelineUpdate === undefined) {
|
|
76
|
+
throw new Exceptions_1.ArgumentNullException('pipelineUpdate', 'updatePipeline');
|
|
77
77
|
}
|
|
78
78
|
let queryString = '';
|
|
79
79
|
const requestUrl = '/pipelines/{pipeline_id}' + (queryString ? `?${queryString}` : '');
|
|
80
|
-
const response = yield this.put(requestUrl.replace(`{${"pipeline_id"}}`, encodeURIComponent(String(pipelineId))),
|
|
80
|
+
const response = yield this.put(requestUrl.replace(`{${"pipeline_id"}}`, encodeURIComponent(String(pipelineId))), pipelineUpdate);
|
|
81
81
|
return new ApiResponse_1.ApiResponse(response);
|
|
82
82
|
});
|
|
83
83
|
}
|
|
@@ -20,31 +20,31 @@ import { PipelineStepUpdate } from '../../generated/models';
|
|
|
20
20
|
export declare class PipelinesStepsApiService extends ApiBaseService {
|
|
21
21
|
/**
|
|
22
22
|
*
|
|
23
|
-
* @summary
|
|
24
|
-
* @param {number} pipelineId
|
|
25
|
-
* @param {PipelineStepCreate} pipelineStepCreate A JSON object containing
|
|
23
|
+
* @summary Add a step to a pipeline
|
|
24
|
+
* @param {number} pipelineId The ID of the pipeline.
|
|
25
|
+
* @param {PipelineStepCreate} pipelineStepCreate A JSON object containing the resource data
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
addPipelinePipelineStep(pipelineId: number, pipelineStepCreate: PipelineStepCreate): Promise<ApiResponse<PipelineStep>>;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
|
-
* @summary Link a step to a
|
|
31
|
-
* @param {number} pipelineId
|
|
32
|
-
* @param {
|
|
30
|
+
* @summary Link a step to a Pipeline
|
|
31
|
+
* @param {number} pipelineId The ID of the pipeline.
|
|
32
|
+
* @param {string} stepId The ID of the step.
|
|
33
33
|
*/
|
|
34
|
-
|
|
34
|
+
linkPipelineStepToPipeline(pipelineId: number, stepId: string): Promise<ApiResponse<void>>;
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
|
-
* @summary Unlink a step from a
|
|
38
|
-
* @param {number} pipelineId
|
|
39
|
-
* @param {
|
|
37
|
+
* @summary Unlink a step from a Pipeline
|
|
38
|
+
* @param {number} pipelineId The ID of the pipeline.
|
|
39
|
+
* @param {string} stepId The ID of the step.
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
unlinkPipelineStepFromPipeline(pipelineId: number, stepId: string): Promise<ApiResponse<void>>;
|
|
42
42
|
/**
|
|
43
43
|
*
|
|
44
|
-
* @summary Update
|
|
45
|
-
* @param {number} pipelineId
|
|
46
|
-
* @param {
|
|
47
|
-
* @param {PipelineStepUpdate} pipelineStepUpdate A JSON object containing
|
|
44
|
+
* @summary Update an existing Pipeline Step
|
|
45
|
+
* @param {number} pipelineId The ID of the pipeline.
|
|
46
|
+
* @param {string} stepId The ID of the step.
|
|
47
|
+
* @param {PipelineStepUpdate} pipelineStepUpdate A JSON object containing the resource data
|
|
48
48
|
*/
|
|
49
|
-
|
|
49
|
+
updatePipelinePipelineStep(pipelineId: number, stepId: string, pipelineStepUpdate: PipelineStepUpdate): Promise<ApiResponse<void>>;
|
|
50
50
|
}
|
|
@@ -31,17 +31,17 @@ const Exceptions_1 = require("../../../common/Exceptions");
|
|
|
31
31
|
class PipelinesStepsApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
|
-
* @summary
|
|
35
|
-
* @param {number} pipelineId
|
|
36
|
-
* @param {PipelineStepCreate} pipelineStepCreate A JSON object containing
|
|
34
|
+
* @summary Add a step to a pipeline
|
|
35
|
+
* @param {number} pipelineId The ID of the pipeline.
|
|
36
|
+
* @param {PipelineStepCreate} pipelineStepCreate A JSON object containing the resource data
|
|
37
37
|
*/
|
|
38
|
-
|
|
38
|
+
addPipelinePipelineStep(pipelineId, pipelineStepCreate) {
|
|
39
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
40
|
if (pipelineId === null || pipelineId === undefined) {
|
|
41
|
-
throw new Exceptions_1.ArgumentNullException('pipelineId', '
|
|
41
|
+
throw new Exceptions_1.ArgumentNullException('pipelineId', 'addPipelinePipelineStep');
|
|
42
42
|
}
|
|
43
43
|
if (pipelineStepCreate === null || pipelineStepCreate === undefined) {
|
|
44
|
-
throw new Exceptions_1.ArgumentNullException('pipelineStepCreate', '
|
|
44
|
+
throw new Exceptions_1.ArgumentNullException('pipelineStepCreate', 'addPipelinePipelineStep');
|
|
45
45
|
}
|
|
46
46
|
let queryString = '';
|
|
47
47
|
const requestUrl = '/pipelines/{pipeline_id}/steps' + (queryString ? `?${queryString}` : '');
|
|
@@ -51,65 +51,65 @@ class PipelinesStepsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
|
-
* @summary Link a step to a
|
|
55
|
-
* @param {number} pipelineId
|
|
56
|
-
* @param {
|
|
54
|
+
* @summary Link a step to a Pipeline
|
|
55
|
+
* @param {number} pipelineId The ID of the pipeline.
|
|
56
|
+
* @param {string} stepId The ID of the step.
|
|
57
57
|
*/
|
|
58
|
-
|
|
58
|
+
linkPipelineStepToPipeline(pipelineId, stepId) {
|
|
59
59
|
return __awaiter(this, void 0, void 0, function* () {
|
|
60
60
|
if (pipelineId === null || pipelineId === undefined) {
|
|
61
|
-
throw new Exceptions_1.ArgumentNullException('pipelineId', '
|
|
61
|
+
throw new Exceptions_1.ArgumentNullException('pipelineId', 'linkPipelineStepToPipeline');
|
|
62
62
|
}
|
|
63
|
-
if (
|
|
64
|
-
throw new Exceptions_1.ArgumentNullException('
|
|
63
|
+
if (stepId === null || stepId === undefined) {
|
|
64
|
+
throw new Exceptions_1.ArgumentNullException('stepId', 'linkPipelineStepToPipeline');
|
|
65
65
|
}
|
|
66
66
|
let queryString = '';
|
|
67
|
-
const requestUrl = '/pipelines/{pipeline_id}/steps/{
|
|
68
|
-
const response = yield this.post(requestUrl.replace(`{${"pipeline_id"}}`, encodeURIComponent(String(pipelineId))).replace(`{${"
|
|
67
|
+
const requestUrl = '/pipelines/{pipeline_id}/steps/{step_id}/link' + (queryString ? `?${queryString}` : '');
|
|
68
|
+
const response = yield this.post(requestUrl.replace(`{${"pipeline_id"}}`, encodeURIComponent(String(pipelineId))).replace(`{${"step_id"}}`, encodeURIComponent(String(stepId))));
|
|
69
69
|
return new ApiResponse_1.ApiResponse(response);
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
72
|
/**
|
|
73
73
|
*
|
|
74
|
-
* @summary Unlink a step from a
|
|
75
|
-
* @param {number} pipelineId
|
|
76
|
-
* @param {
|
|
74
|
+
* @summary Unlink a step from a Pipeline
|
|
75
|
+
* @param {number} pipelineId The ID of the pipeline.
|
|
76
|
+
* @param {string} stepId The ID of the step.
|
|
77
77
|
*/
|
|
78
|
-
|
|
78
|
+
unlinkPipelineStepFromPipeline(pipelineId, stepId) {
|
|
79
79
|
return __awaiter(this, void 0, void 0, function* () {
|
|
80
80
|
if (pipelineId === null || pipelineId === undefined) {
|
|
81
|
-
throw new Exceptions_1.ArgumentNullException('pipelineId', '
|
|
81
|
+
throw new Exceptions_1.ArgumentNullException('pipelineId', 'unlinkPipelineStepFromPipeline');
|
|
82
82
|
}
|
|
83
|
-
if (
|
|
84
|
-
throw new Exceptions_1.ArgumentNullException('
|
|
83
|
+
if (stepId === null || stepId === undefined) {
|
|
84
|
+
throw new Exceptions_1.ArgumentNullException('stepId', 'unlinkPipelineStepFromPipeline');
|
|
85
85
|
}
|
|
86
86
|
let queryString = '';
|
|
87
|
-
const requestUrl = '/pipelines/{pipeline_id}/steps/{
|
|
88
|
-
const response = yield this.delete(requestUrl.replace(`{${"pipeline_id"}}`, encodeURIComponent(String(pipelineId))).replace(`{${"
|
|
87
|
+
const requestUrl = '/pipelines/{pipeline_id}/steps/{step_id}/unlink' + (queryString ? `?${queryString}` : '');
|
|
88
|
+
const response = yield this.delete(requestUrl.replace(`{${"pipeline_id"}}`, encodeURIComponent(String(pipelineId))).replace(`{${"step_id"}}`, encodeURIComponent(String(stepId))));
|
|
89
89
|
return new ApiResponse_1.ApiResponse(response);
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
92
|
/**
|
|
93
93
|
*
|
|
94
|
-
* @summary Update
|
|
95
|
-
* @param {number} pipelineId
|
|
96
|
-
* @param {
|
|
97
|
-
* @param {PipelineStepUpdate} pipelineStepUpdate A JSON object containing
|
|
94
|
+
* @summary Update an existing Pipeline Step
|
|
95
|
+
* @param {number} pipelineId The ID of the pipeline.
|
|
96
|
+
* @param {string} stepId The ID of the step.
|
|
97
|
+
* @param {PipelineStepUpdate} pipelineStepUpdate A JSON object containing the resource data
|
|
98
98
|
*/
|
|
99
|
-
|
|
99
|
+
updatePipelinePipelineStep(pipelineId, stepId, pipelineStepUpdate) {
|
|
100
100
|
return __awaiter(this, void 0, void 0, function* () {
|
|
101
101
|
if (pipelineId === null || pipelineId === undefined) {
|
|
102
|
-
throw new Exceptions_1.ArgumentNullException('pipelineId', '
|
|
102
|
+
throw new Exceptions_1.ArgumentNullException('pipelineId', 'updatePipelinePipelineStep');
|
|
103
103
|
}
|
|
104
|
-
if (
|
|
105
|
-
throw new Exceptions_1.ArgumentNullException('
|
|
104
|
+
if (stepId === null || stepId === undefined) {
|
|
105
|
+
throw new Exceptions_1.ArgumentNullException('stepId', 'updatePipelinePipelineStep');
|
|
106
106
|
}
|
|
107
107
|
if (pipelineStepUpdate === null || pipelineStepUpdate === undefined) {
|
|
108
|
-
throw new Exceptions_1.ArgumentNullException('pipelineStepUpdate', '
|
|
108
|
+
throw new Exceptions_1.ArgumentNullException('pipelineStepUpdate', 'updatePipelinePipelineStep');
|
|
109
109
|
}
|
|
110
110
|
let queryString = '';
|
|
111
|
-
const requestUrl = '/pipelines/{pipeline_id}/steps/{
|
|
112
|
-
const response = yield this.put(requestUrl.replace(`{${"pipeline_id"}}`, encodeURIComponent(String(pipelineId))).replace(`{${"
|
|
111
|
+
const requestUrl = '/pipelines/{pipeline_id}/steps/{step_id}' + (queryString ? `?${queryString}` : '');
|
|
112
|
+
const response = yield this.put(requestUrl.replace(`{${"pipeline_id"}}`, encodeURIComponent(String(pipelineId))).replace(`{${"step_id"}}`, encodeURIComponent(String(stepId))), pipelineStepUpdate);
|
|
113
113
|
return new ApiResponse_1.ApiResponse(response);
|
|
114
114
|
});
|
|
115
115
|
}
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { EnvironmentLinkItem } from './environment-link-item';
|
|
13
12
|
/**
|
|
14
13
|
*
|
|
15
14
|
* @export
|
|
@@ -53,9 +52,9 @@ export interface CronJobUpdate {
|
|
|
53
52
|
*/
|
|
54
53
|
application_id?: number;
|
|
55
54
|
/**
|
|
56
|
-
*
|
|
57
|
-
* @type {Array<
|
|
55
|
+
* List of valid resource IDs
|
|
56
|
+
* @type {Array<number>}
|
|
58
57
|
* @memberof CronJobUpdate
|
|
59
58
|
*/
|
|
60
|
-
|
|
59
|
+
servers?: Array<number>;
|
|
61
60
|
}
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { EnvironmentLinkItem } from './environment-link-item';
|
|
13
12
|
/**
|
|
14
13
|
*
|
|
15
14
|
* @export
|
|
@@ -53,9 +52,9 @@ export interface DaemonUpdate {
|
|
|
53
52
|
*/
|
|
54
53
|
application_id?: number;
|
|
55
54
|
/**
|
|
56
|
-
*
|
|
57
|
-
* @type {Array<
|
|
55
|
+
* List of valid resource IDs
|
|
56
|
+
* @type {Array<number>}
|
|
58
57
|
* @memberof DaemonUpdate
|
|
59
58
|
*/
|
|
60
|
-
|
|
59
|
+
servers?: Array<number>;
|
|
61
60
|
}
|
|
@@ -131,6 +131,7 @@ export * from './pipeline-step';
|
|
|
131
131
|
export * from './pipeline-step-create';
|
|
132
132
|
export * from './pipeline-step-runner-name';
|
|
133
133
|
export * from './pipeline-step-update';
|
|
134
|
+
export * from './pipeline-update';
|
|
134
135
|
export * from './project';
|
|
135
136
|
export * from './project-create';
|
|
136
137
|
export * from './project-relation';
|
|
@@ -147,6 +147,7 @@ __exportStar(require("./pipeline-step"), exports);
|
|
|
147
147
|
__exportStar(require("./pipeline-step-create"), exports);
|
|
148
148
|
__exportStar(require("./pipeline-step-runner-name"), exports);
|
|
149
149
|
__exportStar(require("./pipeline-step-update"), exports);
|
|
150
|
+
__exportStar(require("./pipeline-update"), exports);
|
|
150
151
|
__exportStar(require("./project"), exports);
|
|
151
152
|
__exportStar(require("./project-create"), exports);
|
|
152
153
|
__exportStar(require("./project-relation"), exports);
|
|
@@ -17,13 +17,19 @@ import { PipelineStepRunnerName } from './pipeline-step-runner-name';
|
|
|
17
17
|
*/
|
|
18
18
|
export interface PipelineStepCreate {
|
|
19
19
|
/**
|
|
20
|
-
* Name/short description of the script
|
|
20
|
+
* Name/short description of the script. Must be at least 4 characters. Must not be greater than 60 characters.
|
|
21
21
|
* @type {string}
|
|
22
22
|
* @memberof PipelineStepCreate
|
|
23
23
|
*/
|
|
24
24
|
name: string;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* The pipeline step\'s type. Must not be greater than 20 characters.
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof PipelineStepCreate
|
|
29
|
+
*/
|
|
30
|
+
type?: string;
|
|
31
|
+
/**
|
|
32
|
+
* A command line or multiline bash script. Must be at least 10 characters. Must not be greater than 300 characters.
|
|
27
33
|
* @type {string}
|
|
28
34
|
* @memberof PipelineStepCreate
|
|
29
35
|
*/
|
|
@@ -35,7 +41,7 @@ export interface PipelineStepCreate {
|
|
|
35
41
|
*/
|
|
36
42
|
runner: PipelineStepRunnerName;
|
|
37
43
|
/**
|
|
38
|
-
* The name of the Unix user on behalf of which the script will be executed
|
|
44
|
+
* The name of the Unix user on behalf of which the script will be executed. Must not be greater than 60 characters.
|
|
39
45
|
* @type {string}
|
|
40
46
|
* @memberof PipelineStepCreate
|
|
41
47
|
*/
|
|
@@ -17,19 +17,25 @@ import { PipelineStepRunnerName } from './pipeline-step-runner-name';
|
|
|
17
17
|
*/
|
|
18
18
|
export interface PipelineStepUpdate {
|
|
19
19
|
/**
|
|
20
|
-
* The ID of the pipeline step
|
|
20
|
+
* The unique ID of the given pipeline step.
|
|
21
21
|
* @type {number}
|
|
22
22
|
* @memberof PipelineStepUpdate
|
|
23
23
|
*/
|
|
24
24
|
id: number;
|
|
25
25
|
/**
|
|
26
|
-
* Name/short description of the script
|
|
26
|
+
* Name/short description of the script. Must be at least 4 characters. Must not be greater than 60 characters.
|
|
27
27
|
* @type {string}
|
|
28
28
|
* @memberof PipelineStepUpdate
|
|
29
29
|
*/
|
|
30
30
|
name: string;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* The pipeline step\'s type. Must not be greater than 20 characters.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof PipelineStepUpdate
|
|
35
|
+
*/
|
|
36
|
+
type?: string;
|
|
37
|
+
/**
|
|
38
|
+
* A command line or multiline bash script. Must be at least 10 characters. Must not be greater than 300 characters.
|
|
33
39
|
* @type {string}
|
|
34
40
|
* @memberof PipelineStepUpdate
|
|
35
41
|
*/
|
|
@@ -41,13 +47,13 @@ export interface PipelineStepUpdate {
|
|
|
41
47
|
*/
|
|
42
48
|
runner: PipelineStepRunnerName;
|
|
43
49
|
/**
|
|
44
|
-
* The name of the Unix user on behalf of which the script will be executed
|
|
50
|
+
* The name of the Unix user on behalf of which the script will be executed. Must not be greater than 60 characters.
|
|
45
51
|
* @type {string}
|
|
46
52
|
* @memberof PipelineStepUpdate
|
|
47
53
|
*/
|
|
48
54
|
run_as_user?: string;
|
|
49
55
|
/**
|
|
50
|
-
* Repositions the pipeline step after the step with the given `trigger_order
|
|
56
|
+
* Repositions the pipeline step after the step with the given `trigger_order`. Must be at least 0. Must not be greater than 16777214.
|
|
51
57
|
* @type {number}
|
|
52
58
|
* @memberof PipelineStepUpdate
|
|
53
59
|
*/
|
|
@@ -17,19 +17,13 @@ import { PipelineStepRunnerName } from './pipeline-step-runner-name';
|
|
|
17
17
|
*/
|
|
18
18
|
export interface PipelineStep {
|
|
19
19
|
/**
|
|
20
|
-
* The pipeline step
|
|
20
|
+
* The unique ID of the given pipeline step
|
|
21
21
|
* @type {number}
|
|
22
22
|
* @memberof PipelineStep
|
|
23
23
|
*/
|
|
24
24
|
id: number;
|
|
25
25
|
/**
|
|
26
|
-
* The
|
|
27
|
-
* @type {number}
|
|
28
|
-
* @memberof PipelineStep
|
|
29
|
-
*/
|
|
30
|
-
script_id: number;
|
|
31
|
-
/**
|
|
32
|
-
* Name of the pipeline step
|
|
26
|
+
* The pipeline step\'s name
|
|
33
27
|
* @type {string}
|
|
34
28
|
* @memberof PipelineStep
|
|
35
29
|
*/
|
|
@@ -40,6 +34,12 @@ export interface PipelineStep {
|
|
|
40
34
|
* @memberof PipelineStep
|
|
41
35
|
*/
|
|
42
36
|
type: string;
|
|
37
|
+
/**
|
|
38
|
+
* The name of the Unix user on behalf of which the script will be executed
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof PipelineStep
|
|
41
|
+
*/
|
|
42
|
+
run_as_user: string;
|
|
43
43
|
/**
|
|
44
44
|
* A command line or multiline bash pipeline step
|
|
45
45
|
* @type {string}
|
|
@@ -53,13 +53,19 @@ export interface PipelineStep {
|
|
|
53
53
|
*/
|
|
54
54
|
runner: PipelineStepRunnerName;
|
|
55
55
|
/**
|
|
56
|
-
* The
|
|
57
|
-
* @type {
|
|
56
|
+
* The script\'s ID of this pipeline step
|
|
57
|
+
* @type {number}
|
|
58
58
|
* @memberof PipelineStep
|
|
59
59
|
*/
|
|
60
|
-
|
|
60
|
+
script_id: number;
|
|
61
|
+
/**
|
|
62
|
+
* The pipeline\'s ID
|
|
63
|
+
* @type {number}
|
|
64
|
+
* @memberof PipelineStep
|
|
65
|
+
*/
|
|
66
|
+
pipeline_id: number;
|
|
61
67
|
/**
|
|
62
|
-
* The relative order of the
|
|
68
|
+
* The relative order of the step execution in case of multiple steps attached to pipeline
|
|
63
69
|
* @type {number}
|
|
64
70
|
* @memberof PipelineStep
|
|
65
71
|
*/
|
|
@@ -81,11 +87,11 @@ export interface PipelineStep {
|
|
|
81
87
|
* @type {string}
|
|
82
88
|
* @memberof PipelineStep
|
|
83
89
|
*/
|
|
84
|
-
created_at
|
|
90
|
+
created_at: string;
|
|
85
91
|
/**
|
|
86
92
|
* The date and time when the record was last updated
|
|
87
93
|
* @type {string}
|
|
88
94
|
* @memberof PipelineStep
|
|
89
95
|
*/
|
|
90
|
-
updated_at
|
|
96
|
+
updated_at: string;
|
|
91
97
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* devopness API
|
|
3
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface PipelineUpdate
|
|
16
|
+
*/
|
|
17
|
+
export interface PipelineUpdate {
|
|
18
|
+
/**
|
|
19
|
+
* The unique ID of the given pipeline.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof PipelineUpdate
|
|
22
|
+
*/
|
|
23
|
+
id: number;
|
|
24
|
+
/**
|
|
25
|
+
* The pipeline\'s name. Must be at least 3 characters. Must not be greater than 80 characters.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PipelineUpdate
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* devopness API
|
|
5
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { PipelineStep } from './pipeline-step';
|
|
13
|
+
import { UserRelation } from './user-relation';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -17,7 +18,7 @@ import { PipelineStep } from './pipeline-step';
|
|
|
17
18
|
*/
|
|
18
19
|
export interface Pipeline {
|
|
19
20
|
/**
|
|
20
|
-
* The unique
|
|
21
|
+
* The unique ID of the given pipeline
|
|
21
22
|
* @type {number}
|
|
22
23
|
* @memberof Pipeline
|
|
23
24
|
*/
|
|
@@ -29,35 +30,41 @@ export interface Pipeline {
|
|
|
29
30
|
*/
|
|
30
31
|
name: string;
|
|
31
32
|
/**
|
|
32
|
-
*
|
|
33
|
-
* @type {
|
|
33
|
+
* ID of the environment this pipeline belongs to
|
|
34
|
+
* @type {number}
|
|
34
35
|
* @memberof Pipeline
|
|
35
36
|
*/
|
|
36
|
-
|
|
37
|
+
environment_id: number;
|
|
37
38
|
/**
|
|
38
|
-
*
|
|
39
|
+
* ID of the project this pipeline belongs to
|
|
39
40
|
* @type {number}
|
|
40
41
|
* @memberof Pipeline
|
|
41
42
|
*/
|
|
42
|
-
|
|
43
|
+
project_id: number;
|
|
43
44
|
/**
|
|
44
|
-
* The pipeline\'s
|
|
45
|
-
* @type {
|
|
45
|
+
* The pipeline\'s resource type
|
|
46
|
+
* @type {string}
|
|
46
47
|
* @memberof Pipeline
|
|
47
48
|
*/
|
|
48
|
-
|
|
49
|
+
resource_type: string;
|
|
49
50
|
/**
|
|
50
|
-
*
|
|
51
|
+
* The pipeline\'s resource ID
|
|
51
52
|
* @type {number}
|
|
52
53
|
* @memberof Pipeline
|
|
53
54
|
*/
|
|
54
|
-
|
|
55
|
+
resource_id: number;
|
|
55
56
|
/**
|
|
56
57
|
*
|
|
57
58
|
* @type {Array<PipelineStep>}
|
|
58
59
|
* @memberof Pipeline
|
|
59
60
|
*/
|
|
60
|
-
steps
|
|
61
|
+
steps: Array<PipelineStep>;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {UserRelation}
|
|
65
|
+
* @memberof Pipeline
|
|
66
|
+
*/
|
|
67
|
+
created_by_user: UserRelation;
|
|
61
68
|
/**
|
|
62
69
|
* The date and time when the record was created
|
|
63
70
|
* @type {string}
|