@devopness/sdk-js 2.18.0 → 2.20.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.
@@ -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 pipeline by ID
22
- * @param {number} pipelineId Unique ID of the pipeline to be deleted
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 pipeline by ID
28
- * @param {number} pipelineId Unique ID of the pipeline to get information from
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 a pipeline by ID
34
- * @param {number} pipelineId Unique ID of the pipeline to update information from
35
- * @param {Pipeline} pipeline A JSON object containing pipeline data
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, pipeline: Pipeline): Promise<ApiResponse<void>>;
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 pipeline by ID
35
- * @param {number} pipelineId Unique ID of the pipeline to be deleted
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 pipeline by ID
51
- * @param {number} pipelineId Unique ID of the pipeline to get information from
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 a pipeline by ID
67
- * @param {number} pipelineId Unique ID of the pipeline to update information from
68
- * @param {Pipeline} pipeline A JSON object containing pipeline data
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, pipeline) {
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 (pipeline === null || pipeline === undefined) {
76
- throw new Exceptions_1.ArgumentNullException('pipeline', 'updatePipeline');
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))), pipeline);
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 Creates a step for a pipeline
24
- * @param {number} pipelineId Unique ID of the pipeline to add the step to
25
- * @param {PipelineStepCreate} pipelineStepCreate A JSON object containing pipeline script data
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
- createPipelineStep(pipelineId: number, pipelineStepCreate: PipelineStepCreate): Promise<ApiResponse<PipelineStep>>;
27
+ addPipelinePipelineStep(pipelineId: number, pipelineStepCreate: PipelineStepCreate): Promise<ApiResponse<PipelineStep>>;
28
28
  /**
29
29
  *
30
- * @summary Link a step to a pipeline
31
- * @param {number} pipelineId Unique ID of the pipeline
32
- * @param {number} pipelineStepId Unique ID of the step to be linked
30
+ * @summary Link a step to a Pipeline
31
+ * @param {number} pipelineId The ID of the pipeline.
32
+ * @param {number} stepId The ID of the step.
33
33
  */
34
- linkStepToPipeline(pipelineId: number, pipelineStepId: number): Promise<ApiResponse<void>>;
34
+ linkPipelineStepToPipeline(pipelineId: number, stepId: number): Promise<ApiResponse<void>>;
35
35
  /**
36
36
  *
37
- * @summary Unlink a step from a pipeline
38
- * @param {number} pipelineId Unique ID of the pipeline
39
- * @param {number} pipelineStepId Unique ID of the step to be unlinked
37
+ * @summary Unlink a step from a Pipeline
38
+ * @param {number} pipelineId The ID of the pipeline.
39
+ * @param {number} stepId The ID of the step.
40
40
  */
41
- unlinkStepFromPipeline(pipelineId: number, pipelineStepId: number): Promise<ApiResponse<void>>;
41
+ unlinkPipelineStepFromPipeline(pipelineId: number, stepId: number): Promise<ApiResponse<void>>;
42
42
  /**
43
43
  *
44
- * @summary Update a pipeline step
45
- * @param {number} pipelineId Unique ID of the pipeline
46
- * @param {number} pipelineStepId Unique ID of the pipeline step to update information from
47
- * @param {PipelineStepUpdate} pipelineStepUpdate A JSON object containing pipeline step data
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
- updatePipelineStep(pipelineId: number, pipelineStepId: number, pipelineStepUpdate: PipelineStepUpdate): Promise<ApiResponse<void>>;
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 Creates a step for a pipeline
35
- * @param {number} pipelineId Unique ID of the pipeline to add the step to
36
- * @param {PipelineStepCreate} pipelineStepCreate A JSON object containing pipeline script data
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
- createPipelineStep(pipelineId, pipelineStepCreate) {
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', 'createPipelineStep');
41
+ throw new Exceptions_1.ArgumentNullException('pipelineId', 'addPipelinePipelineStep');
42
42
  }
43
43
  if (pipelineStepCreate === null || pipelineStepCreate === undefined) {
44
- throw new Exceptions_1.ArgumentNullException('pipelineStepCreate', 'createPipelineStep');
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 pipeline
55
- * @param {number} pipelineId Unique ID of the pipeline
56
- * @param {number} pipelineStepId Unique ID of the step to be linked
54
+ * @summary Link a step to a Pipeline
55
+ * @param {number} pipelineId The ID of the pipeline.
56
+ * @param {number} stepId The ID of the step.
57
57
  */
58
- linkStepToPipeline(pipelineId, pipelineStepId) {
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', 'linkStepToPipeline');
61
+ throw new Exceptions_1.ArgumentNullException('pipelineId', 'linkPipelineStepToPipeline');
62
62
  }
