@devopness/sdk-js 2.29.0 → 2.31.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/actions-logs-api.js +57 -0
- package/dist/api/generated/apis/environments-network-rules-api.d.ts +9 -0
- package/dist/api/generated/apis/environments-network-rules-api.js +20 -0
- package/dist/api/generated/apis/environments-services-api.d.ts +9 -0
- package/dist/api/generated/apis/environments-services-api.js +20 -0
- package/dist/api/generated/apis/projects-network-rules-api.d.ts +0 -9
- package/dist/api/generated/apis/projects-network-rules-api.js +0 -20
- package/dist/api/generated/apis/projects-services-api.d.ts +0 -9
- package/dist/api/generated/apis/projects-services-api.js +0 -20
- package/dist/api/generated/apis/static-data-application-options-api.d.ts +1 -1
- package/dist/api/generated/apis/static-data-application-options-api.js +1 -1
- package/dist/api/generated/apis/static-data-cloud-provider-options-api.d.ts +1 -1
- package/dist/api/generated/apis/static-data-cloud-provider-options-api.js +1 -1
- package/dist/api/generated/apis/static-data-cloud-provider-service-instances-api.d.ts +1 -1
- package/dist/api/generated/apis/static-data-cloud-provider-service-instances-api.js +1 -1
- package/dist/api/generated/apis/static-data-cloud-provider-services-api.d.ts +1 -1
- package/dist/api/generated/apis/static-data-cloud-provider-services-api.js +1 -1
- package/dist/api/generated/apis/static-data-cron-job-options-api.d.ts +24 -0
- package/dist/api/generated/apis/static-data-cron-job-options-api.js +44 -0
- package/dist/api/generated/apis/static-data-environment-options-api.d.ts +24 -0
- package/dist/api/generated/apis/static-data-environment-options-api.js +44 -0
- package/dist/api/generated/apis/static-data-permissions-api.d.ts +26 -0
- package/dist/api/generated/apis/{static-data-api.js → static-data-permissions-api.js} +15 -42
- package/dist/api/generated/apis/static-data-service-options-api.d.ts +24 -0
- package/dist/api/generated/apis/static-data-service-options-api.js +44 -0
- package/dist/api/generated/models/application-update.d.ts +3 -3
- package/dist/api/generated/models/blueprint-service.d.ts +3 -3
- package/dist/api/generated/models/cron-job-options.d.ts +3 -3
- package/dist/api/generated/models/environment-options.d.ts +4 -4
- package/dist/api/generated/models/index.d.ts +8 -6
- package/dist/api/generated/models/index.js +8 -6
- package/dist/api/generated/models/log.d.ts +14 -7
- package/dist/api/generated/models/network-rule-environment-create.d.ts +68 -0
- package/dist/api/generated/models/{cron-job-frequency.js → network-rule-environment-create.js} +0 -0
- package/dist/api/generated/models/network-rule-update.d.ts +3 -4
- package/dist/api/generated/models/{permission.d.ts → permission-relation.d.ts} +8 -8
- package/dist/api/generated/models/{permission-permissions.js → permission-relation.js} +0 -0
- package/dist/api/generated/models/service-environment-create.d.ts +50 -0
- package/dist/api/generated/models/{permission.js → service-environment-create.js} +0 -0
- package/dist/api/generated/models/service-options.d.ts +4 -4
- package/dist/api/generated/models/service-project-create.d.ts +3 -3
- package/dist/api/generated/models/service-type.d.ts +9 -29
- package/dist/api/generated/models/service-type.js +15 -0
- package/dist/api/generated/models/service-update.d.ts +3 -4
- package/dist/api/generated/models/service.d.ts +6 -0
- package/dist/api/generated/models/{cron-job-frequency.d.ts → static-cron-job-frequency.d.ts} +5 -5
- package/dist/api/generated/models/{server-action-log.js → static-cron-job-frequency.js} +0 -0
- package/dist/api/generated/models/static-environment-type.d.ts +36 -0
- package/dist/api/generated/models/{service-type-supported-versions.js → static-environment-type.js} +0 -0
- package/dist/api/generated/models/{permission-permissions.d.ts → static-permission.d.ts} +6 -6
- package/dist/api/generated/models/static-permission.js +14 -0
- package/dist/api/generated/models/{service-type-supported-versions.d.ts → static-service-type-supported-versions.d.ts} +3 -3
- package/dist/api/generated/models/static-service-type-supported-versions.js +14 -0
- package/dist/api/generated/models/static-service-type.d.ts +44 -0
- package/dist/api/generated/models/static-service-type.js +14 -0
- package/dist/services/LogService.d.ts +2 -2
- package/dist/services/LogService.js +2 -2
- package/dist/services/StaticService.d.ts +9 -2
- package/dist/services/StaticService.js +9 -3
- 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/static-data-api.d.ts +0 -42
- package/dist/api/generated/models/server-action-log.d.ts +0 -37
- package/dist/api/generated/models/service-name.d.ts +0 -24
- package/dist/api/generated/models/service-name.js +0 -29
|
@@ -0,0 +1,36 @@
|
|
|
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 StaticEnvironmentType
|
|
16
|
+
*/
|
|
17
|
+
export interface StaticEnvironmentType {
|
|
18
|
+
/**
|
|
19
|
+
* The internal name of the environment
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof StaticEnvironmentType
|
|
22
|
+
*/
|
|
23
|
+
value: string;
|
|
24
|
+
/**
|
|
25
|
+
* The formatted name to be displayed in user interfaces
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof StaticEnvironmentType
|
|
28
|
+
*/
|
|
29
|
+
human_readable: string;
|
|
30
|
+
/**
|
|
31
|
+
* Text describing the environment purpose
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof StaticEnvironmentType
|
|
34
|
+
*/
|
|
35
|
+
hint: string;
|
|
36
|
+
}
|
package/dist/api/generated/models/{service-type-supported-versions.js → static-environment-type.js}
RENAMED
|
File without changes
|
|
@@ -12,31 +12,31 @@
|
|
|
12
12
|
/**
|
|
13
13
|
*
|
|
14
14
|
* @export
|
|
15
|
-
* @interface
|
|
15
|
+
* @interface StaticPermission
|
|
16
16
|
*/
|
|
17
|
-
export interface
|
|
17
|
+
export interface StaticPermission {
|
|
18
18
|
/**
|
|
19
19
|
* Name of permission
|
|
20
20
|
* @type {string}
|
|
21
|
-
* @memberof
|
|
21
|
+
* @memberof StaticPermission
|
|
22
22
|
*/
|
|
23
23
|
name: string;
|
|
24
24
|
/**
|
|
25
25
|
* Human readable permission name
|
|
26
26
|
* @type {string}
|
|
27
|
-
* @memberof
|
|
27
|
+
* @memberof StaticPermission
|
|
28
28
|
*/
|
|
29
29
|
human_readable: string;
|
|
30
30
|
/**
|
|
31
31
|
* Description of what a role is allowed to do with a resource if she has this permission
|
|
32
32
|
* @type {string}
|
|
33
|
-
* @memberof
|
|
33
|
+
* @memberof StaticPermission
|
|
34
34
|
*/
|
|
35
35
|
hint: string;
|
|
36
36
|
/**
|
|
37
37
|
* List of permissions the role must have before receiving this one
|
|
38
38
|
* @type {Array<string>}
|
|
39
|
-
* @memberof
|
|
39
|
+
* @memberof StaticPermission
|
|
40
40
|
*/
|
|
41
41
|
required_permissions?: Array<string>;
|
|
42
42
|
}
|
|
@@ -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 });
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
/**
|
|
13
13
|
*
|
|
14
14
|
* @export
|
|
15
|
-
* @interface
|
|
15
|
+
* @interface StaticServiceTypeSupportedVersions
|
|
16
16
|
*/
|
|
17
|
-
export interface
|
|
17
|
+
export interface StaticServiceTypeSupportedVersions {
|
|
18
18
|
/**
|
|
19
19
|
* The service\'s version that is supported
|
|
20
20
|
* @type {string}
|
|
21
|
-
* @memberof
|
|
21
|
+
* @memberof StaticServiceTypeSupportedVersions
|
|
22
22
|
*/
|
|
23
23
|
version?: string;
|
|
24
24
|
}
|
|
@@ -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 });
|
|
@@ -0,0 +1,44 @@
|
|
|
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 { ServiceType } from './service-type';
|
|
13
|
+
import { StaticServiceTypeSupportedVersions } from './static-service-type-supported-versions';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface StaticServiceType
|
|
18
|
+
*/
|
|
19
|
+
export interface StaticServiceType {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {ServiceType}
|
|
23
|
+
* @memberof StaticServiceType
|
|
24
|
+
*/
|
|
25
|
+
value: ServiceType;
|
|
26
|
+
/**
|
|
27
|
+
* Displayable version of the service name
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof StaticServiceType
|
|
30
|
+
*/
|
|
31
|
+
human_readable: string;
|
|
32
|
+
/**
|
|
33
|
+
* Text describing the service
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof StaticServiceType
|
|
36
|
+
*/
|
|
37
|
+
hint: string;
|
|
38
|
+
/**
|
|
39
|
+
* List of service versions supported by Devopness
|
|
40
|
+
* @type {Array<StaticServiceTypeSupportedVersions>}
|
|
41
|
+
* @memberof StaticServiceType
|
|
42
|
+
*/
|
|
43
|
+
supported_versions: Array<StaticServiceTypeSupportedVersions>;
|
|
44
|
+
}
|
|
@@ -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 });
|
|
@@ -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,11 +1,18 @@
|
|
|
1
|
-
import { StaticDataApiService } from "../api/generated/apis/static-data-api";
|
|
2
1
|
import { StaticDataApplicationOptionsApiService } from "../api/generated/apis/static-data-application-options-api";
|
|
3
2
|
import { StaticDataCloudProviderOptionsApiService } from "../api/generated/apis/static-data-cloud-provider-options-api";
|
|
4
3
|
import { StaticDataCloudProviderServiceInstancesApiService } from "../api/generated/apis/static-data-cloud-provider-service-instances-api";
|
|
5
4
|
import { StaticDataCloudProviderServicesApiService } from "../api/generated/apis/static-data-cloud-provider-services-api";
|
|
6
|
-
|
|
5
|
+
import { StaticDataCronJobOptionsApiService } from "../api/generated/apis/static-data-cron-job-options-api";
|
|
6
|
+
import { StaticDataEnvironmentOptionsApiService } from "../api/generated/apis/static-data-environment-options-api";
|
|
7
|
+
import { StaticDataPermissionsApiService } from "../api/generated/apis/static-data-permissions-api";
|
|
8
|
+
import { StaticDataServiceOptionsApiService } from "../api/generated/apis/static-data-service-options-api";
|
|
9
|
+
export declare class StaticService {
|
|
7
10
|
applicationOptions: StaticDataApplicationOptionsApiService;
|
|
8
11
|
cloudProviderOptions: StaticDataCloudProviderOptionsApiService;
|
|
9
12
|
cloudProviderServiceInstances: StaticDataCloudProviderServiceInstancesApiService;
|
|
10
13
|
cloudProviderServices: StaticDataCloudProviderServicesApiService;
|
|
14
|
+
cronJobOptions: StaticDataCronJobOptionsApiService;
|
|
15
|
+
environmentOptions: StaticDataEnvironmentOptionsApiService;
|
|
16
|
+
permissions: StaticDataPermissionsApiService;
|
|
17
|
+
serviceOptions: StaticDataServiceOptionsApiService;
|
|
11
18
|
}
|
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.StaticService = void 0;
|
|
4
|
-
const static_data_api_1 = require("../api/generated/apis/static-data-api");
|
|
5
4
|
const static_data_application_options_api_1 = require("../api/generated/apis/static-data-application-options-api");
|
|
6
5
|
const static_data_cloud_provider_options_api_1 = require("../api/generated/apis/static-data-cloud-provider-options-api");
|
|
7
6
|
const static_data_cloud_provider_service_instances_api_1 = require("../api/generated/apis/static-data-cloud-provider-service-instances-api");
|
|
8
7
|
const static_data_cloud_provider_services_api_1 = require("../api/generated/apis/static-data-cloud-provider-services-api");
|
|
9
|
-
|
|
8
|
+
const static_data_cron_job_options_api_1 = require("../api/generated/apis/static-data-cron-job-options-api");
|
|
9
|
+
const static_data_environment_options_api_1 = require("../api/generated/apis/static-data-environment-options-api");
|
|
10
|
+
const static_data_permissions_api_1 = require("../api/generated/apis/static-data-permissions-api");
|
|
11
|
+
const static_data_service_options_api_1 = require("../api/generated/apis/static-data-service-options-api");
|
|
12
|
+
class StaticService {
|
|
10
13
|
constructor() {
|
|
11
|
-
super(...arguments);
|
|
12
14
|
this.applicationOptions = new static_data_application_options_api_1.StaticDataApplicationOptionsApiService();
|
|
13
15
|
this.cloudProviderOptions = new static_data_cloud_provider_options_api_1.StaticDataCloudProviderOptionsApiService();
|
|
14
16
|
this.cloudProviderServiceInstances = new static_data_cloud_provider_service_instances_api_1.StaticDataCloudProviderServiceInstancesApiService();
|
|
15
17
|
this.cloudProviderServices = new static_data_cloud_provider_services_api_1.StaticDataCloudProviderServicesApiService();
|
|
18
|
+
this.cronJobOptions = new static_data_cron_job_options_api_1.StaticDataCronJobOptionsApiService();
|
|
19
|
+
this.environmentOptions = new static_data_environment_options_api_1.StaticDataEnvironmentOptionsApiService();
|
|
20
|
+
this.permissions = new static_data_permissions_api_1.StaticDataPermissionsApiService();
|
|
21
|
+
this.serviceOptions = new static_data_service_options_api_1.StaticDataServiceOptionsApiService();
|
|
16
22
|
}
|
|
17
23
|
}
|
|
18
24
|
exports.StaticService = StaticService;
|
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,42 +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 { CronJobOptions } from '../../generated/models';
|
|
15
|
-
import { EnvironmentOptions } from '../../generated/models';
|
|
16
|
-
import { Permission } from '../../generated/models';
|
|
17
|
-
import { ServiceOptions } from '../../generated/models';
|
|
18
|
-
/**
|
|
19
|
-
* StaticDataApiService - Auto-generated
|
|
20
|
-
*/
|
|
21
|
-
export declare class StaticDataApiService extends ApiBaseService {
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @summary Lists options of the cronjobs
|
|
25
|
-
*/
|
|
26
|
-
listCronJobOptions(): Promise<ApiResponse<CronJobOptions>>;
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @summary Lists options of the environments
|
|
30
|
-
*/
|
|
31
|
-
listEnvironmentOptions(): Promise<ApiResponse<EnvironmentOptions>>;
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @summary Lists available permissions
|
|
35
|
-
*/
|
|
36
|
-
listPermissions(): Promise<ApiResponse<Array<Permission>>>;
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @summary Lists options of the services
|
|
40
|
-
*/
|
|
41
|
-
listServiceOptions(): Promise<ApiResponse<ServiceOptions>>;
|
|
42
|
-
}
|
|
@@ -1,37 +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 { ServerActionLogStep } from './server-action-log-step';
|
|
13
|
-
/**
|
|
14
|
-
*
|
|
15
|
-
* @export
|
|
16
|
-
* @interface ServerActionLog
|
|
17
|
-
*/
|
|
18
|
-
export interface ServerActionLog {
|
|
19
|
-
/**
|
|
20
|
-
* The unique id of the server
|
|
21
|
-
* @type {number}
|
|
22
|
-
* @memberof ServerActionLog
|
|
23
|
-
*/
|
|
24
|
-
id?: number;
|
|
25
|
-
/**
|
|
26
|
-
* The server\'s hostname
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof ServerActionLog
|
|
29
|
-
*/
|
|
30
|
-
name?: string;
|
|
31
|
-
/**
|
|
32
|
-
* List of server action steps
|
|
33
|
-
* @type {Array<ServerActionLogStep>}
|
|
34
|
-
* @memberof ServerActionLog
|
|
35
|
-
*/
|
|
36
|
-
steps?: Array<ServerActionLogStep>;
|
|
37
|
-
}
|
|
@@ -1,24 +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
|
-
/**
|
|
13
|
-
* The name of a supported service
|
|
14
|
-
* @export
|
|
15
|
-
* @enum {string}
|
|
16
|
-
*/
|
|
17
|
-
export declare enum ServiceName {
|
|
18
|
-
Docker = "docker",
|
|
19
|
-
Mysql = "mysql",
|
|
20
|
-
Nginx = "nginx",
|
|
21
|
-
Php = "php",
|
|
22
|
-
Redis = "redis",
|
|
23
|
-
Supervisor = "supervisor"
|
|
24
|
-
}
|
|
@@ -1,29 +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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.ServiceName = void 0;
|
|
16
|
-
/**
|
|
17
|
-
* The name of a supported service
|
|
18
|
-
* @export
|
|
19
|
-
* @enum {string}
|
|
20
|
-
*/
|
|
21
|
-
var ServiceName;
|
|
22
|
-
(function (ServiceName) {
|
|
23
|
-
ServiceName["Docker"] = "docker";
|
|
24
|
-
ServiceName["Mysql"] = "mysql";
|
|
25
|
-
ServiceName["Nginx"] = "nginx";
|
|
26
|
-
ServiceName["Php"] = "php";
|
|
27
|
-
ServiceName["Redis"] = "redis";
|
|
28
|
-
ServiceName["Supervisor"] = "supervisor";
|
|
29
|
-
})(ServiceName = exports.ServiceName || (exports.ServiceName = {}));
|