@devopness/sdk-js 2.30.0 → 2.32.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/actions-logs-api.d.ts +27 -0
- package/dist/api/generated/apis/{projects-services-api.js → actions-logs-api.js} +19 -20
- package/dist/api/generated/models/index.d.ts +0 -8
- package/dist/api/generated/models/index.js +0 -8
- package/dist/api/generated/models/log.d.ts +14 -7
- package/dist/services/LogService.d.ts +2 -2
- package/dist/services/LogService.js +2 -2
- package/dist/services/ProjectService.d.ts +0 -14
- package/dist/services/ProjectService.js +0 -14
- package/package.json +1 -1
- package/dist/api/generated/apis/logs-api.d.ts +0 -64
- package/dist/api/generated/apis/logs-api.js +0 -153
- package/dist/api/generated/apis/projects-applications-api.d.ts +0 -36
- package/dist/api/generated/apis/projects-applications-api.js +0 -78
- package/dist/api/generated/apis/projects-cron-jobs-api.d.ts +0 -36
- package/dist/api/generated/apis/projects-cron-jobs-api.js +0 -78
- package/dist/api/generated/apis/projects-daemons-api.d.ts +0 -36
- package/dist/api/generated/apis/projects-daemons-api.js +0 -78
- package/dist/api/generated/apis/projects-network-rules-api.d.ts +0 -27
- package/dist/api/generated/apis/projects-network-rules-api.js +0 -58
- package/dist/api/generated/apis/projects-servers-api.d.ts +0 -36
- package/dist/api/generated/apis/projects-servers-api.js +0 -78
- package/dist/api/generated/apis/projects-services-api.d.ts +0 -27
- package/dist/api/generated/apis/projects-sshkeys-api.d.ts +0 -36
- package/dist/api/generated/apis/projects-sshkeys-api.js +0 -78
- package/dist/api/generated/models/application-project-create.d.ts +0 -140
- package/dist/api/generated/models/application-project-create.js +0 -14
- package/dist/api/generated/models/cron-job-project-create.d.ts +0 -61
- package/dist/api/generated/models/cron-job-project-create.js +0 -14
- package/dist/api/generated/models/daemon-project-create.d.ts +0 -61
- package/dist/api/generated/models/daemon-project-create.js +0 -14
- package/dist/api/generated/models/network-rule-project-create.d.ts +0 -69
- package/dist/api/generated/models/network-rule-project-create.js +0 -14
- package/dist/api/generated/models/server-action-log.d.ts +0 -37
- package/dist/api/generated/models/server-action-log.js +0 -14
- package/dist/api/generated/models/server-project-create.d.ts +0 -50
- package/dist/api/generated/models/server-project-create.js +0 -14
- package/dist/api/generated/models/service-project-create.d.ts +0 -51
- package/dist/api/generated/models/service-project-create.js +0 -14
- package/dist/api/generated/models/ssh-key-project-create.d.ts +0 -37
- package/dist/api/generated/models/ssh-key-project-create.js +0 -14
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
|
+
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
|
+
import { Log } from '../../generated/models';
|
|
15
|
+
/**
|
|
16
|
+
* ActionsLogsApiService - Auto-generated
|
|
17
|
+
*/
|
|
18
|
+
export declare class ActionsLogsApiService extends ApiBaseService {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @summary Get action server step log
|
|
22
|
+
* @param {number} actionId The ID of the action.
|
|
23
|
+
* @param {number} actionStepOrder The action step order.
|
|
24
|
+
* @param {number} serverId The ID of the server.
|
|
25
|
+
*/
|
|
26
|
+
getActionLog(actionId: number, actionStepOrder: number, serverId: number): Promise<ApiResponse<Log>>;
|
|
27
|
+
}
|
|
@@ -21,38 +21,37 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
-
exports.
|
|
24
|
+
exports.ActionsLogsApiService = void 0;
|
|
25
25
|
const ApiBaseService_1 = require("../../../services/ApiBaseService");
|
|
26
26
|
const ApiResponse_1 = require("../../../common/ApiResponse");
|
|
27
27
|
const Exceptions_1 = require("../../../common/Exceptions");
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* ActionsLogsApiService - Auto-generated
|
|
30
30
|
*/
|
|
31
|
-
class
|
|
31
|
+
class ActionsLogsApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
|
-
* @summary
|
|
35
|
-
* @param {number}
|
|
36
|
-
* @param {number}
|
|
37
|
-
* @param {number}
|
|
34
|
+
* @summary Get action server step log
|
|
35
|
+
* @param {number} actionId The ID of the action.
|
|
36
|
+
* @param {number} actionStepOrder The action step order.
|
|
37
|
+
* @param {number} serverId The ID of the server.
|
|
38
38
|
*/
|
|
39
|
-
|
|
39
|
+
getActionLog(actionId, actionStepOrder, serverId) {
|
|
40
40
|
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
-
if (
|
|
42
|
-
throw new Exceptions_1.ArgumentNullException('
|
|
41
|
+
if (actionId === null || actionId === undefined) {
|
|
42
|
+
throw new Exceptions_1.ArgumentNullException('actionId', 'getActionLog');
|
|
43
43
|
}
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
44
|
+
if (actionStepOrder === null || actionStepOrder === undefined) {
|
|
45
|
+
throw new Exceptions_1.ArgumentNullException('actionStepOrder', 'getActionLog');
|
|
46
|
+
}
|
|
47
|
+
if (serverId === null || serverId === undefined) {
|
|
48
|
+
throw new Exceptions_1.ArgumentNullException('serverId', 'getActionLog');
|
|
51
49
|
}
|
|
52
|
-
|
|
53
|
-
const
|
|
50
|
+
let queryString = '';
|
|
51
|
+
const requestUrl = '/actions/{action_id}/servers/{server_id}/steps/{action_step_order}/logs' + (queryString ? `?${queryString}` : '');
|
|
52
|
+
const response = yield this.get(requestUrl.replace(`{${"action_id"}}`, encodeURIComponent(String(actionId))).replace(`{${"action_step_order"}}`, encodeURIComponent(String(actionStepOrder))).replace(`{${"server_id"}}`, encodeURIComponent(String(serverId))));
|
|
54
53
|
return new ApiResponse_1.ApiResponse(response);
|
|
55
54
|
});
|
|
56
55
|
}
|
|
57
56
|
}
|
|
58
|
-
exports.
|
|
57
|
+
exports.ActionsLogsApiService = ActionsLogsApiService;
|
|
@@ -26,7 +26,6 @@ export * from './application-environment-create';
|
|
|
26
26
|
export * from './application-last-deployments';
|
|
27
27
|
export * from './application-options';
|
|
28
28
|
export * from './application-pipeline';
|
|
29
|
-
export * from './application-project-create';
|
|
30
29
|
export * from './application-relation';
|
|
31
30
|
export * from './application-type';
|
|
32
31
|
export * from './application-update';
|
|
@@ -57,12 +56,10 @@ export * from './cron-job';
|
|
|
57
56
|
export * from './cron-job-environment-create';
|
|
58
57
|
export * from './cron-job-options';
|
|
59
58
|
export * from './cron-job-pattern';
|
|
60
|
-
export * from './cron-job-project-create';
|
|
61
59
|
export * from './cron-job-relation';
|
|
62
60
|
export * from './cron-job-update';
|
|
63
61
|
export * from './daemon';
|
|
64
62
|
export * from './daemon-environment-create';
|
|
65
|
-
export * from './daemon-project-create';
|
|
66
63
|
export * from './daemon-relation';
|
|
67
64
|
export * from './daemon-restart';
|
|
68
65
|
export * from './daemon-update';
|
|
@@ -115,7 +112,6 @@ export * from './member';
|
|
|
115
112
|
export * from './member-relation';
|
|
116
113
|
export * from './network-rule';
|
|
117
114
|
export * from './network-rule-environment-create';
|
|
118
|
-
export * from './network-rule-project-create';
|
|
119
115
|
export * from './network-rule-protocol';
|
|
120
116
|
export * from './network-rule-relation';
|
|
121
117
|
export * from './network-rule-type';
|
|
@@ -149,7 +145,6 @@ export * from './role-update';
|
|
|
149
145
|
export * from './script-runner';
|
|
150
146
|
export * from './server';
|
|
151
147
|
export * from './server-action';
|
|
152
|
-
export * from './server-action-log';
|
|
153
148
|
export * from './server-action-log-step';
|
|
154
149
|
export * from './server-blueprint';
|
|
155
150
|
export * from './server-cloud-service';
|
|
@@ -158,7 +153,6 @@ export * from './server-command';
|
|
|
158
153
|
export * from './server-commands';
|
|
159
154
|
export * from './server-connect';
|
|
160
155
|
export * from './server-environment-create';
|
|
161
|
-
export * from './server-project-create';
|
|
162
156
|
export * from './server-provider';
|
|
163
157
|
export * from './server-provision-settings';
|
|
164
158
|
export * from './server-relation';
|
|
@@ -167,7 +161,6 @@ export * from './service';
|
|
|
167
161
|
export * from './service-environment-create';
|
|
168
162
|
export * from './service-initial-state';
|
|
169
163
|
export * from './service-options';
|
|
170
|
-
export * from './service-project-create';
|
|
171
164
|
export * from './service-relation';
|
|
172
165
|
export * from './service-reload';
|
|
173
166
|
export * from './service-restart';
|
|
@@ -188,7 +181,6 @@ export * from './source-provider-name';
|
|
|
188
181
|
export * from './source-provider-relation';
|
|
189
182
|
export * from './ssh-key';
|
|
190
183
|
export * from './ssh-key-environment-create';
|
|
191
|
-
export * from './ssh-key-project-create';
|
|
192
184
|
export * from './ssh-key-relation';
|
|
193
185
|
export * from './ssh-key-update';
|
|
194
186
|
export * from './ssl-certificate';
|
|
@@ -42,7 +42,6 @@ __exportStar(require("./application-environment-create"), exports);
|
|
|
42
42
|
__exportStar(require("./application-last-deployments"), exports);
|
|
43
43
|
__exportStar(require("./application-options"), exports);
|
|
44
44
|
__exportStar(require("./application-pipeline"), exports);
|
|
45
|
-
__exportStar(require("./application-project-create"), exports);
|
|
46
45
|
__exportStar(require("./application-relation"), exports);
|
|
47
46
|
__exportStar(require("./application-type"), exports);
|
|
48
47
|
__exportStar(require("./application-update"), exports);
|
|
@@ -73,12 +72,10 @@ __exportStar(require("./cron-job"), exports);
|
|
|
73
72
|
__exportStar(require("./cron-job-environment-create"), exports);
|
|
74
73
|
__exportStar(require("./cron-job-options"), exports);
|
|
75
74
|
__exportStar(require("./cron-job-pattern"), exports);
|
|
76
|
-
__exportStar(require("./cron-job-project-create"), exports);
|
|
77
75
|
__exportStar(require("./cron-job-relation"), exports);
|
|
78
76
|
__exportStar(require("./cron-job-update"), exports);
|
|
79
77
|
__exportStar(require("./daemon"), exports);
|
|
80
78
|
__exportStar(require("./daemon-environment-create"), exports);
|
|
81
|
-
__exportStar(require("./daemon-project-create"), exports);
|
|
82
79
|
__exportStar(require("./daemon-relation"), exports);
|
|
83
80
|
__exportStar(require("./daemon-restart"), exports);
|
|
84
81
|
__exportStar(require("./daemon-update"), exports);
|
|
@@ -131,7 +128,6 @@ __exportStar(require("./member"), exports);
|
|
|
131
128
|
__exportStar(require("./member-relation"), exports);
|
|
132
129
|
__exportStar(require("./network-rule"), exports);
|
|
133
130
|
__exportStar(require("./network-rule-environment-create"), exports);
|
|
134
|
-
__exportStar(require("./network-rule-project-create"), exports);
|
|
135
131
|
__exportStar(require("./network-rule-protocol"), exports);
|
|
136
132
|
__exportStar(require("./network-rule-relation"), exports);
|
|
137
133
|
__exportStar(require("./network-rule-type"), exports);
|
|
@@ -165,7 +161,6 @@ __exportStar(require("./role-update"), exports);
|
|
|
165
161
|
__exportStar(require("./script-runner"), exports);
|
|
166
162
|
__exportStar(require("./server"), exports);
|
|
167
163
|
__exportStar(require("./server-action"), exports);
|
|
168
|
-
__exportStar(require("./server-action-log"), exports);
|
|
169
164
|
__exportStar(require("./server-action-log-step"), exports);
|
|
170
165
|
__exportStar(require("./server-blueprint"), exports);
|
|
171
166
|
__exportStar(require("./server-cloud-service"), exports);
|
|
@@ -174,7 +169,6 @@ __exportStar(require("./server-command"), exports);
|
|
|
174
169
|
__exportStar(require("./server-commands"), exports);
|
|
175
170
|
__exportStar(require("./server-connect"), exports);
|
|
176
171
|
__exportStar(require("./server-environment-create"), exports);
|
|
177
|
-
__exportStar(require("./server-project-create"), exports);
|
|
178
172
|
__exportStar(require("./server-provider"), exports);
|
|
179
173
|
__exportStar(require("./server-provision-settings"), exports);
|
|
180
174
|
__exportStar(require("./server-relation"), exports);
|
|
@@ -183,7 +177,6 @@ __exportStar(require("./service"), exports);
|
|
|
183
177
|
__exportStar(require("./service-environment-create"), exports);
|
|
184
178
|
__exportStar(require("./service-initial-state"), exports);
|
|
185
179
|
__exportStar(require("./service-options"), exports);
|
|
186
|
-
__exportStar(require("./service-project-create"), exports);
|
|
187
180
|
__exportStar(require("./service-relation"), exports);
|
|
188
181
|
__exportStar(require("./service-reload"), exports);
|
|
189
182
|
__exportStar(require("./service-restart"), exports);
|
|
@@ -204,7 +197,6 @@ __exportStar(require("./source-provider-name"), exports);
|
|
|
204
197
|
__exportStar(require("./source-provider-relation"), exports);
|
|
205
198
|
__exportStar(require("./ssh-key"), exports);
|
|
206
199
|
__exportStar(require("./ssh-key-environment-create"), exports);
|
|
207
|
-
__exportStar(require("./ssh-key-project-create"), exports);
|
|
208
200
|
__exportStar(require("./ssh-key-relation"), exports);
|
|
209
201
|
__exportStar(require("./ssh-key-update"), exports);
|
|
210
202
|
__exportStar(require("./ssl-certificate"), exports);
|
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { ServerActionLogStep } from './server-action-log-step';
|
|
13
|
+
import { ServerRelation } from './server-relation';
|
|
13
14
|
/**
|
|
14
15
|
*
|
|
15
16
|
* @export
|
|
@@ -17,15 +18,21 @@ import { ServerActionLog } from './server-action-log';
|
|
|
17
18
|
*/
|
|
18
19
|
export interface Log {
|
|
19
20
|
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {
|
|
21
|
+
*
|
|
22
|
+
* @type {ServerRelation}
|
|
22
23
|
* @memberof Log
|
|
23
24
|
*/
|
|
24
|
-
|
|
25
|
+
server: ServerRelation | null;
|
|
25
26
|
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {
|
|
27
|
+
*
|
|
28
|
+
* @type {ServerActionLogStep}
|
|
29
|
+
* @memberof Log
|
|
30
|
+
*/
|
|
31
|
+
step: ServerActionLogStep | null;
|
|
32
|
+
/**
|
|
33
|
+
* The date and time when the requested log record was last updated
|
|
34
|
+
* @type {string}
|
|
28
35
|
* @memberof Log
|
|
29
36
|
*/
|
|
30
|
-
|
|
37
|
+
updated_at: string | null;
|
|
31
38
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class LogService extends
|
|
1
|
+
import { ActionsLogsApiService } from "../api/generated/apis/actions-logs-api";
|
|
2
|
+
export declare class LogService extends ActionsLogsApiService {
|
|
3
3
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.LogService = void 0;
|
|
4
|
-
const
|
|
5
|
-
class LogService extends
|
|
4
|
+
const actions_logs_api_1 = require("../api/generated/apis/actions-logs-api");
|
|
5
|
+
class LogService extends actions_logs_api_1.ActionsLogsApiService {
|
|
6
6
|
}
|
|
7
7
|
exports.LogService = LogService;
|
|
@@ -1,25 +1,11 @@
|
|
|
1
1
|
import { ProjectsApiService } from '../api/generated/apis/projects-api';
|
|
2
2
|
import { ProjectsActionsApiService } from '../api/generated/apis/projects-actions-api';
|
|
3
|
-
import { ProjectsApplicationsApiService } from '../api/generated/apis/projects-applications-api';
|
|
4
|
-
import { ProjectsCronJobsApiService } from '../api/generated/apis/projects-cron-jobs-api';
|
|
5
3
|
import { ProjectsEnvironmentsApiService } from '../api/generated/apis/projects-environments-api';
|
|
6
|
-
import { ProjectsNetworkRulesApiService } from '../api/generated/apis/projects-network-rules-api';
|
|
7
|
-
import { ProjectsServersApiService } from '../api/generated/apis/projects-servers-api';
|
|
8
|
-
import { ProjectsServicesApiService } from '../api/generated/apis/projects-services-api';
|
|
9
|
-
import { ProjectsSSHKeysApiService } from '../api/generated/apis/projects-sshkeys-api';
|
|
10
|
-
import { ProjectsDaemonsApiService } from '../api/generated/apis/projects-daemons-api';
|
|
11
4
|
import { ProjectsRolesApiService } from '../api/generated/apis/projects-roles-api';
|
|
12
5
|
import { ProjectsTeamsApiService } from '../api/generated/apis/projects-teams-api';
|
|
13
6
|
export declare class ProjectService extends ProjectsApiService {
|
|
14
7
|
actions: ProjectsActionsApiService;
|
|
15
|
-
applications: ProjectsApplicationsApiService;
|
|
16
|
-
cronjobs: ProjectsCronJobsApiService;
|
|
17
|
-
daemons: ProjectsDaemonsApiService;
|
|
18
8
|
environments: ProjectsEnvironmentsApiService;
|
|
19
|
-
networkRules: ProjectsNetworkRulesApiService;
|
|
20
9
|
roles: ProjectsRolesApiService;
|
|
21
|
-
servers: ProjectsServersApiService;
|
|
22
|
-
services: ProjectsServicesApiService;
|
|
23
|
-
sshKeys: ProjectsSSHKeysApiService;
|
|
24
10
|
teams: ProjectsTeamsApiService;
|
|
25
11
|
}
|
|
@@ -3,29 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ProjectService = void 0;
|
|
4
4
|
const projects_api_1 = require("../api/generated/apis/projects-api");
|
|
5
5
|
const projects_actions_api_1 = require("../api/generated/apis/projects-actions-api");
|
|
6
|
-
const projects_applications_api_1 = require("../api/generated/apis/projects-applications-api");
|
|
7
|
-
const projects_cron_jobs_api_1 = require("../api/generated/apis/projects-cron-jobs-api");
|
|
8
6
|
const projects_environments_api_1 = require("../api/generated/apis/projects-environments-api");
|
|
9
|
-
const projects_network_rules_api_1 = require("../api/generated/apis/projects-network-rules-api");
|
|
10
|
-
const projects_servers_api_1 = require("../api/generated/apis/projects-servers-api");
|
|
11
|
-
const projects_services_api_1 = require("../api/generated/apis/projects-services-api");
|
|
12
|
-
const projects_sshkeys_api_1 = require("../api/generated/apis/projects-sshkeys-api");
|
|
13
|
-
const projects_daemons_api_1 = require("../api/generated/apis/projects-daemons-api");
|
|
14
7
|
const projects_roles_api_1 = require("../api/generated/apis/projects-roles-api");
|
|
15
8
|
const projects_teams_api_1 = require("../api/generated/apis/projects-teams-api");
|
|
16
9
|
class ProjectService extends projects_api_1.ProjectsApiService {
|
|
17
10
|
constructor() {
|
|
18
11
|
super(...arguments);
|
|
19
12
|
this.actions = new projects_actions_api_1.ProjectsActionsApiService();
|
|
20
|
-
this.applications = new projects_applications_api_1.ProjectsApplicationsApiService();
|
|
21
|
-
this.cronjobs = new projects_cron_jobs_api_1.ProjectsCronJobsApiService();
|
|
22
|
-
this.daemons = new projects_daemons_api_1.ProjectsDaemonsApiService();
|
|
23
13
|
this.environments = new projects_environments_api_1.ProjectsEnvironmentsApiService();
|
|
24
|
-
this.networkRules = new projects_network_rules_api_1.ProjectsNetworkRulesApiService();
|
|
25
14
|
this.roles = new projects_roles_api_1.ProjectsRolesApiService();
|
|
26
|
-
this.servers = new projects_servers_api_1.ProjectsServersApiService();
|
|
27
|
-
this.services = new projects_services_api_1.ProjectsServicesApiService();
|
|
28
|
-
this.sshKeys = new projects_sshkeys_api_1.ProjectsSSHKeysApiService();
|
|
29
15
|
this.teams = new projects_teams_api_1.ProjectsTeamsApiService();
|
|
30
16
|
}
|
|
31
17
|
}
|
package/package.json
CHANGED
|
@@ -1,64 +0,0 @@
|
|
|
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
|
-
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
|
-
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
|
-
import { ActionStepLog } from '../../generated/models';
|
|
15
|
-
import { Log } from '../../generated/models';
|
|
16
|
-
/**
|
|
17
|
-
* LogsApiService - Auto-generated
|
|
18
|
-
*/
|
|
19
|
-
export declare class LogsApiService extends ApiBaseService {
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @summary Get action log
|
|
23
|
-
* @param {number} actionId Unique ID of the action to get logs from
|
|
24
|
-
*/
|
|
25
|
-
getActionLog(actionId: number): Promise<ApiResponse<Log>>;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @summary Get action step log
|
|
29
|
-
* @param {number} actionId Unique ID of the action to get logs from
|
|
30
|
-
* @param {number} serverId Unique ID of the server to get logs from
|
|
31
|
-
* @param {number} actionStepOrder Step\'s order number to get the logs from
|
|
32
|
-
*/
|
|
33
|
-
getActionStepLog(actionId: number, serverId: number, actionStepOrder: number): Promise<ApiResponse<ActionStepLog>>;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @summary Get service reload log
|
|
37
|
-
* @param {number} serviceId The unique id of the service
|
|
38
|
-
*/
|
|
39
|
-
getServiceReloadLog(serviceId: number): Promise<ApiResponse<Log>>;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @summary Get service restart log
|
|
43
|
-
* @param {number} serviceId The unique id of the service
|
|
44
|
-
*/
|
|
45
|
-
getServiceRestartLog(serviceId: number): Promise<ApiResponse<Log>>;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @summary Get service start log
|
|
49
|
-
* @param {number} serviceId The unique id of the service
|
|
50
|
-
*/
|
|
51
|
-
getServiceStartLog(serviceId: number): Promise<ApiResponse<Log>>;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @summary Get service status log
|
|
55
|
-
* @param {number} serviceId The unique id of the service
|
|
56
|
-
*/
|
|
57
|
-
getServiceStatusLog(serviceId: number): Promise<ApiResponse<Log>>;
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @summary Get service stop log
|
|
61
|
-
* @param {number} serviceId The unique id of the service
|
|
62
|
-
*/
|
|
63
|
-
getServiceStopLog(serviceId: number): Promise<ApiResponse<Log>>;
|
|
64
|
-
}
|
|
@@ -1,153 +0,0 @@
|
|
|
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
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
-
exports.LogsApiService = void 0;
|
|
25
|
-
const ApiBaseService_1 = require("../../../services/ApiBaseService");
|
|
26
|
-
const ApiResponse_1 = require("../../../common/ApiResponse");
|
|
27
|
-
const Exceptions_1 = require("../../../common/Exceptions");
|
|
28
|
-
/**
|
|
29
|
-
* LogsApiService - Auto-generated
|
|
30
|
-
*/
|
|
31
|
-
class LogsApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @summary Get action log
|
|
35
|
-
* @param {number} actionId Unique ID of the action to get logs from
|
|
36
|
-
*/
|
|
37
|
-
getActionLog(actionId) {
|
|
38
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
-
if (actionId === null || actionId === undefined) {
|
|
40
|
-
throw new Exceptions_1.ArgumentNullException('actionId', 'getActionLog');
|
|
41
|
-
}
|
|
42
|
-
let queryString = '';
|
|
43
|
-
const requestUrl = '/logs/action/{action_id}' + (queryString ? `?${queryString}` : '');
|
|
44
|
-
const response = yield this.get(requestUrl.replace(`{${"action_id"}}`, encodeURIComponent(String(actionId))));
|
|
45
|
-
return new ApiResponse_1.ApiResponse(response);
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
*
|
|
50
|
-
* @summary Get action step log
|
|
51
|
-
* @param {number} actionId Unique ID of the action to get logs from
|
|
52
|
-
* @param {number} serverId Unique ID of the server to get logs from
|
|
53
|
-
* @param {number} actionStepOrder Step\'s order number to get the logs from
|
|
54
|
-
*/
|
|
55
|
-
getActionStepLog(actionId, serverId, actionStepOrder) {
|
|
56
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
57
|
-
if (actionId === null || actionId === undefined) {
|
|
58
|
-
throw new Exceptions_1.ArgumentNullException('actionId', 'getActionStepLog');
|
|
59
|
-
}
|
|
60
|
-
if (serverId === null || serverId === undefined) {
|
|
61
|
-
throw new Exceptions_1.ArgumentNullException('serverId', 'getActionStepLog');
|
|
62
|
-
}
|
|
63
|
-
if (actionStepOrder === null || actionStepOrder === undefined) {
|
|
64
|
-
throw new Exceptions_1.ArgumentNullException('actionStepOrder', 'getActionStepLog');
|
|
65
|
-
}
|
|
66
|
-
let queryString = '';
|
|
67
|
-
const requestUrl = '/logs/action/{action_id}/server/{server_id}/step/{action_step_order}' + (queryString ? `?${queryString}` : '');
|
|
68
|
-
const response = yield this.get(requestUrl.replace(`{${"action_id"}}`, encodeURIComponent(String(actionId))).replace(`{${"server_id"}}`, encodeURIComponent(String(serverId))).replace(`{${"action_step_order"}}`, encodeURIComponent(String(actionStepOrder))));
|
|
69
|
-
return new ApiResponse_1.ApiResponse(response);
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
*
|
|
74
|
-
* @summary Get service reload log
|
|
75
|
-
* @param {number} serviceId The unique id of the service
|
|
76
|
-
*/
|
|
77
|
-
getServiceReloadLog(serviceId) {
|
|
78
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
79
|
-
if (serviceId === null || serviceId === undefined) {
|
|
80
|
-
throw new Exceptions_1.ArgumentNullException('serviceId', 'getServiceReloadLog');
|
|
81
|
-
}
|
|
82
|
-
let queryString = '';
|
|
83
|
-
const requestUrl = '/logs/service/{service_id}/reload' + (queryString ? `?${queryString}` : '');
|
|
84
|
-
const response = yield this.get(requestUrl.replace(`{${"service_id"}}`, encodeURIComponent(String(serviceId))));
|
|
85
|
-
return new ApiResponse_1.ApiResponse(response);
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
*
|
|
90
|
-
* @summary Get service restart log
|
|
91
|
-
* @param {number} serviceId The unique id of the service
|
|
92
|
-
*/
|
|
93
|
-
getServiceRestartLog(serviceId) {
|
|
94
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
95
|
-
if (serviceId === null || serviceId === undefined) {
|
|
96
|
-
throw new Exceptions_1.ArgumentNullException('serviceId', 'getServiceRestartLog');
|
|
97
|
-
}
|
|
98
|
-
let queryString = '';
|
|
99
|
-
const requestUrl = '/logs/service/{service_id}/restart' + (queryString ? `?${queryString}` : '');
|
|
100
|
-
const response = yield this.get(requestUrl.replace(`{${"service_id"}}`, encodeURIComponent(String(serviceId))));
|
|
101
|
-
return new ApiResponse_1.ApiResponse(response);
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
*
|
|
106
|
-
* @summary Get service start log
|
|
107
|
-
* @param {number} serviceId The unique id of the service
|
|
108
|
-
*/
|
|
109
|
-
getServiceStartLog(serviceId) {
|
|
110
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
111
|
-
if (serviceId === null || serviceId === undefined) {
|
|
112
|
-
throw new Exceptions_1.ArgumentNullException('serviceId', 'getServiceStartLog');
|
|
113
|
-
}
|
|
114
|
-
let queryString = '';
|
|
115
|
-
const requestUrl = '/logs/service/{service_id}/start' + (queryString ? `?${queryString}` : '');
|
|
116
|
-
const response = yield this.get(requestUrl.replace(`{${"service_id"}}`, encodeURIComponent(String(serviceId))));
|
|
117
|
-
return new ApiResponse_1.ApiResponse(response);
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
/**
|
|
121
|
-
*
|
|
122
|
-
* @summary Get service status log
|
|
123
|
-
* @param {number} serviceId The unique id of the service
|
|
124
|
-
*/
|
|
125
|
-
getServiceStatusLog(serviceId) {
|
|
126
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
127
|
-
if (serviceId === null || serviceId === undefined) {
|
|
128
|
-
throw new Exceptions_1.ArgumentNullException('serviceId', 'getServiceStatusLog');
|
|
129
|
-
}
|
|
130
|
-
let queryString = '';
|
|
131
|
-
const requestUrl = '/logs/service/{service_id}/status' + (queryString ? `?${queryString}` : '');
|
|
132
|
-
const response = yield this.get(requestUrl.replace(`{${"service_id"}}`, encodeURIComponent(String(serviceId))));
|
|
133
|
-
return new ApiResponse_1.ApiResponse(response);
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
/**
|
|
137
|
-
*
|
|
138
|
-
* @summary Get service stop log
|
|
139
|
-
* @param {number} serviceId The unique id of the service
|
|
140
|
-
*/
|
|
141
|
-
getServiceStopLog(serviceId) {
|
|
142
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
143
|
-
if (serviceId === null || serviceId === undefined) {
|
|
144
|
-
throw new Exceptions_1.ArgumentNullException('serviceId', 'getServiceStopLog');
|
|
145
|
-
}
|
|
146
|
-
let queryString = '';
|
|
147
|
-
const requestUrl = '/logs/service/{service_id}/stop' + (queryString ? `?${queryString}` : '');
|
|
148
|
-
const response = yield this.get(requestUrl.replace(`{${"service_id"}}`, encodeURIComponent(String(serviceId))));
|
|
149
|
-
return new ApiResponse_1.ApiResponse(response);
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
exports.LogsApiService = LogsApiService;
|
|
@@ -1,36 +0,0 @@
|
|
|
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
|
-
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
|
-
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
|
-
import { Application } from '../../generated/models';
|
|
15
|
-
import { ApplicationProjectCreate } from '../../generated/models';
|
|
16
|
-
import { ApplicationRelation } from '../../generated/models';
|
|
17
|
-
/**
|
|
18
|
-
* ProjectsApplicationsApiService - Auto-generated
|
|
19
|
-
*/
|
|
20
|
-
export declare class ProjectsApplicationsApiService extends ApiBaseService {
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @summary Create a new application
|
|
24
|
-
* @param {number} projectId The ID of the project.
|
|
25
|
-
* @param {ApplicationProjectCreate} applicationProjectCreate A JSON object containing the resource data
|
|
26
|
-
*/
|
|
27
|
-
addProjectApplication(projectId: number, applicationProjectCreate: ApplicationProjectCreate): Promise<ApiResponse<Application>>;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @summary Return a list of all applications belonging to a project
|
|
31
|
-
* @param {number} projectId The ID of the project.
|
|
32
|
-
* @param {number} [page] Number of the page to be retrieved
|
|
33
|
-
* @param {number} [perPage] Number of items returned per page
|
|
34
|
-
*/
|
|
35
|
-
listProjectApplications(projectId: number, page?: number, perPage?: number): Promise<ApiResponse<Array<ApplicationRelation>>>;
|
|
36
|
-
}
|