@devopness/sdk-js 2.130.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.
- package/dist/api/generated/apis/virtual-hosts-api.d.ts +8 -0
- package/dist/api/generated/apis/virtual-hosts-api.js +20 -0
- package/dist/api/generated/models/index.d.ts +1 -0
- package/dist/api/generated/models/index.js +1 -0
- package/dist/api/generated/models/linked-resource-attribute.d.ts +2 -2
- package/dist/api/generated/models/virtual-host-environment-create.d.ts +1 -1
- package/dist/api/generated/models/virtual-host-relation.d.ts +6 -0
- package/dist/api/generated/models/virtual-host-update.d.ts +42 -0
- package/dist/api/generated/models/virtual-host-update.js +14 -0
- package/dist/api/generated/models/virtual-host.d.ts +6 -0
- package/package.json +1 -1
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
13
|
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
14
|
import { VirtualHost } from '../../generated/models';
|
|
15
|
+
import { VirtualHostUpdate } from '../../generated/models';
|
|
15
16
|
/**
|
|
16
17
|
* VirtualHostsApiService - Auto-generated
|
|
17
18
|
*/
|
|
@@ -28,4 +29,11 @@ export declare class VirtualHostsApiService extends ApiBaseService {
|
|
|
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
|
}
|
|
@@ -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;
|
|
@@ -301,3 +301,4 @@ __exportStar(require("./virtual-host"), exports);
|
|
|
301
301
|
__exportStar(require("./virtual-host-environment-create"), exports);
|
|
302
302
|
__exportStar(require("./virtual-host-options"), exports);
|
|
303
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
|
|
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}
|
|
@@ -28,7 +28,7 @@ export interface VirtualHostEnvironmentCreate {
|
|
|
28
28
|
*/
|
|
29
29
|
name: string;
|
|
30
30
|
/**
|
|
31
|
-
* The relative path for the
|
|
31
|
+
* The relative path for the virtual host root directory. Must not be greater than 255 characters.
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof VirtualHostEnvironmentCreate
|
|
34
34
|
*/
|
|
@@ -22,6 +22,12 @@ export interface VirtualHostRelation {
|
|
|
22
22
|
* @memberof VirtualHostRelation
|
|
23
23
|
*/
|
|
24
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;
|
|
25
31
|
/**
|
|
26
32
|
* The name of the Virtual Host
|
|
27
33
|
* @type {string}
|
|
@@ -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 });
|
|
@@ -22,6 +22,12 @@ export interface VirtualHost {
|
|
|
22
22
|
* @memberof VirtualHost
|
|
23
23
|
*/
|
|
24
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;
|
|
25
31
|
/**
|
|
26
32
|
* The name of the Virtual Host
|
|
27
33
|
* @type {string}
|