@devopness/sdk-js 1.90.0 → 1.93.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 +2 -2
- package/dist/api/generated/apis/cloud-providers-api.d.ts +2 -2
- package/dist/api/generated/apis/cloud-providers-api.js +6 -6
- package/dist/api/generated/apis/sshkeys-api.d.ts +8 -0
- package/dist/api/generated/apis/sshkeys-api.js +20 -0
- package/dist/api/generated/apis/users-api.d.ts +2 -1
- package/dist/api/generated/models/accepted-response-message.d.ts +24 -0
- package/dist/api/generated/models/accepted-response-message.js +14 -0
- package/dist/api/generated/models/action-list-item-params.d.ts +25 -0
- package/dist/api/generated/models/action-list-item-params.js +14 -0
- package/dist/api/generated/models/action-list-item.d.ts +18 -0
- package/dist/api/generated/models/action-list-item.js +14 -0
- package/dist/api/generated/models/action-relation.d.ts +7 -0
- package/dist/api/generated/models/cloud-provider.d.ts +5 -5
- package/dist/api/generated/models/cloud-service.d.ts +1 -1
- package/dist/api/generated/models/daemon-relation.d.ts +1 -1
- package/dist/api/generated/models/daemon.d.ts +15 -1
- package/dist/api/generated/models/deployment-relation.d.ts +6 -0
- package/dist/api/generated/models/deployment.d.ts +1 -1
- package/dist/api/generated/models/index.d.ts +4 -0
- package/dist/api/generated/models/index.js +4 -0
- package/dist/api/generated/models/member-relation.d.ts +12 -0
- package/dist/api/generated/models/network-rule.d.ts +14 -0
- package/dist/api/generated/models/resource.d.ts +11 -2
- package/dist/api/generated/models/server.d.ts +3 -2
- package/dist/api/generated/models/ssh-key-update.d.ts +37 -0
- package/dist/api/generated/models/ssh-key-update.js +14 -0
- package/dist/api/generated/models/ssh-key.d.ts +14 -0
- package/dist/api/generated/models/ssl-certificate-relation.d.ts +6 -0
- package/dist/api/generated/models/ssl-certificate.d.ts +6 -0
- package/package.json +4 -4
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
14
|
import { Action } from '../../generated/models';
|
|
15
|
-
import {
|
|
15
|
+
import { ActionListItem } from '../../generated/models';
|
|
16
16
|
/**
|
|
17
17
|
* ActionsApiService - Auto-generated
|
|
18
18
|
*/
|
|
@@ -29,5 +29,5 @@ export declare class ActionsApiService extends ApiBaseService {
|
|
|
29
29
|
* @param {number} [page] Number of the page to be retrieved
|
|
30
30
|
* @param {number} [perPage] Number of items returned per page
|
|
31
31
|
*/
|
|
32
|
-
listActions(page?: number, perPage?: number): Promise<ApiResponse<Array<
|
|
32
|
+
listActions(page?: number, perPage?: number): Promise<ApiResponse<Array<ActionListItem>>>;
|
|
33
33
|
}
|
|
@@ -38,11 +38,11 @@ export declare class CloudProvidersApiService extends ApiBaseService {
|
|
|
38
38
|
/**
|
|
39
39
|
*
|
|
40
40
|
* @summary List credentials of the given cloud provider
|
|
41
|
-
* @param {string}
|
|
41
|
+
* @param {string} cloudProviderCode Code of the cloud provider to get credentials from
|
|
42
42
|
* @param {number} [page] Number of the page to be retrieved
|
|
43
43
|
* @param {number} [perPage] Number of items returned per page
|
|
44
44
|
*/
|
|
45
|
-
listCloudProviderCredentials(
|
|
45
|
+
listCloudProviderCredentials(cloudProviderCode: string, page?: number, perPage?: number): Promise<ApiResponse<Array<Credential>>>;
|
|
46
46
|
/**
|
|
47
47
|
*
|
|
48
48
|
* @summary List cloud provider credentials
|
|
@@ -80,14 +80,14 @@ class CloudProvidersApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
80
80
|
/**
|
|
81
81
|
*
|
|
82
82
|
* @summary List credentials of the given cloud provider
|
|
83
|
-
* @param {string}
|
|
83
|
+
* @param {string} cloudProviderCode Code of the cloud provider to get credentials from
|
|
84
84
|
* @param {number} [page] Number of the page to be retrieved
|
|
85
85
|
* @param {number} [perPage] Number of items returned per page
|
|
86
86
|
*/
|
|
87
|
-
listCloudProviderCredentials(
|
|
87
|
+
listCloudProviderCredentials(cloudProviderCode, page, perPage) {
|
|
88
88
|
return __awaiter(this, void 0, void 0, function* () {
|
|
89
|
-
if (
|
|
90
|
-
throw new Exceptions_1.ArgumentNullException('
|
|
89
|
+
if (cloudProviderCode === null || cloudProviderCode === undefined) {
|
|
90
|
+
throw new Exceptions_1.ArgumentNullException('cloudProviderCode', 'listCloudProviderCredentials');
|
|
91
91
|
}
|
|
92
92
|
let queryString = '';
|
|
93
93
|
const queryParams = { page: page, per_page: perPage, };
|
|
@@ -97,8 +97,8 @@ class CloudProvidersApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
97
97
|
}
|
|
98
98
|
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
99
99
|
}
|
|
100
|
-
const requestUrl = '/cloud-providers/{
|
|
101
|
-
const response = yield this.get(requestUrl.replace(`{${"
|
|
100
|
+
const requestUrl = '/cloud-providers/{cloud_provider_code}/credentials' + (queryString ? `?${queryString}` : '');
|
|
101
|
+
const response = yield this.get(requestUrl.replace(`{${"cloud_provider_code"}}`, encodeURIComponent(String(cloudProviderCode))));
|
|
102
102
|
return new ApiResponse_1.ApiResponse(response);
|
|
103
103
|
});
|
|
104
104
|
}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
14
|
import { SshKey } from '../../generated/models';
|
|
15
|
+
import { SshKeyUpdate } from '../../generated/models';
|
|
15
16
|
/**
|
|
16
17
|
* SSHKeysApiService - Auto-generated
|
|
17
18
|
*/
|
|
@@ -28,4 +29,11 @@ export declare class SSHKeysApiService extends ApiBaseService {
|
|
|
28
29
|
* @param {number} sshKeyId Numeric ID of the SSH key to get
|
|
29
30
|
*/
|
|
30
31
|
getSshKey(sshKeyId: number): Promise<ApiResponse<SshKey>>;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @summary Update an existing SSH key
|
|
35
|
+
* @param {number} sshKeyId Numeric ID of the SSH key to be updated
|
|
36
|
+
* @param {SshKeyUpdate} sshKeyUpdate A JSON object containing SSH key data
|
|
37
|
+
*/
|
|
38
|
+
updateSshKey(sshKeyId: number, sshKeyUpdate: SshKeyUpdate): Promise<ApiResponse<void>>;
|
|
31
39
|
}
|
|
@@ -61,5 +61,25 @@ class SSHKeysApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
61
61
|
return new ApiResponse_1.ApiResponse(response);
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @summary Update an existing SSH key
|
|
67
|
+
* @param {number} sshKeyId Numeric ID of the SSH key to be updated
|
|
68
|
+
* @param {SshKeyUpdate} sshKeyUpdate A JSON object containing SSH key data
|
|
69
|
+
*/
|
|
70
|
+
updateSshKey(sshKeyId, sshKeyUpdate) {
|
|
71
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
72
|
+
if (sshKeyId === null || sshKeyId === undefined) {
|
|
73
|
+
throw new Exceptions_1.ArgumentNullException('sshKeyId', 'updateSshKey');
|
|
74
|
+
}
|
|
75
|
+
if (sshKeyUpdate === null || sshKeyUpdate === undefined) {
|
|
76
|
+
throw new Exceptions_1.ArgumentNullException('sshKeyUpdate', 'updateSshKey');
|
|
77
|
+
}
|
|
78
|
+
let queryString = '';
|
|
79
|
+
const requestUrl = '/ssh-keys/{ssh_key_id}' + (queryString ? `?${queryString}` : '');
|
|
80
|
+
const response = yield this.put(requestUrl.replace(`{${"ssh_key_id"}}`, encodeURIComponent(String(sshKeyId))), sshKeyUpdate);
|
|
81
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
82
|
+
});
|
|
83
|
+
}
|
|
64
84
|
}
|
|
65
85
|
exports.SSHKeysApiService = SSHKeysApiService;
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
|
+
import { AcceptedResponseMessage } from '../../generated/models';
|
|
14
15
|
import { LoginCredentials } from '../../generated/models';
|
|
15
16
|
import { User } from '../../generated/models';
|
|
16
17
|
import { UserAccountActivate } from '../../generated/models';
|
|
@@ -37,7 +38,7 @@ export declare class UsersApiService extends ApiBaseService {
|
|
|
37
38
|
* @summary Sign up/register a new user
|
|
38
39
|
* @param {UserCreate} userCreate A JSON object containing user essential data
|
|
39
40
|
*/
|
|
40
|
-
addUser(userCreate: UserCreate): Promise<ApiResponse<
|
|
41
|
+
addUser(userCreate: UserCreate): Promise<ApiResponse<AcceptedResponseMessage>>;
|
|
41
42
|
/**
|
|
42
43
|
*
|
|
43
44
|
* @summary Get details of the current user
|
|
@@ -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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface AcceptedResponseMessage
|
|
16
|
+
*/
|
|
17
|
+
export interface AcceptedResponseMessage {
|
|
18
|
+
/**
|
|
19
|
+
* Message with information about the response
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof AcceptedResponseMessage
|
|
22
|
+
*/
|
|
23
|
+
message: string;
|
|
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,25 @@
|
|
|
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 { ServerAction } from './server-action';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ActionListItemParams
|
|
17
|
+
*/
|
|
18
|
+
export interface ActionListItemParams {
|
|
19
|
+
/**
|
|
20
|
+
* List of actions dispatched to servers
|
|
21
|
+
* @type {Array<ServerAction>}
|
|
22
|
+
* @memberof ActionListItemParams
|
|
23
|
+
*/
|
|
24
|
+
servers?: Array<ServerAction>;
|
|
25
|
+
}
|
|
@@ -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,18 @@
|
|
|
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 { ActionListItemParams } from './action-list-item-params';
|
|
13
|
+
import { ActionRelation } from './action-relation';
|
|
14
|
+
/**
|
|
15
|
+
* @type ActionListItem
|
|
16
|
+
* @export
|
|
17
|
+
*/
|
|
18
|
+
export declare type ActionListItem = ActionListItemParams & ActionRelation;
|
|
@@ -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,6 +12,7 @@
|
|
|
12
12
|
import { ActionStatus } from './action-status';
|
|
13
13
|
import { ActionSummary } from './action-summary';
|
|
14
14
|
import { ActionType } from './action-type';
|
|
15
|
+
import { Resource } from './resource';
|
|
15
16
|
/**
|
|
16
17
|
*
|
|
17
18
|
* @export
|
|
@@ -42,6 +43,12 @@ export interface ActionRelation {
|
|
|
42
43
|
* @memberof ActionRelation
|
|
43
44
|
*/
|
|
44
45
|
type_human_readable: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {Resource}
|
|
49
|
+
* @memberof ActionRelation
|
|
50
|
+
*/
|
|
51
|
+
resource: Resource;
|
|
45
52
|
/**
|
|
46
53
|
*
|
|
47
54
|
* @type {ActionSummary}
|
|
@@ -16,17 +16,17 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface CloudProvider {
|
|
18
18
|
/**
|
|
19
|
-
* The
|
|
20
|
-
* @type {
|
|
19
|
+
* The code that uniquely identify a cloud provider
|
|
20
|
+
* @type {string}
|
|
21
21
|
* @memberof CloudProvider
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
code: string;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* A URL path to the provider\'s logo image
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof CloudProvider
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
logo_url: string;
|
|
30
30
|
/**
|
|
31
31
|
* The name of the cloud provider
|
|
32
32
|
* @type {string}
|
|
@@ -11,7 +11,9 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { ActionRelation } from './action-relation';
|
|
13
13
|
import { ApplicationRelation } from './application-relation';
|
|
14
|
+
import { EnvironmentRelation } from './environment-relation';
|
|
14
15
|
import { ProjectRelation } from './project-relation';
|
|
16
|
+
import { ServerRelation } from './server-relation';
|
|
15
17
|
/**
|
|
16
18
|
*
|
|
17
19
|
* @export
|
|
@@ -23,7 +25,7 @@ export interface Daemon {
|
|
|
23
25
|
* @type {number}
|
|
24
26
|
* @memberof Daemon
|
|
25
27
|
*/
|
|
26
|
-
id
|
|
28
|
+
id: number;
|
|
27
29
|
/**
|
|
28
30
|
* The name entered by the user (or auto-generated by `devopness`) to uniquely identify the daemon
|
|
29
31
|
* @type {string}
|
|
@@ -72,6 +74,18 @@ export interface Daemon {
|
|
|
72
74
|
* @memberof Daemon
|
|
73
75
|
*/
|
|
74
76
|
application: ApplicationRelation | null;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {Array<EnvironmentRelation>}
|
|
80
|
+
* @memberof Daemon
|
|
81
|
+
*/
|
|
82
|
+
environments: Array<EnvironmentRelation>;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {Array<ServerRelation>}
|
|
86
|
+
* @memberof Daemon
|
|
87
|
+
*/
|
|
88
|
+
servers: Array<ServerRelation>;
|
|
75
89
|
/**
|
|
76
90
|
*
|
|
77
91
|
* @type {ActionRelation}
|
|
@@ -28,6 +28,12 @@ export interface DeploymentRelation {
|
|
|
28
28
|
* @memberof DeploymentRelation
|
|
29
29
|
*/
|
|
30
30
|
id: number;
|
|
31
|
+
/**
|
|
32
|
+
* The application\'s name that the deployment belongs to
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof DeploymentRelation
|
|
35
|
+
*/
|
|
36
|
+
name: string;
|
|
31
37
|
/**
|
|
32
38
|
*
|
|
33
39
|
* @type {ActionStatus}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
+
export * from './accepted-response-message';
|
|
1
2
|
export * from './action';
|
|
2
3
|
export * from './action-hook-request';
|
|
4
|
+
export * from './action-list-item';
|
|
5
|
+
export * from './action-list-item-params';
|
|
3
6
|
export * from './action-relation';
|
|
4
7
|
export * from './action-status';
|
|
5
8
|
export * from './action-step';
|
|
@@ -146,6 +149,7 @@ export * from './source-provider-name';
|
|
|
146
149
|
export * from './ssh-key';
|
|
147
150
|
export * from './ssh-key-create';
|
|
148
151
|
export * from './ssh-key-relation';
|
|
152
|
+
export * from './ssh-key-update';
|
|
149
153
|
export * from './ssl-certificate';
|
|
150
154
|
export * from './ssl-certificate-create';
|
|
151
155
|
export * from './ssl-certificate-issuer';
|
|
@@ -10,8 +10,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
10
10
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./accepted-response-message"), exports);
|
|
13
14
|
__exportStar(require("./action"), exports);
|
|
14
15
|
__exportStar(require("./action-hook-request"), exports);
|
|
16
|
+
__exportStar(require("./action-list-item"), exports);
|
|
17
|
+
__exportStar(require("./action-list-item-params"), exports);
|
|
15
18
|
__exportStar(require("./action-relation"), exports);
|
|
16
19
|
__exportStar(require("./action-status"), exports);
|
|
17
20
|
__exportStar(require("./action-step"), exports);
|
|
@@ -158,6 +161,7 @@ __exportStar(require("./source-provider-name"), exports);
|
|
|
158
161
|
__exportStar(require("./ssh-key"), exports);
|
|
159
162
|
__exportStar(require("./ssh-key-create"), exports);
|
|
160
163
|
__exportStar(require("./ssh-key-relation"), exports);
|
|
164
|
+
__exportStar(require("./ssh-key-update"), exports);
|
|
161
165
|
__exportStar(require("./ssl-certificate"), exports);
|
|
162
166
|
__exportStar(require("./ssl-certificate-create"), exports);
|
|
163
167
|
__exportStar(require("./ssl-certificate-issuer"), exports);
|
|
@@ -22,6 +22,18 @@ export interface MemberRelation {
|
|
|
22
22
|
* @memberof MemberRelation
|
|
23
23
|
*/
|
|
24
24
|
role: string;
|
|
25
|
+
/**
|
|
26
|
+
* The date and time when the record was created
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof MemberRelation
|
|
29
|
+
*/
|
|
30
|
+
created_at?: string;
|
|
31
|
+
/**
|
|
32
|
+
* The date and time when the record was last updated
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof MemberRelation
|
|
35
|
+
*/
|
|
36
|
+
updated_at?: string;
|
|
25
37
|
/**
|
|
26
38
|
*
|
|
27
39
|
* @type {UserRelation}
|
|
@@ -10,8 +10,10 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { ActionRelation } from './action-relation';
|
|
13
|
+
import { EnvironmentRelation } from './environment-relation';
|
|
13
14
|
import { NetworkRuleProtocol } from './network-rule-protocol';
|
|
14
15
|
import { NetworkRuleType } from './network-rule-type';
|
|
16
|
+
import { ServerRelation } from './server-relation';
|
|
15
17
|
import { UserRelation } from './user-relation';
|
|
16
18
|
/**
|
|
17
19
|
*
|
|
@@ -73,6 +75,18 @@ export interface NetworkRule {
|
|
|
73
75
|
* @memberof NetworkRule
|
|
74
76
|
*/
|
|
75
77
|
created_by_user: UserRelation;
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @type {Array<EnvironmentRelation>}
|
|
81
|
+
* @memberof NetworkRule
|
|
82
|
+
*/
|
|
83
|
+
environments: Array<EnvironmentRelation>;
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @type {Array<ServerRelation>}
|
|
87
|
+
* @memberof NetworkRule
|
|
88
|
+
*/
|
|
89
|
+
servers: Array<ServerRelation>;
|
|
76
90
|
/**
|
|
77
91
|
*
|
|
78
92
|
* @type {ActionRelation}
|
|
@@ -9,7 +9,16 @@
|
|
|
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
|
+
import { DeploymentRelation } from './deployment-relation';
|
|
16
|
+
import { NetworkRuleRelation } from './network-rule-relation';
|
|
12
17
|
import { ResourceType } from './resource-type';
|
|
18
|
+
import { ServerRelation } from './server-relation';
|
|
19
|
+
import { ServiceRelation } from './service-relation';
|
|
20
|
+
import { SshKeyRelation } from './ssh-key-relation';
|
|
21
|
+
import { SslCertificateRelation } from './ssl-certificate-relation';
|
|
13
22
|
/**
|
|
14
23
|
* Object containing the data of the resource and informations about it
|
|
15
24
|
* @export
|
|
@@ -36,8 +45,8 @@ export interface Resource {
|
|
|
36
45
|
type_human_readable: string;
|
|
37
46
|
/**
|
|
38
47
|
* The resource data of type specified on `resource.type`
|
|
39
|
-
* @type {
|
|
48
|
+
* @type {ApplicationRelation | CronJobRelation | DaemonRelation | DeploymentRelation | NetworkRuleRelation | ServerRelation | ServiceRelation | SshKeyRelation | SslCertificateRelation}
|
|
40
49
|
* @memberof Resource
|
|
41
50
|
*/
|
|
42
|
-
data?:
|
|
51
|
+
data?: ApplicationRelation | CronJobRelation | DaemonRelation | DeploymentRelation | NetworkRuleRelation | ServerRelation | ServiceRelation | SshKeyRelation | SslCertificateRelation | null;
|
|
43
52
|
}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { ActionListItem } from './action-list-item';
|
|
12
13
|
import { ActionRelation } from './action-relation';
|
|
13
14
|
import { ActionStatus } from './action-status';
|
|
14
15
|
import { EnvironmentRelation } from './environment-relation';
|
|
@@ -77,10 +78,10 @@ export interface Server {
|
|
|
77
78
|
status?: ActionStatus;
|
|
78
79
|
/**
|
|
79
80
|
* The list of related actions
|
|
80
|
-
* @type {Array<
|
|
81
|
+
* @type {Array<ActionListItem>}
|
|
81
82
|
* @memberof Server
|
|
82
83
|
*/
|
|
83
|
-
actions: Array<
|
|
84
|
+
actions: Array<ActionListItem>;
|
|
84
85
|
/**
|
|
85
86
|
* The list of environments to which the server is linked to
|
|
86
87
|
* @type {Array<EnvironmentRelation>}
|
|
@@ -0,0 +1,37 @@
|
|
|
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 { EnvironmentLinkItem } from './environment-link-item';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface SshKeyUpdate
|
|
17
|
+
*/
|
|
18
|
+
export interface SshKeyUpdate {
|
|
19
|
+
/**
|
|
20
|
+
* The Id of the SSH key
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof SshKeyUpdate
|
|
23
|
+
*/
|
|
24
|
+
id: number;
|
|
25
|
+
/**
|
|
26
|
+
* The name entered by the user to uniquely identify the public SSH key
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof SshKeyUpdate
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {Array<EnvironmentLinkItem>}
|
|
34
|
+
* @memberof SshKeyUpdate
|
|
35
|
+
*/
|
|
36
|
+
environments?: Array<EnvironmentLinkItem>;
|
|
37
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* devopness API
|
|
5
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { ActionRelation } from './action-relation';
|
|
13
|
+
import { EnvironmentRelation } from './environment-relation';
|
|
14
|
+
import { ServerRelation } from './server-relation';
|
|
13
15
|
import { UserRelation } from './user-relation';
|
|
14
16
|
/**
|
|
15
17
|
*
|
|
@@ -53,6 +55,18 @@ export interface SshKey {
|
|
|
53
55
|
* @memberof SshKey
|
|
54
56
|
*/
|
|
55
57
|
created_by_user: UserRelation;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {Array<EnvironmentRelation>}
|
|
61
|
+
* @memberof SshKey
|
|
62
|
+
*/
|
|
63
|
+
environments: Array<EnvironmentRelation>;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {Array<ServerRelation>}
|
|
67
|
+
* @memberof SshKey
|
|
68
|
+
*/
|
|
69
|
+
servers: Array<ServerRelation>;
|
|
56
70
|
/**
|
|
57
71
|
*
|
|
58
72
|
* @type {ActionRelation}
|
|
@@ -31,6 +31,12 @@ export interface SslCertificateRelation {
|
|
|
31
31
|
* @memberof SslCertificateRelation
|
|
32
32
|
*/
|
|
33
33
|
domains: Array<string>;
|
|
34
|
+
/**
|
|
35
|
+
* The name given to SSL certificate
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof SslCertificateRelation
|
|
38
|
+
*/
|
|
39
|
+
name: string;
|
|
34
40
|
/**
|
|
35
41
|
*
|
|
36
42
|
* @type {SslCertificateIssuer}
|
|
@@ -33,6 +33,12 @@ export interface SslCertificate {
|
|
|
33
33
|
* @memberof SslCertificate
|
|
34
34
|
*/
|
|
35
35
|
domains: Array<string>;
|
|
36
|
+
/**
|
|
37
|
+
* The name given to SSL certificate
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SslCertificate
|
|
40
|
+
*/
|
|
41
|
+
name: string;
|
|
36
42
|
/**
|
|
37
43
|
*
|
|
38
44
|
* @type {SslCertificateIssuer}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devopness/sdk-js",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.93.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -50,16 +50,16 @@
|
|
|
50
50
|
"@typescript-eslint/eslint-plugin": "^4.0.0",
|
|
51
51
|
"@typescript-eslint/parser": "^4.28.1",
|
|
52
52
|
"axios-mock-adapter": "^1.18.1",
|
|
53
|
-
"eslint": "^7.
|
|
53
|
+
"eslint": "^7.32.0",
|
|
54
54
|
"eslint-config-standard-with-typescript": "^21.0.1",
|
|
55
|
-
"eslint-plugin-import": "^2.
|
|
55
|
+
"eslint-plugin-import": "^2.24.2",
|
|
56
56
|
"eslint-plugin-node": "^11.1.0",
|
|
57
57
|
"eslint-plugin-promise": "^5.1.0",
|
|
58
58
|
"eslint-plugin-standard": "^5.0.0",
|
|
59
59
|
"husky": "^7.0.0",
|
|
60
60
|
"jest": "^27.0.6",
|
|
61
61
|
"ts-jest": "^27.0.3",
|
|
62
|
-
"typedoc": "^0.
|
|
62
|
+
"typedoc": "^0.22.3",
|
|
63
63
|
"typescript": "^4.0.2"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|