@devopness/sdk-js 2.81.0 → 2.83.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/hooks-api.d.ts +0 -8
- package/dist/api/generated/apis/hooks-api.js +0 -20
- package/dist/api/generated/apis/networks-api.d.ts +6 -0
- package/dist/api/generated/apis/networks-api.js +16 -0
- package/dist/api/generated/apis/networks-subnets-api.d.ts +36 -0
- package/dist/api/generated/apis/networks-subnets-api.js +78 -0
- package/dist/api/generated/apis/subnets-api.d.ts +25 -0
- package/dist/api/generated/apis/subnets-api.js +49 -0
- package/dist/api/generated/models/action-target.d.ts +6 -0
- package/dist/api/generated/models/{cloud-provider-credential-settings.d.ts → cloud-provider-input-settings.d.ts} +7 -7
- package/dist/api/generated/models/cloud-provider-relation.d.ts +42 -0
- package/dist/api/generated/models/cloud-provider-service-region.d.ts +6 -0
- package/dist/api/generated/models/cloud-provider-service-resource-type-scope.d.ts +21 -0
- package/dist/api/generated/models/cloud-provider-service-resource-type-scope.js +26 -0
- package/dist/api/generated/models/cloud-provider-service-resource-type.d.ts +44 -0
- package/dist/api/generated/models/cloud-provider-service-resource-type.js +14 -0
- package/dist/api/generated/models/cloud-provider-service.d.ts +14 -0
- package/dist/api/generated/models/cloud-provider-settings-list.d.ts +3 -3
- package/dist/api/generated/models/index.d.ts +13 -2
- package/dist/api/generated/models/index.js +13 -2
- package/dist/api/generated/models/network-environment-create.d.ts +1 -1
- 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/server-environment-create.d.ts +1 -1
- package/dist/api/generated/models/subnet-network-create.d.ts +38 -0
- package/dist/api/generated/models/subnet-network-create.js +14 -0
- package/dist/api/generated/models/subnet-provision-input-settings-aws.d.ts +30 -0
- package/dist/api/generated/models/subnet-provision-input-settings-aws.js +14 -0
- package/dist/api/generated/models/subnet-provision-input-settings-digital-ocean.d.ts +24 -0
- package/dist/api/generated/models/subnet-provision-input-settings-digital-ocean.js +14 -0
- package/dist/api/generated/models/subnet-provision-input-settings-gcp.d.ts +36 -0
- package/dist/api/generated/models/subnet-provision-input-settings-gcp.js +14 -0
- package/dist/api/generated/models/subnet-provision-input-settings.d.ts +19 -0
- package/dist/api/generated/models/subnet-provision-input-settings.js +14 -0
- package/dist/api/generated/models/subnet-provision-input.d.ts +31 -0
- package/dist/api/generated/models/subnet-provision-input.js +14 -0
- package/dist/api/generated/models/subnet-relation.d.ts +86 -0
- package/dist/api/generated/models/subnet-relation.js +14 -0
- package/dist/api/generated/models/subnet-type.d.ts +20 -0
- package/dist/api/generated/models/subnet-type.js +25 -0
- package/dist/api/generated/models/subnet.d.ts +97 -0
- package/dist/api/generated/models/subnet.js +14 -0
- package/dist/services/NetworkService.d.ts +2 -0
- package/dist/services/NetworkService.js +5 -0
- package/dist/services/SubnetService.d.ts +3 -0
- package/dist/services/SubnetService.js +7 -0
- package/package.json +1 -1
- package/dist/api/generated/models/hook-create.d.ts +0 -83
- /package/dist/api/generated/models/{cloud-provider-credential-settings.js → cloud-provider-input-settings.js} +0 -0
- /package/dist/api/generated/models/{hook-create.js → cloud-provider-relation.js} +0 -0
|
@@ -23,6 +23,7 @@ import { SourceProviderService } from './services/SourceProviderService';
|
|
|
23
23
|
import { SshKeyService } from './services/SshKeyService';
|
|
24
24
|
import { SslCertificateService } from './services/SslCertificateService';
|
|
25
25
|
import { StaticService } from './services/StaticService';
|
|
26
|
+
import { SubnetService } from './services/SubnetService';
|
|
26
27
|
import { TeamInvitationService } from './services/TeamInvitationService';
|
|
27
28
|
import { TeamService } from './services/TeamService';
|
|
28
29
|
import { UserService } from './services/UserService';
|
|
@@ -52,6 +53,7 @@ export declare class DevopnessApiClient {
|
|
|
52
53
|
sshKeys: SshKeyService;
|
|
53
54
|
sslCertificates: SslCertificateService;
|
|
54
55
|
static: StaticService;
|
|
56
|
+
subnets: SubnetService;
|
|
55
57
|
teamInvitations: TeamInvitationService;
|
|
56
58
|
teams: TeamService;
|
|
57
59
|
users: UserService;
|
|
@@ -26,6 +26,7 @@ const SourceProviderService_1 = require("./services/SourceProviderService");
|
|
|
26
26
|
const SshKeyService_1 = require("./services/SshKeyService");
|
|
27
27
|
const SslCertificateService_1 = require("./services/SslCertificateService");
|
|
28
28
|
const StaticService_1 = require("./services/StaticService");
|
|
29
|
+
const SubnetService_1 = require("./services/SubnetService");
|
|
29
30
|
const TeamInvitationService_1 = require("./services/TeamInvitationService");
|
|
30
31
|
const TeamService_1 = require("./services/TeamService");
|
|
31
32
|
const UserService_1 = require("./services/UserService");
|
|
@@ -60,6 +61,7 @@ class DevopnessApiClient {
|
|
|
60
61
|
this.sshKeys = new SshKeyService_1.SshKeyService();
|
|
61
62
|
this.sslCertificates = new SslCertificateService_1.SslCertificateService();
|
|
62
63
|
this.static = new StaticService_1.StaticService();
|
|
64
|
+
this.subnets = new SubnetService_1.SubnetService();
|
|
63
65
|
this.teamInvitations = new TeamInvitationService_1.TeamInvitationService();
|
|
64
66
|
this.teams = new TeamService_1.TeamService();
|
|
65
67
|
this.users = new UserService_1.UserService();
|
|
@@ -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 { Network } from '../../generated/models';
|
|
|
16
16
|
* NetworksApiService - Auto-generated
|
|
17
17
|
*/
|
|
18
18
|
export declare class NetworksApiService extends ApiBaseService {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @summary Delete a given network
|
|
22
|
+
* @param {number} networkId The ID of the network.
|
|
23
|
+
*/
|
|
24
|
+
deleteNetwork(networkId: number): Promise<ApiResponse<void>>;
|
|
19
25
|
/**
|
|
20
26
|
*
|
|
21
27
|
* @summary Get a network by ID
|
|
@@ -29,6 +29,22 @@ const Exceptions_1 = require("../../../common/Exceptions");
|
|
|
29
29
|
* NetworksApiService - Auto-generated
|
|
30
30
|
*/
|
|
31
31
|
class NetworksApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @summary Delete a given network
|
|
35
|
+
* @param {number} networkId The ID of the network.
|
|
36
|
+
*/
|
|
37
|
+
deleteNetwork(networkId) {
|
|
38
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
if (networkId === null || networkId === undefined) {
|
|
40
|
+
throw new Exceptions_1.ArgumentNullException('networkId', 'deleteNetwork');
|
|
41
|
+
}
|
|
42
|
+
let queryString = '';
|
|
43
|
+
const requestUrl = '/networks/{network_id}' + (queryString ? `?${queryString}` : '');
|
|
44
|
+
const response = yield this.delete(requestUrl.replace(`{${"network_id"}}`, encodeURIComponent(String(networkId))));
|
|
45
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
46
|
+
});
|
|
47
|
+
}
|
|
32
48
|
/**
|
|
33
49
|
*
|
|
34
50
|
* @summary Get a network by ID
|
|
@@ -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 { Subnet } from '../../generated/models';
|
|
15
|
+
import { SubnetNetworkCreate } from '../../generated/models';
|
|
16
|
+
import { SubnetRelation } from '../../generated/models';
|
|
17
|
+
/**
|
|
18
|
+
* NetworksSubnetsApiService - Auto-generated
|
|
19
|
+
*/
|
|
20
|
+
export declare class NetworksSubnetsApiService extends ApiBaseService {
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @summary Create a new subnet for the given network
|
|
24
|
+
* @param {number} networkId The ID of the network.
|
|
25
|
+
* @param {SubnetNetworkCreate} subnetNetworkCreate A JSON object containing the resource data
|
|
26
|
+
*/
|
|
27
|
+
addNetworkSubnet(networkId: number, subnetNetworkCreate: SubnetNetworkCreate): Promise<ApiResponse<Subnet>>;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @summary Return a list of all subnets belonging to a network
|
|
31
|
+
* @param {number} networkId The ID of the network.
|
|
32
|
+
* @param {number} [page] Number of the page to be retrieved
|
|
33
|
+
* @param {number} [perPage] Number of items returned per page
|
|
34
|
+
*/
|
|
35
|
+
listNetworkSubnets(networkId: number, page?: number, perPage?: number): Promise<ApiResponse<Array<SubnetRelation>>>;
|
|
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.NetworksSubnetsApiService = 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
|
+
* NetworksSubnetsApiService - Auto-generated
|
|
30
|
+
*/
|
|
31
|
+
class NetworksSubnetsApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @summary Create a new subnet for the given network
|
|
35
|
+
* @param {number} networkId The ID of the network.
|
|
36
|
+
* @param {SubnetNetworkCreate} subnetNetworkCreate A JSON object containing the resource data
|
|
37
|
+
*/
|
|
38
|
+
addNetworkSubnet(networkId, subnetNetworkCreate) {
|
|
39
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
if (networkId === null || networkId === undefined) {
|
|
41
|
+
throw new Exceptions_1.ArgumentNullException('networkId', 'addNetworkSubnet');
|
|
42
|
+
}
|
|
43
|
+
if (subnetNetworkCreate === null || subnetNetworkCreate === undefined) {
|
|
44
|
+
throw new Exceptions_1.ArgumentNullException('subnetNetworkCreate', 'addNetworkSubnet');
|
|
45
|
+
}
|
|
46
|
+
let queryString = '';
|
|
47
|
+
const requestUrl = '/networks/{network_id}/subnets' + (queryString ? `?${queryString}` : '');
|
|
48
|
+
const response = yield this.post(requestUrl.replace(`{${"network_id"}}`, encodeURIComponent(String(networkId))), subnetNetworkCreate);
|
|
49
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @summary Return a list of all subnets belonging to a network
|
|
55
|
+
* @param {number} networkId The ID of the network.
|
|
56
|
+
* @param {number} [page] Number of the page to be retrieved
|
|
57
|
+
* @param {number} [perPage] Number of items returned per page
|
|
58
|
+
*/
|
|
59
|
+
listNetworkSubnets(networkId, page, perPage) {
|
|
60
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
61
|
+
if (networkId === null || networkId === undefined) {
|
|
62
|
+
throw new Exceptions_1.ArgumentNullException('networkId', 'listNetworkSubnets');
|
|
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 = '/networks/{network_id}/subnets' + (queryString ? `?${queryString}` : '');
|
|
73
|
+
const response = yield this.get(requestUrl.replace(`{${"network_id"}}`, encodeURIComponent(String(networkId))));
|
|
74
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
exports.NetworksSubnetsApiService = NetworksSubnetsApiService;
|
|
@@ -0,0 +1,25 @@
|
|
|
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 { Subnet } from '../../generated/models';
|
|
15
|
+
/**
|
|
16
|
+
* SubnetsApiService - Auto-generated
|
|
17
|
+
*/
|
|
18
|
+
export declare class SubnetsApiService extends ApiBaseService {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @summary Get a subnet by ID
|
|
22
|
+
* @param {number} subnetId The ID of the subnet.
|
|
23
|
+
*/
|
|
24
|
+
getSubnet(subnetId: number): Promise<ApiResponse<Subnet>>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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.SubnetsApiService = 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
|
+
* SubnetsApiService - Auto-generated
|
|
30
|
+
*/
|
|
31
|
+
class SubnetsApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @summary Get a subnet by ID
|
|
35
|
+
* @param {number} subnetId The ID of the subnet.
|
|
36
|
+
*/
|
|
37
|
+
getSubnet(subnetId) {
|
|
38
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
if (subnetId === null || subnetId === undefined) {
|
|
40
|
+
throw new Exceptions_1.ArgumentNullException('subnetId', 'getSubnet');
|
|
41
|
+
}
|
|
42
|
+
let queryString = '';
|
|
43
|
+
const requestUrl = '/subnets/{subnet_id}' + (queryString ? `?${queryString}` : '');
|
|
44
|
+
const response = yield this.get(requestUrl.replace(`{${"subnet_id"}}`, encodeURIComponent(String(subnetId))));
|
|
45
|
+
return new ApiResponse_1.ApiResponse(response);
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.SubnetsApiService = SubnetsApiService;
|
|
@@ -24,6 +24,12 @@ export interface ActionTarget {
|
|
|
24
24
|
* @memberof ActionTarget
|
|
25
25
|
*/
|
|
26
26
|
resource_type?: string;
|
|
27
|
+
/**
|
|
28
|
+
* Human readable version of the resource type
|
|
29
|
+
* @type {string}
|
|
30
|
+
* @memberof ActionTarget
|
|
31
|
+
*/
|
|
32
|
+
resource_type_human_readable?: string;
|
|
27
33
|
/**
|
|
28
34
|
* The Id of the cloud resource on which the action must be performed
|
|
29
35
|
* @type {number}
|
|
@@ -13,37 +13,37 @@ import { CloudProviderPropertyValidation } from './cloud-provider-property-valid
|
|
|
13
13
|
/**
|
|
14
14
|
* Cloud provider credential settings
|
|
15
15
|
* @export
|
|
16
|
-
* @interface
|
|
16
|
+
* @interface CloudProviderInputSettings
|
|
17
17
|
*/
|
|
18
|
-
export interface
|
|
18
|
+
export interface CloudProviderInputSettings {
|
|
19
19
|
/**
|
|
20
20
|
* Name of the property
|
|
21
21
|
* @type {string}
|
|
22
|
-
* @memberof
|
|
22
|
+
* @memberof CloudProviderInputSettings
|
|
23
23
|
*/
|
|
24
24
|
name: string;
|
|
25
25
|
/**
|
|
26
26
|
* Human readable version of the property\'s name
|
|
27
27
|
* @type {string}
|
|
28
|
-
* @memberof
|
|
28
|
+
* @memberof CloudProviderInputSettings
|
|
29
29
|
*/
|
|
30
30
|
name_human_readable: string;
|
|
31
31
|
/**
|
|
32
32
|
* Default property\'s value
|
|
33
33
|
* @type {string | number | boolean}
|
|
34
|
-
* @memberof
|
|
34
|
+
* @memberof CloudProviderInputSettings
|
|
35
35
|
*/
|
|
36
36
|
default_value: string | number | boolean | null;
|
|
37
37
|
/**
|
|
38
38
|
* Defines if the property data is a sensitive content
|
|
39
39
|
* @type {boolean}
|
|
40
|
-
* @memberof
|
|
40
|
+
* @memberof CloudProviderInputSettings
|
|
41
41
|
*/
|
|
42
42
|
sensitive: boolean;
|
|
43
43
|
/**
|
|
44
44
|
*
|
|
45
45
|
* @type {CloudProviderPropertyValidation}
|
|
46
|
-
* @memberof
|
|
46
|
+
* @memberof CloudProviderInputSettings
|
|
47
47
|
*/
|
|
48
48
|
validation: CloudProviderPropertyValidation;
|
|
49
49
|
}
|
|
@@ -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 CloudProviderRelation
|
|
16
|
+
*/
|
|
17
|
+
export interface CloudProviderRelation {
|
|
18
|
+
/**
|
|
19
|
+
* Cloud provider code
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CloudProviderRelation
|
|
22
|
+
*/
|
|
23
|
+
code: string;
|
|
24
|
+
/**
|
|
25
|
+
* Cloud provider name
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CloudProviderRelation
|
|
28
|
+
*/
|
|
29
|
+
name: string;
|
|
30
|
+
/**
|
|
31
|
+
* Text describing what is the provider
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof CloudProviderRelation
|
|
34
|
+
*/
|
|
35
|
+
hint: string;
|
|
36
|
+
/**
|
|
37
|
+
* The provider\'s logo URL.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CloudProviderRelation
|
|
40
|
+
*/
|
|
41
|
+
logo_url: string;
|
|
42
|
+
}
|
|
@@ -33,4 +33,10 @@ export interface CloudProviderServiceRegion {
|
|
|
33
33
|
* @memberof CloudProviderServiceRegion
|
|
34
34
|
*/
|
|
35
35
|
hint: string;
|
|
36
|
+
/**
|
|
37
|
+
* List of availability zones of the cloud provider region
|
|
38
|
+
* @type {Array<string>}
|
|
39
|
+
* @memberof CloudProviderServiceRegion
|
|
40
|
+
*/
|
|
41
|
+
zones: Array<string>;
|
|
36
42
|
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
* The resource type\'s scope
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare enum CloudProviderServiceResourceTypeScope {
|
|
18
|
+
Global = "global",
|
|
19
|
+
Region = "region",
|
|
20
|
+
Zone = "zone"
|
|
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.CloudProviderServiceResourceTypeScope = void 0;
|
|
16
|
+
/**
|
|
17
|
+
* The resource type\'s scope
|
|
18
|
+
* @export
|
|
19
|
+
* @enum {string}
|
|
20
|
+
*/
|
|
21
|
+
var CloudProviderServiceResourceTypeScope;
|
|
22
|
+
(function (CloudProviderServiceResourceTypeScope) {
|
|
23
|
+
CloudProviderServiceResourceTypeScope["Global"] = "global";
|
|
24
|
+
CloudProviderServiceResourceTypeScope["Region"] = "region";
|
|
25
|
+
CloudProviderServiceResourceTypeScope["Zone"] = "zone";
|
|
26
|
+
})(CloudProviderServiceResourceTypeScope = exports.CloudProviderServiceResourceTypeScope || (exports.CloudProviderServiceResourceTypeScope = {}));
|
|
@@ -0,0 +1,44 @@
|
|
|
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 { CloudProviderInputSettings } from './cloud-provider-input-settings';
|
|
13
|
+
import { CloudProviderServiceResourceTypeScope } from './cloud-provider-service-resource-type-scope';
|
|
14
|
+
/**
|
|
15
|
+
* Resource type details
|
|
16
|
+
* @export
|
|
17
|
+
* @interface CloudProviderServiceResourceType
|
|
18
|
+
*/
|
|
19
|
+
export interface CloudProviderServiceResourceType {
|
|
20
|
+
/**
|
|
21
|
+
* The resource type\'s name on the cloud provider
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof CloudProviderServiceResourceType
|
|
24
|
+
*/
|
|
25
|
+
provider_resource_type: string;
|
|
26
|
+
/**
|
|
27
|
+
* The resource type\'s name on Devopness
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof CloudProviderServiceResourceType
|
|
30
|
+
*/
|
|
31
|
+
devopness_resource_type: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {CloudProviderServiceResourceTypeScope}
|
|
35
|
+
* @memberof CloudProviderServiceResourceType
|
|
36
|
+
*/
|
|
37
|
+
scope: CloudProviderServiceResourceTypeScope;
|
|
38
|
+
/**
|
|
39
|
+
* Settings of the cloud provider credential
|
|
40
|
+
* @type {Array<CloudProviderInputSettings>}
|
|
41
|
+
* @memberof CloudProviderServiceResourceType
|
|
42
|
+
*/
|
|
43
|
+
input_settings: Array<CloudProviderInputSettings>;
|
|
44
|
+
}
|
|
@@ -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 });
|
|
@@ -9,8 +9,10 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { CloudProviderRelation } from './cloud-provider-relation';
|
|
12
13
|
import { CloudProviderServiceCode } from './cloud-provider-service-code';
|
|
13
14
|
import { CloudProviderServiceRegion } from './cloud-provider-service-region';
|
|
15
|
+
import { CloudProviderServiceResourceType } from './cloud-provider-service-resource-type';
|
|
14
16
|
import { OperatingSystem } from './operating-system';
|
|
15
17
|
/**
|
|
16
18
|
*
|
|
@@ -30,6 +32,12 @@ export interface CloudProviderService {
|
|
|
30
32
|
* @memberof CloudProviderService
|
|
31
33
|
*/
|
|
32
34
|
name: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {CloudProviderRelation}
|
|
38
|
+
* @memberof CloudProviderService
|
|
39
|
+
*/
|
|
40
|
+
cloud_provider: CloudProviderRelation;
|
|
33
41
|
/**
|
|
34
42
|
*
|
|
35
43
|
* @type {Array<CloudProviderServiceRegion>}
|
|
@@ -42,4 +50,10 @@ export interface CloudProviderService {
|
|
|
42
50
|
* @memberof CloudProviderService
|
|
43
51
|
*/
|
|
44
52
|
os?: Array<OperatingSystem>;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {Array<CloudProviderServiceResourceType>}
|
|
56
|
+
* @memberof CloudProviderService
|
|
57
|
+
*/
|
|
58
|
+
resource_types?: Array<CloudProviderServiceResourceType>;
|
|
45
59
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import {
|
|
12
|
+
import { CloudProviderInputSettings } from './cloud-provider-input-settings';
|
|
13
13
|
/**
|
|
14
14
|
* Settings of the cloud provider
|
|
15
15
|
* @export
|
|
@@ -18,8 +18,8 @@ import { CloudProviderCredentialSettings } from './cloud-provider-credential-set
|
|
|
18
18
|
export interface CloudProviderSettingsList {
|
|
19
19
|
/**
|
|
20
20
|
* Settings of the cloud provider credential
|
|
21
|
-
* @type {Array<
|
|
21
|
+
* @type {Array<CloudProviderInputSettings>}
|
|
22
22
|
* @memberof CloudProviderSettingsList
|
|
23
23
|
*/
|
|
24
|
-
credential?: Array<
|
|
24
|
+
credential?: Array<CloudProviderInputSettings>;
|
|
25
25
|
}
|
|
@@ -37,13 +37,16 @@ export * from './cloud-instance-relation';
|
|
|
37
37
|
export * from './cloud-os-version-code';
|
|
38
38
|
export * from './cloud-provider';
|
|
39
39
|
export * from './cloud-provider-code';
|
|
40
|
-
export * from './cloud-provider-
|
|
40
|
+
export * from './cloud-provider-input-settings';
|
|
41
41
|
export * from './cloud-provider-options-relation';
|
|
42
42
|
export * from './cloud-provider-property-type';
|
|
43
43
|
export * from './cloud-provider-property-validation';
|
|
44
|
+
export * from './cloud-provider-relation';
|
|
44
45
|
export * from './cloud-provider-service';
|
|
45
46
|
export * from './cloud-provider-service-code';
|
|
46
47
|
export * from './cloud-provider-service-region';
|
|
48
|
+
export * from './cloud-provider-service-resource-type';
|
|
49
|
+
export * from './cloud-provider-service-resource-type-scope';
|
|
47
50
|
export * from './cloud-provider-settings-list';
|
|
48
51
|
export * from './cloud-service-settings-aws-ec2';
|
|
49
52
|
export * from './cloud-service-settings-digital-ocean-droplet';
|
|
@@ -80,7 +83,6 @@ export * from './environment-relation';
|
|
|
80
83
|
export * from './environment-type';
|
|
81
84
|
export * from './environment-update';
|
|
82
85
|
export * from './hook';
|
|
83
|
-
export * from './hook-create';
|
|
84
86
|
export * from './hook-incoming-settings';
|
|
85
87
|
export * from './hook-outgoing-request-header';
|
|
86
88
|
export * from './hook-outgoing-settings';
|
|
@@ -210,6 +212,15 @@ export * from './static-service-type-supported-versions';
|
|
|
210
212
|
export * from './step';
|
|
211
213
|
export * from './step-pipeline-create';
|
|
212
214
|
export * from './step-pipeline-update';
|
|
215
|
+
export * from './subnet';
|
|
216
|
+
export * from './subnet-network-create';
|
|
217
|
+
export * from './subnet-provision-input';
|
|
218
|
+
export * from './subnet-provision-input-settings';
|
|
219
|
+
export * from './subnet-provision-input-settings-aws';
|
|
220
|
+
export * from './subnet-provision-input-settings-digital-ocean';
|
|
221
|
+
export * from './subnet-provision-input-settings-gcp';
|
|
222
|
+
export * from './subnet-relation';
|
|
223
|
+
export * from './subnet-type';
|
|
213
224
|
export * from './subscription';
|
|
214
225
|
export * from './subscription-balance';
|
|
215
226
|
export * from './subscription-plan';
|