@devopness/sdk-js 2.82.0 → 2.84.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.
Files changed (24) hide show
  1. package/dist/api/generated/apis/hooks-api.d.ts +0 -8
  2. package/dist/api/generated/apis/hooks-api.js +0 -20
  3. package/dist/api/generated/apis/subnets-api.d.ts +6 -0
  4. package/dist/api/generated/apis/subnets-api.js +16 -0
  5. package/dist/api/generated/models/action-target-server-data.d.ts +3 -3
  6. package/dist/api/generated/models/index.d.ts +3 -5
  7. package/dist/api/generated/models/index.js +3 -5
  8. package/dist/api/generated/models/resource-link-relation.d.ts +6 -0
  9. package/dist/api/generated/models/resource-type-related.d.ts +43 -0
  10. package/dist/api/generated/models/resource-type-relation.d.ts +13 -0
  11. package/dist/api/generated/models/{server-cloud-service-name.d.ts → server-cloud-service-code.d.ts} +4 -3
  12. package/dist/api/generated/models/{server-cloud-service-name.js → server-cloud-service-code.js} +8 -7
  13. package/dist/api/generated/models/server-environment-create.d.ts +5 -5
  14. package/dist/api/generated/models/server-provision-input.d.ts +47 -0
  15. package/dist/api/generated/models/server.d.ts +9 -3
  16. package/package.json +1 -1
  17. package/dist/api/generated/models/hook-create.d.ts +0 -83
  18. package/dist/api/generated/models/server-cloud-service.d.ts +0 -35
  19. package/dist/api/generated/models/server-provision-settings-input.d.ts +0 -25
  20. package/dist/api/generated/models/server-provision-settings-input.js +0 -14
  21. package/dist/api/generated/models/server-provision-settings.d.ts +0 -37
  22. package/dist/api/generated/models/server-provision-settings.js +0 -14
  23. /package/dist/api/generated/models/{hook-create.js → resource-type-related.js} +0 -0
  24. /package/dist/api/generated/models/{server-cloud-service.js → server-provision-input.js} +0 -0
@@ -12,20 +12,12 @@
12
12
  import { ApiBaseService } from "../../../services/ApiBaseService";
13
13
  import { ApiResponse } from "../../../common/ApiResponse";
14
14
  import { Hook } from '../../generated/models';
15
- import { HookCreate } from '../../generated/models';
16
15
  import { HookTriggerResponse } from '../../generated/models';
17
16
  import { HookUpdate } from '../../generated/models';
18
17
  /**
19
18
  * HooksApiService - Auto-generated
20
19
  */
21
20
  export declare class HooksApiService extends ApiBaseService {
22
- /**
23
- *
24
- * @summary Create a hook to a specific resource
25
- * @param {string} hookType The hook type.
26
- * @param {HookCreate} hookCreate A JSON object containing the resource data
27
- */
28
- addHook(hookType: string, hookCreate: HookCreate): Promise<ApiResponse<Hook>>;
29
21
  /**
30
22
  *
31
23
  * @summary Delete a given hook
@@ -29,26 +29,6 @@ const Exceptions_1 = require("../../../common/Exceptions");
29
29
  * HooksApiService - Auto-generated
30
30
  */
31
31
  class HooksApiService extends ApiBaseService_1.ApiBaseService {
32
- /**
33
- *
34
- * @summary Create a hook to a specific resource
35
- * @param {string} hookType The hook type.
36
- * @param {HookCreate} hookCreate A JSON object containing the resource data
37
- */
38
- addHook(hookType, hookCreate) {
39
- return __awaiter(this, void 0, void 0, function* () {
40
- if (hookType === null || hookType === undefined) {
41
- throw new Exceptions_1.ArgumentNullException('hookType', 'addHook');
42
- }
43
- if (hookCreate === null || hookCreate === undefined) {
44
- throw new Exceptions_1.ArgumentNullException('hookCreate', 'addHook');
45
- }
46
- let queryString = '';
47
- const requestUrl = '/hooks/{hook_type}' + (queryString ? `?${queryString}` : '');
48
- const response = yield this.post(requestUrl.replace(`{${"hook_type"}}`, encodeURIComponent(String(hookType))), hookCreate);
49
- return new ApiResponse_1.ApiResponse(response);
50
- });
51
- }
52
32
  /**
53
33
  *
54
34
  * @summary Delete a given hook
@@ -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 { ServerProvisionSettingsInput } from './server-provision-settings-input';
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 {ServerProvisionSettingsInput}
64
+ * @type {ServerProvisionInput}
65
65
  * @memberof ActionTargetServerData
66
66
  */
67
- provision_settings: ServerProvisionSettingsInput;
67
+ provision_input: ServerProvisionInput;
68
68
  }
@@ -83,7 +83,6 @@ export * from './environment-relation';
83
83
  export * from './environment-type';
84
84
  export * from './environment-update';
85
85
  export * from './hook';
86
- export * from './hook-create';
87
86
  export * from './hook-incoming-settings';
88
87
  export * from './hook-outgoing-request-header';
89
88
  export * from './hook-outgoing-settings';
@@ -153,6 +152,7 @@ export * from './resource-event-relation';
153
152
  export * from './resource-link-relation';
154
153
  export * from './resource-operation';
155
154
  export * from './resource-type';
155
+ export * from './resource-type-related';
156
156
  export * from './resource-type-relation';
157
157
  export * from './role';
158
158
  export * from './role-project-create';
@@ -162,12 +162,10 @@ export * from './script-runner';
162
162
  export * from './server';
163
163
  export * from './server-blueprint';
164
164
  export * from './server-blueprint-spec';
165
- export * from './server-cloud-service';
166
- export * from './server-cloud-service-name';
165
+ export * from './server-cloud-service-code';
167
166
  export * from './server-command';
168
167
  export * from './server-environment-create';
169
- export * from './server-provision-settings';
170
- export * from './server-provision-settings-input';
168
+ export * from './server-provision-input';
171
169
  export * from './server-relation';
172
170
  export * from './server-update';
173
171
  export * from './service';
@@ -99,7 +99,6 @@ __exportStar(require("./environment-relation"), exports);
99
99
  __exportStar(require("./environment-type"), exports);
100
100
  __exportStar(require("./environment-update"), exports);
101
101
  __exportStar(require("./hook"), exports);
102
- __exportStar(require("./hook-create"), exports);
103
102
  __exportStar(require("./hook-incoming-settings"), exports);
104
103
  __exportStar(require("./hook-outgoing-request-header"), exports);
105
104
  __exportStar(require("./hook-outgoing-settings"), exports);
@@ -169,6 +168,7 @@ __exportStar(require("./resource-event-relation"), exports);
169
168
  __exportStar(require("./resource-link-relation"), exports);
170
169
  __exportStar(require("./resource-operation"), exports);
171
170
  __exportStar(require("./resource-type"), exports);
171
+ __exportStar(require("./resource-type-related"), exports);
172
172
  __exportStar(require("./resource-type-relation"), exports);
173
173
  __exportStar(require("./role"), exports);
174
174
  __exportStar(require("./role-project-create"), exports);
@@ -178,12 +178,10 @@ __exportStar(require("./script-runner"), exports);
178
178
  __exportStar(require("./server"), exports);
179
179
  __exportStar(require("./server-blueprint"), exports);
180
180
  __exportStar(require("./server-blueprint-spec"), exports);
181
- __exportStar(require("./server-cloud-service"), exports);
182
- __exportStar(require("./server-cloud-service-name"), exports);
181
+ __exportStar(require("./server-cloud-service-code"), exports);
183
182
  __exportStar(require("./server-command"), exports);
184
183
  __exportStar(require("./server-environment-create"), exports);
185
- __exportStar(require("./server-provision-settings"), exports);
186
- __exportStar(require("./server-provision-settings-input"), exports);
184
+ __exportStar(require("./server-provision-input"), exports);
187
185
  __exportStar(require("./server-relation"), exports);
188
186
  __exportStar(require("./server-update"), exports);
189
187
  __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
  }
@@ -14,8 +14,9 @@
14
14
  * @export
15
15
  * @enum {string}
16
16
  */
