@devopness/sdk-js 2.14.0 → 2.15.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/DevopnessApiClient.d.ts +0 -2
- package/dist/DevopnessApiClient.js +0 -2
- package/dist/api/generated/apis/environments-applications-api.d.ts +9 -0
- package/dist/api/generated/apis/environments-applications-api.js +20 -0
- package/dist/api/generated/apis/environments-servers-api.d.ts +9 -9
- package/dist/api/generated/apis/environments-servers-api.js +20 -25
- package/dist/api/generated/apis/environments-services-api.d.ts +2 -2
- package/dist/api/generated/apis/environments-services-api.js +2 -2
- package/dist/api/generated/apis/environments-sshkeys-api.d.ts +11 -2
- package/dist/api/generated/apis/environments-sshkeys-api.js +22 -2
- package/dist/api/generated/apis/projects-servers-api.d.ts +4 -4
- package/dist/api/generated/apis/projects-servers-api.js +6 -6
- package/dist/api/generated/apis/projects-services-api.d.ts +5 -5
- package/dist/api/generated/apis/projects-services-api.js +7 -7
- package/dist/api/generated/apis/projects-sshkeys-api.d.ts +1 -1
- package/dist/api/generated/apis/projects-sshkeys-api.js +1 -1
- package/dist/api/generated/apis/servers-api.d.ts +3 -4
- package/dist/api/generated/apis/servers-api.js +7 -7
- package/dist/api/generated/apis/services-api.d.ts +17 -17
- package/dist/api/generated/apis/services-api.js +20 -20
- package/dist/api/generated/models/application-environment-create.d.ts +138 -0
- package/dist/api/generated/models/{service-status-update.js → application-environment-create.js} +0 -0
- package/dist/api/generated/models/index.d.ts +3 -2
- package/dist/api/generated/models/index.js +3 -2
- package/dist/api/generated/models/server-relation.d.ts +22 -22
- package/dist/api/generated/models/server.d.ts +34 -28
- package/dist/api/generated/models/service-create.d.ts +11 -11
- package/dist/api/generated/models/service-relation.d.ts +14 -8
- package/dist/api/generated/models/service-reload.d.ts +1 -1
- package/dist/api/generated/models/service-restart.d.ts +1 -1
- package/dist/api/generated/models/service-start.d.ts +1 -1
- package/dist/api/generated/models/service-stop.d.ts +1 -1
- package/dist/api/generated/models/{service-status-update.d.ts → service-update-status.d.ts} +4 -4
- package/dist/api/generated/models/service-update-status.js +14 -0
- package/dist/api/generated/models/service-update.d.ts +2 -2
- package/dist/api/generated/models/service.d.ts +4 -4
- package/dist/api/generated/models/ssh-key-create.d.ts +5 -12
- package/dist/api/generated/models/ssh-key-project-create.d.ts +37 -0
- package/dist/api/generated/models/ssh-key-project-create.js +14 -0
- package/dist/api/generated/models/ssh-key-relation.d.ts +13 -7
- package/dist/api/generated/models/ssh-key-update.d.ts +2 -2
- package/dist/api/generated/models/ssh-key.d.ts +13 -7
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -1
- package/dist/services/ApiBaseService.js +2 -4
- package/dist/services/index.d.ts +27 -0
- package/dist/services/index.js +43 -0
- package/package.json +15 -8
- package/dist/api/generated/apis/invitations-api.d.ts +0 -24
- package/dist/api/generated/apis/invitations-api.js +0 -49
- package/dist/api/generated/models/service-action.d.ts +0 -27
- package/dist/api/generated/models/service-action.js +0 -32
- package/dist/services/InvitationService.d.ts +0 -3
- package/dist/services/InvitationService.js +0 -7
|
@@ -32,7 +32,7 @@ class ServicesApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
34
|
* @summary Delete a given service
|
|
35
|
-
* @param {number} serviceId The
|
|
35
|
+
* @param {number} serviceId The ID of the service.
|
|
36
36
|
*/
|
|
37
37
|
deleteService(serviceId) {
|
|
38
38
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -48,7 +48,7 @@ class ServicesApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
50
|
* @summary Get details of a single service
|
|
51
|
-
* @param {number} serviceId
|
|
51
|
+
* @param {number} serviceId The ID of the service.
|
|
52
52
|
*/
|
|
53
53
|
getService(serviceId) {
|
|
54
54
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -64,8 +64,8 @@ class ServicesApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
64
64
|
/**
|
|
65
65
|
*
|
|
66
66
|
* @summary Reload a service
|
|
67
|
-
* @param {number} serviceId The
|
|
68
|
-
* @param {ServiceReload} serviceReload A JSON object containing the
|
|
67
|
+
* @param {number} serviceId The ID of the service.
|
|
68
|
+
* @param {ServiceReload} serviceReload A JSON object containing the resource data
|
|
69
69
|
*/
|
|
70
70
|
reloadService(serviceId, serviceReload) {
|
|
71
71
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -84,8 +84,8 @@ class ServicesApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
84
84
|
/**
|
|
85
85
|
*
|
|
86
86
|
* @summary Restart a service
|
|
87
|
-
* @param {number} serviceId The
|
|
88
|
-
* @param {ServiceRestart} serviceRestart A JSON object containing the
|
|
87
|
+
* @param {number} serviceId The ID of the service.
|
|
88
|
+
* @param {ServiceRestart} serviceRestart A JSON object containing the resource data
|
|
89
89
|
*/
|
|
90
90
|
restartService(serviceId, serviceRestart) {
|
|
91
91
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -104,8 +104,8 @@ class ServicesApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
104
104
|
/**
|
|
105
105
|
*
|
|
106
106
|
* @summary Start a service
|
|
107
|
-
* @param {number} serviceId The
|
|
108
|
-
* @param {ServiceStart} serviceStart A JSON object containing the
|
|
107
|
+
* @param {number} serviceId The ID of the service.
|
|
108
|
+
* @param {ServiceStart} serviceStart A JSON object containing the resource data
|
|
109
109
|
*/
|
|
110
110
|
startService(serviceId, serviceStart) {
|
|
111
111
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -124,8 +124,8 @@ class ServicesApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
124
124
|
/**
|
|
125
125
|
*
|
|
126
126
|
* @summary Stop a service
|
|
127
|
-
* @param {number} serviceId The
|
|
128
|
-
* @param {ServiceStop} serviceStop A JSON object containing the
|
|
127
|
+
* @param {number} serviceId The ID of the service.
|
|
128
|
+
* @param {ServiceStop} serviceStop A JSON object containing the resource data
|
|
129
129
|
*/
|
|
130
130
|
stopService(serviceId, serviceStop) {
|
|
131
131
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -144,8 +144,8 @@ class ServicesApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
144
144
|
/**
|
|
145
145
|
*
|
|
146
146
|
* @summary Update an existing service
|
|
147
|
-
* @param {number} serviceId The
|
|
148
|
-
* @param {ServiceUpdate} serviceUpdate A JSON object containing
|
|
147
|
+
* @param {number} serviceId The ID of the service.
|
|
148
|
+
* @param {ServiceUpdate} serviceUpdate A JSON object containing the resource data
|
|
149
149
|
*/
|
|
150
150
|
updateService(serviceId, serviceUpdate) {
|
|
151
151
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -162,22 +162,22 @@ class ServicesApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
162
162
|
});
|
|
163
163
|
}
|
|
164
164
|
/**
|
|
165
|
-
*
|
|
165
|
+
*
|
|
166
166
|
* @summary Update status of a service
|
|
167
|
-
* @param {number} serviceId The
|
|
168
|
-
* @param {
|
|
167
|
+
* @param {number} serviceId The ID of the service.
|
|
168
|
+
* @param {ServiceUpdateStatus} serviceUpdateStatus A JSON object containing the resource data
|
|
169
169
|
*/
|
|
170
|
-
|
|
170
|
+
updateStatusService(serviceId, serviceUpdateStatus) {
|
|
171
171
|
return __awaiter(this, void 0, void 0, function* () {
|
|
172
172
|
if (serviceId === null || serviceId === undefined) {
|
|
173
|
-
throw new Exceptions_1.ArgumentNullException('serviceId', '
|
|
173
|
+
throw new Exceptions_1.ArgumentNullException('serviceId', 'updateStatusService');
|
|
174
174
|
}
|
|
175
|
-
if (
|
|
176
|
-
throw new Exceptions_1.ArgumentNullException('
|
|
175
|
+
if (serviceUpdateStatus === null || serviceUpdateStatus === undefined) {
|
|
176
|
+
throw new Exceptions_1.ArgumentNullException('serviceUpdateStatus', 'updateStatusService');
|
|
177
177
|
}
|
|
178
178
|
let queryString = '';
|
|
179
179
|
const requestUrl = '/services/{service_id}/update-status' + (queryString ? `?${queryString}` : '');
|
|
180
|
-
const response = yield this.post(requestUrl.replace(`{${"service_id"}}`, encodeURIComponent(String(serviceId))),
|
|
180
|
+
const response = yield this.post(requestUrl.replace(`{${"service_id"}}`, encodeURIComponent(String(serviceId))), serviceUpdateStatus);
|
|
181
181
|
return new ApiResponse_1.ApiResponse(response);
|
|
182
182
|
});
|
|
183
183
|
}
|
|
@@ -0,0 +1,138 @@
|
|
|
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 ApplicationEnvironmentCreate
|
|
16
|
+
*/
|
|
17
|
+
export interface ApplicationEnvironmentCreate {
|
|
18
|
+
/**
|
|
19
|
+
* The application\'s unique name. Must not be greater than 60 characters.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ApplicationEnvironmentCreate
|
|
22
|
+
*/
|
|
23
|
+
name: string;
|
|
24
|
+
/**
|
|
25
|
+
* Must be one of <code>web</code> or <code>non-web</code>.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ApplicationEnvironmentCreate
|
|
28
|
+
*/
|
|
29
|
+
type: string;
|
|
30
|
+
/**
|
|
31
|
+
* The domain or sub-domain through which the application deployed with these settings will be accessible. It can be a naked domain or any subdomain. If app has domain names `testing.my-app.com`, `staging.my-app.com` and `www.my-app.com` a possible good candidate for the application name would be the \"naked\" domain `my-app.com`. Must not be greater than 60 characters.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ApplicationEnvironmentCreate
|
|
34
|
+
*/
|
|
35
|
+
domain_name?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The optional command that should be executed once during deployment to build the source code and get the application in a ready state. Must be at least 10 characters. Must not be greater than 300 characters.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ApplicationEnvironmentCreate
|
|
40
|
+
*/
|
|
41
|
+
build_command?: string;
|
|
42
|
+
/**
|
|
43
|
+
* The language runtime engine version to be used to execute this application on the deployed servers. This field is required unless <code>programming_language</code> is in <code>html</code>. Must be one of <code></code> Must be at least 1 characters. Must not be greater than 10 characters.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof ApplicationEnvironmentCreate
|
|
46
|
+
*/
|
|
47
|
+
engine_version?: string;
|
|
48
|
+
/**
|
|
49
|
+
* The base framework on top of which the application has been implemented - it might have impact on the steps to be performed during application deployment. Must not be greater than 30 characters.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof ApplicationEnvironmentCreate
|
|
52
|
+
*/
|
|
53
|
+
framework: string;
|
|
54
|
+
/**
|
|
55
|
+
* The programming language runtime environment to be used to serve the application. E.g.: if a front-end web app is developed using Node.js, but should be served statically (a SPA application, for instance) then this field value should be `html`. Must be one of <code>docker</code>, <code>dotnetcore</code>, <code>html</code>, <code>nodejs</code>, <code>php</code>, or <code>python</code> Must not be greater than 30 characters.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof ApplicationEnvironmentCreate
|
|
58
|
+
*/
|
|
59
|
+
programming_language: string;
|
|
60
|
+
/**
|
|
61
|
+
* Required for CGI|FastCGI|SCGI|WSGI based applications or `docker` containerized applications. It tells `devopness` the private address at which the application listens to external calls.The address has `http` or `https` protocol, an domain name or IP address, optional port and optional path. Or you can specify a UNIX-socket using `unix:` prefix after protocol.
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof ApplicationEnvironmentCreate
|
|
64
|
+
*/
|
|
65
|
+
listening_address?: string;
|
|
66
|
+
/**
|
|
67
|
+
* The full name of a repository (`repository_owner/repository_name`) containing the application source code. Required when the `source_provider_id` field is informed. Must not be greater than 60 characters.
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof ApplicationEnvironmentCreate
|
|
70
|
+
*/
|
|
71
|
+
repository: string;
|
|
72
|
+
/**
|
|
73
|
+
* Numeric ID of the source provider account where the repository is hosted. Required when the `repository` field is informed.
|
|
74
|
+
* @type {number}
|
|
75
|
+
* @memberof ApplicationEnvironmentCreate
|
|
76
|
+
*/
|
|
77
|
+
source_provider_id: number;
|
|
78
|
+
/**
|
|
79
|
+
* The relative directory where package manager\'s manifest files (`package.json`, `composer.json`, `yarn.lock`, etc) are located. It needs to be set for applications where the actual source code is not located in the top level directory of the repository. Must start with one of <code>/</code>.
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof ApplicationEnvironmentCreate
|
|
82
|
+
*/
|
|
83
|
+
root_directory?: string;
|
|
84
|
+
/**
|
|
85
|
+
* The relative web directory where publicly accessible assets are located and the web content should be served from. Must start with one of <code>/</code>.
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof ApplicationEnvironmentCreate
|
|
88
|
+
*/
|
|
89
|
+
public_directory: string;
|
|
90
|
+
/**
|
|
91
|
+
* The version control branch that, by default, will be used when a deployment is triggered and no other branch name is informed. Must not be greater than 100 characters.
|
|
92
|
+
* @type {string}
|
|
93
|
+
* @memberof ApplicationEnvironmentCreate
|
|
94
|
+
*/
|
|
95
|
+
default_branch: string;
|
|
96
|
+
/**
|
|
97
|
+
* The number of deployment history, logs and artifacts to keep stored in both devopness servers and user\'s servers. OR The number of deployment artifacts to be retained in the user\'s servers, making it easier and faster to rollback to previous versions. Must be at least 1. Must not be greater than 10.
|
|
98
|
+
* @type {number}
|
|
99
|
+
* @memberof ApplicationEnvironmentCreate
|
|
100
|
+
*/
|
|
101
|
+
deployments_keep?: number;
|
|
102
|
+
/**
|
|
103
|
+
* The entrypoint tells devopness how an application should be started and has basically two forms: 1) `File`: if it\'s a simple file name/path a web app will be served using the entrypoint value as its index file. Example: `index.html` 2) `Command`: if a command line instruction is provided as the entrypoint value, it will be handled as the start up command that initializes the application. It will be assumed that the user is an advanced user that knows what she/he is doing, therefore the command specified here will be run - as is - every time the application needs to be started. Must not be greater than 120 characters.
|
|
104
|
+
* @type {string}
|
|
105
|
+
* @memberof ApplicationEnvironmentCreate
|
|
106
|
+
*/
|
|
107
|
+
entrypoint: string;
|
|
108
|
+
/**
|
|
109
|
+
* Indicates if at deployment time Devopness should execute package manager commands to install dependencies used in development mode.
|
|
110
|
+
* @type {boolean}
|
|
111
|
+
* @memberof ApplicationEnvironmentCreate
|
|
112
|
+
*/
|
|
113
|
+
install_dependencies_dev: boolean;
|
|
114
|
+
/**
|
|
115
|
+
* Indicates if at deployment time Devopness should execute package manager commands to install dependencies used in production mode.
|
|
116
|
+
* @type {boolean}
|
|
117
|
+
* @memberof ApplicationEnvironmentCreate
|
|
118
|
+
*/
|
|
119
|
+
install_dependencies_prod: boolean;
|
|
120
|
+
/**
|
|
121
|
+
* Indicates if push to deploy webhooks are enabled for this application. If enabled an app deployment will be automatically triggered when new changes are committed to the `default_branch`.
|
|
122
|
+
* @type {boolean}
|
|
123
|
+
* @memberof ApplicationEnvironmentCreate
|
|
124
|
+
*/
|
|
125
|
+
push_to_deploy?: boolean;
|
|
126
|
+
/**
|
|
127
|
+
* Indicates if the application requires a daemon to keep it alive.
|
|
128
|
+
* @type {boolean}
|
|
129
|
+
* @memberof ApplicationEnvironmentCreate
|
|
130
|
+
*/
|
|
131
|
+
requires_daemon: boolean;
|
|
132
|
+
/**
|
|
133
|
+
* List of valid resource IDs
|
|
134
|
+
* @type {Array<number>}
|
|
135
|
+
* @memberof ApplicationEnvironmentCreate
|
|
136
|
+
*/
|
|
137
|
+
servers?: Array<number>;
|
|
138
|
+
}
|
package/dist/api/generated/models/{service-status-update.js → application-environment-create.js}
RENAMED
|
File without changes
|
|
@@ -22,6 +22,7 @@ export * from './api-error-errors-field-name';
|
|
|
22
22
|
export * from './application';
|
|
23
23
|
export * from './application-create';
|
|
24
24
|
export * from './application-deployment';
|
|
25
|
+
export * from './application-environment-create';
|
|
25
26
|
export * from './application-last-deployment';
|
|
26
27
|
export * from './application-last-deployments';
|
|
27
28
|
export * from './application-options';
|
|
@@ -156,7 +157,6 @@ export * from './server-provision-settings';
|
|
|
156
157
|
export * from './server-relation';
|
|
157
158
|
export * from './server-update';
|
|
158
159
|
export * from './service';
|
|
159
|
-
export * from './service-action';
|
|
160
160
|
export * from './service-create';
|
|
161
161
|
export * from './service-initial-state';
|
|
162
162
|
export * from './service-name';
|
|
@@ -165,11 +165,11 @@ export * from './service-relation';
|
|
|
165
165
|
export * from './service-reload';
|
|
166
166
|
export * from './service-restart';
|
|
167
167
|
export * from './service-start';
|
|
168
|
-
export * from './service-status-update';
|
|
169
168
|
export * from './service-stop';
|
|
170
169
|
export * from './service-type';
|
|
171
170
|
export * from './service-type-supported-versions';
|
|
172
171
|
export * from './service-update';
|
|
172
|
+
export * from './service-update-status';
|
|
173
173
|
export * from './social-account';
|
|
174
174
|
export * from './social-account-create';
|
|
175
175
|
export * from './social-account-displayable-name';
|
|
@@ -181,6 +181,7 @@ export * from './source-provider-displayable-name';
|
|
|
181
181
|
export * from './source-provider-name';
|
|
182
182
|
export * from './ssh-key';
|
|
183
183
|
export * from './ssh-key-create';
|
|
184
|
+
export * from './ssh-key-project-create';
|
|
184
185
|
export * from './ssh-key-relation';
|
|
185
186
|
export * from './ssh-key-update';
|
|
186
187
|
export * from './ssl-certificate';
|
|
@@ -38,6 +38,7 @@ __exportStar(require("./api-error-errors-field-name"), exports);
|
|
|
38
38
|
__exportStar(require("./application"), exports);
|
|
39
39
|
__exportStar(require("./application-create"), exports);
|
|
40
40
|
__exportStar(require("./application-deployment"), exports);
|
|
41
|
+
__exportStar(require("./application-environment-create"), exports);
|
|
41
42
|
__exportStar(require("./application-last-deployment"), exports);
|
|
42
43
|
__exportStar(require("./application-last-deployments"), exports);
|
|
43
44
|
__exportStar(require("./application-options"), exports);
|
|
@@ -172,7 +173,6 @@ __exportStar(require("./server-provision-settings"), exports);
|
|
|
172
173
|
__exportStar(require("./server-relation"), exports);
|
|
173
174
|
__exportStar(require("./server-update"), exports);
|
|
174
175
|
__exportStar(require("./service"), exports);
|
|
175
|
-
__exportStar(require("./service-action"), exports);
|
|
176
176
|
__exportStar(require("./service-create"), exports);
|
|
177
177
|
__exportStar(require("./service-initial-state"), exports);
|
|
178
178
|
__exportStar(require("./service-name"), exports);
|
|
@@ -181,11 +181,11 @@ __exportStar(require("./service-relation"), exports);
|
|
|
181
181
|
__exportStar(require("./service-reload"), exports);
|
|
182
182
|
__exportStar(require("./service-restart"), exports);
|
|
183
183
|
__exportStar(require("./service-start"), exports);
|
|
184
|
-
__exportStar(require("./service-status-update"), exports);
|
|
185
184
|
__exportStar(require("./service-stop"), exports);
|
|
186
185
|
__exportStar(require("./service-type"), exports);
|
|
187
186
|
__exportStar(require("./service-type-supported-versions"), exports);
|
|
188
187
|
__exportStar(require("./service-update"), exports);
|
|
188
|
+
__exportStar(require("./service-update-status"), exports);
|
|
189
189
|
__exportStar(require("./social-account"), exports);
|
|
190
190
|
__exportStar(require("./social-account-create"), exports);
|
|
191
191
|
__exportStar(require("./social-account-displayable-name"), exports);
|
|
@@ -197,6 +197,7 @@ __exportStar(require("./source-provider-displayable-name"), exports);
|
|
|
197
197
|
__exportStar(require("./source-provider-name"), exports);
|
|
198
198
|
__exportStar(require("./ssh-key"), exports);
|
|
199
199
|
__exportStar(require("./ssh-key-create"), exports);
|
|
200
|
+
__exportStar(require("./ssh-key-project-create"), exports);
|
|
200
201
|
__exportStar(require("./ssh-key-relation"), exports);
|
|
201
202
|
__exportStar(require("./ssh-key-update"), exports);
|
|
202
203
|
__exportStar(require("./ssl-certificate"), exports);
|
|
@@ -23,6 +23,12 @@ export interface ServerRelation {
|
|
|
23
23
|
* @memberof ServerRelation
|
|
24
24
|
*/
|
|
25
25
|
id: number;
|
|
26
|
+
/**
|
|
27
|
+
* The id of the user who created the server and to whom the server belongs
|
|
28
|
+
* @type {number}
|
|
29
|
+
* @memberof ServerRelation
|
|
30
|
+
*/
|
|
31
|
+
created_by: number;
|
|
26
32
|
/**
|
|
27
33
|
* The server\'s name
|
|
28
34
|
* @type {string}
|
|
@@ -35,6 +41,18 @@ export interface ServerRelation {
|
|
|
35
41
|
* @memberof ServerRelation
|
|
36
42
|
*/
|
|
37
43
|
hostname: string;
|
|
44
|
+
/**
|
|
45
|
+
* strubg The name of the server\'s provider.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof ServerRelation
|
|
48
|
+
*/
|
|
49
|
+
provider_name: string;
|
|
50
|
+
/**
|
|
51
|
+
* The human readable version of the provider\'s name
|
|
52
|
+
* @type {string}
|
|
53
|
+
* @memberof ServerRelation
|
|
54
|
+
*/
|
|
55
|
+
provider_name_human_readable: string;
|
|
38
56
|
/**
|
|
39
57
|
* Public ipv4 address for server access
|
|
40
58
|
* @type {string}
|
|
@@ -47,12 +65,6 @@ export interface ServerRelation {
|
|
|
47
65
|
* @memberof ServerRelation
|
|
48
66
|
*/
|
|
49
67
|
ssh_port: number;
|
|
50
|
-
/**
|
|
51
|
-
* The id of the user who created the server and to whom the server belongs
|
|
52
|
-
* @type {number}
|
|
53
|
-
* @memberof ServerRelation
|
|
54
|
-
*/
|
|
55
|
-
created_by: number;
|
|
56
68
|
/**
|
|
57
69
|
* Tells if the server is active or not
|
|
58
70
|
* @type {boolean}
|
|
@@ -64,35 +76,23 @@ export interface ServerRelation {
|
|
|
64
76
|
* @type {ActionStatus}
|
|
65
77
|
* @memberof ServerRelation
|
|
66
78
|
*/
|
|
67
|
-
status
|
|
68
|
-
/**
|
|
69
|
-
* The name of the server\'s provider.
|
|
70
|
-
* @type {string}
|
|
71
|
-
* @memberof ServerRelation
|
|
72
|
-
*/
|
|
73
|
-
provider_name?: string;
|
|
74
|
-
/**
|
|
75
|
-
* The human readable version of the provider\'s name
|
|
76
|
-
* @type {string}
|
|
77
|
-
* @memberof ServerRelation
|
|
78
|
-
*/
|
|
79
|
-
provider_name_human_readable?: string;
|
|
79
|
+
status: ActionStatus;
|
|
80
80
|
/**
|
|
81
81
|
*
|
|
82
82
|
* @type {ActionRelation}
|
|
83
83
|
* @memberof ServerRelation
|
|
84
84
|
*/
|
|
85
|
-
last_action
|
|
85
|
+
last_action: ActionRelation | null;
|
|
86
86
|
/**
|
|
87
87
|
* The date and time when the record was created
|
|
88
88
|
* @type {string}
|
|
89
89
|
* @memberof ServerRelation
|
|
90
90
|
*/
|
|
91
|
-
created_at
|
|
91
|
+
created_at: string;
|
|
92
92
|
/**
|
|
93
93
|
* The date and time when the record was last updated
|
|
94
94
|
* @type {string}
|
|
95
95
|
* @memberof ServerRelation
|
|
96
96
|
*/
|
|
97
|
-
updated_at
|
|
97
|
+
updated_at: string;
|
|
98
98
|
}
|
|
@@ -27,6 +27,12 @@ export interface Server {
|
|
|
27
27
|
* @memberof Server
|
|
28
28
|
*/
|
|
29
29
|
id: number;
|
|
30
|
+
/**
|
|
31
|
+
* The id of the user who created the server and to whom the server belongs
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof Server
|
|
34
|
+
*/
|
|
35
|
+
created_by: number;
|
|
30
36
|
/**
|
|
31
37
|
* The server\'s name
|
|
32
38
|
* @type {string}
|
|
@@ -39,6 +45,18 @@ export interface Server {
|
|
|
39
45
|
* @memberof Server
|
|
40
46
|
*/
|
|
41
47
|
hostname: string;
|
|
48
|
+
/**
|
|
49
|
+
* The name of the server\'s provider.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof Server
|
|
52
|
+
*/
|
|
53
|
+
provider_name: string;
|
|
54
|
+
/**
|
|
55
|
+
* The human readable version of the provider\'s name
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof Server
|
|
58
|
+
*/
|
|
59
|
+
provider_name_human_readable: string;
|
|
42
60
|
/**
|
|
43
61
|
* Public ipv4 address for server access
|
|
44
62
|
* @type {string}
|
|
@@ -51,12 +69,6 @@ export interface Server {
|
|
|
51
69
|
* @memberof Server
|
|
52
70
|
*/
|
|
53
71
|
ssh_port: number;
|
|
54
|
-
/**
|
|
55
|
-
* The id of the user who created the server and to whom the server belongs
|
|
56
|
-
* @type {number}
|
|
57
|
-
* @memberof Server
|
|
58
|
-
*/
|
|
59
|
-
created_by: number;
|
|
60
72
|
/**
|
|
61
73
|
* Tells if the server is active or not
|
|
62
74
|
* @type {boolean}
|
|
@@ -65,22 +77,22 @@ export interface Server {
|
|
|
65
77
|
active: boolean;
|
|
66
78
|
/**
|
|
67
79
|
*
|
|
68
|
-
* @type {
|
|
80
|
+
* @type {ActionStatus}
|
|
69
81
|
* @memberof Server
|
|
70
82
|
*/
|
|
71
|
-
|
|
83
|
+
status: ActionStatus;
|
|
72
84
|
/**
|
|
73
85
|
*
|
|
74
|
-
* @type {
|
|
86
|
+
* @type {ServerBlueprint}
|
|
75
87
|
* @memberof Server
|
|
76
88
|
*/
|
|
77
|
-
|
|
89
|
+
blueprint: ServerBlueprint;
|
|
78
90
|
/**
|
|
79
|
-
*
|
|
80
|
-
* @type {
|
|
91
|
+
*
|
|
92
|
+
* @type {UserRelation}
|
|
81
93
|
* @memberof Server
|
|
82
94
|
*/
|
|
83
|
-
|
|
95
|
+
created_by_user: UserRelation;
|
|
84
96
|
/**
|
|
85
97
|
*
|
|
86
98
|
* @type {ProjectRelation}
|
|
@@ -88,39 +100,33 @@ export interface Server {
|
|
|
88
100
|
*/
|
|
89
101
|
project: ProjectRelation;
|
|
90
102
|
/**
|
|
91
|
-
*
|
|
92
|
-
* @type {
|
|
93
|
-
* @memberof Server
|
|
94
|
-
*/
|
|
95
|
-
provider_name?: string;
|
|
96
|
-
/**
|
|
97
|
-
* The human readable version of the provider\'s name
|
|
98
|
-
* @type {string}
|
|
103
|
+
*
|
|
104
|
+
* @type {ActionRelation}
|
|
99
105
|
* @memberof Server
|
|
100
106
|
*/
|
|
101
|
-
|
|
107
|
+
last_action: ActionRelation | null;
|
|
102
108
|
/**
|
|
103
109
|
*
|
|
104
|
-
* @type {
|
|
110
|
+
* @type {EnvironmentRelation}
|
|
105
111
|
* @memberof Server
|
|
106
112
|
*/
|
|
107
|
-
|
|
113
|
+
environment: EnvironmentRelation;
|
|
108
114
|
/**
|
|
109
115
|
*
|
|
110
|
-
* @type {
|
|
116
|
+
* @type {Array<EnvironmentRelation>}
|
|
111
117
|
* @memberof Server
|
|
112
118
|
*/
|
|
113
|
-
|
|
119
|
+
environments: Array<EnvironmentRelation>;
|
|
114
120
|
/**
|
|
115
121
|
* The date and time when the record was created
|
|
116
122
|
* @type {string}
|
|
117
123
|
* @memberof Server
|
|
118
124
|
*/
|
|
119
|
-
created_at
|
|
125
|
+
created_at: string;
|
|
120
126
|
/**
|
|
121
127
|
* The date and time when the record was last updated
|
|
122
128
|
* @type {string}
|
|
123
129
|
* @memberof Server
|
|
124
130
|
*/
|
|
125
|
-
updated_at
|
|
131
|
+
updated_at: string;
|
|
126
132
|
}
|
|
@@ -19,13 +19,7 @@ import { ServiceName } from './service-name';
|
|
|
19
19
|
*/
|
|
20
20
|
export interface ServiceCreate {
|
|
21
21
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @type {ServiceName}
|
|
24
|
-
* @memberof ServiceCreate
|
|
25
|
-
*/
|
|
26
|
-
type: ServiceName;
|
|
27
|
-
/**
|
|
28
|
-
* Tells if the service should start automatically on operating system boot
|
|
22
|
+
* Tells if the service should start automatically on operating system boot.
|
|
29
23
|
* @type {boolean}
|
|
30
24
|
* @memberof ServiceCreate
|
|
31
25
|
*/
|
|
@@ -38,14 +32,20 @@ export interface ServiceCreate {
|
|
|
38
32
|
initial_state?: ServiceInitialState;
|
|
39
33
|
/**
|
|
40
34
|
*
|
|
41
|
-
* @type {
|
|
35
|
+
* @type {ServiceName}
|
|
42
36
|
* @memberof ServiceCreate
|
|
43
37
|
*/
|
|
44
|
-
|
|
38
|
+
type: ServiceName;
|
|
45
39
|
/**
|
|
46
|
-
* The service version to be installed
|
|
40
|
+
* The service version to be installed. Must be one of <code></code> Must be at least 3 characters. Must not be greater than 30 characters.
|
|
47
41
|
* @type {string}
|
|
48
42
|
* @memberof ServiceCreate
|
|
49
43
|
*/
|
|
50
|
-
version
|
|
44
|
+
version: string;
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @type {Array<EnvironmentLinkItem>}
|
|
48
|
+
* @memberof ServiceCreate
|
|
49
|
+
*/
|
|
50
|
+
environments?: Array<EnvironmentLinkItem>;
|
|
51
51
|
}
|
|
@@ -18,29 +18,35 @@ import { ServiceInitialState } from './service-initial-state';
|
|
|
18
18
|
*/
|
|
19
19
|
export interface ServiceRelation {
|
|
20
20
|
/**
|
|
21
|
-
* The unique
|
|
21
|
+
* The unique ID of the given service
|
|
22
22
|
* @type {number}
|
|
23
23
|
* @memberof ServiceRelation
|
|
24
24
|
*/
|
|
25
25
|
id: number;
|
|
26
26
|
/**
|
|
27
|
-
* The service name
|
|
27
|
+
* The human readable service name
|
|
28
28
|
* @type {string}
|
|
29
29
|
* @memberof ServiceRelation
|
|
30
30
|
*/
|
|
31
31
|
name: string;
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* The service type
|
|
34
34
|
* @type {string}
|
|
35
35
|
* @memberof ServiceRelation
|
|
36
36
|
*/
|
|
37
|
-
|
|
37
|
+
type: string;
|
|
38
|
+
/**
|
|
39
|
+
* Formatted/human readable version of the service type
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof ServiceRelation
|
|
42
|
+
*/
|
|
43
|
+
type_human_readable: string;
|
|
38
44
|
/**
|
|
39
45
|
* The service current installed version
|
|
40
46
|
* @type {string}
|
|
41
47
|
* @memberof ServiceRelation
|
|
42
48
|
*/
|
|
43
|
-
version
|
|
49
|
+
version: string | null;
|
|
44
50
|
/**
|
|
45
51
|
* Indicates if the service was auto_generated by `devopness` itself
|
|
46
52
|
* @type {boolean}
|
|
@@ -48,7 +54,7 @@ export interface ServiceRelation {
|
|
|
48
54
|
*/
|
|
49
55
|
auto_generated: boolean;
|
|
50
56
|
/**
|
|
51
|
-
* Indicates if the service
|
|
57
|
+
* Indicates if the service will start automatically on operating system boot
|
|
52
58
|
* @type {boolean}
|
|
53
59
|
* @memberof ServiceRelation
|
|
54
60
|
*/
|
|
@@ -64,13 +70,13 @@ export interface ServiceRelation {
|
|
|
64
70
|
* @type {string}
|
|
65
71
|
* @memberof ServiceRelation
|
|
66
72
|
*/
|
|
67
|
-
description
|
|
73
|
+
description: string | null;
|
|
68
74
|
/**
|
|
69
75
|
*
|
|
70
76
|
* @type {ActionRelation}
|
|
71
77
|
* @memberof ServiceRelation
|
|
72
78
|
*/
|
|
73
|
-
last_action
|
|
79
|
+
last_action: ActionRelation | null;
|
|
74
80
|
/**
|
|
75
81
|
* The date and time when the record was created
|
|
76
82
|
* @type {string}
|