@devopness/sdk-js 2.129.0 → 2.131.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.
@@ -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,39 @@
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 { VirtualHostUpdate } from '../../generated/models';
16
+ /**
17
+ * VirtualHostsApiService - Auto-generated
18
+ */
19
+ export declare class VirtualHostsApiService extends ApiBaseService {
20
+ /**
21
+ *
22
+ * @summary Delete a given virtual host
23
+ * @param {number} virtualHostId The ID of the virtual host.
24
+ */
25
+ deleteVirtualHost(virtualHostId: number): Promise<ApiResponse<void>>;
26
+ /**
27
+ *
28
+ * @summary Get an virtual host by ID
29
+ * @param {number} virtualHostId The ID of the virtual host.
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>>;
39
+ }
@@ -0,0 +1,85 @@
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
+ *
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
+ }
84
+ }
85
+ exports.VirtualHostsApiService = VirtualHostsApiService;
@@ -281,4 +281,8 @@ 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';
288
+ export * from './virtual-host-update';
@@ -297,4 +297,8 @@ __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);
304
+ __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?: string;
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?: string;
29
+ field_name_human_readable: string;
30
30
  /**
31
31
  * The attribute value
32
32
  * @type {string}
@@ -25,5 +25,6 @@ export declare enum ResourceType {
25
25
  Service = "service",
26
26
  SshKey = "ssh-key",
27
27
  SslCertificate = "ssl-certificate",
28
- Subnet = "subnet"
28
+ Subnet = "subnet",
29
+ VirtualHost = "virtual-host"
29
30
  }
@@ -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 virtual host root directory. 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,67 @@
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 type of the Virtual Host (`name-based` or `ip-based`)
27
+ * @type {string}
28
+ * @memberof VirtualHostRelation
29
+ */
30
+ type: string;
31
+ /**
32
+ * The name of the Virtual Host
33
+ * @type {string}
34
+ * @memberof VirtualHostRelation
35
+ */
36
+ name: string;
37
+ /**
38
+ * The relative path to the root directory of the Virtual Host
39
+ * @type {string}
40
+ * @memberof VirtualHostRelation
41
+ */
42
+ root_directory: string;
43
+ /**
44
+ * The address of the forward server
45
+ * @type {string}
46
+ * @memberof VirtualHostRelation
47
+ */
48
+ forward_server_address: string;
49
+ /**
50
+ *
51
+ * @type {UserRelation}
52
+ * @memberof VirtualHostRelation
53
+ */
54
+ created_by_user: UserRelation;
55
+ /**
56
+ * The date and time when the record was created
57
+ * @type {string}
58
+ * @memberof VirtualHostRelation
59
+ */
60
+ created_at: string;
61
+ /**
62
+ * The date and time when the record was updated
63
+ * @type {string}
64
+ * @memberof VirtualHostRelation
65
+ */
66
+ updated_at: string;
67
+ }
@@ -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,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 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 relative path to the virtual host root directory. Must not be greater than 255 characters.
32
+ * @type {string}
33
+ * @memberof VirtualHostUpdate
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 VirtualHostUpdate
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,67 @@
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 type of Virtual Host (`name-based` or `ip-based`)
27
+ * @type {string}
28
+ * @memberof VirtualHost
29
+ */
30
+ type: string;
31
+ /**
32
+ * The name of the Virtual Host
33
+ * @type {string}
34
+ * @memberof VirtualHost
35
+ */
36
+ name: string;
37
+ /**
38
+ * The relative path to the root directory of the Virtual Host
39
+ * @type {string}
40
+ * @memberof VirtualHost
41
+ */
42
+ root_directory: string;
43
+ /**
44
+ * The address of the forward server
45
+ * @type {string}
46
+ * @memberof VirtualHost
47
+ */
48
+ forward_server_address: string;
49
+ /**
50
+ *
51
+ * @type {UserRelation}
52
+ * @memberof VirtualHost
53
+ */
54
+ created_by_user: UserRelation;
55
+ /**
56
+ * The date and time when the record was created
57
+ * @type {string}
58
+ * @memberof VirtualHost
59
+ */
60
+ created_at: string;
61
+ /**
62
+ * The date and time when the record was updated
63
+ * @type {string}
64
+ * @memberof VirtualHost
65
+ */
66
+ updated_at: string;
67
+ }
@@ -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,3 @@
1
+ import { VirtualHostsApiService } from '../api/generated/apis/virtual-hosts-api';
2
+ export declare class VirtualHostService extends VirtualHostsApiService {
3
+ }
@@ -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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devopness/sdk-js",
3
- "version": "2.129.0",
3
+ "version": "2.131.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },