@devopness/sdk-js 2.129.0 → 2.130.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 +2 -0
- package/dist/DevopnessApiClient.js +2 -0
- package/dist/api/generated/apis/environments-virtual-hosts-api.d.ts +36 -0
- package/dist/api/generated/apis/environments-virtual-hosts-api.js +78 -0
- package/dist/api/generated/apis/virtual-hosts-api.d.ts +31 -0
- package/dist/api/generated/apis/virtual-hosts-api.js +65 -0
- package/dist/api/generated/models/index.d.ts +3 -0
- package/dist/api/generated/models/index.js +3 -0
- package/dist/api/generated/models/resource-type.d.ts +2 -1
- package/dist/api/generated/models/resource-type.js +1 -0
- package/dist/api/generated/models/virtual-host-environment-create.d.ts +42 -0
- package/dist/api/generated/models/virtual-host-environment-create.js +14 -0
- package/dist/api/generated/models/virtual-host-relation.d.ts +61 -0
- package/dist/api/generated/models/virtual-host-relation.js +14 -0
- package/dist/api/generated/models/virtual-host.d.ts +61 -0
- package/dist/api/generated/models/virtual-host.js +14 -0
- package/dist/services/EnvironmentService.d.ts +2 -0
- package/dist/services/EnvironmentService.js +2 -0
- package/dist/services/VirtualHostService.d.ts +3 -0
- package/dist/services/VirtualHostService.js +7 -0
- package/package.json +1 -1
|
@@ -28,6 +28,7 @@ import { TeamInvitationService } from './services/TeamInvitationService';
|
|
|
28
28
|
import { TeamService } from './services/TeamService';
|
|
29
29
|
import { UserService } from './services/UserService';
|
|
30
30
|
import { VariableService } from './services/VariableService';
|
|
31
|
+
import { VirtualHostService } from './services/VirtualHostService';
|
|
31
32
|
export declare class DevopnessApiClient {
|
|
32
33
|
actions: ActionService;
|
|
33
34
|
applications: ApplicationService;
|
|
@@ -58,6 +59,7 @@ export declare class DevopnessApiClient {
|
|
|
58
59
|
teams: TeamService;
|
|
59
60
|
users: UserService;
|
|
60
61
|
variables: VariableService;
|
|
62
|
+
virtualHosts: VirtualHostService;
|
|
61
63
|
constructor(options?: ConfigurationOptions);
|
|
62
64
|
get accessToken(): string;
|
|
63
65
|
set accessToken(accessToken: string);
|
|
@@ -31,6 +31,7 @@ const TeamInvitationService_1 = require("./services/TeamInvitationService");
|
|
|
31
31
|
const TeamService_1 = require("./services/TeamService");
|
|
32
32
|
const UserService_1 = require("./services/UserService");
|
|
33
33
|
const VariableService_1 = require("./services/VariableService");
|
|
34
|
+
const VirtualHostService_1 = require("./services/VirtualHostService");
|
|
34
35
|
class DevopnessApiClient {
|
|
35
36
|
constructor(options) {
|
|
36
37
|
ApiBaseService_1.ApiBaseService.configuration = new ApiBaseService_1.Configuration(options || {});
|
|
@@ -66,6 +67,7 @@ class DevopnessApiClient {
|
|
|
66
67
|
this.teams = new TeamService_1.TeamService();
|
|
67
68
|
this.users = new UserService_1.UserService();
|
|
68
69
|
this.variables = new VariableService_1.VariableService();
|
|
70
|
+
this.virtualHosts = new VirtualHostService_1.VirtualHostService();
|
|
69
71
|
}
|
|
70
72
|
get accessToken() {
|
|
71
73
|
return ApiBaseService_1.ApiBaseService.accessToken;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* devopness API
|
|
3
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
|
+
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
|
+
import { VirtualHost } from '../../generated/models';
|
|
15
|
+
import { VirtualHostEnvironmentCreate } from '../../generated/models';
|
|
16
|
+
import { VirtualHostRelation } from '../../generated/models';
|
|
17
|
+
/**
|
|
18
|
+
* EnvironmentsVirtualHostsApiService - Auto-generated
|
|
19
|
+
*/
|
|
20
|
+
export declare class EnvironmentsVirtualHostsApiService extends ApiBaseService {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @summary Create a new virtual host
|
|
24
|
+
* @param {number} environmentId The ID of the environment.
|
|
25
|
+
* @param {VirtualHostEnvironmentCreate} virtualHostEnvironmentCreate A JSON object containing the resource data
|
|
26
|
+
*/
|
|
27
|
+
addEnvironmentVirtualHost(environmentId: number, virtualHostEnvironmentCreate: VirtualHostEnvironmentCreate): Promise<ApiResponse<VirtualHost>>;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @summary Return a list of all Virtual Hosts belonging to an environment
|
|
31
|
+
* @param {number} environmentId The ID of the environment.
|
|
32
|
+
* @param {number} [page] Number of the page to be retrieved
|
|
33
|
+
* @param {number} [perPage] Number of items returned per page
|
|
34
|
+
*/
|
|
35
|
+
listEnvironmentVirtualHosts(environmentId: number, page?: number, perPage?: number): Promise<ApiResponse<Array<VirtualHostRelation>>>;
|
|
36
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* devopness API
|
|
5
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
exports.EnvironmentsVirtualHostsApiService = void 0;
|
|
25
|
+
const ApiBaseService_1 = require("../../../services/ApiBaseService");
|
|
26
|
+
const ApiResponse_1 = require("../../../common/ApiResponse");
|
|
27
|
+
const Exceptions_1 = require("../../../common/Exceptions");
|
|
28
|
+
/**
|
|
29
|
+
* EnvironmentsVirtualHostsApiService - Auto-generated
|
|
30
|
+
*/
|
|
31
|
+
class EnvironmentsVirtualHostsApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @summary Create a new virtual host
|
|
35
|
+
* @param {number} environmentId The ID of the environment.
|
|
36
|
+
* @param {VirtualHostEnvironmentCreate} virtualHostEnvironmentCreate A JSON object containing the resource data
|
|
37
|
+
*/
|
|
38
|
+
addEnvironmentVirtualHost(environmentId, virtualHostEnvironmentCreate) {
|
|
39
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
if (environmentId === null || environmentId === undefined) {
|
|
41
|
+
throw new Exceptions_1.ArgumentNullException('environmentId', 'addEnvironmentVirtualHost');
|
|
42
|
+
}
|
|
43
|
+
if (virtualHostEnvironmentCreate === null || virtualHostEnvironmentCreate === undefined) {
|
|
44
|
+
throw new Exceptions_1.ArgumentNullException('virtualHostEnvironmentCreate', 'addEnvironmentVirtualHost');
|
|
45
|
+
}
|
|
46
|
+
let queryString = '';
|
|
47
|
+
const requestUrl = '/environments/{environment_id}/virtual-hosts' + (queryString ? `?${queryString}` : '');
|
|
48
|
+
const response = yield this.post(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))), virtualHostEnvironmentCreate);
|
|
49
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @summary Return a list of all Virtual Hosts belonging to an environment
|
|
55
|
+
* @param {number} environmentId The ID of the environment.
|
|
56
|
+
* @param {number} [page] Number of the page to be retrieved
|
|
57
|
+
* @param {number} [perPage] Number of items returned per page
|
|
58
|
+
*/
|
|
59
|
+
listEnvironmentVirtualHosts(environmentId, page, perPage) {
|
|
60
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
61
|
+
if (environmentId === null || environmentId === undefined) {
|
|
62
|
+
throw new Exceptions_1.ArgumentNullException('environmentId', 'listEnvironmentVirtualHosts');
|
|
63
|
+
}
|
|
64
|
+
let queryString = '';
|
|
65
|
+
const queryParams = { page: page, per_page: perPage, };
|
|
66
|
+
for (const key in queryParams) {
|
|
67
|
+
if (queryParams[key] === undefined || queryParams[key] === null) {
|
|
68
|
+
continue;
|
|
69
|
+
}
|
|
70
|
+
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
71
|
+
}
|
|
72
|
+
const requestUrl = '/environments/{environment_id}/virtual-hosts' + (queryString ? `?${queryString}` : '');
|
|
73
|
+
const response = yield this.get(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))));
|
|
74
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
exports.EnvironmentsVirtualHostsApiService = EnvironmentsVirtualHostsApiService;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* devopness API
|
|
3
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
|
+
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
|
+
import { VirtualHost } from '../../generated/models';
|
|
15
|
+
/**
|
|
16
|
+
* VirtualHostsApiService - Auto-generated
|
|
17
|
+
*/
|
|
18
|
+
export declare class VirtualHostsApiService extends ApiBaseService {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @summary Delete a given virtual host
|
|
22
|
+
* @param {number} virtualHostId The ID of the virtual host.
|
|
23
|
+
*/
|
|
24
|
+
deleteVirtualHost(virtualHostId: number): Promise<ApiResponse<void>>;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @summary Get an virtual host by ID
|
|
28
|
+
* @param {number} virtualHostId The ID of the virtual host.
|
|
29
|
+
*/
|
|
30
|
+
getVirtualHost(virtualHostId: number): Promise<ApiResponse<VirtualHost>>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* devopness API
|
|
5
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24
|
+
exports.VirtualHostsApiService = void 0;
|
|
25
|
+
const ApiBaseService_1 = require("../../../services/ApiBaseService");
|
|
26
|
+
const ApiResponse_1 = require("../../../common/ApiResponse");
|
|
27
|
+
const Exceptions_1 = require("../../../common/Exceptions");
|
|
28
|
+
/**
|
|
29
|
+
* VirtualHostsApiService - Auto-generated
|
|
30
|
+
*/
|
|
31
|
+
class VirtualHostsApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @summary Delete a given virtual host
|
|
35
|
+
* @param {number} virtualHostId The ID of the virtual host.
|
|
36
|
+
*/
|
|
37
|
+
deleteVirtualHost(virtualHostId) {
|
|
38
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
if (virtualHostId === null || virtualHostId === undefined) {
|
|
40
|
+
throw new Exceptions_1.ArgumentNullException('virtualHostId', 'deleteVirtualHost');
|
|
41
|
+
}
|
|
42
|
+
let queryString = '';
|
|
43
|
+
const requestUrl = '/virtual-hosts/{virtual_host_id}' + (queryString ? `?${queryString}` : '');
|
|
44
|
+
const response = yield this.delete(requestUrl.replace(`{${"virtual_host_id"}}`, encodeURIComponent(String(virtualHostId))));
|
|
45
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @summary Get an virtual host by ID
|
|
51
|
+
* @param {number} virtualHostId The ID of the virtual host.
|
|
52
|
+
*/
|
|
53
|
+
getVirtualHost(virtualHostId) {
|
|
54
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
55
|
+
if (virtualHostId === null || virtualHostId === undefined) {
|
|
56
|
+
throw new Exceptions_1.ArgumentNullException('virtualHostId', 'getVirtualHost');
|
|
57
|
+
}
|
|
58
|
+
let queryString = '';
|
|
59
|
+
const requestUrl = '/virtual-hosts/{virtual_host_id}' + (queryString ? `?${queryString}` : '');
|
|
60
|
+
const response = yield this.get(requestUrl.replace(`{${"virtual_host_id"}}`, encodeURIComponent(String(virtualHostId))));
|
|
61
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
exports.VirtualHostsApiService = VirtualHostsApiService;
|
|
@@ -281,4 +281,7 @@ export * from './variable-target';
|
|
|
281
281
|
export * from './variable-targets';
|
|
282
282
|
export * from './variable-type';
|
|
283
283
|
export * from './variable-update';
|
|
284
|
+
export * from './virtual-host';
|
|
285
|
+
export * from './virtual-host-environment-create';
|
|
284
286
|
export * from './virtual-host-options';
|
|
287
|
+
export * from './virtual-host-relation';
|
|
@@ -297,4 +297,7 @@ __exportStar(require("./variable-target"), exports);
|
|
|
297
297
|
__exportStar(require("./variable-targets"), exports);
|
|
298
298
|
__exportStar(require("./variable-type"), exports);
|
|
299
299
|
__exportStar(require("./variable-update"), exports);
|
|
300
|
+
__exportStar(require("./virtual-host"), exports);
|
|
301
|
+
__exportStar(require("./virtual-host-environment-create"), exports);
|
|
300
302
|
__exportStar(require("./virtual-host-options"), exports);
|
|
303
|
+
__exportStar(require("./virtual-host-relation"), exports);
|
|
@@ -31,4 +31,5 @@ var ResourceType;
|
|
|
31
31
|
ResourceType["SshKey"] = "ssh-key";
|
|
32
32
|
ResourceType["SslCertificate"] = "ssl-certificate";
|
|
33
33
|
ResourceType["Subnet"] = "subnet";
|
|
34
|
+
ResourceType["VirtualHost"] = "virtual-host";
|
|
34
35
|
})(ResourceType = exports.ResourceType || (exports.ResourceType = {}));
|
|
@@ -0,0 +1,42 @@
|
|
|
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 VirtualHostEnvironmentCreate
|
|
16
|
+
*/
|
|
17
|
+
export interface VirtualHostEnvironmentCreate {
|
|
18
|
+
/**
|
|
19
|
+
* The type of virtual host to be created. Must be one of <code>ip-based</code> or <code>name-based</code>.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof VirtualHostEnvironmentCreate
|
|
22
|
+
*/
|
|
23
|
+
type: string;
|
|
24
|
+
/**
|
|
25
|
+
* The name of the virtual host. Must not be greater than 255 characters.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof VirtualHostEnvironmentCreate
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
* The relative path for the application root directory. Must start with one of <code>/</code> Must not be greater than 255 characters.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof VirtualHostEnvironmentCreate
|
|
34
|
+
*/
|
|
35
|
+
root_directory: string;
|
|
36
|
+
/**
|
|
37
|
+
* The IP address of the server that will be used for forwarding. Must not be greater than 255 characters.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof VirtualHostEnvironmentCreate
|
|
40
|
+
*/
|
|
41
|
+
forward_server_address?: string;
|
|
42
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* devopness API
|
|
5
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* devopness API
|
|
3
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { UserRelation } from './user-relation';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface VirtualHostRelation
|
|
17
|
+
*/
|
|
18
|
+
export interface VirtualHostRelation {
|
|
19
|
+
/**
|
|
20
|
+
* Unique ID of the Virtual Host
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof VirtualHostRelation
|
|
23
|
+
*/
|
|
24
|
+
id: number;
|
|
25
|
+
/**
|
|
26
|
+
* The name of the Virtual Host
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof VirtualHostRelation
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
* The relative path to the root directory of the Virtual Host
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof VirtualHostRelation
|
|
35
|
+
*/
|
|
36
|
+
root_directory: string;
|
|
37
|
+
/**
|
|
38
|
+
* The address of the forward server
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof VirtualHostRelation
|
|
41
|
+
*/
|
|
42
|
+
forward_server_address: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {UserRelation}
|
|
46
|
+
* @memberof VirtualHostRelation
|
|
47
|
+
*/
|
|
48
|
+
created_by_user: UserRelation;
|
|
49
|
+
/**
|
|
50
|
+
* The date and time when the record was created
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof VirtualHostRelation
|
|
53
|
+
*/
|
|
54
|
+
created_at: string;
|
|
55
|
+
/**
|
|
56
|
+
* The date and time when the record was updated
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof VirtualHostRelation
|
|
59
|
+
*/
|
|
60
|
+
updated_at: string;
|
|
61
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* devopness API
|
|
5
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* devopness API
|
|
3
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: latest
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { UserRelation } from './user-relation';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface VirtualHost
|
|
17
|
+
*/
|
|
18
|
+
export interface VirtualHost {
|
|
19
|
+
/**
|
|
20
|
+
* Unique ID of the Virtual Host
|
|
21
|
+
* @type {number}
|
|
22
|
+
* @memberof VirtualHost
|
|
23
|
+
*/
|
|
24
|
+
id: number;
|
|
25
|
+
/**
|
|
26
|
+
* The name of the Virtual Host
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof VirtualHost
|
|
29
|
+
*/
|
|
30
|
+
name: string;
|
|
31
|
+
/**
|
|
32
|
+
* The relative path to the root directory of the Virtual Host
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof VirtualHost
|
|
35
|
+
*/
|
|
36
|
+
root_directory: string;
|
|
37
|
+
/**
|
|
38
|
+
* The address of the forward server
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof VirtualHost
|
|
41
|
+
*/
|
|
42
|
+
forward_server_address: string;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {UserRelation}
|
|
46
|
+
* @memberof VirtualHost
|
|
47
|
+
*/
|
|
48
|
+
created_by_user: UserRelation;
|
|
49
|
+
/**
|
|
50
|
+
* The date and time when the record was created
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof VirtualHost
|
|
53
|
+
*/
|
|
54
|
+
created_at: string;
|
|
55
|
+
/**
|
|
56
|
+
* The date and time when the record was updated
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof VirtualHost
|
|
59
|
+
*/
|
|
60
|
+
updated_at: string;
|
|
61
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* devopness API
|
|
5
|
+
* Devopness API - Painless essential DevOps to everyone
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: latest
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -10,6 +10,7 @@ import { EnvironmentsSSHKeysApiService } from '../api/generated/apis/environment
|
|
|
10
10
|
import { EnvironmentsTeamMembershipsApiService } from '../api/generated/apis/environments-team-memberships-api';
|
|
11
11
|
import { EnvironmentsTeamsApiService } from '../api/generated/apis/environments-teams-api';
|
|
12
12
|
import { EnvironmentsNetworksApiService } from '../api/generated/apis/environments-networks-api';
|
|
13
|
+
import { EnvironmentsVirtualHostsApiService } from '../api/generated/apis/environments-virtual-hosts-api';
|
|
13
14
|
export declare class EnvironmentService extends EnvironmentsApiService {
|
|
14
15
|
actions: EnvironmentsActionsApiService;
|
|
15
16
|
applications: EnvironmentsApplicationsApiService;
|
|
@@ -22,4 +23,5 @@ export declare class EnvironmentService extends EnvironmentsApiService {
|
|
|
22
23
|
sshKeys: EnvironmentsSSHKeysApiService;
|
|
23
24
|
teams: EnvironmentsTeamsApiService;
|
|
24
25
|
teamMemberships: EnvironmentsTeamMembershipsApiService;
|
|
26
|
+
virtualHosts: EnvironmentsVirtualHostsApiService;
|
|
25
27
|
}
|
|
@@ -13,6 +13,7 @@ const environments_sshkeys_api_1 = require("../api/generated/apis/environments-s
|
|
|
13
13
|
const environments_team_memberships_api_1 = require("../api/generated/apis/environments-team-memberships-api");
|
|
14
14
|
const environments_teams_api_1 = require("../api/generated/apis/environments-teams-api");
|
|
15
15
|
const environments_networks_api_1 = require("../api/generated/apis/environments-networks-api");
|
|
16
|
+
const environments_virtual_hosts_api_1 = require("../api/generated/apis/environments-virtual-hosts-api");
|
|
16
17
|
class EnvironmentService extends environments_api_1.EnvironmentsApiService {
|
|
17
18
|
constructor() {
|
|
18
19
|
super(...arguments);
|
|
@@ -27,6 +28,7 @@ class EnvironmentService extends environments_api_1.EnvironmentsApiService {
|
|
|
27
28
|
this.sshKeys = new environments_sshkeys_api_1.EnvironmentsSSHKeysApiService();
|
|
28
29
|
this.teams = new environments_teams_api_1.EnvironmentsTeamsApiService();
|
|
29
30
|
this.teamMemberships = new environments_team_memberships_api_1.EnvironmentsTeamMembershipsApiService();
|
|
31
|
+
this.virtualHosts = new environments_virtual_hosts_api_1.EnvironmentsVirtualHostsApiService();
|
|
30
32
|
}
|
|
31
33
|
}
|
|
32
34
|
exports.EnvironmentService = EnvironmentService;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VirtualHostService = void 0;
|
|
4
|
+
const virtual_hosts_api_1 = require("../api/generated/apis/virtual-hosts-api");
|
|
5
|
+
class VirtualHostService extends virtual_hosts_api_1.VirtualHostsApiService {
|
|
6
|
+
}
|
|
7
|
+
exports.VirtualHostService = VirtualHostService;
|