@devopness/sdk-js 2.34.0 → 2.35.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-api.d.ts +1 -2
- package/dist/api/generated/apis/actions-api.js +5 -9
- package/dist/api/generated/apis/applications-deployments-api.d.ts +4 -4
- package/dist/api/generated/apis/applications-deployments-api.js +8 -5
- package/dist/api/generated/apis/environments-actions-api.d.ts +4 -4
- package/dist/api/generated/apis/environments-actions-api.js +5 -5
- package/dist/api/generated/apis/projects-actions-api.d.ts +5 -16
- package/dist/api/generated/apis/projects-actions-api.js +6 -39
- package/dist/api/generated/apis/resource-events-api.d.ts +5 -5
- package/dist/api/generated/apis/resource-events-api.js +9 -9
- package/dist/api/generated/models/deployment-application-create.d.ts +61 -0
- package/dist/api/generated/models/{resource-event.js → deployment-application-create.js} +0 -0
- package/dist/api/generated/models/index.d.ts +2 -1
- package/dist/api/generated/models/index.js +2 -1
- package/dist/api/generated/models/project.d.ts +0 -42
- package/dist/api/generated/models/{resource-event.d.ts → resource-event-relation.d.ts} +19 -19
- package/dist/api/generated/models/resource-event-relation.js +14 -0
- package/dist/api/generated/models/variable-target.d.ts +3 -1
- package/dist/api/generated/models/variable-target.js +2 -0
- package/dist/services/ActionService.d.ts +0 -2
- package/dist/services/ActionService.js +0 -5
- package/package.json +1 -1
- package/dist/api/generated/apis/actions-resources-api.d.ts +0 -28
- package/dist/api/generated/apis/actions-resources-api.js +0 -62
|
@@ -34,13 +34,12 @@ export declare class ActionsApiService extends ApiBaseService {
|
|
|
34
34
|
/**
|
|
35
35
|
*
|
|
36
36
|
* @summary List resource actions of an action type
|
|
37
|
-
* @param {string} actionType The action type.
|
|
38
37
|
* @param {number} resourceId The resource ID.
|
|
39
38
|
* @param {string} resourceType The resource type to get related actions.
|
|
40
39
|
* @param {number} [page] Number of the page to be retrieved
|
|
41
40
|
* @param {number} [perPage] Number of items returned per page
|
|
42
41
|
*/
|
|
43
|
-
|
|
42
|
+
listActionsByResourceType(resourceId: number, resourceType: string, page?: number, perPage?: number): Promise<ApiResponse<Array<ActionRelation>>>;
|
|
44
43
|
/**
|
|
45
44
|
*
|
|
46
45
|
* @summary Retry an action
|
|
@@ -69,22 +69,18 @@ class ActionsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
69
69
|
/**
|
|
70
70
|
*
|
|
71
71
|
* @summary List resource actions of an action type
|
|
72
|
-
* @param {string} actionType The action type.
|
|
73
72
|
* @param {number} resourceId The resource ID.
|
|
74
73
|
* @param {string} resourceType The resource type to get related actions.
|
|
75
74
|
* @param {number} [page] Number of the page to be retrieved
|
|
76
75
|
* @param {number} [perPage] Number of items returned per page
|
|
77
76
|
*/
|
|
78
|
-
|
|
77
|
+
listActionsByResourceType(resourceId, resourceType, page, perPage) {
|
|
79
78
|
return __awaiter(this, void 0, void 0, function* () {
|
|
80
|
-
if (actionType === null || actionType === undefined) {
|
|
81
|
-
throw new Exceptions_1.ArgumentNullException('actionType', 'listActionsByResourceTypeAndActionType');
|
|
82
|
-
}
|
|
83
79
|
if (resourceId === null || resourceId === undefined) {
|
|
84
|
-
throw new Exceptions_1.ArgumentNullException('resourceId', '
|
|
80
|
+
throw new Exceptions_1.ArgumentNullException('resourceId', 'listActionsByResourceType');
|
|
85
81
|
}
|
|
86
82
|
if (resourceType === null || resourceType === undefined) {
|
|
87
|
-
throw new Exceptions_1.ArgumentNullException('resourceType', '
|
|
83
|
+
throw new Exceptions_1.ArgumentNullException('resourceType', 'listActionsByResourceType');
|
|
88
84
|
}
|
|
89
85
|
let queryString = '';
|
|
90
86
|
const queryParams = { page: page, per_page: perPage, };
|
|
@@ -94,8 +90,8 @@ class ActionsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
94
90
|
}
|
|
95
91
|
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
96
92
|
}
|
|
97
|
-
const requestUrl = '/actions/{resource_type}/{resource_id}
|
|
98
|
-
const response = yield this.get(requestUrl.replace(`{${"
|
|
93
|
+
const requestUrl = '/actions/{resource_type}/{resource_id}' + (queryString ? `?${queryString}` : '');
|
|
94
|
+
const response = yield this.get(requestUrl.replace(`{${"resource_id"}}`, encodeURIComponent(String(resourceId))).replace(`{${"resource_type"}}`, encodeURIComponent(String(resourceType))));
|
|
99
95
|
return new ApiResponse_1.ApiResponse(response);
|
|
100
96
|
});
|
|
101
97
|
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
|
-
import {
|
|
14
|
+
import { DeploymentApplicationCreate } from '../../generated/models';
|
|
15
15
|
/**
|
|
16
16
|
* ApplicationsDeploymentsApiService - Auto-generated
|
|
17
17
|
*/
|
|
@@ -19,8 +19,8 @@ export declare class ApplicationsDeploymentsApiService extends ApiBaseService {
|
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
21
|
* @summary Trigger a new deployment for current application
|
|
22
|
-
* @param {number} applicationId
|
|
23
|
-
* @param {
|
|
22
|
+
* @param {number} applicationId The ID of the application.
|
|
23
|
+
* @param {DeploymentApplicationCreate} deploymentApplicationCreate A JSON object containing the resource data
|
|
24
24
|
*/
|
|
25
|
-
|
|
25
|
+
addApplicationDeployment(applicationId: number, deploymentApplicationCreate: DeploymentApplicationCreate): Promise<ApiResponse<void>>;
|
|
26
26
|
}
|
|
@@ -32,17 +32,20 @@ class ApplicationsDeploymentsApiService extends ApiBaseService_1.ApiBaseService
|
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
34
|
* @summary Trigger a new deployment for current application
|
|
35
|
-
* @param {number} applicationId
|
|
36
|
-
* @param {
|
|
35
|
+
* @param {number} applicationId The ID of the application.
|
|
36
|
+
* @param {DeploymentApplicationCreate} deploymentApplicationCreate A JSON object containing the resource data
|
|
37
37
|
*/
|
|
38
|
-
|
|
38
|
+
addApplicationDeployment(applicationId, deploymentApplicationCreate) {
|
|
39
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
40
|
if (applicationId === null || applicationId === undefined) {
|
|
41
|
-
throw new Exceptions_1.ArgumentNullException('applicationId', '
|
|
41
|
+
throw new Exceptions_1.ArgumentNullException('applicationId', 'addApplicationDeployment');
|
|
42
|
+
}
|
|
43
|
+
if (deploymentApplicationCreate === null || deploymentApplicationCreate === undefined) {
|
|
44
|
+
throw new Exceptions_1.ArgumentNullException('deploymentApplicationCreate', 'addApplicationDeployment');
|
|
42
45
|
}
|
|
43
46
|
let queryString = '';
|
|
44
47
|
const requestUrl = '/applications/{application_id}/deployments' + (queryString ? `?${queryString}` : '');
|
|
45
|
-
const response = yield this.post(requestUrl.replace(`{${"application_id"}}`, encodeURIComponent(String(applicationId))),
|
|
48
|
+
const response = yield this.post(requestUrl.replace(`{${"application_id"}}`, encodeURIComponent(String(applicationId))), deploymentApplicationCreate);
|
|
46
49
|
return new ApiResponse_1.ApiResponse(response);
|
|
47
50
|
});
|
|
48
51
|
}
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
|
-
import {
|
|
14
|
+
import { ActionRelation } from '../../generated/models';
|
|
15
15
|
/**
|
|
16
16
|
* EnvironmentsActionsApiService - Auto-generated
|
|
17
17
|
*/
|
|
@@ -19,10 +19,10 @@ export declare class EnvironmentsActionsApiService extends ApiBaseService {
|
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
21
|
* @summary List environment actions of a resource type
|
|
22
|
-
* @param {number} environmentId
|
|
23
|
-
* @param {string} resourceType The resource type to get related actions
|
|
22
|
+
* @param {number} environmentId The ID of the environment.
|
|
23
|
+
* @param {string} resourceType The resource type to get related actions.
|
|
24
24
|
* @param {number} [page] Number of the page to be retrieved
|
|
25
25
|
* @param {number} [perPage] Number of items returned per page
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
listEnvironmentActionsByResourceType(environmentId: number, resourceType: string, page?: number, perPage?: number): Promise<ApiResponse<Array<ActionRelation>>>;
|
|
28
28
|
}
|
|
@@ -32,18 +32,18 @@ class EnvironmentsActionsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
34
|
* @summary List environment actions of a resource type
|
|
35
|
-
* @param {number} environmentId
|
|
36
|
-
* @param {string} resourceType The resource type to get related actions
|
|
35
|
+
* @param {number} environmentId The ID of the environment.
|
|
36
|
+
* @param {string} resourceType The resource type to get related actions.
|
|
37
37
|
* @param {number} [page] Number of the page to be retrieved
|
|
38
38
|
* @param {number} [perPage] Number of items returned per page
|
|
39
39
|
*/
|
|
40
|
-
|
|
40
|
+
listEnvironmentActionsByResourceType(environmentId, resourceType, page, perPage) {
|
|
41
41
|
return __awaiter(this, void 0, void 0, function* () {
|
|
42
42
|
if (environmentId === null || environmentId === undefined) {
|
|
43
|
-
throw new Exceptions_1.ArgumentNullException('environmentId', '
|
|
43
|
+
throw new Exceptions_1.ArgumentNullException('environmentId', 'listEnvironmentActionsByResourceType');
|
|
44
44
|
}
|
|
45
45
|
if (resourceType === null || resourceType === undefined) {
|
|
46
|
-
throw new Exceptions_1.ArgumentNullException('resourceType', '
|
|
46
|
+
throw new Exceptions_1.ArgumentNullException('resourceType', 'listEnvironmentActionsByResourceType');
|
|
47
47
|
}
|
|
48
48
|
let queryString = '';
|
|
49
49
|
const queryParams = { page: page, per_page: perPage, };
|
|
@@ -11,29 +11,18 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
|
-
import {
|
|
15
|
-
import { ActionType } from '../../generated/models';
|
|
14
|
+
import { ActionRelation } from '../../generated/models';
|
|
16
15
|
/**
|
|
17
16
|
* ProjectsActionsApiService - Auto-generated
|
|
18
17
|
*/
|
|
19
18
|
export declare class ProjectsActionsApiService extends ApiBaseService {
|
|
20
19
|
/**
|
|
21
20
|
*
|
|
22
|
-
* @summary List
|
|
23
|
-
* @param {number} projectId
|
|
24
|
-
* @param {string} resourceType The resource type to get related actions
|
|
21
|
+
* @summary List project actions of a resource type
|
|
22
|
+
* @param {number} projectId The ID of the project.
|
|
23
|
+
* @param {string} resourceType The resource type to get related actions.
|
|
25
24
|
* @param {number} [page] Number of the page to be retrieved
|
|
26
25
|
* @param {number} [perPage] Number of items returned per page
|
|
27
26
|
*/
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
*
|
|
31
|
-
* @summary List project actions of a resource type and action type
|
|
32
|
-
* @param {number} projectId Unique ID of the project to get
|
|
33
|
-
* @param {string} resourceType The resource type to get related actions
|
|
34
|
-
* @param {ActionType} actionType The action type
|
|
35
|
-
* @param {number} [page] Number of the page to be retrieved
|
|
36
|
-
* @param {number} [perPage] Number of items returned per page
|
|
37
|
-
*/
|
|
38
|
-
listProjectActionsOfResourceTypeActionType(projectId: number, resourceType: string, actionType: ActionType, page?: number, perPage?: number): Promise<ApiResponse<Array<ActionListItem>>>;
|
|
27
|
+
listProjectActionsByResourceType(projectId: number, resourceType: string, page?: number, perPage?: number): Promise<ApiResponse<Array<ActionRelation>>>;
|
|
39
28
|
}
|
|
@@ -31,19 +31,19 @@ const Exceptions_1 = require("../../../common/Exceptions");
|
|
|
31
31
|
class ProjectsActionsApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
|
-
* @summary List
|
|
35
|
-
* @param {number} projectId
|
|
36
|
-
* @param {string} resourceType The resource type to get related actions
|
|
34
|
+
* @summary List project actions of a resource type
|
|
35
|
+
* @param {number} projectId The ID of the project.
|
|
36
|
+
* @param {string} resourceType The resource type to get related actions.
|
|
37
37
|
* @param {number} [page] Number of the page to be retrieved
|
|
38
38
|
* @param {number} [perPage] Number of items returned per page
|
|
39
39
|
*/
|
|
40
|
-
|
|
40
|
+
listProjectActionsByResourceType(projectId, resourceType, page, perPage) {
|
|
41
41
|
return __awaiter(this, void 0, void 0, function* () {
|
|
42
42
|
if (projectId === null || projectId === undefined) {
|
|
43
|
-
throw new Exceptions_1.ArgumentNullException('projectId', '
|
|
43
|
+
throw new Exceptions_1.ArgumentNullException('projectId', 'listProjectActionsByResourceType');
|
|
44
44
|
}
|
|
45
45
|
if (resourceType === null || resourceType === undefined) {
|
|
46
|
-
throw new Exceptions_1.ArgumentNullException('resourceType', '
|
|
46
|
+
throw new Exceptions_1.ArgumentNullException('resourceType', 'listProjectActionsByResourceType');
|
|
47
47
|
}
|
|
48
48
|
let queryString = '';
|
|
49
49
|
const queryParams = { page: page, per_page: perPage, };
|
|
@@ -58,38 +58,5 @@ class ProjectsActionsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
58
58
|
return new ApiResponse_1.ApiResponse(response);
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @summary List project actions of a resource type and action type
|
|
64
|
-
* @param {number} projectId Unique ID of the project to get
|
|
65
|
-
* @param {string} resourceType The resource type to get related actions
|
|
66
|
-
* @param {ActionType} actionType The action type
|
|
67
|
-
* @param {number} [page] Number of the page to be retrieved
|
|
68
|
-
* @param {number} [perPage] Number of items returned per page
|
|
69
|
-
*/
|
|
70
|
-
listProjectActionsOfResourceTypeActionType(projectId, resourceType, actionType, page, perPage) {
|
|
71
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
72
|
-
if (projectId === null || projectId === undefined) {
|
|
73
|
-
throw new Exceptions_1.ArgumentNullException('projectId', 'listProjectActionsOfResourceTypeActionType');
|
|
74
|
-
}
|
|
75
|
-
if (resourceType === null || resourceType === undefined) {
|
|
76
|
-
throw new Exceptions_1.ArgumentNullException('resourceType', 'listProjectActionsOfResourceTypeActionType');
|
|
77
|
-
}
|
|
78
|
-
if (actionType === null || actionType === undefined) {
|
|
79
|
-
throw new Exceptions_1.ArgumentNullException('actionType', 'listProjectActionsOfResourceTypeActionType');
|
|
80
|
-
}
|
|
81
|
-
let queryString = '';
|
|
82
|
-
const queryParams = { page: page, per_page: perPage, };
|
|
83
|
-
for (const key in queryParams) {
|
|
84
|
-
if (queryParams[key] === undefined || queryParams[key] === null) {
|
|
85
|
-
continue;
|
|
86
|
-
}
|
|
87
|
-
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
88
|
-
}
|
|
89
|
-
const requestUrl = '/projects/{project_id}/actions/{resource_type}/{action_type}' + (queryString ? `?${queryString}` : '');
|
|
90
|
-
const response = yield this.get(requestUrl.replace(`{${"project_id"}}`, encodeURIComponent(String(projectId))).replace(`{${"resource_type"}}`, encodeURIComponent(String(resourceType))).replace(`{${"action_type"}}`, encodeURIComponent(String(actionType))));
|
|
91
|
-
return new ApiResponse_1.ApiResponse(response);
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
61
|
}
|
|
95
62
|
exports.ProjectsActionsApiService = ProjectsActionsApiService;
|
|
@@ -11,18 +11,18 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
|
-
import {
|
|
14
|
+
import { ResourceEventRelation } from '../../generated/models';
|
|
15
15
|
/**
|
|
16
16
|
* ResourceEventsApiService - Auto-generated
|
|
17
17
|
*/
|
|
18
18
|
export declare class ResourceEventsApiService extends ApiBaseService {
|
|
19
19
|
/**
|
|
20
20
|
*
|
|
21
|
-
* @summary
|
|
22
|
-
* @param {
|
|
23
|
-
* @param {
|
|
21
|
+
* @summary List events of a resource type
|
|
22
|
+
* @param {number} resourceId The resource ID.
|
|
23
|
+
* @param {string} resourceType The resource type to get related events.
|
|
24
24
|
* @param {number} [page] Number of the page to be retrieved
|
|
25
25
|
* @param {number} [perPage] Number of items returned per page
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
listResourceEventsByResourceType(resourceId: number, resourceType: string, page?: number, perPage?: number): Promise<ApiResponse<Array<ResourceEventRelation>>>;
|
|
28
28
|
}
|
|
@@ -31,19 +31,19 @@ const Exceptions_1 = require("../../../common/Exceptions");
|
|
|
31
31
|
class ResourceEventsApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
|
-
* @summary
|
|
35
|
-
* @param {
|
|
36
|
-
* @param {
|
|
34
|
+
* @summary List events of a resource type
|
|
35
|
+
* @param {number} resourceId The resource ID.
|
|
36
|
+
* @param {string} resourceType The resource type to get related events.
|
|
37
37
|
* @param {number} [page] Number of the page to be retrieved
|
|
38
38
|
* @param {number} [perPage] Number of items returned per page
|
|
39
39
|
*/
|
|
40
|
-
|
|
40
|
+
listResourceEventsByResourceType(resourceId, resourceType, page, perPage) {
|
|
41
41
|
return __awaiter(this, void 0, void 0, function* () {
|
|
42
|
-
if (resourceType === null || resourceType === undefined) {
|
|
43
|
-
throw new Exceptions_1.ArgumentNullException('resourceType', 'listResourceEvents');
|
|
44
|
-
}
|
|
45
42
|
if (resourceId === null || resourceId === undefined) {
|
|
46
|
-
throw new Exceptions_1.ArgumentNullException('resourceId', '
|
|
43
|
+
throw new Exceptions_1.ArgumentNullException('resourceId', 'listResourceEventsByResourceType');
|
|
44
|
+
}
|
|
45
|
+
if (resourceType === null || resourceType === undefined) {
|
|
46
|
+
throw new Exceptions_1.ArgumentNullException('resourceType', 'listResourceEventsByResourceType');
|
|
47
47
|
}
|
|
48
48
|
let queryString = '';
|
|
49
49
|
const queryParams = { page: page, per_page: perPage, };
|
|
@@ -54,7 +54,7 @@ class ResourceEventsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
54
54
|
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
55
55
|
}
|
|
56
56
|
const requestUrl = '/events/{resource_type}/{resource_id}' + (queryString ? `?${queryString}` : '');
|
|
57
|
-
const response = yield this.get(requestUrl.replace(`{${"
|
|
57
|
+
const response = yield this.get(requestUrl.replace(`{${"resource_id"}}`, encodeURIComponent(String(resourceId))).replace(`{${"resource_type"}}`, encodeURIComponent(String(resourceType))));
|
|
58
58
|
return new ApiResponse_1.ApiResponse(response);
|
|
59
59
|
});
|
|
60
60
|
}
|
|
@@ -0,0 +1,61 @@
|
|
|
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 { DeploymentType } from './deployment-type';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface DeploymentApplicationCreate
|
|
17
|
+
*/
|
|
18
|
+
export interface DeploymentApplicationCreate {
|
|
19
|
+
/**
|
|
20
|
+
* The environment type of the deployment. Must be one of <code>development</code>, <code>testing</code>, <code>staging</code>, or <code>production</code>.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof DeploymentApplicationCreate
|
|
23
|
+
*/
|
|
24
|
+
environment?: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {DeploymentType}
|
|
28
|
+
* @memberof DeploymentApplicationCreate
|
|
29
|
+
*/
|
|
30
|
+
type: DeploymentType;
|
|
31
|
+
/**
|
|
32
|
+
* The name of the branch from which the application source code will be retrieved and deployed.This field is required when <code>hash</code> is not present. Must not be greater than 100 characters.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof DeploymentApplicationCreate
|
|
35
|
+
*/
|
|
36
|
+
branch?: string;
|
|
37
|
+
/**
|
|
38
|
+
* The commit hash from which the application source code will be retrieved and deployed.This field is required when <code>branch</code> is not present. Must contain only letters and numbers. Must be at least 7 characters. Must not be greater than 40 characters.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof DeploymentApplicationCreate
|
|
41
|
+
*/
|
|
42
|
+
hash?: string;
|
|
43
|
+
/**
|
|
44
|
+
* The pipeline\'s ID to use for deployment.
|
|
45
|
+
* @type {number}
|
|
46
|
+
* @memberof DeploymentApplicationCreate
|
|
47
|
+
*/
|
|
48
|
+
pipeline_id?: number;
|
|
49
|
+
/**
|
|
50
|
+
* The pull request\'s ID to use for deployment.
|
|
51
|
+
* @type {number}
|
|
52
|
+
* @memberof DeploymentApplicationCreate
|
|
53
|
+
*/
|
|
54
|
+
pull_request_id?: number;
|
|
55
|
+
/**
|
|
56
|
+
* List of valid resource IDs
|
|
57
|
+
* @type {Array<number>}
|
|
58
|
+
* @memberof DeploymentApplicationCreate
|
|
59
|
+
*/
|
|
60
|
+
servers?: Array<number>;
|
|
61
|
+
}
|
|
File without changes
|
|
@@ -63,6 +63,7 @@ export * from './daemon-environment-create';
|
|
|
63
63
|
export * from './daemon-relation';
|
|
64
64
|
export * from './daemon-restart';
|
|
65
65
|
export * from './daemon-update';
|
|
66
|
+
export * from './deployment-application-create';
|
|
66
67
|
export * from './deployment-default-step';
|
|
67
68
|
export * from './deployment-origin';
|
|
68
69
|
export * from './deployment-source';
|
|
@@ -136,7 +137,7 @@ export * from './repository-branch';
|
|
|
136
137
|
export * from './repository-relation';
|
|
137
138
|
export * from './request-relation';
|
|
138
139
|
export * from './resource';
|
|
139
|
-
export * from './resource-event';
|
|
140
|
+
export * from './resource-event-relation';
|
|
140
141
|
export * from './resource-type';
|
|
141
142
|
export * from './role';
|
|
142
143
|
export * from './role-project-create';
|
|
@@ -79,6 +79,7 @@ __exportStar(require("./daemon-environment-create"), exports);
|
|
|
79
79
|
__exportStar(require("./daemon-relation"), exports);
|
|
80
80
|
__exportStar(require("./daemon-restart"), exports);
|
|
81
81
|
__exportStar(require("./daemon-update"), exports);
|
|
82
|
+
__exportStar(require("./deployment-application-create"), exports);
|
|
82
83
|
__exportStar(require("./deployment-default-step"), exports);
|
|
83
84
|
__exportStar(require("./deployment-origin"), exports);
|
|
84
85
|
__exportStar(require("./deployment-source"), exports);
|
|
@@ -152,7 +153,7 @@ __exportStar(require("./repository-branch"), exports);
|
|
|
152
153
|
__exportStar(require("./repository-relation"), exports);
|
|
153
154
|
__exportStar(require("./request-relation"), exports);
|
|
154
155
|
__exportStar(require("./resource"), exports);
|
|
155
|
-
__exportStar(require("./resource-event"), exports);
|
|
156
|
+
__exportStar(require("./resource-event-relation"), exports);
|
|
156
157
|
__exportStar(require("./resource-type"), exports);
|
|
157
158
|
__exportStar(require("./role"), exports);
|
|
158
159
|
__exportStar(require("./role-project-create"), exports);
|
|
@@ -9,13 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { ApplicationRelation } from './application-relation';
|
|
13
|
-
import { CronJobRelation } from './cron-job-relation';
|
|
14
|
-
import { DaemonRelation } from './daemon-relation';
|
|
15
12
|
import { EnvironmentRelation } from './environment-relation';
|
|
16
|
-
import { NetworkRuleRelation } from './network-rule-relation';
|
|
17
|
-
import { ServerRelation } from './server-relation';
|
|
18
|
-
import { ServiceRelation } from './service-relation';
|
|
19
13
|
import { UserRelation } from './user-relation';
|
|
20
14
|
/**
|
|
21
15
|
*
|
|
@@ -65,42 +59,6 @@ export interface Project {
|
|
|
65
59
|
* @memberof Project
|
|
66
60
|
*/
|
|
67
61
|
environments: Array<EnvironmentRelation>;
|
|
68
|
-
/**
|
|
69
|
-
*
|
|
70
|
-
* @type {Array<ApplicationRelation>}
|
|
71
|
-
* @memberof Project
|
|
72
|
-
*/
|
|
73
|
-
applications: Array<ApplicationRelation>;
|
|
74
|
-
/**
|
|
75
|
-
*
|
|
76
|
-
* @type {Array<CronJobRelation>}
|
|
77
|
-
* @memberof Project
|
|
78
|
-
*/
|
|
79
|
-
cron_jobs: Array<CronJobRelation>;
|
|
80
|
-
/**
|
|
81
|
-
*
|
|
82
|
-
* @type {Array<DaemonRelation>}
|
|
83
|
-
* @memberof Project
|
|
84
|
-
*/
|
|
85
|
-
daemons: Array<DaemonRelation>;
|
|
86
|
-
/**
|
|
87
|
-
*
|
|
88
|
-
* @type {Array<NetworkRuleRelation>}
|
|
89
|
-
* @memberof Project
|
|
90
|
-
*/
|
|
91
|
-
network_rules: Array<NetworkRuleRelation>;
|
|
92
|
-
/**
|
|
93
|
-
*
|
|
94
|
-
* @type {Array<ServerRelation>}
|
|
95
|
-
* @memberof Project
|
|
96
|
-
*/
|
|
97
|
-
servers: Array<ServerRelation>;
|
|
98
|
-
/**
|
|
99
|
-
*
|
|
100
|
-
* @type {Array<ServiceRelation>}
|
|
101
|
-
* @memberof Project
|
|
102
|
-
*/
|
|
103
|
-
services: Array<ServiceRelation>;
|
|
104
62
|
/**
|
|
105
63
|
* The date and time when the record was created
|
|
106
64
|
* @type {string}
|
|
@@ -12,55 +12,55 @@
|
|
|
12
12
|
/**
|
|
13
13
|
*
|
|
14
14
|
* @export
|
|
15
|
-
* @interface
|
|
15
|
+
* @interface ResourceEventRelation
|
|
16
16
|
*/
|
|
17
|
-
export interface
|
|
17
|
+
export interface ResourceEventRelation {
|
|
18
18
|
/**
|
|
19
|
-
* The
|
|
19
|
+
* The ID of the given resource event
|
|
20
20
|
* @type {number}
|
|
21
|
-
* @memberof
|
|
21
|
+
* @memberof ResourceEventRelation
|
|
22
22
|
*/
|
|
23
23
|
id: number;
|
|
24
24
|
/**
|
|
25
|
-
* The event
|
|
25
|
+
* The type of resource event
|
|
26
26
|
* @type {string}
|
|
27
|
-
* @memberof
|
|
27
|
+
* @memberof ResourceEventRelation
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
event_type: string;
|
|
30
30
|
/**
|
|
31
|
-
* The
|
|
31
|
+
* The event\'s resource type
|
|
32
32
|
* @type {string}
|
|
33
|
-
* @memberof
|
|
33
|
+
* @memberof ResourceEventRelation
|
|
34
34
|
*/
|
|
35
35
|
resource_type: string;
|
|
36
36
|
/**
|
|
37
|
-
* The
|
|
37
|
+
* The event\'s resource ID
|
|
38
38
|
* @type {number}
|
|
39
|
-
* @memberof
|
|
39
|
+
* @memberof ResourceEventRelation
|
|
40
40
|
*/
|
|
41
41
|
resource_id: number;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
*
|
|
44
44
|
* @type {string}
|
|
45
|
-
* @memberof
|
|
45
|
+
* @memberof ResourceEventRelation
|
|
46
46
|
*/
|
|
47
|
-
message
|
|
47
|
+
message: string | null;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
*
|
|
50
50
|
* @type {number}
|
|
51
|
-
* @memberof
|
|
51
|
+
* @memberof ResourceEventRelation
|
|
52
52
|
*/
|
|
53
|
-
triggered_by
|
|
53
|
+
triggered_by: number | null;
|
|
54
54
|
/**
|
|
55
55
|
* The date and time when the record was created
|
|
56
56
|
* @type {string}
|
|
57
|
-
* @memberof
|
|
57
|
+
* @memberof ResourceEventRelation
|
|
58
58
|
*/
|
|
59
59
|
created_at: string;
|
|
60
60
|
/**
|
|
61
61
|
* The date and time when the record was last updated
|
|
62
62
|
* @type {string}
|
|
63
|
-
* @memberof
|
|
63
|
+
* @memberof ResourceEventRelation
|
|
64
64
|
*/
|
|
65
65
|
updated_at: string;
|
|
66
66
|
}
|
|
@@ -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 });
|
|
@@ -16,11 +16,13 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export declare enum VariableTarget {
|
|
18
18
|
ResourceConfigFile = "resource-config-file",
|
|
19
|
+
MyCnf = "my-cnf",
|
|
19
20
|
NginxConf = "nginx-conf",
|
|
20
21
|
OsEnvVar = "os-env-var",
|
|
21
22
|
PhpCliPhpIni = "php-cli_php-ini",
|
|
22
23
|
PhpFpmPhpFpmConf = "php-fpm_php-fpm-conf",
|
|
23
24
|
PhpFpmPhpIni = "php-fpm_php-ini",
|
|
24
25
|
PhpFpmPoolDWwwConf = "php-fpm_pool-d-www-conf",
|
|
25
|
-
RedisConf = "redis-conf"
|
|
26
|
+
RedisConf = "redis-conf",
|
|
27
|
+
SupervisordConf = "supervisord-conf"
|
|
26
28
|
}
|
|
@@ -21,6 +21,7 @@ exports.VariableTarget = void 0;
|
|
|
21
21
|
var VariableTarget;
|
|
22
22
|
(function (VariableTarget) {
|
|
23
23
|
VariableTarget["ResourceConfigFile"] = "resource-config-file";
|
|
24
|
+
VariableTarget["MyCnf"] = "my-cnf";
|
|
24
25
|
VariableTarget["NginxConf"] = "nginx-conf";
|
|
25
26
|
VariableTarget["OsEnvVar"] = "os-env-var";
|
|
26
27
|
VariableTarget["PhpCliPhpIni"] = "php-cli_php-ini";
|
|
@@ -28,4 +29,5 @@ var VariableTarget;
|
|
|
28
29
|
VariableTarget["PhpFpmPhpIni"] = "php-fpm_php-ini";
|
|
29
30
|
VariableTarget["PhpFpmPoolDWwwConf"] = "php-fpm_pool-d-www-conf";
|
|
30
31
|
VariableTarget["RedisConf"] = "redis-conf";
|
|
32
|
+
VariableTarget["SupervisordConf"] = "supervisord-conf";
|
|
31
33
|
})(VariableTarget = exports.VariableTarget || (exports.VariableTarget = {}));
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
import { ActionsApiService } from "../api/generated/apis/actions-api";
|
|
2
|
-
import { ActionsResourcesApiService } from "../api/generated/apis/actions-resources-api";
|
|
3
2
|
export declare class ActionService extends ActionsApiService {
|
|
4
|
-
resources: ActionsResourcesApiService;
|
|
5
3
|
}
|
|
@@ -2,11 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ActionService = void 0;
|
|
4
4
|
const actions_api_1 = require("../api/generated/apis/actions-api");
|
|
5
|
-
const actions_resources_api_1 = require("../api/generated/apis/actions-resources-api");
|
|
6
5
|
class ActionService extends actions_api_1.ActionsApiService {
|
|
7
|
-
constructor() {
|
|
8
|
-
super(...arguments);
|
|
9
|
-
this.resources = new actions_resources_api_1.ActionsResourcesApiService();
|
|
10
|
-
}
|
|
11
6
|
}
|
|
12
7
|
exports.ActionService = ActionService;
|
package/package.json
CHANGED
|
@@ -1,28 +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 { ActionListItem } from '../../generated/models';
|
|
15
|
-
/**
|
|
16
|
-
* ActionsResourcesApiService - Auto-generated
|
|
17
|
-
*/
|
|
18
|
-
export declare class ActionsResourcesApiService extends ApiBaseService {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @summary List resource actions
|
|
22
|
-
* @param {string} resourceType The resource type to get related actions
|
|
23
|
-
* @param {number} resourceId Unique ID of the resource that\'s being searched
|
|
24
|
-
* @param {number} [page] Number of the page to be retrieved
|
|
25
|
-
* @param {number} [perPage] Number of items returned per page
|
|
26
|
-
*/
|
|
27
|
-
listResourceActions(resourceType: string, resourceId: number, page?: number, perPage?: number): Promise<ApiResponse<Array<ActionListItem>>>;
|
|
28
|
-
}
|
|
@@ -1,62 +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.ActionsResourcesApiService = 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
|
-
* ActionsResourcesApiService - Auto-generated
|
|
30
|
-
*/
|
|
31
|
-
class ActionsResourcesApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @summary List resource actions
|
|
35
|
-
* @param {string} resourceType The resource type to get related actions
|
|
36
|
-
* @param {number} resourceId Unique ID of the resource that\'s being searched
|
|
37
|
-
* @param {number} [page] Number of the page to be retrieved
|
|
38
|
-
* @param {number} [perPage] Number of items returned per page
|
|
39
|
-
*/
|
|
40
|
-
listResourceActions(resourceType, resourceId, page, perPage) {
|
|
41
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
42
|
-
if (resourceType === null || resourceType === undefined) {
|
|
43
|
-
throw new Exceptions_1.ArgumentNullException('resourceType', 'listResourceActions');
|
|
44
|
-
}
|
|
45
|
-
if (resourceId === null || resourceId === undefined) {
|
|
46
|
-
throw new Exceptions_1.ArgumentNullException('resourceId', 'listResourceActions');
|
|
47
|
-
}
|
|
48
|
-
let queryString = '';
|
|
49
|
-
const queryParams = { page: page, per_page: perPage, };
|
|
50
|
-
for (const key in queryParams) {
|
|
51
|
-
if (queryParams[key] === undefined || queryParams[key] === null) {
|
|
52
|
-
continue;
|
|
53
|
-
}
|
|
54
|
-
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
55
|
-
}
|
|
56
|
-
const requestUrl = '/actions/{resource_type}/{resource_id}' + (queryString ? `?${queryString}` : '');
|
|
57
|
-
const response = yield this.get(requestUrl.replace(`{${"resource_type"}}`, encodeURIComponent(String(resourceType))).replace(`{${"resource_id"}}`, encodeURIComponent(String(resourceId))));
|
|
58
|
-
return new ApiResponse_1.ApiResponse(response);
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
exports.ActionsResourcesApiService = ActionsResourcesApiService;
|