63
- if (pipelineStepId === null || pipelineStepId === undefined) {
64
- throw new Exceptions_1.ArgumentNullException('pipelineStepId', 'linkStepToPipeline');
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/{pipeline_step_id}' + (queryString ? `?${queryString}` : '');
68
- const response = yield this.post(requestUrl.replace(`{${"pipeline_id"}}`, encodeURIComponent(String(pipelineId))).replace(`{${"pipeline_step_id"}}`, encodeURIComponent(String(pipelineStepId))));
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 pipeline
75
- * @param {number} pipelineId Unique ID of the pipeline
76
- * @param {number} pipelineStepId Unique ID of the step to be unlinked
74
+ * @summary Unlink a step from a Pipeline
75
+ * @param {number} pipelineId The ID of the pipeline.
76
+ * @param {number} stepId The ID of the step.
77
77
  */
78
- unlinkStepFromPipeline(pipelineId, pipelineStepId) {
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', 'unlinkStepFromPipeline');
81
+ throw new Exceptions_1.ArgumentNullException('pipelineId', 'unlinkPipelineStepFromPipeline');
82
82
  }
83
- if (pipelineStepId === null || pipelineStepId === undefined) {
84
- throw new Exceptions_1.ArgumentNullException('pipelineStepId', 'unlinkStepFromPipeline');
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/{pipeline_step_id}' + (queryString ? `?${queryString}` : '');
88
- const response = yield this.delete(requestUrl.replace(`{${"pipeline_id"}}`, encodeURIComponent(String(pipelineId))).replace(`{${"pipeline_step_id"}}`, encodeURIComponent(String(pipelineStepId))));
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 a pipeline step
95
- * @param {number} pipelineId Unique ID of the pipeline
96
- * @param {number} pipelineStepId Unique ID of the pipeline step to update information from
97
- * @param {PipelineStepUpdate} pipelineStepUpdate A JSON object containing pipeline step data
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
- updatePipelineStep(pipelineId, pipelineStepId, pipelineStepUpdate) {
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', 'updatePipelineStep');
102
+ throw new Exceptions_1.ArgumentNullException('pipelineId', 'updatePipelinePipelineStep');
103
103
  }
104
- if (pipelineStepId === null || pipelineStepId === undefined) {
105
- throw new Exceptions_1.ArgumentNullException('pipelineStepId', 'updatePipelineStep');
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', 'updatePipelineStep');
108
+ throw new Exceptions_1.ArgumentNullException('pipelineStepUpdate', 'updatePipelinePipelineStep');
109
109
  }
110
110
  let queryString = '';
111
- const requestUrl = '/pipelines/{pipeline_id}/steps/{pipeline_step_id}' + (queryString ? `?${queryString}` : '');
112
- const response = yield this.put(requestUrl.replace(`{${"pipeline_id"}}`, encodeURIComponent(String(pipelineId))).replace(`{${"pipeline_step_id"}}`, encodeURIComponent(String(pipelineStepId))), pipelineStepUpdate);
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<EnvironmentLinkItem>}
55
+ * List of valid resource IDs
56
+ * @type {Array<number>}
58
57
  * @memberof CronJobUpdate
59
58
  */
60
- environments?: Array<EnvironmentLinkItem>;
59
+ servers?: Array<number>;
61
60
  }
@@ -9,13 +9,18 @@
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
16
15
  * @interface DaemonUpdate
17
16
  */
18
17
  export interface DaemonUpdate {
18
+ /**
19
+ * The unique ID of the given daemon.
20
+ * @type {number}
21
+ * @memberof DaemonUpdate
22
+ */
23
+ id: number;
19
24
  /**
20
25
  * The command line to be executed to start the daemon. Must not be greater than 255 characters.
21
26
  * @type {string}
@@ -53,9 +58,9 @@ export interface DaemonUpdate {
53
58
  */
54
59
  application_id?: number;
55
60
  /**
56
- *
57
- * @type {Array<EnvironmentLinkItem>}
61
+ * List of valid resource IDs
62
+ * @type {Array<number>}
58
63
  * @memberof DaemonUpdate
59
64
  */
60
- environments?: Array<EnvironmentLinkItem>;
65
+ servers?: Array<number>;
61
66
  }
@@ -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
- * A command line or multiline bash script
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
- * A command line or multiline bash script
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\'s ID
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 script\'s ID of this pipeline step
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 name of the Unix user on behalf of which the script will be executed
57
- * @type {string}
56
+ * The script\'s ID of this pipeline step
57
+ * @type {number}
58
58
  * @memberof PipelineStep
59
59
  */
60
- run_as_user: string;
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 pipeline step execution in case the event has multiple pipeline step attached
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?: string;
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?: string;
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 id of the given record
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
- * The pipeline\'s resource type
33
- * @type {string}
33
+ * ID of the environment this pipeline belongs to
34
+ * @type {number}
34
35
  * @memberof Pipeline
35
36
  */
36
- resource_type: string;
37
+ environment_id: number;
37
38
  /**
38
- * The pipeline\'s resource id
39
+ * ID of the project this pipeline belongs to
39
40
  * @type {number}
40
41
  * @memberof Pipeline
41
42
  */
42
- resource_id: number;
43
+ project_id: number;
43
44
  /**
44
- * The pipeline\'s project id
45
- * @type {number}
45
+ * The pipeline\'s resource type
46
+ * @type {string}
46
47
  * @memberof Pipeline
47
48
  */
48
- project_id: number;
49
+ resource_type: string;
49
50
  /**
50
- * id of the user responsible for creating the pipeline
51
+ * The pipeline\'s resource ID
51
52
  * @type {number}
52
53
  * @memberof Pipeline
53
54
  */
54
- created_by: number;
55
+ resource_id: number;
55
56
  /**
56
57
  *
57
58
  * @type {Array<PipelineStep>}
58
59
  * @memberof Pipeline
59
60
  */
60
- steps?: Array<PipelineStep>;
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}
@@ -17,6 +17,12 @@ import { VariableType } from './variable-type';
17
17
  * @interface VariableUpdate
18
18
  */
19
19
  export interface VariableUpdate {
20
+ /**
21
+ * The unique ID of the variable.
22
+ * @type {number}
23
+ * @memberof VariableUpdate
24
+ */
25
+ id: number;
20
26
  /**
21
27
  * The unique key used to identify the variable on the target. When variable is of type `file`, this is the relative path to the file within the application directory. Must not be greater than 100 characters.
22
28
  * @type {string}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devopness/sdk-js",
3
- "version": "2.18.0",
3
+ "version": "2.20.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },