@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,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
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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.ActionsLogsApiService = 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
|
+
* ActionsLogsApiService - Auto-generated
|
|
30
|
+
*/
|
|
31
|
+
class ActionsLogsApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
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
|
+
*/
|
|
39
|
+
getActionLog(actionId, actionStepOrder, serverId) {
|
|
40
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
+
if (actionId === null || actionId === undefined) {
|
|
42
|
+
throw new Exceptions_1.ArgumentNullException('actionId', 'getActionLog');
|
|
43
|
+
}
|
|
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');
|
|
49
|
+
}
|
|
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))));
|
|
53
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
exports.ActionsLogsApiService = ActionsLogsApiService;
|
|
@@ -11,11 +11,20 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
|
+
import { NetworkRule } from '../../generated/models';
|
|
15
|
+
import { NetworkRuleEnvironmentCreate } from '../../generated/models';
|
|
14
16
|
import { NetworkRuleRelation } from '../../generated/models';
|
|
15
17
|
/**
|
|
16
18
|
* EnvironmentsNetworkRulesApiService - Auto-generated
|
|
17
19
|
*/
|
|
18
20
|
export declare class EnvironmentsNetworkRulesApiService extends ApiBaseService {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @summary Add a Network Rule to the given environment
|
|
24
|
+
* @param {number} environmentId The ID of the environment.
|
|
25
|
+
* @param {NetworkRuleEnvironmentCreate} networkRuleEnvironmentCreate A JSON object containing the resource data
|
|
26
|
+
*/
|
|
27
|
+
addEnvironmentNetworkRule(environmentId: number, networkRuleEnvironmentCreate: NetworkRuleEnvironmentCreate): Promise<ApiResponse<NetworkRule>>;
|
|
19
28
|
/**
|
|
20
29
|
*
|
|
21
30
|
* @summary Return a list of all Network Rules belonging to an environment
|
|
@@ -29,6 +29,26 @@ const Exceptions_1 = require("../../../common/Exceptions");
|
|
|
29
29
|
* EnvironmentsNetworkRulesApiService - Auto-generated
|
|
30
30
|
*/
|
|
31
31
|
class EnvironmentsNetworkRulesApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @summary Add a Network Rule to the given environment
|
|
35
|
+
* @param {number} environmentId The ID of the environment.
|
|
36
|
+
* @param {NetworkRuleEnvironmentCreate} networkRuleEnvironmentCreate A JSON object containing the resource data
|
|
37
|
+
*/
|
|
38
|
+
addEnvironmentNetworkRule(environmentId, networkRuleEnvironmentCreate) {
|
|
39
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
if (environmentId === null || environmentId === undefined) {
|
|
41
|
+
throw new Exceptions_1.ArgumentNullException('environmentId', 'addEnvironmentNetworkRule');
|
|
42
|
+
}
|
|
43
|
+
if (networkRuleEnvironmentCreate === null || networkRuleEnvironmentCreate === undefined) {
|
|
44
|
+
throw new Exceptions_1.ArgumentNullException('networkRuleEnvironmentCreate', 'addEnvironmentNetworkRule');
|
|
45
|
+
}
|
|
46
|
+
let queryString = '';
|
|
47
|
+
const requestUrl = '/environments/{environment_id}/network-rules' + (queryString ? `?${queryString}` : '');
|
|
48
|
+
const response = yield this.post(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))), networkRuleEnvironmentCreate);
|
|
49
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
50
|
+
});
|
|
51
|
+
}
|
|
32
52
|
/**
|
|
33
53
|
*
|
|
34
54
|
* @summary Return a list of all Network Rules belonging to an environment
|
|
@@ -11,11 +11,20 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
|
+
import { Service } from '../../generated/models';
|
|
15
|
+
import { ServiceEnvironmentCreate } from '../../generated/models';
|
|
14
16
|
import { ServiceRelation } from '../../generated/models';
|
|
15
17
|
/**
|
|
16
18
|
* EnvironmentsServicesApiService - Auto-generated
|
|
17
19
|
*/
|
|
18
20
|
export declare class EnvironmentsServicesApiService extends ApiBaseService {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @summary Add a Service to the given environment
|
|
24
|
+
* @param {number} environmentId The ID of the environment.
|
|
25
|
+
* @param {ServiceEnvironmentCreate} serviceEnvironmentCreate A JSON object containing the resource data
|
|
26
|
+
*/
|
|
27
|
+
addEnvironmentService(environmentId: number, serviceEnvironmentCreate: ServiceEnvironmentCreate): Promise<ApiResponse<Service>>;
|
|
19
28
|
/**
|
|
20
29
|
*
|
|
21
30
|
* @summary Return a list of all services belonging to a environment
|
|
@@ -29,6 +29,26 @@ const Exceptions_1 = require("../../../common/Exceptions");
|
|
|
29
29
|
* EnvironmentsServicesApiService - Auto-generated
|
|
30
30
|
*/
|
|
31
31
|
class EnvironmentsServicesApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @summary Add a Service to the given environment
|
|
35
|
+
* @param {number} environmentId The ID of the environment.
|
|
36
|
+
* @param {ServiceEnvironmentCreate} serviceEnvironmentCreate A JSON object containing the resource data
|
|
37
|
+
*/
|
|
38
|
+
addEnvironmentService(environmentId, serviceEnvironmentCreate) {
|
|
39
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
if (environmentId === null || environmentId === undefined) {
|
|
41
|
+
throw new Exceptions_1.ArgumentNullException('environmentId', 'addEnvironmentService');
|
|
42
|
+
}
|
|
43
|
+
if (serviceEnvironmentCreate === null || serviceEnvironmentCreate === undefined) {
|
|
44
|
+
throw new Exceptions_1.ArgumentNullException('serviceEnvironmentCreate', 'addEnvironmentService');
|
|
45
|
+
}
|
|
46
|
+
let queryString = '';
|
|
47
|
+
const requestUrl = '/environments/{environment_id}/services' + (queryString ? `?${queryString}` : '');
|
|
48
|
+
const response = yield this.post(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))), serviceEnvironmentCreate);
|
|
49
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
50
|
+
});
|
|
51
|
+
}
|
|
32
52
|
/**
|
|
33
53
|
*
|
|
34
54
|
* @summary Return a list of all services belonging to a environment
|
|
@@ -11,20 +11,11 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
|
-
import { NetworkRule } from '../../generated/models';
|
|
15
|
-
import { NetworkRuleProjectCreate } from '../../generated/models';
|
|
16
14
|
import { NetworkRuleRelation } from '../../generated/models';
|
|
17
15
|
/**
|
|
18
16
|
* ProjectsNetworkRulesApiService - Auto-generated
|
|
19
17
|
*/
|
|
20
18
|
export declare class ProjectsNetworkRulesApiService extends ApiBaseService {
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @summary Add a Network Rule to the given project
|
|
24
|
-
* @param {number} projectId The ID of the project.
|
|
25
|
-
* @param {NetworkRuleProjectCreate} networkRuleProjectCreate A JSON object containing the resource data
|
|
26
|
-
*/
|
|
27
|
-
addProjectNetworkRule(projectId: number, networkRuleProjectCreate: NetworkRuleProjectCreate): Promise<ApiResponse<NetworkRule>>;
|
|
28
19
|
/**
|
|
29
20
|
*
|
|
30
21
|
* @summary Return a list of all Network Rules belonging to a project
|
|
@@ -29,26 +29,6 @@ const Exceptions_1 = require("../../../common/Exceptions");
|
|
|
29
29
|
* ProjectsNetworkRulesApiService - Auto-generated
|
|
30
30
|
*/
|
|
31
31
|
class ProjectsNetworkRulesApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @summary Add a Network Rule to the given project
|
|
35
|
-
* @param {number} projectId The ID of the project.
|
|
36
|
-
* @param {NetworkRuleProjectCreate} networkRuleProjectCreate A JSON object containing the resource data
|
|
37
|
-
*/
|
|
38
|
-
addProjectNetworkRule(projectId, networkRuleProjectCreate) {
|
|
39
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
-
if (projectId === null || projectId === undefined) {
|
|
41
|
-
throw new Exceptions_1.ArgumentNullException('projectId', 'addProjectNetworkRule');
|
|
42
|
-
}
|
|
43
|
-
if (networkRuleProjectCreate === null || networkRuleProjectCreate === undefined) {
|
|
44
|
-
throw new Exceptions_1.ArgumentNullException('networkRuleProjectCreate', 'addProjectNetworkRule');
|
|
45
|
-
}
|
|
46
|
-
let queryString = '';
|
|
47
|
-
const requestUrl = '/projects/{project_id}/network-rules' + (queryString ? `?${queryString}` : '');
|
|
48
|
-
const response = yield this.post(requestUrl.replace(`{${"project_id"}}`, encodeURIComponent(String(projectId))), networkRuleProjectCreate);
|
|
49
|
-
return new ApiResponse_1.ApiResponse(response);
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
32
|
/**
|
|
53
33
|
*
|
|
54
34
|
* @summary Return a list of all Network Rules belonging to a project
|
|
@@ -11,20 +11,11 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
|
-
import { Service } from '../../generated/models';
|
|
15
|
-
import { ServiceProjectCreate } from '../../generated/models';
|
|
16
14
|
import { ServiceRelation } from '../../generated/models';
|
|
17
15
|
/**
|
|
18
16
|
* ProjectsServicesApiService - Auto-generated
|
|
19
17
|
*/
|
|
20
18
|
export declare class ProjectsServicesApiService extends ApiBaseService {
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @summary Add a service to a project and trigger its setup in each linked server
|
|
24
|
-
* @param {number} projectId The ID of the project.
|
|
25
|
-
* @param {ServiceProjectCreate} serviceProjectCreate A JSON object containing the resource data
|
|
26
|
-
*/
|
|
27
|
-
addProjectService(projectId: number, serviceProjectCreate: ServiceProjectCreate): Promise<ApiResponse<Service>>;
|
|
28
19
|
/**
|
|
29
20
|
*
|
|
30
21
|
* @summary List all services in a project
|
|
@@ -29,26 +29,6 @@ const Exceptions_1 = require("../../../common/Exceptions");
|
|
|
29
29
|
* ProjectsServicesApiService - Auto-generated
|
|
30
30
|
*/
|
|
31
31
|
class ProjectsServicesApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @summary Add a service to a project and trigger its setup in each linked server
|
|
35
|
-
* @param {number} projectId The ID of the project.
|
|
36
|
-
* @param {ServiceProjectCreate} serviceProjectCreate A JSON object containing the resource data
|
|
37
|
-
*/
|
|
38
|
-
addProjectService(projectId, serviceProjectCreate) {
|
|
39
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
-
if (projectId === null || projectId === undefined) {
|
|
41
|
-
throw new Exceptions_1.ArgumentNullException('projectId', 'addProjectService');
|
|
42
|
-
}
|
|
43
|
-
if (serviceProjectCreate === null || serviceProjectCreate === undefined) {
|
|
44
|
-
throw new Exceptions_1.ArgumentNullException('serviceProjectCreate', 'addProjectService');
|
|
45
|
-
}
|
|
46
|
-
let queryString = '';
|
|
47
|
-
const requestUrl = '/projects/{project_id}/services' + (queryString ? `?${queryString}` : '');
|
|
48
|
-
const response = yield this.post(requestUrl.replace(`{${"project_id"}}`, encodeURIComponent(String(projectId))), serviceProjectCreate);
|
|
49
|
-
return new ApiResponse_1.ApiResponse(response);
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
32
|
/**
|
|
53
33
|
*
|
|
54
34
|
* @summary List all services in a project
|
|
@@ -18,7 +18,7 @@ import { ApplicationOptions } from '../../generated/models';
|
|
|
18
18
|
export declare class StaticDataApplicationOptionsApiService extends ApiBaseService {
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
|
-
* @summary List
|
|
21
|
+
* @summary List `Application` resource options
|
|
22
22
|
*/
|
|
23
23
|
getStaticApplicationOptions(): Promise<ApiResponse<ApplicationOptions>>;
|
|
24
24
|
}
|
|
@@ -30,7 +30,7 @@ const ApiResponse_1 = require("../../../common/ApiResponse");
|
|
|
30
30
|
class StaticDataApplicationOptionsApiService extends ApiBaseService_1.ApiBaseService {
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
|
-
* @summary List
|
|
33
|
+
* @summary List `Application` resource options
|
|
34
34
|
*/
|
|
35
35
|
getStaticApplicationOptions() {
|
|
36
36
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -18,7 +18,7 @@ import { CloudProviderOptionsRelation } from '../../generated/models';
|
|
|
18
18
|
export declare class StaticDataCloudProviderOptionsApiService extends ApiBaseService {
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
|
-
* @summary List
|
|
21
|
+
* @summary List `Cloud Provider` service options
|
|
22
22
|
* @param {number} [page] Number of the page to be retrieved
|
|
23
23
|
* @param {number} [perPage] Number of items returned per page
|
|
24
24
|
*/
|
|
@@ -30,7 +30,7 @@ const ApiResponse_1 = require("../../../common/ApiResponse");
|
|
|
30
30
|
class StaticDataCloudProviderOptionsApiService extends ApiBaseService_1.ApiBaseService {
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
|
-
* @summary List
|
|
33
|
+
* @summary List `Cloud Provider` service options
|
|
34
34
|
* @param {number} [page] Number of the page to be retrieved
|
|
35
35
|
* @param {number} [perPage] Number of items returned per page
|
|
36
36
|
*/
|
|
@@ -18,7 +18,7 @@ import { CloudInstanceRelation } from '../../generated/models';
|
|
|
18
18
|
export declare class StaticDataCloudProviderServiceInstancesApiService extends ApiBaseService {
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
|
-
* @summary List
|
|
21
|
+
* @summary List `Cloud Provider Service` instances by region
|
|
22
22
|
* @param {string} cloudProviderServiceCode The cloud provider service code.
|
|
23
23
|
* @param {string} regionCode The region of the cloud provider to get related instances.
|
|
24
24
|
* @param {number} [page] Number of the page to be retrieved
|
|
@@ -31,7 +31,7 @@ const Exceptions_1 = require("../../../common/Exceptions");
|
|
|
31
31
|
class StaticDataCloudProviderServiceInstancesApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
|
-
* @summary List
|
|
34
|
+
* @summary List `Cloud Provider Service` instances by region
|
|
35
35
|
* @param {string} cloudProviderServiceCode The cloud provider service code.
|
|
36
36
|
* @param {string} regionCode The region of the cloud provider to get related instances.
|
|
37
37
|
* @param {number} [page] Number of the page to be retrieved
|
|
@@ -18,7 +18,7 @@ import { CloudProviderService } from '../../generated/models';
|
|
|
18
18
|
export declare class StaticDataCloudProviderServicesApiService extends ApiBaseService {
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
|
-
* @summary Get details of a single
|
|
21
|
+
* @summary Get details of a single `Cloud Provider Service`
|
|
22
22
|
* @param {string} cloudProviderServiceCode The cloud provider service code.
|
|
23
23
|
*/
|
|
24
24
|
getStaticCloudProviderService(cloudProviderServiceCode: string): Promise<ApiResponse<CloudProviderService>>;
|
|
@@ -31,7 +31,7 @@ const Exceptions_1 = require("../../../common/Exceptions");
|
|
|
31
31
|
class StaticDataCloudProviderServicesApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
|
-
* @summary Get details of a single
|
|
34
|
+
* @summary Get details of a single `Cloud Provider Service`
|
|
35
35
|
* @param {string} cloudProviderServiceCode The cloud provider service code.
|
|
36
36
|
*/
|
|
37
37
|
getStaticCloudProviderService(cloudProviderServiceCode) {
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
/**
|
|
16
|
+
* StaticDataCronJobOptionsApiService - Auto-generated
|
|
17
|
+
*/
|
|
18
|
+
export declare class StaticDataCronJobOptionsApiService extends ApiBaseService {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @summary List `CronJob` resource options
|
|
22
|
+
*/
|
|
23
|
+
getStaticCronJobOptions(): Promise<ApiResponse<CronJobOptions>>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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.StaticDataCronJobOptionsApiService = void 0;
|
|
25
|
+
const ApiBaseService_1 = require("../../../services/ApiBaseService");
|
|
26
|
+
const ApiResponse_1 = require("../../../common/ApiResponse");
|
|
27
|
+
/**
|
|
28
|
+
* StaticDataCronJobOptionsApiService - Auto-generated
|
|
29
|
+
*/
|
|
30
|
+
class StaticDataCronJobOptionsApiService extends ApiBaseService_1.ApiBaseService {
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @summary List `CronJob` resource options
|
|
34
|
+
*/
|
|
35
|
+
getStaticCronJobOptions() {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
let queryString = '';
|
|
38
|
+
const requestUrl = '/static/cronjob-options' + (queryString ? `?${queryString}` : '');
|
|
39
|
+
const response = yield this.get(requestUrl);
|
|
40
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.StaticDataCronJobOptionsApiService = StaticDataCronJobOptionsApiService;
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { EnvironmentOptions } from '../../generated/models';
|
|
15
|
+
/**
|
|
16
|
+
* StaticDataEnvironmentOptionsApiService - Auto-generated
|
|
17
|
+
*/
|
|
18
|
+
export declare class StaticDataEnvironmentOptionsApiService extends ApiBaseService {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @summary List `Environment` options
|
|
22
|
+
*/
|
|
23
|
+
getStaticEnvironmentOptions(): Promise<ApiResponse<EnvironmentOptions>>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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.StaticDataEnvironmentOptionsApiService = void 0;
|
|
25
|
+
const ApiBaseService_1 = require("../../../services/ApiBaseService");
|
|
26
|
+
const ApiResponse_1 = require("../../../common/ApiResponse");
|
|
27
|
+
/**
|
|
28
|
+
* StaticDataEnvironmentOptionsApiService - Auto-generated
|
|
29
|
+
*/
|
|
30
|
+
class StaticDataEnvironmentOptionsApiService extends ApiBaseService_1.ApiBaseService {
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @summary List `Environment` options
|
|
34
|
+
*/
|
|
35
|
+
getStaticEnvironmentOptions() {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
let queryString = '';
|
|
38
|
+
const requestUrl = '/static/environment-options' + (queryString ? `?${queryString}` : '');
|
|
39
|
+
const response = yield this.get(requestUrl);
|
|
40
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.StaticDataEnvironmentOptionsApiService = StaticDataEnvironmentOptionsApiService;
|
|
@@ -0,0 +1,26 @@
|
|
|
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 { PermissionRelation } from '../../generated/models';
|
|
15
|
+
/**
|
|
16
|
+
* StaticDataPermissionsApiService - Auto-generated
|
|
17
|
+
*/
|
|
18
|
+
export declare class StaticDataPermissionsApiService extends ApiBaseService {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @summary List available `Role` permissions
|
|
22
|
+
* @param {number} [page] Number of the page to be retrieved
|
|
23
|
+
* @param {number} [perPage] Number of items returned per page
|
|
24
|
+
*/
|
|
25
|
+
listStaticPermissions(page?: number, perPage?: number): Promise<ApiResponse<Array<PermissionRelation>>>;
|
|
26
|
+
}
|
|
@@ -21,60 +21,33 @@ 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.StaticDataPermissionsApiService = void 0;
|
|
25
25
|
const ApiBaseService_1 = require("../../../services/ApiBaseService");
|
|
26
26
|
const ApiResponse_1 = require("../../../common/ApiResponse");
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* StaticDataPermissionsApiService - Auto-generated
|
|
29
29
|
*/
|
|
30
|
-
class
|
|
30
|
+
class StaticDataPermissionsApiService extends ApiBaseService_1.ApiBaseService {
|
|
31
31
|
/**
|
|
32
32
|
*
|
|
33
|
-
* @summary
|
|
33
|
+
* @summary List available `Role` permissions
|
|
34
|
+
* @param {number} [page] Number of the page to be retrieved
|
|
35
|
+
* @param {number} [perPage] Number of items returned per page
|
|
34
36
|
*/
|
|
35
|
-
|
|
36
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
-
let queryString = '';
|
|
38
|
-
const requestUrl = '/static/cronjobs' + (queryString ? `?${queryString}` : '');
|
|
39
|
-
const response = yield this.get(requestUrl);
|
|
40
|
-
return new ApiResponse_1.ApiResponse(response);
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @summary Lists options of the environments
|
|
46
|
-
*/
|
|
47
|
-
listEnvironmentOptions() {
|
|
48
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
-
let queryString = '';
|
|
50
|
-
const requestUrl = '/static/environments' + (queryString ? `?${queryString}` : '');
|
|
51
|
-
const response = yield this.get(requestUrl);
|
|
52
|
-
return new ApiResponse_1.ApiResponse(response);
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
* @summary Lists available permissions
|
|
58
|
-
*/
|
|
59
|
-
listPermissions() {
|
|
37
|
+
listStaticPermissions(page, perPage) {
|
|
60
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
61
39
|
let queryString = '';
|
|
40
|
+
const queryParams = { page: page, per_page: perPage, };
|
|
41
|
+
for (const key in queryParams) {
|
|
42
|
+
if (queryParams[key] === undefined || queryParams[key] === null) {
|
|
43
|
+
continue;
|
|
44
|
+
}
|
|
45
|
+
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
46
|
+
}
|
|
62
47
|
const requestUrl = '/static/permissions' + (queryString ? `?${queryString}` : '');
|
|
63
48
|
const response = yield this.get(requestUrl);
|
|
64
49
|
return new ApiResponse_1.ApiResponse(response);
|
|
65
50
|
});
|
|
66
51
|
}
|
|
67
|
-
/**
|
|
68
|
-
*
|
|
69
|
-
* @summary Lists options of the services
|
|
70
|
-
*/
|
|
71
|
-
listServiceOptions() {
|
|
72
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
73
|
-
let queryString = '';
|
|
74
|
-
const requestUrl = '/static/services' + (queryString ? `?${queryString}` : '');
|
|
75
|
-
const response = yield this.get(requestUrl);
|
|
76
|
-
return new ApiResponse_1.ApiResponse(response);
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
52
|
}
|
|
80
|
-
exports.
|
|
53
|
+
exports.StaticDataPermissionsApiService = StaticDataPermissionsApiService;
|
|
@@ -0,0 +1,24 @@
|
|
|
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 { ServiceOptions } from '../../generated/models';
|
|
15
|
+
/**
|
|
16
|
+
* StaticDataServiceOptionsApiService - Auto-generated
|
|
17
|
+
*/
|
|
18
|
+
export declare class StaticDataServiceOptionsApiService extends ApiBaseService {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @summary List `Service` resource options
|
|
22
|
+
*/
|
|
23
|
+
getStaticServiceOptions(): Promise<ApiResponse<ServiceOptions>>;
|
|
24
|
+
}
|