17
- export declare enum ServerCloudServiceName {
18
- DigitaloceanDroplet = "digitalocean-droplet",
17
+ export declare enum ServerCloudServiceCode {
19
18
  AwsEc2 = "aws-ec2",
20
- GcpGce = "gcp-gce"
19
+ DigitaloceanDroplet = "digitalocean-droplet",
20
+ GcpGce = "gcp-gce",
21
+ SelfHostedCustom = "self-hosted-custom"
21
22
  }
@@ -12,15 +12,16 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.ServerCloudServiceName = void 0;
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 ServerCloudServiceName;
22
- (function (ServerCloudServiceName) {
23
- ServerCloudServiceName["DigitaloceanDroplet"] = "digitalocean-droplet";
24
- ServerCloudServiceName["AwsEc2"] = "aws-ec2";
25
- ServerCloudServiceName["GcpGce"] = "gcp-gce";
26
- })(ServerCloudServiceName = exports.ServerCloudServiceName || (exports.ServerCloudServiceName = {}));
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 { ServerProvisionSettings } from './server-provision-settings';
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>provision_settings.self_hosted</code> is <code>true</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>provision_settings.self_hosted</code> is <code>true</code>. Must be between 22 and 65535.
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 {ServerProvisionSettings}
52
+ * @type {ServerProvisionInput}
53
53
  * @memberof ServerEnvironmentCreate
54
54
  */
55
- provision_settings: ServerProvisionSettings;
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 { ServerProvisionSettingsInput } from './server-provision-settings-input';
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 {ServerProvisionSettingsInput}
112
+ * @type {ServerProvisionInput}
107
113
  * @memberof Server
108
114
  */
109
- provision_settings: ServerProvisionSettingsInput;
115
+ provision_input: ServerProvisionInput;
110
116
  /**
111
117
  *
112
118
  * @type {UserRelation}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devopness/sdk-js",
3
- "version": "2.82.0",
3
+ "version": "2.84.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -1,83 +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 { ActionType } from './action-type';
13
- import { HookIncomingSettings } from './hook-incoming-settings';
14
- import { HookOutgoingSettings } from './hook-outgoing-settings';
15
- import { HookTriggerWhen } from './hook-trigger-when';
16
- import { ResourceType } from './resource-type';
17
- /**
18
- *
19
- * @export
20
- * @interface HookCreate
21
- */
22
- export interface HookCreate {
23
- /**
24
- * The name of the outgoing hook. Must not be greater than 60 characters.
25
- * @type {string}
26
- * @memberof HookCreate
27
- */
28
- name: string;
29
- /**
30
- *
31
- * @type {ResourceType}
32
- * @memberof HookCreate
33
- */
34
- resource_type: ResourceType;
35
- /**
36
- * The hooks\' resource ID.
37
- * @type {number}
38
- * @memberof HookCreate
39
- */
40
- resource_id: number;
41
- /**
42
- *
43
- * @type {ActionType}
44
- * @memberof HookCreate
45
- */
46
- action_type: ActionType;
47
- /**
48
- * Determines if the hook is currently active.
49
- * @type {boolean}
50
- * @memberof HookCreate
51
- */
52
- active?: boolean;
53
- /**
54
- * Tells if requests to this hook must only be accepted when a HTTP header is sent with a message authentication code ([HMAC](https://en.wikipedia.org/wiki/HMAC)) generated based on the secret provided by Devopness and shared by user with external sources. This field is required when <code>type</code> is <code>in</code>.
55
- * @type {boolean}
56
- * @memberof HookCreate
57
- */
58
- requires_secret?: boolean;
59
- /**
60
- * The cryptographic hash function to be used by Devopness when validating digitally signed incoming requests for hooks that require secret validation. This field is required when <code>requires_secret</code> is <code>true</code>. Must be one of <code>sha256</code> Must not be greater than 20 characters.
61
- * @type {string}
62
- * @memberof HookCreate
63
- */
64
- secret_algorithm?: string;
65
- /**
66
- * The name of the HTTP request header from which the request digital signature should be extracted. This field is required when <code>requires_secret</code> is <code>true</code>. Must not be greater than 64 characters.
67
- * @type {string}
68
- * @memberof HookCreate
69
- */
70
- secret_header_name?: string;
71
- /**
72
- *
73
- * @type {HookTriggerWhen}
74
- * @memberof HookCreate
75
- */
76
- trigger_when?: HookTriggerWhen;
77
- /**
78
- *
79
- * @type {HookIncomingSettings | HookOutgoingSettings}
80
- * @memberof HookCreate
81
- */
82
- settings?: HookIncomingSettings | HookOutgoingSettings;
83
- }
@@ -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,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 });
@@ -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
- }
@@ -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 });