@devopness/sdk-js 2.130.0 → 2.132.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/{applications-sslcertificates-api.d.ts → environments-sslcertificates-api.d.ts} +10 -10
- package/dist/api/generated/apis/{applications-sslcertificates-api.js → environments-sslcertificates-api.js} +21 -21
- package/dist/api/generated/apis/virtual-hosts-api.d.ts +9 -1
- package/dist/api/generated/apis/virtual-hosts-api.js +21 -1
- package/dist/api/generated/models/application-environment-create.d.ts +0 -25
- package/dist/api/generated/models/application-options.d.ts +0 -7
- package/dist/api/generated/models/application-relation.d.ts +0 -25
- package/dist/api/generated/models/application-update.d.ts +0 -25
- package/dist/api/generated/models/application.d.ts +0 -32
- package/dist/api/generated/models/environment.d.ts +14 -0
- package/dist/api/generated/models/index.d.ts +3 -5
- package/dist/api/generated/models/index.js +3 -5
- package/dist/api/generated/models/linked-resource-attribute.d.ts +2 -2
- package/dist/api/generated/models/{ssl-certificate-application-create.d.ts → ssl-certificate-environment-create.d.ts} +13 -13
- package/dist/api/generated/models/ssl-certificate-relation.d.ts +0 -6
- package/dist/api/generated/models/ssl-certificate.d.ts +0 -20
- package/dist/api/generated/models/virtual-host-environment-create.d.ts +10 -4
- package/dist/api/generated/models/virtual-host-relation.d.ts +25 -4
- package/dist/api/generated/models/{ssl-certificate-application-create.js → virtual-host-type.d.ts} +9 -3
- package/dist/api/generated/models/{application-type.js → virtual-host-type.js} +7 -7
- package/dist/api/generated/models/virtual-host-update.d.ts +48 -0
- package/dist/api/generated/models/virtual-host.d.ts +25 -4
- package/dist/services/ApplicationService.d.ts +1 -2
- package/dist/services/ApplicationService.js +0 -2
- package/dist/services/EnvironmentService.d.ts +2 -0
- package/dist/services/EnvironmentService.js +2 -0
- package/package.json +1 -1
- package/dist/api/generated/models/application-type.d.ts +0 -20
- package/dist/api/generated/models/application-types-private-application.d.ts +0 -25
- package/dist/api/generated/models/application-types-public-application.d.ts +0 -25
- package/dist/api/generated/models/application-types.d.ts +0 -32
- package/dist/api/generated/models/application-types.js +0 -14
- /package/dist/api/generated/models/{application-types-private-application.js → ssl-certificate-environment-create.js} +0 -0
- /package/dist/api/generated/models/{application-types-public-application.js → virtual-host-update.js} +0 -0
|
@@ -12,25 +12,25 @@
|
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
14
|
import { SslCertificate } from '../../generated/models';
|
|
15
|
-
import {
|
|
15
|
+
import { SslCertificateEnvironmentCreate } from '../../generated/models';
|
|
16
16
|
import { SslCertificateRelation } from '../../generated/models';
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* EnvironmentsSSLCertificatesApiService - Auto-generated
|
|
19
19
|
*/
|
|
20
|
-
export declare class
|
|
20
|
+
export declare class EnvironmentsSSLCertificatesApiService extends ApiBaseService {
|
|
21
21
|
/**
|
|
22
22
|
*
|
|
23
|
-
* @summary
|
|
24
|
-
* @param {number}
|
|
25
|
-
* @param {
|
|
23
|
+
* @summary Create a new ssl certificate
|
|
24
|
+
* @param {number} environmentId The ID of the environment.
|
|
25
|
+
* @param {SslCertificateEnvironmentCreate} sslCertificateEnvironmentCreate A JSON object containing the resource data
|
|
26
26
|
*/
|
|
27
|
-
|
|
27
|
+
addEnvironmentSslCertificate(environmentId: number, sslCertificateEnvironmentCreate: SslCertificateEnvironmentCreate): Promise<ApiResponse<SslCertificate>>;
|
|
28
28
|
/**
|
|
29
29
|
*
|
|
30
|
-
* @summary Return a list of SSL
|
|
31
|
-
* @param {number}
|
|
30
|
+
* @summary Return a list of all SSL Certificates belonging to an environment
|
|
31
|
+
* @param {number} environmentId The ID of the environment.
|
|
32
32
|
* @param {number} [page] Number of the page to be retrieved
|
|
33
33
|
* @param {number} [perPage] Number of items returned per page
|
|
34
34
|
*/
|
|
35
|
-
|
|
35
|
+
listEnvironmentSslCertificates(environmentId: number, page?: number, perPage?: number): Promise<ApiResponse<Array<SslCertificateRelation>>>;
|
|
36
36
|
}
|
|
@@ -21,45 +21,45 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
21
21
|
});
|
|
22
22
|
};
|
|
23
23
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
-
exports.
|
|
24
|
+
exports.EnvironmentsSSLCertificatesApiService = void 0;
|
|
25
25
|
const ApiBaseService_1 = require("../../../services/ApiBaseService");
|
|
26
26
|
const ApiResponse_1 = require("../../../common/ApiResponse");
|
|
27
27
|
const Exceptions_1 = require("../../../common/Exceptions");
|
|
28
28
|
/**
|
|
29
|
-
*
|
|
29
|
+
* EnvironmentsSSLCertificatesApiService - Auto-generated
|
|
30
30
|
*/
|
|
31
|
-
class
|
|
31
|
+
class EnvironmentsSSLCertificatesApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
32
|
/**
|
|
33
33
|
*
|
|
34
|
-
* @summary
|
|
35
|
-
* @param {number}
|
|
36
|
-
* @param {
|
|
34
|
+
* @summary Create a new ssl certificate
|
|
35
|
+
* @param {number} environmentId The ID of the environment.
|
|
36
|
+
* @param {SslCertificateEnvironmentCreate} sslCertificateEnvironmentCreate A JSON object containing the resource data
|
|
37
37
|
*/
|
|
38
|
-
|
|
38
|
+
addEnvironmentSslCertificate(environmentId, sslCertificateEnvironmentCreate) {
|
|
39
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
-
if (
|
|
41
|
-
throw new Exceptions_1.ArgumentNullException('
|
|
40
|
+
if (environmentId === null || environmentId === undefined) {
|
|
41
|
+
throw new Exceptions_1.ArgumentNullException('environmentId', 'addEnvironmentSslCertificate');
|
|
42
42
|
}
|
|
43
|
-
if (
|
|
44
|
-
throw new Exceptions_1.ArgumentNullException('
|
|
43
|
+
if (sslCertificateEnvironmentCreate === null || sslCertificateEnvironmentCreate === undefined) {
|
|
44
|
+
throw new Exceptions_1.ArgumentNullException('sslCertificateEnvironmentCreate', 'addEnvironmentSslCertificate');
|
|
45
45
|
}
|
|
46
46
|
let queryString = '';
|
|
47
|
-
const requestUrl = '/
|
|
48
|
-
const response = yield this.post(requestUrl.replace(`{${"
|
|
47
|
+
const requestUrl = '/environments/{environment_id}/ssl-certificates' + (queryString ? `?${queryString}` : '');
|
|
48
|
+
const response = yield this.post(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))), sslCertificateEnvironmentCreate);
|
|
49
49
|
return new ApiResponse_1.ApiResponse(response);
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
53
|
*
|
|
54
|
-
* @summary Return a list of SSL
|
|
55
|
-
* @param {number}
|
|
54
|
+
* @summary Return a list of all SSL Certificates belonging to an environment
|
|
55
|
+
* @param {number} environmentId The ID of the environment.
|
|
56
56
|
* @param {number} [page] Number of the page to be retrieved
|
|
57
57
|
* @param {number} [perPage] Number of items returned per page
|
|
58
58
|
*/
|
|
59
|
-
|
|
59
|
+
listEnvironmentSslCertificates(environmentId, page, perPage) {
|
|
60
60
|
return __awaiter(this, void 0, void 0, function* () {
|
|
61
|
-
if (
|
|
62
|
-
throw new Exceptions_1.ArgumentNullException('
|
|
61
|
+
if (environmentId === null || environmentId === undefined) {
|
|
62
|
+
throw new Exceptions_1.ArgumentNullException('environmentId', 'listEnvironmentSslCertificates');
|
|
63
63
|
}
|
|
64
64
|
let queryString = '';
|
|
65
65
|
const queryParams = { page: page, per_page: perPage, };
|
|
@@ -69,10 +69,10 @@ class ApplicationsSSLCertificatesApiService extends ApiBaseService_1.ApiBaseServ
|
|
|
69
69
|
}
|
|
70
70
|
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
71
71
|
}
|
|
72
|
-
const requestUrl = '/
|
|
73
|
-
const response = yield this.get(requestUrl.replace(`{${"
|
|
72
|
+
const requestUrl = '/environments/{environment_id}/ssl-certificates' + (queryString ? `?${queryString}` : '');
|
|
73
|
+
const response = yield this.get(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))));
|
|
74
74
|
return new ApiResponse_1.ApiResponse(response);
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
exports.
|
|
78
|
+
exports.EnvironmentsSSLCertificatesApiService = EnvironmentsSSLCertificatesApiService;
|
|
@@ -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 { VirtualHostUpdate } from '../../generated/models';
|
|
15
16
|
/**
|
|
16
17
|
* VirtualHostsApiService - Auto-generated
|
|
17
18
|
*/
|
|
@@ -24,8 +25,15 @@ export declare class VirtualHostsApiService extends ApiBaseService {
|
|
|
24
25
|
deleteVirtualHost(virtualHostId: number): Promise<ApiResponse<void>>;
|
|
25
26
|
/**
|
|
26
27
|
*
|
|
27
|
-
* @summary Get
|
|
28
|
+
* @summary Get a virtual host by ID
|
|
28
29
|
* @param {number} virtualHostId The ID of the virtual host.
|
|
29
30
|
*/
|
|
30
31
|
getVirtualHost(virtualHostId: number): Promise<ApiResponse<VirtualHost>>;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @summary Update an existing virtual host
|
|
35
|
+
* @param {number} virtualHostId The ID of the virtual host.
|
|
36
|
+
* @param {VirtualHostUpdate} virtualHostUpdate A JSON object containing the resource data
|
|
37
|
+
*/
|
|
38
|
+
updateVirtualHost(virtualHostId: number, virtualHostUpdate: VirtualHostUpdate): Promise<ApiResponse<void>>;
|
|
31
39
|
}
|
|
@@ -47,7 +47,7 @@ class VirtualHostsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
47
47
|
}
|
|
48
48
|
/**
|
|
49
49
|
*
|
|
50
|
-
* @summary Get
|
|
50
|
+
* @summary Get a virtual host by ID
|
|
51
51
|
* @param {number} virtualHostId The ID of the virtual host.
|
|
52
52
|
*/
|
|
53
53
|
getVirtualHost(virtualHostId) {
|
|
@@ -61,5 +61,25 @@ class VirtualHostsApiService extends ApiBaseService_1.ApiBaseService {
|
|
|
61
61
|
return new ApiResponse_1.ApiResponse(response);
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @summary Update an existing virtual host
|
|
67
|
+
* @param {number} virtualHostId The ID of the virtual host.
|
|
68
|
+
* @param {VirtualHostUpdate} virtualHostUpdate A JSON object containing the resource data
|
|
69
|
+
*/
|
|
70
|
+
updateVirtualHost(virtualHostId, virtualHostUpdate) {
|
|
71
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
72
|
+
if (virtualHostId === null || virtualHostId === undefined) {
|
|
73
|
+
throw new Exceptions_1.ArgumentNullException('virtualHostId', 'updateVirtualHost');
|
|
74
|
+
}
|
|
75
|
+
if (virtualHostUpdate === null || virtualHostUpdate === undefined) {
|
|
76
|
+
throw new Exceptions_1.ArgumentNullException('virtualHostUpdate', 'updateVirtualHost');
|
|
77
|
+
}
|
|
78
|
+
let queryString = '';
|
|
79
|
+
const requestUrl = '/virtual-hosts/{virtual_host_id}' + (queryString ? `?${queryString}` : '');
|
|
80
|
+
const response = yield this.put(requestUrl.replace(`{${"virtual_host_id"}}`, encodeURIComponent(String(virtualHostId))), virtualHostUpdate);
|
|
81
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
82
|
+
});
|
|
83
|
+
}
|
|
64
84
|
}
|
|
65
85
|
exports.VirtualHostsApiService = VirtualHostsApiService;
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { ApplicationType } from './application-type';
|
|
13
12
|
/**
|
|
14
13
|
*
|
|
15
14
|
* @export
|
|
@@ -22,18 +21,6 @@ export interface ApplicationEnvironmentCreate {
|
|
|
22
21
|
* @memberof ApplicationEnvironmentCreate
|
|
23
22
|
*/
|
|
24
23
|
name: string;
|
|
25
|
-
/**
|
|
26
|
-
*
|
|
27
|
-
* @type {ApplicationType}
|
|
28
|
-
* @memberof ApplicationEnvironmentCreate
|
|
29
|
-
*/
|
|
30
|
-
type: ApplicationType;
|
|
31
|
-
/**
|
|
32
|
-
* 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.
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @memberof ApplicationEnvironmentCreate
|
|
35
|
-
*/
|
|
36
|
-
domain_name?: string;
|
|
37
24
|
/**
|
|
38
25
|
* The optional command that should be executed once during deployment to build the source code and get the application in a ready state.
|
|
39
26
|
* @type {string}
|
|
@@ -58,12 +45,6 @@ export interface ApplicationEnvironmentCreate {
|
|
|
58
45
|
* @memberof ApplicationEnvironmentCreate
|
|
59
46
|
*/
|
|
60
47
|
programming_language: string;
|
|
61
|
-
/**
|
|
62
|
-
* 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.
|
|
63
|
-
* @type {string}
|
|
64
|
-
* @memberof ApplicationEnvironmentCreate
|
|
65
|
-
*/
|
|
66
|
-
listening_address?: string;
|
|
67
48
|
/**
|
|
68
49
|
* 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 100 characters.
|
|
69
50
|
* @type {string}
|
|
@@ -82,12 +63,6 @@ export interface ApplicationEnvironmentCreate {
|
|
|
82
63
|
* @memberof ApplicationEnvironmentCreate
|
|
83
64
|
*/
|
|
84
65
|
root_directory?: string;
|
|
85
|
-
/**
|
|
86
|
-
* 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>.
|
|
87
|
-
* @type {string}
|
|
88
|
-
* @memberof ApplicationEnvironmentCreate
|
|
89
|
-
*/
|
|
90
|
-
public_directory: string;
|
|
91
66
|
/**
|
|
92
67
|
* 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 200 characters.
|
|
93
68
|
* @type {string}
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { ApplicationTypes } from './application-types';
|
|
13
12
|
import { LanguageRuntime } from './language-runtime';
|
|
14
13
|
import { ScriptRunner } from './script-runner';
|
|
15
14
|
/**
|
|
@@ -30,10 +29,4 @@ export interface ApplicationOptions {
|
|
|
30
29
|
* @memberof ApplicationOptions
|
|
31
30
|
*/
|
|
32
31
|
script_runners: Array<ScriptRunner>;
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
* @type {ApplicationTypes}
|
|
36
|
-
* @memberof ApplicationOptions
|
|
37
|
-
*/
|
|
38
|
-
application_types: ApplicationTypes;
|
|
39
32
|
}
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { ApplicationLastDeployments } from './application-last-deployments';
|
|
13
|
-
import { ApplicationType } from './application-type';
|
|
14
13
|
import { SourceProvider } from './source-provider';
|
|
15
14
|
/**
|
|
16
15
|
*
|
|
@@ -48,18 +47,6 @@ export interface ApplicationRelation {
|
|
|
48
47
|
* @memberof ApplicationRelation
|
|
49
48
|
*/
|
|
50
49
|
name: string;
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @type {ApplicationType}
|
|
54
|
-
* @memberof ApplicationRelation
|
|
55
|
-
*/
|
|
56
|
-
type: ApplicationType;
|
|
57
|
-
/**
|
|
58
|
-
* 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`
|
|
59
|
-
* @type {string}
|
|
60
|
-
* @memberof ApplicationRelation
|
|
61
|
-
*/
|
|
62
|
-
domain_name: string;
|
|
63
50
|
/**
|
|
64
51
|
* The full name of a repository (`repository_owner/repository_name`) containing the application source code. Required when the `source_provider_id` field is informed.
|
|
65
52
|
* @type {string}
|
|
@@ -114,24 +101,12 @@ export interface ApplicationRelation {
|
|
|
114
101
|
* @memberof ApplicationRelation
|
|
115
102
|
*/
|
|
116
103
|
root_directory: string;
|
|
117
|
-
/**
|
|
118
|
-
* The relative web directory where publicly accessible assets are located and the web content should be served from
|
|
119
|
-
* @type {string}
|
|
120
|
-
* @memberof ApplicationRelation
|
|
121
|
-
*/
|
|
122
|
-
public_directory: string;
|
|
123
104
|
/**
|
|
124
105
|
* The application\'s entrypoint
|
|
125
106
|
* @type {string}
|
|
126
107
|
* @memberof ApplicationRelation
|
|
127
108
|
*/
|
|
128
109
|
entrypoint: string;
|
|
129
|
-
/**
|
|
130
|
-
* Application\'s listening address
|
|
131
|
-
* @type {string}
|
|
132
|
-
* @memberof ApplicationRelation
|
|
133
|
-
*/
|
|
134
|
-
listening_address: string;
|
|
135
110
|
/**
|
|
136
111
|
* 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
|
|
137
112
|
* @type {number}
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { ApplicationType } from './application-type';
|
|
13
12
|
/**
|
|
14
13
|
*
|
|
15
14
|
* @export
|
|
@@ -28,18 +27,6 @@ export interface ApplicationUpdate {
|
|
|
28
27
|
* @memberof ApplicationUpdate
|
|
29
28
|
*/
|
|
30
29
|
name: string;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @type {ApplicationType}
|
|
34
|
-
* @memberof ApplicationUpdate
|
|
35
|
-
*/
|
|
36
|
-
type: ApplicationType;
|
|
37
|
-
/**
|
|
38
|
-
* 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.
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof ApplicationUpdate
|
|
41
|
-
*/
|
|
42
|
-
domain_name?: string;
|
|
43
30
|
/**
|
|
44
31
|
* The optional command that should be executed once during deployment to build the source code and get the application in a ready state.
|
|
45
32
|
* @type {string}
|
|
@@ -64,12 +51,6 @@ export interface ApplicationUpdate {
|
|
|
64
51
|
* @memberof ApplicationUpdate
|
|
65
52
|
*/
|
|
66
53
|
programming_language: string;
|
|
67
|
-
/**
|
|
68
|
-
* 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.
|
|
69
|
-
* @type {string}
|
|
70
|
-
* @memberof ApplicationUpdate
|
|
71
|
-
*/
|
|
72
|
-
listening_address?: string;
|
|
73
54
|
/**
|
|
74
55
|
* 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 100 characters.
|
|
75
56
|
* @type {string}
|
|
@@ -88,12 +69,6 @@ export interface ApplicationUpdate {
|
|
|
88
69
|
* @memberof ApplicationUpdate
|
|
89
70
|
*/
|
|
90
71
|
root_directory?: string;
|
|
91
|
-
/**
|
|
92
|
-
* 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>.
|
|
93
|
-
* @type {string}
|
|
94
|
-
* @memberof ApplicationUpdate
|
|
95
|
-
*/
|
|
96
|
-
public_directory: string;
|
|
97
72
|
/**
|
|
98
73
|
* 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 200 characters.
|
|
99
74
|
* @type {string}
|
|
@@ -10,11 +10,9 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { ApplicationLastDeployments } from './application-last-deployments';
|
|
13
|
-
import { ApplicationType } from './application-type';
|
|
14
13
|
import { EnvironmentRelation } from './environment-relation';
|
|
15
14
|
import { ServerRelation } from './server-relation';
|
|
16
15
|
import { SourceProvider } from './source-provider';
|
|
17
|
-
import { SslCertificateRelation } from './ssl-certificate-relation';
|
|
18
16
|
import { UserRelation } from './user-relation';
|
|
19
17
|
/**
|
|
20
18
|
*
|
|
@@ -52,18 +50,6 @@ export interface Application {
|
|
|
52
50
|
* @memberof Application
|
|
53
51
|
*/
|
|
54
52
|
name: string;
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
* @type {ApplicationType}
|
|
58
|
-
* @memberof Application
|
|
59
|
-
*/
|
|
60
|
-
type: ApplicationType;
|
|
61
|
-
/**
|
|
62
|
-
* 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`
|
|
63
|
-
* @type {string}
|
|
64
|
-
* @memberof Application
|
|
65
|
-
*/
|
|
66
|
-
domain_name: string;
|
|
67
53
|
/**
|
|
68
54
|
* The full name of a repository (`repository_owner/repository_name`) containing the application source code. Required when the `source_provider_id` field is informed.
|
|
69
55
|
* @type {string}
|
|
@@ -118,24 +104,12 @@ export interface Application {
|
|
|
118
104
|
* @memberof Application
|
|
119
105
|
*/
|
|
120
106
|
root_directory: string;
|
|
121
|
-
/**
|
|
122
|
-
* The relative web directory where publicly accessible assets are located and the web content should be served from
|
|
123
|
-
* @type {string}
|
|
124
|
-
* @memberof Application
|
|
125
|
-
*/
|
|
126
|
-
public_directory: string;
|
|
127
107
|
/**
|
|
128
108
|
* The application\'s entrypoint
|
|
129
109
|
* @type {string}
|
|
130
110
|
* @memberof Application
|
|
131
111
|
*/
|
|
132
112
|
entrypoint: string;
|
|
133
|
-
/**
|
|
134
|
-
* Application\'s listening address
|
|
135
|
-
* @type {string}
|
|
136
|
-
* @memberof Application
|
|
137
|
-
*/
|
|
138
|
-
listening_address: string;
|
|
139
113
|
/**
|
|
140
114
|
* 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
|
|
141
115
|
* @type {number}
|
|
@@ -190,12 +164,6 @@ export interface Application {
|
|
|
190
164
|
* @memberof Application
|
|
191
165
|
*/
|
|
192
166
|
source_provider: SourceProvider;
|
|
193
|
-
/**
|
|
194
|
-
*
|
|
195
|
-
* @type {Array<SslCertificateRelation>}
|
|
196
|
-
* @memberof Application
|
|
197
|
-
*/
|
|
198
|
-
ssl_certificates: Array<SslCertificateRelation>;
|
|
199
167
|
/**
|
|
200
168
|
* The date and time when the record was created
|
|
201
169
|
* @type {string}
|
|
@@ -18,8 +18,10 @@ import { NetworkRuleRelation } from './network-rule-relation';
|
|
|
18
18
|
import { ServerRelation } from './server-relation';
|
|
19
19
|
import { ServiceRelation } from './service-relation';
|
|
20
20
|
import { SshKeyRelation } from './ssh-key-relation';
|
|
21
|
+
import { SslCertificateRelation } from './ssl-certificate-relation';
|
|
21
22
|
import { TeamRelation } from './team-relation';
|
|
22
23
|
import { UserRelation } from './user-relation';
|
|
24
|
+
import { VirtualHostRelation } from './virtual-host-relation';
|
|
23
25
|
/**
|
|
24
26
|
*
|
|
25
27
|
* @export
|
|
@@ -104,12 +106,24 @@ export interface Environment {
|
|
|
104
106
|
* @memberof Environment
|
|
105
107
|
*/
|
|
106
108
|
ssh_keys: Array<SshKeyRelation>;
|
|
109
|
+
/**
|
|
110
|
+
*
|
|
111
|
+
* @type {Array<SslCertificateRelation>}
|
|
112
|
+
* @memberof Environment
|
|
113
|
+
*/
|
|
114
|
+
ssl_certificates: Array<SslCertificateRelation>;
|
|
107
115
|
/**
|
|
108
116
|
*
|
|
109
117
|
* @type {Array<TeamRelation>}
|
|
110
118
|
* @memberof Environment
|
|
111
119
|
*/
|
|
112
120
|
teams: Array<TeamRelation>;
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @type {Array<VirtualHostRelation>}
|
|
124
|
+
* @memberof Environment
|
|
125
|
+
*/
|
|
126
|
+
virtual_hosts: Array<VirtualHostRelation>;
|
|
113
127
|
/**
|
|
114
128
|
*
|
|
115
129
|
* @type {UserRelation}
|
|
@@ -29,10 +29,6 @@ export * from './application-last-deployments';
|
|
|
29
29
|
export * from './application-options';
|
|
30
30
|
export * from './application-pipeline';
|
|
31
31
|
export * from './application-relation';
|
|
32
|
-
export * from './application-type';
|
|
33
|
-
export * from './application-types';
|
|
34
|
-
export * from './application-types-private-application';
|
|
35
|
-
export * from './application-types-public-application';
|
|
36
32
|
export * from './application-update';
|
|
37
33
|
export * from './archived-environment-relation';
|
|
38
34
|
export * from './blueprint-service';
|
|
@@ -210,7 +206,7 @@ export * from './ssh-key-environment-create';
|
|
|
210
206
|
export * from './ssh-key-relation';
|
|
211
207
|
export * from './ssh-key-update';
|
|
212
208
|
export * from './ssl-certificate';
|
|
213
|
-
export * from './ssl-certificate-
|
|
209
|
+
export * from './ssl-certificate-environment-create';
|
|
214
210
|
export * from './ssl-certificate-issuer';
|
|
215
211
|
export * from './ssl-certificate-relation';
|
|
216
212
|
export * from './ssl-certificate-type';
|
|
@@ -285,3 +281,5 @@ export * from './virtual-host';
|
|
|
285
281
|
export * from './virtual-host-environment-create';
|
|
286
282
|
export * from './virtual-host-options';
|
|
287
283
|
export * from './virtual-host-relation';
|
|
284
|
+
export * from './virtual-host-type';
|
|
285
|
+
export * from './virtual-host-update';
|
|
@@ -45,10 +45,6 @@ __exportStar(require("./application-last-deployments"), exports);
|
|
|
45
45
|
__exportStar(require("./application-options"), exports);
|
|
46
46
|
__exportStar(require("./application-pipeline"), exports);
|
|
47
47
|
__exportStar(require("./application-relation"), exports);
|
|
48
|
-
__exportStar(require("./application-type"), exports);
|
|
49
|
-
__exportStar(require("./application-types"), exports);
|
|
50
|
-
__exportStar(require("./application-types-private-application"), exports);
|
|
51
|
-
__exportStar(require("./application-types-public-application"), exports);
|
|
52
48
|
__exportStar(require("./application-update"), exports);
|
|
53
49
|
__exportStar(require("./archived-environment-relation"), exports);
|
|
54
50
|
__exportStar(require("./blueprint-service"), exports);
|
|
@@ -226,7 +222,7 @@ __exportStar(require("./ssh-key-environment-create"), exports);
|
|
|
226
222
|
__exportStar(require("./ssh-key-relation"), exports);
|
|
227
223
|
__exportStar(require("./ssh-key-update"), exports);
|
|
228
224
|
__exportStar(require("./ssl-certificate"), exports);
|
|
229
|
-
__exportStar(require("./ssl-certificate-
|
|
225
|
+
__exportStar(require("./ssl-certificate-environment-create"), exports);
|
|
230
226
|
__exportStar(require("./ssl-certificate-issuer"), exports);
|
|
231
227
|
__exportStar(require("./ssl-certificate-relation"), exports);
|
|
232
228
|
__exportStar(require("./ssl-certificate-type"), exports);
|
|
@@ -301,3 +297,5 @@ __exportStar(require("./virtual-host"), exports);
|
|
|
301
297
|
__exportStar(require("./virtual-host-environment-create"), exports);
|
|
302
298
|
__exportStar(require("./virtual-host-options"), exports);
|
|
303
299
|
__exportStar(require("./virtual-host-relation"), exports);
|
|
300
|
+
__exportStar(require("./virtual-host-type"), exports);
|
|
301
|
+
__exportStar(require("./virtual-host-update"), exports);
|
|
@@ -20,13 +20,13 @@ export interface LinkedResourceAttribute {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof LinkedResourceAttribute
|
|
22
22
|
*/
|
|
23
|
-
field_name
|
|
23
|
+
field_name: string;
|
|
24
24
|
/**
|
|
25
25
|
* Human redable version of the attribute name
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof LinkedResourceAttribute
|
|
28
28
|
*/
|
|
29
|
-
field_name_human_readable
|
|
29
|
+
field_name_human_readable: string;
|
|
30
30
|
/**
|
|
31
31
|
* The attribute value
|
|
32
32
|
* @type {string}
|
|
@@ -15,43 +15,43 @@ import { SslCertificateValidationLevel } from './ssl-certificate-validation-leve
|
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
17
17
|
* @export
|
|
18
|
-
* @interface
|
|
18
|
+
* @interface SslCertificateEnvironmentCreate
|
|
19
19
|
*/
|
|
20
|
-
export interface
|
|
20
|
+
export interface SslCertificateEnvironmentCreate {
|
|
21
|
+
/**
|
|
22
|
+
* The ID of the virtual host to which this SSL certificate will be issued.
|
|
23
|
+
* @type {number}
|
|
24
|
+
* @memberof SslCertificateEnvironmentCreate
|
|
25
|
+
*/
|
|
26
|
+
virtual_host_id: number;
|
|
21
27
|
/**
|
|
22
28
|
*
|
|
23
29
|
* @type {SslCertificateIssuer}
|
|
24
|
-
* @memberof
|
|
30
|
+
* @memberof SslCertificateEnvironmentCreate
|
|
25
31
|
*/
|
|
26
32
|
issuer: SslCertificateIssuer;
|
|
27
|
-
/**
|
|
28
|
-
* The list of domain names to which the SSL certificate refers to
|
|
29
|
-
* @type {Array<string>}
|
|
30
|
-
* @memberof SslCertificateApplicationCreate
|
|
31
|
-
*/
|
|
32
|
-
domains: Array<string>;
|
|
33
33
|
/**
|
|
34
34
|
*
|
|
35
35
|
* @type {SslCertificateType}
|
|
36
|
-
* @memberof
|
|
36
|
+
* @memberof SslCertificateEnvironmentCreate
|
|
37
37
|
*/
|
|
38
38
|
type?: SslCertificateType;
|
|
39
39
|
/**
|
|
40
40
|
*
|
|
41
41
|
* @type {SslCertificateValidationLevel}
|
|
42
|
-
* @memberof
|
|
42
|
+
* @memberof SslCertificateEnvironmentCreate
|
|
43
43
|
*/
|
|
44
44
|
validation_level?: SslCertificateValidationLevel;
|
|
45
45
|
/**
|
|
46
46
|
* The private key provided by the Certification Authority, when the certificate has not been automatically issued through `devopness`. This field is required when <code>issuer</code> is <code>custom</code>. Must be at least 100 characters. Must not be greater than 4096 characters.
|
|
47
47
|
* @type {string}
|
|
48
|
-
* @memberof
|
|
48
|
+
* @memberof SslCertificateEnvironmentCreate
|
|
49
49
|
*/
|
|
50
50
|
custom_private_key?: string;
|
|
51
51
|
/**
|
|
52
52
|
* The contents of the certificate provided by the Certification Authority, when the certificate has not been automatically issued through `devopness`. This field is required when <code>issuer</code> is <code>custom</code>. Must be at least 100 characters. Must not be greater than 4096 characters.
|
|
53
53
|
* @type {string}
|
|
54
|
-
* @memberof
|
|
54
|
+
* @memberof SslCertificateEnvironmentCreate
|
|
55
55
|
*/
|
|
56
56
|
custom_certificate?: string;
|
|
57
57
|
}
|
|
@@ -55,12 +55,6 @@ export interface SslCertificateRelation {
|
|
|
55
55
|
* @memberof SslCertificateRelation
|
|
56
56
|
*/
|
|
57
57
|
active: boolean;
|
|
58
|
-
/**
|
|
59
|
-
* The list of domain names to which the SSL certificate refers to
|
|
60
|
-
* @type {Array<string>}
|
|
61
|
-
* @memberof SslCertificateRelation
|
|
62
|
-
*/
|
|
63
|
-
domains: Array<string>;
|
|
64
58
|
/**
|
|
65
59
|
*
|
|
66
60
|
* @type {ActionRelation}
|
|
@@ -10,8 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { ActionRelation } from './action-relation';
|
|
13
|
-
import { ApplicationRelation } from './application-relation';
|
|
14
|
-
import { ServerRelation } from './server-relation';
|
|
15
13
|
import { SslCertificateIssuer } from './ssl-certificate-issuer';
|
|
16
14
|
import { SslCertificateType } from './ssl-certificate-type';
|
|
17
15
|
import { SslCertificateValidationLevel } from './ssl-certificate-validation-level';
|
|
@@ -58,12 +56,6 @@ export interface SslCertificate {
|
|
|
58
56
|
* @memberof SslCertificate
|
|
59
57
|
*/
|
|
60
58
|
active: boolean;
|
|
61
|
-
/**
|
|
62
|
-
* The list of domain names to which the SSL certificate refers to
|
|
63
|
-
* @type {Array<string>}
|
|
64
|
-
* @memberof SslCertificate
|
|
65
|
-
*/
|
|
66
|
-
domains: Array<string>;
|
|
67
59
|
/**
|
|
68
60
|
*
|
|
69
61
|
* @type {UserRelation}
|
|
@@ -76,18 +68,6 @@ export interface SslCertificate {
|
|
|
76
68
|
* @memberof SslCertificate
|
|
77
69
|
*/
|
|
78
70
|
last_action: ActionRelation | null;
|
|
79
|
-
/**
|
|
80
|
-
*
|
|
81
|
-
* @type {ApplicationRelation}
|
|
82
|
-
* @memberof SslCertificate
|
|
83
|
-
*/
|
|
84
|
-
application: ApplicationRelation | null;
|
|
85
|
-
/**
|
|
86
|
-
*
|
|
87
|
-
* @type {Array<ServerRelation>}
|
|
88
|
-
* @memberof SslCertificate
|
|
89
|
-
*/
|
|
90
|
-
servers: Array<ServerRelation>;
|
|
91
71
|
/**
|
|
92
72
|
* The date and time when this certificate will no longer be valid, down to minute precision
|
|
93
73
|
* @type {string}
|
|
@@ -28,15 +28,21 @@ export interface VirtualHostEnvironmentCreate {
|
|
|
28
28
|
*/
|
|
29
29
|
name: string;
|
|
30
30
|
/**
|
|
31
|
-
* The
|
|
31
|
+
* The document root location, within the application directory, that contains the public files to be served when a user visits the domain name associated with this virtual host. Must not be greater than 255 characters.
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof VirtualHostEnvironmentCreate
|
|
34
34
|
*/
|
|
35
|
-
root_directory
|
|
35
|
+
root_directory?: string;
|
|
36
36
|
/**
|
|
37
|
-
* The IP address
|
|
37
|
+
* The network name or IP address on which the application linked to this virtual host is configured to listen for incoming requests. A valid address has `http` or `https` protocol, a domain name or IP address, an optional port and optional path. You can also specify a UNIX-socket using `unix:` protocol. Examples: `http://127.0.0.1:8080` (for applications exposing port `8080`, for example running in a Docker container), `http://127.0.0.1:3000` (for applications kept alive by a daemon/background process that listens on port `3000`), `unix:/var/run/example.sock` (for applications listening on a custom socket). Must not be greater than 255 characters.
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof VirtualHostEnvironmentCreate
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
application_listen_address?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* The ID of the application to be associated with the virtual host. The value of `root_directory` will be relative to this application directory.
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof VirtualHostEnvironmentCreate
|
|
46
|
+
*/
|
|
47
|
+
application_id?: number | null;
|
|
42
48
|
}
|
|
@@ -9,7 +9,10 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { ActionRelation } from './action-relation';
|
|
13
|
+
import { ApplicationRelation } from './application-relation';
|
|
12
14
|
import { UserRelation } from './user-relation';
|
|
15
|
+
import { VirtualHostType } from './virtual-host-type';
|
|
13
16
|
/**
|
|
14
17
|
*
|
|
15
18
|
* @export
|
|
@@ -22,6 +25,12 @@ export interface VirtualHostRelation {
|
|
|
22
25
|
* @memberof VirtualHostRelation
|
|
23
26
|
*/
|
|
24
27
|
id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {VirtualHostType}
|
|
31
|
+
* @memberof VirtualHostRelation
|
|
32
|
+
*/
|
|
33
|
+
type: VirtualHostType;
|
|
25
34
|
/**
|
|
26
35
|
* The name of the Virtual Host
|
|
27
36
|
* @type {string}
|
|
@@ -29,17 +38,29 @@ export interface VirtualHostRelation {
|
|
|
29
38
|
*/
|
|
30
39
|
name: string;
|
|
31
40
|
/**
|
|
32
|
-
*
|
|
41
|
+
*
|
|
42
|
+
* @type {ApplicationRelation}
|
|
43
|
+
* @memberof VirtualHostRelation
|
|
44
|
+
*/
|
|
45
|
+
application: ApplicationRelation | null;
|
|
46
|
+
/**
|
|
47
|
+
* The document root location, within the application directory, that contains the public files to be served when a user visits the domain name associated with this virtual host
|
|
33
48
|
* @type {string}
|
|
34
49
|
* @memberof VirtualHostRelation
|
|
35
50
|
*/
|
|
36
|
-
root_directory: string;
|
|
51
|
+
root_directory: string | null;
|
|
37
52
|
/**
|
|
38
|
-
* The address
|
|
53
|
+
* The network name or IP address on which the application linked to this virtual host is configured to listen for incoming requests. A valid address has `http` or `https` protocol, a domain name or IP address, an optional port and optional path. You can also specify a UNIX-socket using `unix:` protocol. Examples: `http://127.0.0.1:8080` (for applications exposing port `8080`, for example running in a Docker container), `http://127.0.0.1:3000` (for applications kept alive by a daemon/background process that listens on port `3000`), `unix:/var/run/example.sock` (for applications listening on a custom socket)
|
|
39
54
|
* @type {string}
|
|
40
55
|
* @memberof VirtualHostRelation
|
|
41
56
|
*/
|
|
42
|
-
|
|
57
|
+
application_listen_address: string | null;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {ActionRelation}
|
|
61
|
+
* @memberof VirtualHostRelation
|
|
62
|
+
*/
|
|
63
|
+
last_action: ActionRelation | null;
|
|
43
64
|
/**
|
|
44
65
|
*
|
|
45
66
|
* @type {UserRelation}
|
package/dist/api/generated/models/{ssl-certificate-application-create.js → virtual-host-type.d.ts}
RENAMED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* eslint-disable */
|
|
3
1
|
/**
|
|
4
2
|
* devopness API
|
|
5
3
|
* Devopness API - Painless essential DevOps to everyone
|
|
@@ -11,4 +9,12 @@
|
|
|
11
9
|
* https://openapi-generator.tech
|
|
12
10
|
* Do not edit the class manually.
|
|
13
11
|
*/
|
|
14
|
-
|
|
12
|
+
/**
|
|
13
|
+
* The type of Virtual Host
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum VirtualHostType {
|
|
18
|
+
IpBased = "ip-based",
|
|
19
|
+
NameBased = "name-based"
|
|
20
|
+
}
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.
|
|
15
|
+
exports.VirtualHostType = void 0;
|
|
16
16
|
/**
|
|
17
|
-
* The
|
|
17
|
+
* The type of Virtual Host
|
|
18
18
|
* @export
|
|
19
19
|
* @enum {string}
|
|
20
20
|
*/
|
|
21
|
-
var
|
|
22
|
-
(function (
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
})(
|
|
21
|
+
var VirtualHostType;
|
|
22
|
+
(function (VirtualHostType) {
|
|
23
|
+
VirtualHostType["IpBased"] = "ip-based";
|
|
24
|
+
VirtualHostType["NameBased"] = "name-based";
|
|
25
|
+
})(VirtualHostType = exports.VirtualHostType || (exports.VirtualHostType = {}));
|
|
@@ -0,0 +1,48 @@
|
|
|
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 VirtualHostUpdate
|
|
16
|
+
*/
|
|
17
|
+
export interface VirtualHostUpdate {
|
|
18
|
+
/**
|
|
19
|
+
* The unique ID of the given virtual host.
|
|
20
|
+
* @type {number}
|
|
21
|
+
* @memberof VirtualHostUpdate
|
|
22
|
+
*/
|
|
23
|
+
id: number;
|
|
24
|
+
/**
|
|
25
|
+
* The name of the virtual host. Must not be greater than 255 characters.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof VirtualHostUpdate
|
|
28
|
+
*/
|
|
29
|
+
name?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The document root location, within the application directory, that contains the public files to be served when a user visits the domain name associated with this virtual host. Must not be greater than 255 characters.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof VirtualHostUpdate
|
|
34
|
+
*/
|
|
35
|
+
root_directory?: string;
|
|
36
|
+
/**
|
|
37
|
+
* The network name or IP address on which the application linked to this virtual host is configured to listen for incoming requests. A valid address has `http` or `https` protocol, a domain name or IP address, an optional port and optional path. You can also specify a UNIX-socket using `unix:` protocol. Examples: `http://127.0.0.1:8080` (for applications exposing port `8080`, for example running in a Docker container), `http://127.0.0.1:3000` (for applications kept alive by a daemon/background process that listens on port `3000`), `unix:/var/run/example.sock` (for applications listening on a custom socket). Must not be greater than 255 characters.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof VirtualHostUpdate
|
|
40
|
+
*/
|
|
41
|
+
application_listen_address?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* The ID of the application to be associated with the virtual host. The value of `root_directory` will be relative to this application directory.
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof VirtualHostUpdate
|
|
46
|
+
*/
|
|
47
|
+
application_id?: number | null;
|
|
48
|
+
}
|
|
@@ -9,7 +9,10 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { ActionRelation } from './action-relation';
|
|
13
|
+
import { ApplicationRelation } from './application-relation';
|
|
12
14
|
import { UserRelation } from './user-relation';
|
|
15
|
+
import { VirtualHostType } from './virtual-host-type';
|
|
13
16
|
/**
|
|
14
17
|
*
|
|
15
18
|
* @export
|
|
@@ -22,6 +25,12 @@ export interface VirtualHost {
|
|
|
22
25
|
* @memberof VirtualHost
|
|
23
26
|
*/
|
|
24
27
|
id: number;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {VirtualHostType}
|
|
31
|
+
* @memberof VirtualHost
|
|
32
|
+
*/
|
|
33
|
+
type: VirtualHostType;
|
|
25
34
|
/**
|
|
26
35
|
* The name of the Virtual Host
|
|
27
36
|
* @type {string}
|
|
@@ -29,17 +38,29 @@ export interface VirtualHost {
|
|
|
29
38
|
*/
|
|
30
39
|
name: string;
|
|
31
40
|
/**
|
|
32
|
-
*
|
|
41
|
+
*
|
|
42
|
+
* @type {ApplicationRelation}
|
|
43
|
+
* @memberof VirtualHost
|
|
44
|
+
*/
|
|
45
|
+
application: ApplicationRelation | null;
|
|
46
|
+
/**
|
|
47
|
+
* The document root location, within the application directory, that contains the public files to be served when a user visits the domain name associated with this virtual host
|
|
33
48
|
* @type {string}
|
|
34
49
|
* @memberof VirtualHost
|
|
35
50
|
*/
|
|
36
|
-
root_directory: string;
|
|
51
|
+
root_directory: string | null;
|
|
37
52
|
/**
|
|
38
|
-
* The address
|
|
53
|
+
* The network name or IP address on which the application linked to this virtual host is configured to listen for incoming requests. A valid address has `http` or `https` protocol, a domain name or IP address, an optional port and optional path. You can also specify a UNIX-socket using `unix:` protocol. Examples: `http://127.0.0.1:8080` (for applications exposing port `8080`, for example running in a Docker container), `http://127.0.0.1:3000` (for applications kept alive by a daemon/background process that listens on port `3000`), `unix:/var/run/example.sock` (for applications listening on a custom socket)
|
|
39
54
|
* @type {string}
|
|
40
55
|
* @memberof VirtualHost
|
|
41
56
|
*/
|
|
42
|
-
|
|
57
|
+
application_listen_address: string | null;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {ActionRelation}
|
|
61
|
+
* @memberof VirtualHost
|
|
62
|
+
*/
|
|
63
|
+
last_action: ActionRelation | null;
|
|
43
64
|
/**
|
|
44
65
|
*
|
|
45
66
|
* @type {UserRelation}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { ApiBaseService } from './ApiBaseService';
|
|
2
2
|
import { ApplicationsApiService } from '../api/generated/apis/applications-api';
|
|
3
3
|
import { ApplicationsDeploymentsApiService } from '../api/generated/apis/applications-deployments-api';
|
|
4
|
-
import { ApplicationsSSLCertificatesApiService } from '../api/generated/apis/applications-sslcertificates-api';
|
|
5
4
|
import { ApplicationsVariablesApiService } from '../api/generated/apis/applications-variables-api';
|
|
6
5
|
import { ApplicationsHooksApiService } from '../api/generated/apis/applications-hooks-api';
|
|
7
6
|
export declare class ApplicationService extends ApiBaseService {
|
|
8
7
|
}
|
|
9
|
-
export interface ApplicationService extends ApplicationsApiService, ApplicationsDeploymentsApiService, ApplicationsApiService,
|
|
8
|
+
export interface ApplicationService extends ApplicationsApiService, ApplicationsDeploymentsApiService, ApplicationsApiService, ApplicationsVariablesApiService, ApplicationsHooksApiService {
|
|
10
9
|
}
|
|
@@ -5,7 +5,6 @@ const ApiBaseService_1 = require("./ApiBaseService");
|
|
|
5
5
|
const MergeSiblingClasses_1 = require("../common/MergeSiblingClasses");
|
|
6
6
|
const applications_api_1 = require("../api/generated/apis/applications-api");
|
|
7
7
|
const applications_deployments_api_1 = require("../api/generated/apis/applications-deployments-api");
|
|
8
|
-
const applications_sslcertificates_api_1 = require("../api/generated/apis/applications-sslcertificates-api");
|
|
9
8
|
const applications_variables_api_1 = require("../api/generated/apis/applications-variables-api");
|
|
10
9
|
const applications_hooks_api_1 = require("../api/generated/apis/applications-hooks-api");
|
|
11
10
|
class ApplicationService extends ApiBaseService_1.ApiBaseService {
|
|
@@ -14,7 +13,6 @@ exports.ApplicationService = ApplicationService;
|
|
|
14
13
|
(0, MergeSiblingClasses_1.mergeSiblingClasses)(ApplicationService, [
|
|
15
14
|
applications_api_1.ApplicationsApiService,
|
|
16
15
|
applications_deployments_api_1.ApplicationsDeploymentsApiService,
|
|
17
|
-
applications_sslcertificates_api_1.ApplicationsSSLCertificatesApiService,
|
|
18
16
|
applications_variables_api_1.ApplicationsVariablesApiService,
|
|
19
17
|
applications_hooks_api_1.ApplicationsHooksApiService,
|
|
20
18
|
]);
|
|
@@ -7,6 +7,7 @@ import { EnvironmentsNetworkRulesApiService } from '../api/generated/apis/enviro
|
|
|
7
7
|
import { EnvironmentsServersApiService } from '../api/generated/apis/environments-servers-api';
|
|
8
8
|
import { EnvironmentsServicesApiService } from '../api/generated/apis/environments-services-api';
|
|
9
9
|
import { EnvironmentsSSHKeysApiService } from '../api/generated/apis/environments-sshkeys-api';
|
|
10
|
+
import { EnvironmentsSSLCertificatesApiService } from '../api/generated/apis/environments-sslcertificates-api';
|
|
10
11
|
import { EnvironmentsTeamMembershipsApiService } from '../api/generated/apis/environments-team-memberships-api';
|
|
11
12
|
import { EnvironmentsTeamsApiService } from '../api/generated/apis/environments-teams-api';
|
|
12
13
|
import { EnvironmentsNetworksApiService } from '../api/generated/apis/environments-networks-api';
|
|
@@ -21,6 +22,7 @@ export declare class EnvironmentService extends EnvironmentsApiService {
|
|
|
21
22
|
servers: EnvironmentsServersApiService;
|
|
22
23
|
services: EnvironmentsServicesApiService;
|
|
23
24
|
sshKeys: EnvironmentsSSHKeysApiService;
|
|
25
|
+
sslCertificates: EnvironmentsSSLCertificatesApiService;
|
|
24
26
|
teams: EnvironmentsTeamsApiService;
|
|
25
27
|
teamMemberships: EnvironmentsTeamMembershipsApiService;
|
|
26
28
|
virtualHosts: EnvironmentsVirtualHostsApiService;
|
|
@@ -10,6 +10,7 @@ const environments_network_rules_api_1 = require("../api/generated/apis/environm
|
|
|
10
10
|
const environments_servers_api_1 = require("../api/generated/apis/environments-servers-api");
|
|
11
11
|
const environments_services_api_1 = require("../api/generated/apis/environments-services-api");
|
|
12
12
|
const environments_sshkeys_api_1 = require("../api/generated/apis/environments-sshkeys-api");
|
|
13
|
+
const environments_sslcertificates_api_1 = require("../api/generated/apis/environments-sslcertificates-api");
|
|
13
14
|
const environments_team_memberships_api_1 = require("../api/generated/apis/environments-team-memberships-api");
|
|
14
15
|
const environments_teams_api_1 = require("../api/generated/apis/environments-teams-api");
|
|
15
16
|
const environments_networks_api_1 = require("../api/generated/apis/environments-networks-api");
|
|
@@ -26,6 +27,7 @@ class EnvironmentService extends environments_api_1.EnvironmentsApiService {
|
|
|
26
27
|
this.servers = new environments_servers_api_1.EnvironmentsServersApiService();
|
|
27
28
|
this.services = new environments_services_api_1.EnvironmentsServicesApiService();
|
|
28
29
|
this.sshKeys = new environments_sshkeys_api_1.EnvironmentsSSHKeysApiService();
|
|
30
|
+
this.sslCertificates = new environments_sslcertificates_api_1.EnvironmentsSSLCertificatesApiService();
|
|
29
31
|
this.teams = new environments_teams_api_1.EnvironmentsTeamsApiService();
|
|
30
32
|
this.teamMemberships = new environments_team_memberships_api_1.EnvironmentsTeamMembershipsApiService();
|
|
31
33
|
this.virtualHosts = new environments_virtual_hosts_api_1.EnvironmentsVirtualHostsApiService();
|
package/package.json
CHANGED
|
@@ -1,20 +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
|
-
/**
|
|
13
|
-
* The application\'s type, which will mainly define if it is publicly accessible through a web domain or not
|
|
14
|
-
* @export
|
|
15
|
-
* @enum {string}
|
|
16
|
-
*/
|
|
17
|
-
export declare enum ApplicationType {
|
|
18
|
-
Web = "web",
|
|
19
|
-
NonWeb = "non-web"
|
|
20
|
-
}
|
|
@@ -1,25 +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 { VariableTargets } from './variable-targets';
|
|
13
|
-
/**
|
|
14
|
-
* An application of type `private_application` does not use a web server/reverse proxy to serve public content. All appplications that are intented to be accessible only locally in their own servers, or from servers in the same internal network, should be defined as `private_application`.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface ApplicationTypesPrivateApplication
|
|
17
|
-
*/
|
|
18
|
-
export interface ApplicationTypesPrivateApplication {
|
|
19
|
-
/**
|
|
20
|
-
* The list of VariableTarget
|
|
21
|
-
* @type {Array<VariableTargets>}
|
|
22
|
-
* @memberof ApplicationTypesPrivateApplication
|
|
23
|
-
*/
|
|
24
|
-
variable_targets?: Array<VariableTargets>;
|
|
25
|
-
}
|
|
@@ -1,25 +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 { VariableTargets } from './variable-targets';
|
|
13
|
-
/**
|
|
14
|
-
* An application of type `public_application` is configured by Devopness to be accessed through a web server/reverse proxy to handle network requests and response, so it can be exposed as an `internet-facing` application. All applications that are intented to be accessible from the internet, exposed via a DNS record pointing to the application\'s server IP address, should be defined as `public_application`.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface ApplicationTypesPublicApplication
|
|
17
|
-
*/
|
|
18
|
-
export interface ApplicationTypesPublicApplication {
|
|
19
|
-
/**
|
|
20
|
-
* The list of VariableTarget
|
|
21
|
-
* @type {Array<VariableTargets>}
|
|
22
|
-
* @memberof ApplicationTypesPublicApplication
|
|
23
|
-
*/
|
|
24
|
-
variable_targets?: Array<VariableTargets>;
|
|
25
|
-
}
|
|
@@ -1,32 +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 { ApplicationTypesPrivateApplication } from './application-types-private-application';
|
|
13
|
-
import { ApplicationTypesPublicApplication } from './application-types-public-application';
|
|
14
|
-
/**
|
|
15
|
-
*
|
|
16
|
-
* @export
|
|
17
|
-
* @interface ApplicationTypes
|
|
18
|
-
*/
|
|
19
|
-
export interface ApplicationTypes {
|
|
20
|
-
/**
|
|
21
|
-
*
|
|
22
|
-
* @type {ApplicationTypesPublicApplication}
|
|
23
|
-
* @memberof ApplicationTypes
|
|
24
|
-
*/
|
|
25
|
-
public_application: ApplicationTypesPublicApplication;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {ApplicationTypesPrivateApplication}
|
|
29
|
-
* @memberof ApplicationTypes
|
|
30
|
-
*/
|
|
31
|
-
private_application: ApplicationTypesPrivateApplication;
|
|
32
|
-
}
|
|
@@ -1,14 +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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
File without changes
|
|
File without changes
|