@devopness/sdk-js 2.132.0 → 2.134.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/virtual-hosts-api.d.ts +8 -0
- package/dist/api/generated/apis/virtual-hosts-api.js +20 -0
- package/dist/api/generated/models/application-environment-create.d.ts +0 -18
- package/dist/api/generated/models/application-relation.d.ts +0 -18
- package/dist/api/generated/models/application-update.d.ts +0 -18
- package/dist/api/generated/models/application.d.ts +7 -18
- package/dist/api/generated/models/index.d.ts +1 -0
- package/dist/api/generated/models/index.js +1 -0
- package/dist/api/generated/models/virtual-host-get-status.d.ts +24 -0
- package/dist/api/generated/models/virtual-host-get-status.js +14 -0
- package/dist/api/generated/models/virtual-host-relation.d.ts +7 -0
- package/dist/api/generated/models/virtual-host.d.ts +7 -0
- package/package.json +1 -1
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
14
|
import { VirtualHost } from '../../generated/models';
|
|
15
|
+
import { VirtualHostGetStatus } from '../../generated/models';
|
|
15
16
|
import { VirtualHostUpdate } from '../../generated/models';
|
|
16
17
|
/**
|
|
17
18
|
* VirtualHostsApiService - Auto-generated
|
|
@@ -23,6 +24,13 @@ export declare class VirtualHostsApiService extends ApiBaseService {
|
|
|
23
24
|
* @param {number} virtualHostId The ID of the virtual host.
|
|
24
25
|
*/
|
|
25
26
|
deleteVirtualHost(virtualHostId: number): Promise<ApiResponse<void>>;
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @summary Get current status of a virtual host
|
|
30
|
+
* @param {number} virtualHostId The ID of the virtual host.
|
|
31
|
+
* @param {VirtualHostGetStatus} virtualHostGetStatus A JSON object containing the resource data
|
|
32
|
+
*/
|
|
33
|
+
getStatusVirtualHost(virtualHostId: number, virtualHostGetStatus: VirtualHostGetStatus): Promise<ApiResponse<void>>;
|
|
26
34
|
/**
|
|
27
35
|
*
|
|
28
36
|
* @summary Get a virtual host by ID
|
|
@@ -45,6 +45,26 @@ class VirtualHostsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
45
45
|
return new ApiResponse_1.ApiResponse(response);
|
|
46
46
|
});
|
|
47
47
|
}
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @summary Get current status of a virtual host
|
|
51
|
+
* @param {number} virtualHostId The ID of the virtual host.
|
|
52
|
+
* @param {VirtualHostGetStatus} virtualHostGetStatus A JSON object containing the resource data
|
|
53
|
+
*/
|
|
54
|
+
getStatusVirtualHost(virtualHostId, virtualHostGetStatus) {
|
|
55
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
56
|
+
if (virtualHostId === null || virtualHostId === undefined) {
|
|
57
|
+
throw new Exceptions_1.ArgumentNullException('virtualHostId', 'getStatusVirtualHost');
|
|
58
|
+
}
|
|
59
|
+
if (virtualHostGetStatus === null || virtualHostGetStatus === undefined) {
|
|
60
|
+
throw new Exceptions_1.ArgumentNullException('virtualHostGetStatus', 'getStatusVirtualHost');
|
|
61
|
+
}
|
|
62
|
+
let queryString = '';
|
|
63
|
+
const requestUrl = '/virtual-hosts/{virtual_host_id}/get-status' + (queryString ? `?${queryString}` : '');
|
|
64
|
+
const response = yield this.post(requestUrl.replace(`{${"virtual_host_id"}}`, encodeURIComponent(String(virtualHostId))), virtualHostGetStatus);
|
|
65
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
66
|
+
});
|
|
67
|
+
}
|
|
48
68
|
/**
|
|
49
69
|
*
|
|
50
70
|
* @summary Get a virtual host by ID
|
|
@@ -75,28 +75,10 @@ export interface ApplicationEnvironmentCreate {
|
|
|
75
75
|
* @memberof ApplicationEnvironmentCreate
|
|
76
76
|
*/
|
|
77
77
|
deployments_keep?: number;
|
|
78
|
-
/**
|
|
79
|
-
* 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.
|
|
80
|
-
* @type {string}
|
|
81
|
-
* @memberof ApplicationEnvironmentCreate
|
|
82
|
-
*/
|
|
83
|
-
entrypoint: string;
|
|
84
78
|
/**
|
|
85
79
|
* Indicates command that Devopness must execute to install application dependencies.
|
|
86
80
|
* @type {string}
|
|
87
81
|
* @memberof ApplicationEnvironmentCreate
|
|
88
82
|
*/
|
|
89
83
|
install_dependencies_command?: string;
|
|
90
|
-
/**
|
|
91
|
-
* 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`.
|
|
92
|
-
* @type {boolean}
|
|
93
|
-
* @memberof ApplicationEnvironmentCreate
|
|
94
|
-
*/
|
|
95
|
-
push_to_deploy?: boolean;
|
|
96
|
-
/**
|
|
97
|
-
* Indicates if the application requires a daemon to keep it alive.
|
|
98
|
-
* @type {boolean}
|
|
99
|
-
* @memberof ApplicationEnvironmentCreate
|
|
100
|
-
*/
|
|
101
|
-
requires_daemon: boolean;
|
|
102
84
|
}
|
|
@@ -71,12 +71,6 @@ export interface ApplicationRelation {
|
|
|
71
71
|
* @memberof ApplicationRelation
|
|
72
72
|
*/
|
|
73
73
|
default_branch: string;
|
|
74
|
-
/**
|
|
75
|
-
* 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`
|
|
76
|
-
* @type {boolean}
|
|
77
|
-
* @memberof ApplicationRelation
|
|
78
|
-
*/
|
|
79
|
-
push_to_deploy: boolean;
|
|
80
74
|
/**
|
|
81
75
|
* 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`.
|
|
82
76
|
* @type {string}
|
|
@@ -101,12 +95,6 @@ export interface ApplicationRelation {
|
|
|
101
95
|
* @memberof ApplicationRelation
|
|
102
96
|
*/
|
|
103
97
|
root_directory: string;
|
|
104
|
-
/**
|
|
105
|
-
* The application\'s entrypoint
|
|
106
|
-
* @type {string}
|
|
107
|
-
* @memberof ApplicationRelation
|
|
108
|
-
*/
|
|
109
|
-
entrypoint: string;
|
|
110
98
|
/**
|
|
111
99
|
* 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
|
|
112
100
|
* @type {number}
|
|
@@ -125,12 +113,6 @@ export interface ApplicationRelation {
|
|
|
125
113
|
* @memberof ApplicationRelation
|
|
126
114
|
*/
|
|
127
115
|
build_command: string | null;
|
|
128
|
-
/**
|
|
129
|
-
* Indicates if the application requires a daemon to keep it alive
|
|
130
|
-
* @type {boolean}
|
|
131
|
-
* @memberof ApplicationRelation
|
|
132
|
-
*/
|
|
133
|
-
requires_daemon: boolean;
|
|
134
116
|
/**
|
|
135
117
|
*
|
|
136
118
|
* @type {ApplicationLastDeployments}
|
|
@@ -81,28 +81,10 @@ export interface ApplicationUpdate {
|
|
|
81
81
|
* @memberof ApplicationUpdate
|
|
82
82
|
*/
|
|
83
83
|
deployments_keep?: number;
|
|
84
|
-
/**
|
|
85
|
-
* 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.
|
|
86
|
-
* @type {string}
|
|
87
|
-
* @memberof ApplicationUpdate
|
|
88
|
-
*/
|
|
89
|
-
entrypoint: string;
|
|
90
84
|
/**
|
|
91
85
|
* Indicates command that Devopness must execute to install application dependencies.
|
|
92
86
|
* @type {string}
|
|
93
87
|
* @memberof ApplicationUpdate
|
|
94
88
|
*/
|
|
95
89
|
install_dependencies_command?: string;
|
|
96
|
-
/**
|
|
97
|
-
* 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`.
|
|
98
|
-
* @type {boolean}
|
|
99
|
-
* @memberof ApplicationUpdate
|
|
100
|
-
*/
|
|
101
|
-
push_to_deploy?: boolean;
|
|
102
|
-
/**
|
|
103
|
-
* Indicates if the application requires a daemon to keep it alive.
|
|
104
|
-
* @type {boolean}
|
|
105
|
-
* @memberof ApplicationUpdate
|
|
106
|
-
*/
|
|
107
|
-
requires_daemon: boolean;
|
|
108
90
|
}
|
|
@@ -14,6 +14,7 @@ import { EnvironmentRelation } from './environment-relation';
|
|
|
14
14
|
import { ServerRelation } from './server-relation';
|
|
15
15
|
import { SourceProvider } from './source-provider';
|
|
16
16
|
import { UserRelation } from './user-relation';
|
|
17
|
+
import { VirtualHostRelation } from './virtual-host-relation';
|
|
17
18
|
/**
|
|
18
19
|
*
|
|
19
20
|
* @export
|
|
@@ -74,12 +75,6 @@ export interface Application {
|
|
|
74
75
|
* @memberof Application
|
|
75
76
|
*/
|
|
76
77
|
default_branch: string;
|
|
77
|
-
/**
|
|
78
|
-
* 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`
|
|
79
|
-
* @type {boolean}
|
|
80
|
-
* @memberof Application
|
|
81
|
-
*/
|
|
82
|
-
push_to_deploy: boolean;
|
|
83
78
|
/**
|
|
84
79
|
* 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`.
|
|
85
80
|
* @type {string}
|
|
@@ -104,12 +99,6 @@ export interface Application {
|
|
|
104
99
|
* @memberof Application
|
|
105
100
|
*/
|
|
106
101
|
root_directory: string;
|
|
107
|
-
/**
|
|
108
|
-
* The application\'s entrypoint
|
|
109
|
-
* @type {string}
|
|
110
|
-
* @memberof Application
|
|
111
|
-
*/
|
|
112
|
-
entrypoint: string;
|
|
113
102
|
/**
|
|
114
103
|
* 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
|
|
115
104
|
* @type {number}
|
|
@@ -128,12 +117,6 @@ export interface Application {
|
|
|
128
117
|
* @memberof Application
|
|
129
118
|
*/
|
|
130
119
|
build_command: string | null;
|
|
131
|
-
/**
|
|
132
|
-
* Indicates if the application requires a daemon to keep it alive
|
|
133
|
-
* @type {boolean}
|
|
134
|
-
* @memberof Application
|
|
135
|
-
*/
|
|
136
|
-
requires_daemon: boolean;
|
|
137
120
|
/**
|
|
138
121
|
*
|
|
139
122
|
* @type {UserRelation}
|
|
@@ -164,6 +147,12 @@ export interface Application {
|
|
|
164
147
|
* @memberof Application
|
|
165
148
|
*/
|
|
166
149
|
source_provider: SourceProvider;
|
|
150
|
+
/**
|
|
151
|
+
*
|
|
152
|
+
* @type {Array<VirtualHostRelation>}
|
|
153
|
+
* @memberof Application
|
|
154
|
+
*/
|
|
155
|
+
virtual_hosts: Array<VirtualHostRelation>;
|
|
167
156
|
/**
|
|
168
157
|
* The date and time when the record was created
|
|
169
158
|
* @type {string}
|
|
@@ -279,6 +279,7 @@ export * from './variable-type';
|
|
|
279
279
|
export * from './variable-update';
|
|
280
280
|
export * from './virtual-host';
|
|
281
281
|
export * from './virtual-host-environment-create';
|
|
282
|
+
export * from './virtual-host-get-status';
|
|
282
283
|
export * from './virtual-host-options';
|
|
283
284
|
export * from './virtual-host-relation';
|
|
284
285
|
export * from './virtual-host-type';
|
|
@@ -295,6 +295,7 @@ __exportStar(require("./variable-type"), exports);
|
|
|
295
295
|
__exportStar(require("./variable-update"), exports);
|
|
296
296
|
__exportStar(require("./virtual-host"), exports);
|
|
297
297
|
__exportStar(require("./virtual-host-environment-create"), exports);
|
|
298
|
+
__exportStar(require("./virtual-host-get-status"), exports);
|
|
298
299
|
__exportStar(require("./virtual-host-options"), exports);
|
|
299
300
|
__exportStar(require("./virtual-host-relation"), exports);
|
|
300
301
|
__exportStar(require("./virtual-host-type"), exports);
|
|
@@ -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 VirtualHostGetStatus
|
|
16
|
+
*/
|
|
17
|
+
export interface VirtualHostGetStatus {
|
|
18
|
+
/**
|
|
19
|
+
* List of valid resource IDs
|
|
20
|
+
* @type {Array<number>}
|
|
21
|
+
* @memberof VirtualHostGetStatus
|
|
22
|
+
*/
|
|
23
|
+
servers?: Array<number>;
|
|
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 });
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { ActionRelation } from './action-relation';
|
|
13
13
|
import { ApplicationRelation } from './application-relation';
|
|
14
|
+
import { SslCertificateRelation } from './ssl-certificate-relation';
|
|
14
15
|
import { UserRelation } from './user-relation';
|
|
15
16
|
import { VirtualHostType } from './virtual-host-type';
|
|
16
17
|
/**
|
|
@@ -55,6 +56,12 @@ export interface VirtualHostRelation {
|
|
|
55
56
|
* @memberof VirtualHostRelation
|
|
56
57
|
*/
|
|
57
58
|
application_listen_address: string | null;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {SslCertificateRelation}
|
|
62
|
+
* @memberof VirtualHostRelation
|
|
63
|
+
*/
|
|
64
|
+
ssl_certificate: SslCertificateRelation | null;
|
|
58
65
|
/**
|
|
59
66
|
*
|
|
60
67
|
* @type {ActionRelation}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { ActionRelation } from './action-relation';
|
|
13
13
|
import { ApplicationRelation } from './application-relation';
|
|
14
|
+
import { SslCertificateRelation } from './ssl-certificate-relation';
|
|
14
15
|
import { UserRelation } from './user-relation';
|
|
15
16
|
import { VirtualHostType } from './virtual-host-type';
|
|
16
17
|
/**
|
|
@@ -55,6 +56,12 @@ export interface VirtualHost {
|
|
|
55
56
|
* @memberof VirtualHost
|
|
56
57
|
*/
|
|
57
58
|
application_listen_address: string | null;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {SslCertificateRelation}
|
|
62
|
+
* @memberof VirtualHost
|
|
63
|
+
*/
|
|
64
|
+
ssl_certificate: SslCertificateRelation | null;
|
|
58
65
|
/**
|
|
59
66
|
*
|
|
60
67
|
* @type {ActionRelation}
|