@devopness/sdk-js 2.83.0 → 2.85.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/subnets-api.d.ts +6 -0
- package/dist/api/generated/apis/subnets-api.js +16 -0
- package/dist/api/generated/models/action-target-server-data.d.ts +3 -3
- package/dist/api/generated/models/cloud-provider-options-relation.d.ts +7 -0
- package/dist/api/generated/models/{server-provision-settings.js → cloud-resource-type.d.ts} +10 -3
- package/dist/api/generated/models/cloud-resource-type.js +26 -0
- package/dist/api/generated/models/index.d.ts +4 -4
- package/dist/api/generated/models/index.js +4 -4
- package/dist/api/generated/models/resource-link-relation.d.ts +6 -0
- package/dist/api/generated/models/resource-type-related.d.ts +43 -0
- package/dist/api/generated/models/resource-type-relation.d.ts +13 -0
- package/dist/api/generated/models/{server-cloud-service-name.d.ts → server-cloud-service-code.d.ts} +4 -3
- package/dist/api/generated/models/{server-cloud-service-name.js → server-cloud-service-code.js} +8 -7
- package/dist/api/generated/models/server-environment-create.d.ts +5 -5
- package/dist/api/generated/models/server-provision-input.d.ts +47 -0
- package/dist/api/generated/models/server.d.ts +9 -3
- package/package.json +1 -1
- package/dist/api/generated/models/server-cloud-service.d.ts +0 -35
- package/dist/api/generated/models/server-provision-settings-input.d.ts +0 -25
- package/dist/api/generated/models/server-provision-settings.d.ts +0 -37
- /package/dist/api/generated/models/{server-cloud-service.js → resource-type-related.js} +0 -0
- /package/dist/api/generated/models/{server-provision-settings-input.js → server-provision-input.js} +0 -0
|
@@ -16,6 +16,12 @@ import { Subnet } from '../../generated/models';
|
|
|
16
16
|
* SubnetsApiService - Auto-generated
|
|
17
17
|
*/
|
|
18
18
|
export declare class SubnetsApiService extends ApiBaseService {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @summary Delete a given subnet
|
|
22
|
+
* @param {number} subnetId The ID of the subnet.
|
|
23
|
+
*/
|
|
24
|
+
deleteSubnet(subnetId: number): Promise<ApiResponse<void>>;
|
|
19
25
|
/**
|
|
20
26
|
*
|
|
21
27
|
* @summary Get a subnet by ID
|
|
@@ -29,6 +29,22 @@ const Exceptions_1 = require("../../../common/Exceptions");
|
|
|
29
29
|
* SubnetsApiService - Auto-generated
|
|
30
30
|
*/
|
|
31
31
|
class SubnetsApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @summary Delete a given subnet
|
|
35
|
+
* @param {number} subnetId The ID of the subnet.
|
|
36
|
+
*/
|
|
37
|
+
deleteSubnet(subnetId) {
|
|
38
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
if (subnetId === null || subnetId === undefined) {
|
|
40
|
+
throw new Exceptions_1.ArgumentNullException('subnetId', 'deleteSubnet');
|
|
41
|
+
}
|
|
42
|
+
let queryString = '';
|
|
43
|
+
const requestUrl = '/subnets/{subnet_id}' + (queryString ? `?${queryString}` : '');
|
|
44
|
+
const response = yield this.delete(requestUrl.replace(`{${"subnet_id"}}`, encodeURIComponent(String(subnetId))));
|
|
45
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
46
|
+
});
|
|
47
|
+
}
|
|
32
48
|
/**
|
|
33
49
|
*
|
|
34
50
|
* @summary Get a subnet by ID
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { CloudOsVersionCode } from './cloud-os-version-code';
|
|
13
|
-
import {
|
|
13
|
+
import { ServerProvisionInput } from './server-provision-input';
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
16
16
|
* @export
|
|
@@ -61,8 +61,8 @@ export interface ActionTargetServerData {
|
|
|
61
61
|
os_version_code: CloudOsVersionCode | null;
|
|
62
62
|
/**
|
|
63
63
|
*
|
|
64
|
-
* @type {
|
|
64
|
+
* @type {ServerProvisionInput}
|
|
65
65
|
* @memberof ActionTargetServerData
|
|
66
66
|
*/
|
|
67
|
-
|
|
67
|
+
provision_input: ServerProvisionInput;
|
|
68
68
|
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { CloudProviderService } from './cloud-provider-service';
|
|
13
13
|
import { CloudProviderSettingsList } from './cloud-provider-settings-list';
|
|
14
|
+
import { CloudResourceType } from './cloud-resource-type';
|
|
14
15
|
import { StaticCloudProviderCode } from './static-cloud-provider-code';
|
|
15
16
|
/**
|
|
16
17
|
*
|
|
@@ -42,6 +43,12 @@ export interface CloudProviderOptionsRelation {
|
|
|
42
43
|
* @memberof CloudProviderOptionsRelation
|
|
43
44
|
*/
|
|
44
45
|
logo_url: string;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {Array<CloudResourceType>}
|
|
49
|
+
* @memberof CloudProviderOptionsRelation
|
|
50
|
+
*/
|
|
51
|
+
supported_resource_types: Array<CloudResourceType>;
|
|
45
52
|
/**
|
|
46
53
|
*
|
|
47
54
|
* @type {Array<CloudProviderService>}
|
|
@@ -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,13 @@
|
|
|
11
9
|
* https://openapi-generator.tech
|
|
12
10
|
* Do not edit the class manually.
|
|
13
11
|
*/
|
|
14
|
-
|
|
12
|
+
/**
|
|
13
|
+
* The name of a cloud resource type
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum CloudResourceType {
|
|
18
|
+
Network = "network",
|
|
19
|
+
Server = "server",
|
|
20
|
+
Subnet = "subnet"
|
|
21
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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 });
|
|
15
|
+
exports.CloudResourceType = void 0;
|
|
16
|
+
/**
|
|
17
|
+
* The name of a cloud resource type
|
|
18
|
+
* @export
|
|
19
|
+
* @enum {string}
|
|
20
|
+
*/
|
|
21
|
+
var CloudResourceType;
|
|
22
|
+
(function (CloudResourceType) {
|
|
23
|
+
CloudResourceType["Network"] = "network";
|
|
24
|
+
CloudResourceType["Server"] = "server";
|
|
25
|
+
CloudResourceType["Subnet"] = "subnet";
|
|
26
|
+
})(CloudResourceType = exports.CloudResourceType || (exports.CloudResourceType = {}));
|
|
@@ -48,6 +48,7 @@ export * from './cloud-provider-service-region';
|
|
|
48
48
|
export * from './cloud-provider-service-resource-type';
|
|
49
49
|
export * from './cloud-provider-service-resource-type-scope';
|
|
50
50
|
export * from './cloud-provider-settings-list';
|
|
51
|
+
export * from './cloud-resource-type';
|
|
51
52
|
export * from './cloud-service-settings-aws-ec2';
|
|
52
53
|
export * from './cloud-service-settings-digital-ocean-droplet';
|
|
53
54
|
export * from './cloud-service-settings-gcp-gce';
|
|
@@ -152,6 +153,7 @@ export * from './resource-event-relation';
|
|
|
152
153
|
export * from './resource-link-relation';
|
|
153
154
|
export * from './resource-operation';
|
|
154
155
|
export * from './resource-type';
|
|
156
|
+
export * from './resource-type-related';
|
|
155
157
|
export * from './resource-type-relation';
|
|
156
158
|
export * from './role';
|
|
157
159
|
export * from './role-project-create';
|
|
@@ -161,12 +163,10 @@ export * from './script-runner';
|
|
|
161
163
|
export * from './server';
|
|
162
164
|
export * from './server-blueprint';
|
|
163
165
|
export * from './server-blueprint-spec';
|
|
164
|
-
export * from './server-cloud-service';
|
|
165
|
-
export * from './server-cloud-service-name';
|
|
166
|
+
export * from './server-cloud-service-code';
|
|
166
167
|
export * from './server-command';
|
|
167
168
|
export * from './server-environment-create';
|
|
168
|
-
export * from './server-provision-
|
|
169
|
-
export * from './server-provision-settings-input';
|
|
169
|
+
export * from './server-provision-input';
|
|
170
170
|
export * from './server-relation';
|
|
171
171
|
export * from './server-update';
|
|
172
172
|
export * from './service';
|
|
@@ -64,6 +64,7 @@ __exportStar(require("./cloud-provider-service-region"), exports);
|
|
|
64
64
|
__exportStar(require("./cloud-provider-service-resource-type"), exports);
|
|
65
65
|
__exportStar(require("./cloud-provider-service-resource-type-scope"), exports);
|
|
66
66
|
__exportStar(require("./cloud-provider-settings-list"), exports);
|
|
67
|
+
__exportStar(require("./cloud-resource-type"), exports);
|
|
67
68
|
__exportStar(require("./cloud-service-settings-aws-ec2"), exports);
|
|
68
69
|
__exportStar(require("./cloud-service-settings-digital-ocean-droplet"), exports);
|
|
69
70
|
__exportStar(require("./cloud-service-settings-gcp-gce"), exports);
|
|
@@ -168,6 +169,7 @@ __exportStar(require("./resource-event-relation"), exports);
|
|
|
168
169
|
__exportStar(require("./resource-link-relation"), exports);
|
|
169
170
|
__exportStar(require("./resource-operation"), exports);
|
|
170
171
|
__exportStar(require("./resource-type"), exports);
|
|
172
|
+
__exportStar(require("./resource-type-related"), exports);
|
|
171
173
|
__exportStar(require("./resource-type-relation"), exports);
|
|
172
174
|
__exportStar(require("./role"), exports);
|
|
173
175
|
__exportStar(require("./role-project-create"), exports);
|
|
@@ -177,12 +179,10 @@ __exportStar(require("./script-runner"), exports);
|
|
|
177
179
|
__exportStar(require("./server"), exports);
|
|
178
180
|
__exportStar(require("./server-blueprint"), exports);
|
|
179
181
|
__exportStar(require("./server-blueprint-spec"), exports);
|
|
180
|
-
__exportStar(require("./server-cloud-service"), exports);
|
|
181
|
-
__exportStar(require("./server-cloud-service-name"), exports);
|
|
182
|
+
__exportStar(require("./server-cloud-service-code"), exports);
|
|
182
183
|
__exportStar(require("./server-command"), exports);
|
|
183
184
|
__exportStar(require("./server-environment-create"), exports);
|
|
184
|
-
__exportStar(require("./server-provision-
|
|
185
|
-
__exportStar(require("./server-provision-settings-input"), exports);
|
|
185
|
+
__exportStar(require("./server-provision-input"), exports);
|
|
186
186
|
__exportStar(require("./server-relation"), exports);
|
|
187
187
|
__exportStar(require("./server-update"), exports);
|
|
188
188
|
__exportStar(require("./service"), exports);
|
|
@@ -40,6 +40,12 @@ export interface ResourceLinkRelation {
|
|
|
40
40
|
* @memberof ResourceLinkRelation
|
|
41
41
|
*/
|
|
42
42
|
resource_id: string;
|
|
43
|
+
/**
|
|
44
|
+
* If false, the link cannot be manually removed
|
|
45
|
+
* @type {boolean}
|
|
46
|
+
* @memberof ResourceLinkRelation
|
|
47
|
+
*/
|
|
48
|
+
can_be_unlinked: boolean;
|
|
43
49
|
/**
|
|
44
50
|
*
|
|
45
51
|
* @type {LinkedResourceData}
|
|
@@ -0,0 +1,43 @@
|
|
|
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 { ResourceType } from './resource-type';
|
|
13
|
+
/**
|
|
14
|
+
* A related resource type
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ResourceTypeRelated
|
|
17
|
+
*/
|
|
18
|
+
export interface ResourceTypeRelated {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {ResourceType}
|
|
22
|
+
* @memberof ResourceTypeRelated
|
|
23
|
+
*/
|
|
24
|
+
resource_type?: ResourceType;
|
|
25
|
+
/**
|
|
26
|
+
* Human readable version of the resource type name
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ResourceTypeRelated
|
|
29
|
+
*/
|
|
30
|
+
resource_type_human_readable?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Plural human readable version of the resource type name
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof ResourceTypeRelated
|
|
35
|
+
*/
|
|
36
|
+
resource_type_human_readable_plural?: string;
|
|
37
|
+
/**
|
|
38
|
+
* If true, the relation with this resource type can be changed manually by the user
|
|
39
|
+
* @type {boolean}
|
|
40
|
+
* @memberof ResourceTypeRelated
|
|
41
|
+
*/
|
|
42
|
+
can_be_linked?: boolean;
|
|
43
|
+
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { ResourceOperation } from './resource-operation';
|
|
13
13
|
import { ResourceType } from './resource-type';
|
|
14
|
+
import { ResourceTypeRelated } from './resource-type-related';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
16
17
|
* @export
|
|
@@ -41,4 +42,16 @@ export interface ResourceTypeRelation {
|
|
|
41
42
|
* @memberof ResourceTypeRelation
|
|
42
43
|
*/
|
|
43
44
|
supported_operations: Array<ResourceOperation>;
|
|
45
|
+
/**
|
|
46
|
+
* A list of related resources
|
|
47
|
+
* @type {Array<ResourceTypeRelated>}
|
|
48
|
+
* @memberof ResourceTypeRelation
|
|
49
|
+
*/
|
|
50
|
+
can_be_child_of: Array<ResourceTypeRelated>;
|
|
51
|
+
/**
|
|
52
|
+
* A list of related resources
|
|
53
|
+
* @type {Array<ResourceTypeRelated>}
|
|
54
|
+
* @memberof ResourceTypeRelation
|
|
55
|
+
*/
|
|
56
|
+
can_be_parent_of: Array<ResourceTypeRelated>;
|
|
44
57
|
}
|
package/dist/api/generated/models/{server-cloud-service-name.d.ts → server-cloud-service-code.d.ts}
RENAMED
|
@@ -14,8 +14,9 @@
|
|
|
14
14
|
* @export
|
|
15
15
|
* @enum {string}
|
|
16
16
|
*/
|
|
17
|
-
export declare enum
|
|
18
|
-
DigitaloceanDroplet = "digitalocean-droplet",
|
|
17
|
+
export declare enum ServerCloudServiceCode {
|
|
19
18
|
AwsEc2 = "aws-ec2",
|
|
20
|
-
|
|
19
|
+
DigitaloceanDroplet = "digitalocean-droplet",
|
|
20
|
+
GcpGce = "gcp-gce",
|
|
21
|
+
SelfHostedCustom = "self-hosted-custom"
|
|
21
22
|
}
|
package/dist/api/generated/models/{server-cloud-service-name.js → server-cloud-service-code.js}
RENAMED
|
@@ -12,15 +12,16 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.
|
|
15
|
+
exports.ServerCloudServiceCode = void 0;
|
|
16
16
|
/**
|
|
17
17
|
* The name of the cloud service used to provide the cloud instance
|
|
18
18
|
* @export
|
|
19
19
|
* @enum {string}
|
|
20
20
|
*/
|
|
21
|
-
var
|
|
22
|
-
(function (
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
var ServerCloudServiceCode;
|
|
22
|
+
(function (ServerCloudServiceCode) {
|
|
23
|
+
ServerCloudServiceCode["AwsEc2"] = "aws-ec2";
|
|
24
|
+
ServerCloudServiceCode["DigitaloceanDroplet"] = "digitalocean-droplet";
|
|
25
|
+
ServerCloudServiceCode["GcpGce"] = "gcp-gce";
|
|
26
|
+
ServerCloudServiceCode["SelfHostedCustom"] = "self-hosted-custom";
|
|
27
|
+
})(ServerCloudServiceCode = exports.ServerCloudServiceCode || (exports.ServerCloudServiceCode = {}));
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { BlueprintService } from './blueprint-service';
|
|
13
|
-
import {
|
|
13
|
+
import { ServerProvisionInput } from './server-provision-input';
|
|
14
14
|
/**
|
|
15
15
|
*
|
|
16
16
|
* @export
|
|
@@ -24,13 +24,13 @@ export interface ServerEnvironmentCreate {
|
|
|
24
24
|
*/
|
|
25
25
|
hostname: string;
|
|
26
26
|
/**
|
|
27
|
-
* Public ipv4 address for server access. This field is required when <code>
|
|
27
|
+
* Public ipv4 address for server access. This field is required when <code>provision_input.cloud_service_code</code> is <code>self-hosted-custom</code>.
|
|
28
28
|
* @type {string}
|
|
29
29
|
* @memberof ServerEnvironmentCreate
|
|
30
30
|
*/
|
|
31
31
|
ip_address?: string;
|
|
32
32
|
/**
|
|
33
|
-
* The network port to which the SSH daemon is listening to SSH connections on the server. This field is required when <code>
|
|
33
|
+
* The network port to which the SSH daemon is listening to SSH connections on the server. This field is required when <code>provision_input.cloud_service_code</code> is <code>self-hosted-custom</code>. Must be between 22 and 65535.
|
|
34
34
|
* @type {number}
|
|
35
35
|
* @memberof ServerEnvironmentCreate
|
|
36
36
|
*/
|
|
@@ -49,8 +49,8 @@ export interface ServerEnvironmentCreate {
|
|
|
49
49
|
blueprint?: Array<BlueprintService>;
|
|
50
50
|
/**
|
|
51
51
|
*
|
|
52
|
-
* @type {
|
|
52
|
+
* @type {ServerProvisionInput}
|
|
53
53
|
* @memberof ServerEnvironmentCreate
|
|
54
54
|
*/
|
|
55
|
-
|
|
55
|
+
provision_input: ServerProvisionInput;
|
|
56
56
|
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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 { CloudServiceSettingsAwsEc2 } from './cloud-service-settings-aws-ec2';
|
|
13
|
+
import { CloudServiceSettingsDigitalOceanDroplet } from './cloud-service-settings-digital-ocean-droplet';
|
|
14
|
+
import { CloudServiceSettingsGcpGce } from './cloud-service-settings-gcp-gce';
|
|
15
|
+
import { CloudServiceSettingsSelfHostedCustom } from './cloud-service-settings-self-hosted-custom';
|
|
16
|
+
import { ServerCloudServiceCode } from './server-cloud-service-code';
|
|
17
|
+
/**
|
|
18
|
+
* Configuration used to launch cloud instance
|
|
19
|
+
* @export
|
|
20
|
+
* @interface ServerProvisionInput
|
|
21
|
+
*/
|
|
22
|
+
export interface ServerProvisionInput {
|
|
23
|
+
/**
|
|
24
|
+
* The unique id of the cloud provider credential to be used on connect to cloud provider
|
|
25
|
+
* @type {number}
|
|
26
|
+
* @memberof ServerProvisionInput
|
|
27
|
+
*/
|
|
28
|
+
credential_id?: number;
|
|
29
|
+
/**
|
|
30
|
+
* The ID of the subnet where to create the server. If not defined, create the server on the default subnet of the cloud provider
|
|
31
|
+
* @type {number}
|
|
32
|
+
* @memberof ServerProvisionInput
|
|
33
|
+
*/
|
|
34
|
+
subnet_id?: number;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {ServerCloudServiceCode}
|
|
38
|
+
* @memberof ServerProvisionInput
|
|
39
|
+
*/
|
|
40
|
+
cloud_service_code: ServerCloudServiceCode;
|
|
41
|
+
/**
|
|
42
|
+
* The configurations used to cloud service
|
|
43
|
+
* @type {CloudServiceSettingsAwsEc2 | CloudServiceSettingsDigitalOceanDroplet | CloudServiceSettingsGcpGce | CloudServiceSettingsSelfHostedCustom}
|
|
44
|
+
* @memberof ServerProvisionInput
|
|
45
|
+
*/
|
|
46
|
+
settings?: CloudServiceSettingsAwsEc2 | CloudServiceSettingsDigitalOceanDroplet | CloudServiceSettingsGcpGce | CloudServiceSettingsSelfHostedCustom;
|
|
47
|
+
}
|
|
@@ -15,7 +15,7 @@ import { CloudOsVersionCode } from './cloud-os-version-code';
|
|
|
15
15
|
import { EnvironmentRelation } from './environment-relation';
|
|
16
16
|
import { ProjectRelation } from './project-relation';
|
|
17
17
|
import { ServerBlueprint } from './server-blueprint';
|
|
18
|
-
import {
|
|
18
|
+
import { ServerProvisionInput } from './server-provision-input';
|
|
19
19
|
import { UserRelation } from './user-relation';
|
|
20
20
|
/**
|
|
21
21
|
*
|
|
@@ -59,6 +59,12 @@ export interface Server {
|
|
|
59
59
|
* @memberof Server
|
|
60
60
|
*/
|
|
61
61
|
provider_name_human_readable: string;
|
|
62
|
+
/**
|
|
63
|
+
* The cloud service code
|
|
64
|
+
* @type {string}
|
|
65
|
+
* @memberof Server
|
|
66
|
+
*/
|
|
67
|
+
cloud_service_code: string;
|
|
62
68
|
/**
|
|
63
69
|
* Public ipv4 address for server access
|
|
64
70
|
* @type {string}
|
|
@@ -103,10 +109,10 @@ export interface Server {
|
|
|
103
109
|
blueprint: ServerBlueprint;
|
|
104
110
|
/**
|
|
105
111
|
*
|
|
106
|
-
* @type {
|
|
112
|
+
* @type {ServerProvisionInput}
|
|
107
113
|
* @memberof Server
|
|
108
114
|
*/
|
|
109
|
-
|
|
115
|
+
provision_input: ServerProvisionInput;
|
|
110
116
|
/**
|
|
111
117
|
*
|
|
112
118
|
* @type {UserRelation}
|
package/package.json
CHANGED
|
@@ -1,35 +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 { CloudServiceSettingsAwsEc2 } from './cloud-service-settings-aws-ec2';
|
|
13
|
-
import { CloudServiceSettingsDigitalOceanDroplet } from './cloud-service-settings-digital-ocean-droplet';
|
|
14
|
-
import { CloudServiceSettingsGcpGce } from './cloud-service-settings-gcp-gce';
|
|
15
|
-
import { CloudServiceSettingsSelfHostedCustom } from './cloud-service-settings-self-hosted-custom';
|
|
16
|
-
import { ServerCloudServiceName } from './server-cloud-service-name';
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
19
|
-
* @export
|
|
20
|
-
* @interface ServerCloudService
|
|
21
|
-
*/
|
|
22
|
-
export interface ServerCloudService {
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
* @type {ServerCloudServiceName}
|
|
26
|
-
* @memberof ServerCloudService
|
|
27
|
-
*/
|
|
28
|
-
name: ServerCloudServiceName;
|
|
29
|
-
/**
|
|
30
|
-
* The configurations used to cloud service
|
|
31
|
-
* @type {CloudServiceSettingsAwsEc2 | CloudServiceSettingsDigitalOceanDroplet | CloudServiceSettingsGcpGce | CloudServiceSettingsSelfHostedCustom}
|
|
32
|
-
* @memberof ServerCloudService
|
|
33
|
-
*/
|
|
34
|
-
settings: CloudServiceSettingsAwsEc2 | CloudServiceSettingsDigitalOceanDroplet | CloudServiceSettingsGcpGce | CloudServiceSettingsSelfHostedCustom;
|
|
35
|
-
}
|
|
@@ -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 { ServerCloudService } from './server-cloud-service';
|
|
13
|
-
/**
|
|
14
|
-
* Configuration used to launch this server
|
|
15
|
-
* @export
|
|
16
|
-
* @interface ServerProvisionSettingsInput
|
|
17
|
-
*/
|
|
18
|
-
export interface ServerProvisionSettingsInput {
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @type {ServerCloudService}
|
|
22
|
-
* @memberof ServerProvisionSettingsInput
|
|
23
|
-
*/
|
|
24
|
-
cloud_service: ServerCloudService | null;
|
|
25
|
-
}
|
|
@@ -1,37 +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 { ServerCloudService } from './server-cloud-service';
|
|
13
|
-
/**
|
|
14
|
-
* Configuration used to launch cloud instance
|
|
15
|
-
* @export
|
|
16
|
-
* @interface ServerProvisionSettings
|
|
17
|
-
*/
|
|
18
|
-
export interface ServerProvisionSettings {
|
|
19
|
-
/**
|
|
20
|
-
* Determines if the server is `self-hosted` or from a cloud service
|
|
21
|
-
* @type {boolean}
|
|
22
|
-
* @memberof ServerProvisionSettings
|
|
23
|
-
*/
|
|
24
|
-
self_hosted?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* The unique id of the cloud provider credential to be used on connect to cloud provider
|
|
27
|
-
* @type {number}
|
|
28
|
-
* @memberof ServerProvisionSettings
|
|
29
|
-
*/
|
|
30
|
-
credential_id?: number;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @type {ServerCloudService}
|
|
34
|
-
* @memberof ServerProvisionSettings
|
|
35
|
-
*/
|
|
36
|
-
cloud_service: ServerCloudService;
|
|
37
|
-
}
|
|
File without changes
|
/package/dist/api/generated/models/{server-provision-settings-input.js → server-provision-input.js}
RENAMED
|
File without changes
|