@devopness/sdk-js 2.162.2 → 2.163.1
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/applications-api.d.ts +25 -0
- package/dist/api/generated/apis/applications-api.js +65 -0
- package/dist/api/generated/apis/credentials-api.d.ts +27 -0
- package/dist/api/generated/apis/credentials-api.js +67 -0
- package/dist/api/generated/apis/cron-jobs-api.d.ts +17 -0
- package/dist/api/generated/apis/cron-jobs-api.js +45 -0
- package/dist/api/generated/apis/daemons-api.d.ts +17 -0
- package/dist/api/generated/apis/daemons-api.js +45 -0
- package/dist/api/generated/apis/network-rules-api.d.ts +17 -0
- package/dist/api/generated/apis/network-rules-api.js +45 -0
- package/dist/api/generated/apis/networks-api.d.ts +20 -0
- package/dist/api/generated/apis/networks-api.js +48 -0
- package/dist/api/generated/apis/servers-api.d.ts +17 -0
- package/dist/api/generated/apis/servers-api.js +45 -0
- package/dist/api/generated/apis/services-api.d.ts +17 -0
- package/dist/api/generated/apis/services-api.js +45 -0
- package/dist/api/generated/apis/sshkeys-api.d.ts +17 -0
- package/dist/api/generated/apis/sshkeys-api.js +45 -0
- package/dist/api/generated/apis/sslcertificates-api.d.ts +17 -0
- package/dist/api/generated/apis/sslcertificates-api.js +45 -0
- package/dist/api/generated/apis/virtual-hosts-api.d.ts +17 -0
- package/dist/api/generated/apis/virtual-hosts-api.js +45 -0
- package/dist/api/generated/models/credential-azure.d.ts +42 -0
- package/dist/api/generated/models/credential-azure.js +14 -0
- package/dist/api/generated/models/credential-input-settings.d.ts +3 -2
- package/dist/api/generated/models/index.d.ts +1 -0
- package/dist/api/generated/models/index.js +1 -0
- package/dist/api/generated/models/provider-code.d.ts +1 -0
- package/dist/api/generated/models/provider-code.js +1 -0
- package/dist/api/generated/models/provider-relation.d.ts +4 -11
- package/dist/api/generated/models/provider-relation.js +0 -10
- package/dist/api/generated/models/server-cloud-service-code.d.ts +1 -0
- package/dist/api/generated/models/server-cloud-service-code.js +1 -0
- package/dist/services/ApplicationService.d.ts +1 -2
- package/dist/services/ApplicationService.js +0 -2
- package/dist/services/EnvironmentService.d.ts +0 -22
- package/dist/services/EnvironmentService.js +0 -22
- package/dist/services/index.d.ts +1 -0
- package/dist/services/index.js +1 -0
- package/package.json +10 -10
- package/dist/api/generated/apis/applications-deployments-api.d.ts +0 -26
- package/dist/api/generated/apis/applications-deployments-api.js +0 -53
- package/dist/api/generated/apis/environments-applications-api.d.ts +0 -36
- package/dist/api/generated/apis/environments-applications-api.js +0 -78
- package/dist/api/generated/apis/environments-credentials-api.d.ts +0 -46
- package/dist/api/generated/apis/environments-credentials-api.js +0 -100
- package/dist/api/generated/apis/environments-cron-jobs-api.d.ts +0 -36
- package/dist/api/generated/apis/environments-cron-jobs-api.js +0 -78
- package/dist/api/generated/apis/environments-daemons-api.d.ts +0 -36
- package/dist/api/generated/apis/environments-daemons-api.js +0 -78
- package/dist/api/generated/apis/environments-network-rules-api.d.ts +0 -36
- package/dist/api/generated/apis/environments-network-rules-api.js +0 -78
- package/dist/api/generated/apis/environments-networks-api.d.ts +0 -39
- package/dist/api/generated/apis/environments-networks-api.js +0 -81
- package/dist/api/generated/apis/environments-servers-api.d.ts +0 -36
- package/dist/api/generated/apis/environments-servers-api.js +0 -78
- package/dist/api/generated/apis/environments-services-api.d.ts +0 -36
- package/dist/api/generated/apis/environments-services-api.js +0 -78
- package/dist/api/generated/apis/environments-sshkeys-api.d.ts +0 -36
- package/dist/api/generated/apis/environments-sshkeys-api.js +0 -78
- package/dist/api/generated/apis/environments-sslcertificates-api.d.ts +0 -36
- package/dist/api/generated/apis/environments-sslcertificates-api.js +0 -78
- package/dist/api/generated/apis/environments-virtual-hosts-api.d.ts +0 -36
- package/dist/api/generated/apis/environments-virtual-hosts-api.js +0 -78
|
@@ -1,36 +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 { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
|
-
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
|
-
import { Daemon } from '../../generated/models';
|
|
15
|
-
import { DaemonEnvironmentCreate } from '../../generated/models';
|
|
16
|
-
import { DaemonRelation } from '../../generated/models';
|
|
17
|
-
/**
|
|
18
|
-
* EnvironmentsDaemonsApiService - Auto-generated
|
|
19
|
-
*/
|
|
20
|
-
export declare class EnvironmentsDaemonsApiService extends ApiBaseService {
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @summary Add a Daemon to the given environment
|
|
24
|
-
* @param {number} environmentId The ID of the environment.
|
|
25
|
-
* @param {DaemonEnvironmentCreate} daemonEnvironmentCreate A JSON object containing the resource data
|
|
26
|
-
*/
|
|
27
|
-
addEnvironmentDaemon(environmentId: number, daemonEnvironmentCreate: DaemonEnvironmentCreate): Promise<ApiResponse<Daemon>>;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @summary Return a list of all Daemons 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
|
-
listEnvironmentDaemons(environmentId: number, page?: number, perPage?: number): Promise<ApiResponse<Array<DaemonRelation>>>;
|
|
36
|
-
}
|
|
@@ -1,78 +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
|
-
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.EnvironmentsDaemonsApiService = 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
|
-
* EnvironmentsDaemonsApiService - Auto-generated
|
|
30
|
-
*/
|
|
31
|
-
class EnvironmentsDaemonsApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @summary Add a Daemon to the given environment
|
|
35
|
-
* @param {number} environmentId The ID of the environment.
|
|
36
|
-
* @param {DaemonEnvironmentCreate} daemonEnvironmentCreate A JSON object containing the resource data
|
|
37
|
-
*/
|
|
38
|
-
addEnvironmentDaemon(environmentId, daemonEnvironmentCreate) {
|
|
39
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
-
if (environmentId === null || environmentId === undefined) {
|
|
41
|
-
throw new Exceptions_1.ArgumentNullException('environmentId', 'addEnvironmentDaemon');
|
|
42
|
-
}
|
|
43
|
-
if (daemonEnvironmentCreate === null || daemonEnvironmentCreate === undefined) {
|
|
44
|
-
throw new Exceptions_1.ArgumentNullException('daemonEnvironmentCreate', 'addEnvironmentDaemon');
|
|
45
|
-
}
|
|
46
|
-
let queryString = '';
|
|
47
|
-
const requestUrl = '/environments/{environment_id}/daemons' + (queryString ? `?${queryString}` : '');
|
|
48
|
-
const response = yield this.post(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))), daemonEnvironmentCreate);
|
|
49
|
-
return new ApiResponse_1.ApiResponse(response);
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @summary Return a list of all Daemons 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
|
-
listEnvironmentDaemons(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', 'listEnvironmentDaemons');
|
|
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}/daemons' + (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.EnvironmentsDaemonsApiService = EnvironmentsDaemonsApiService;
|
|
@@ -1,36 +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 { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
|
-
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
|
-
import { NetworkRule } from '../../generated/models';
|
|
15
|
-
import { NetworkRuleEnvironmentCreate } from '../../generated/models';
|
|
16
|
-
import { NetworkRuleRelation } from '../../generated/models';
|
|
17
|
-
/**
|
|
18
|
-
* EnvironmentsNetworkRulesApiService - Auto-generated
|
|
19
|
-
*/
|
|
20
|
-
export declare class EnvironmentsNetworkRulesApiService extends ApiBaseService {
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @summary Add a Network Rule to the given environment
|
|
24
|
-
* @param {number} environmentId The ID of the environment.
|
|
25
|
-
* @param {NetworkRuleEnvironmentCreate} networkRuleEnvironmentCreate A JSON object containing the resource data
|
|
26
|
-
*/
|
|
27
|
-
addEnvironmentNetworkRule(environmentId: number, networkRuleEnvironmentCreate: NetworkRuleEnvironmentCreate): Promise<ApiResponse<NetworkRule>>;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @summary Return a list of all Network Rules 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
|
-
listEnvironmentNetworkRules(environmentId: number, page?: number, perPage?: number): Promise<ApiResponse<Array<NetworkRuleRelation>>>;
|
|
36
|
-
}
|
|
@@ -1,78 +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
|
-
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.EnvironmentsNetworkRulesApiService = 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
|
-
* EnvironmentsNetworkRulesApiService - Auto-generated
|
|
30
|
-
*/
|
|
31
|
-
class EnvironmentsNetworkRulesApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @summary Add a Network Rule to the given environment
|
|
35
|
-
* @param {number} environmentId The ID of the environment.
|
|
36
|
-
* @param {NetworkRuleEnvironmentCreate} networkRuleEnvironmentCreate A JSON object containing the resource data
|
|
37
|
-
*/
|
|
38
|
-
addEnvironmentNetworkRule(environmentId, networkRuleEnvironmentCreate) {
|
|
39
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
-
if (environmentId === null || environmentId === undefined) {
|
|
41
|
-
throw new Exceptions_1.ArgumentNullException('environmentId', 'addEnvironmentNetworkRule');
|
|
42
|
-
}
|
|
43
|
-
if (networkRuleEnvironmentCreate === null || networkRuleEnvironmentCreate === undefined) {
|
|
44
|
-
throw new Exceptions_1.ArgumentNullException('networkRuleEnvironmentCreate', 'addEnvironmentNetworkRule');
|
|
45
|
-
}
|
|
46
|
-
let queryString = '';
|
|
47
|
-
const requestUrl = '/environments/{environment_id}/network-rules' + (queryString ? `?${queryString}` : '');
|
|
48
|
-
const response = yield this.post(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))), networkRuleEnvironmentCreate);
|
|
49
|
-
return new ApiResponse_1.ApiResponse(response);
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @summary Return a list of all Network Rules 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
|
-
listEnvironmentNetworkRules(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', 'listEnvironmentNetworkRules');
|
|
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}/network-rules' + (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.EnvironmentsNetworkRulesApiService = EnvironmentsNetworkRulesApiService;
|
|
@@ -1,39 +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 { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
|
-
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
|
-
import { Network } from '../../generated/models';
|
|
15
|
-
import { NetworkEnvironmentCreate } from '../../generated/models';
|
|
16
|
-
import { NetworkRelation } from '../../generated/models';
|
|
17
|
-
/**
|
|
18
|
-
* EnvironmentsNetworksApiService - Auto-generated
|
|
19
|
-
*/
|
|
20
|
-
export declare class EnvironmentsNetworksApiService extends ApiBaseService {
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @summary Create a new network for the given environment
|
|
24
|
-
* @param {number} environmentId The ID of the environment.
|
|
25
|
-
* @param {NetworkEnvironmentCreate} networkEnvironmentCreate A JSON object containing the resource data
|
|
26
|
-
*/
|
|
27
|
-
addEnvironmentNetwork(environmentId: number, networkEnvironmentCreate: NetworkEnvironmentCreate): Promise<ApiResponse<Network>>;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @summary Return a list of all networks 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
|
-
* @param {boolean} [includeDefaultNetwork] If true, include a \'default\' network in the list.
|
|
35
|
-
* @param {string} [providerName] Filter by network\'s cloud provider.
|
|
36
|
-
* @param {string} [region] Filter by network\'s region.
|
|
37
|
-
*/
|
|
38
|
-
listEnvironmentNetworks(environmentId: number, page?: number, perPage?: number, includeDefaultNetwork?: boolean, providerName?: string, region?: string): Promise<ApiResponse<Array<NetworkRelation>>>;
|
|
39
|
-
}
|
|
@@ -1,81 +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
|
-
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.EnvironmentsNetworksApiService = 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
|
-
* EnvironmentsNetworksApiService - Auto-generated
|
|
30
|
-
*/
|
|
31
|
-
class EnvironmentsNetworksApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @summary Create a new network for the given environment
|
|
35
|
-
* @param {number} environmentId The ID of the environment.
|
|
36
|
-
* @param {NetworkEnvironmentCreate} networkEnvironmentCreate A JSON object containing the resource data
|
|
37
|
-
*/
|
|
38
|
-
addEnvironmentNetwork(environmentId, networkEnvironmentCreate) {
|
|
39
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
-
if (environmentId === null || environmentId === undefined) {
|
|
41
|
-
throw new Exceptions_1.ArgumentNullException('environmentId', 'addEnvironmentNetwork');
|
|
42
|
-
}
|
|
43
|
-
if (networkEnvironmentCreate === null || networkEnvironmentCreate === undefined) {
|
|
44
|
-
throw new Exceptions_1.ArgumentNullException('networkEnvironmentCreate', 'addEnvironmentNetwork');
|
|
45
|
-
}
|
|
46
|
-
let queryString = '';
|
|
47
|
-
const requestUrl = '/environments/{environment_id}/networks' + (queryString ? `?${queryString}` : '');
|
|
48
|
-
const response = yield this.post(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))), networkEnvironmentCreate);
|
|
49
|
-
return new ApiResponse_1.ApiResponse(response);
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @summary Return a list of all networks 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
|
-
* @param {boolean} [includeDefaultNetwork] If true, include a \'default\' network in the list.
|
|
59
|
-
* @param {string} [providerName] Filter by network\'s cloud provider.
|
|
60
|
-
* @param {string} [region] Filter by network\'s region.
|
|
61
|
-
*/
|
|
62
|
-
listEnvironmentNetworks(environmentId, page, perPage, includeDefaultNetwork, providerName, region) {
|
|
63
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
64
|
-
if (environmentId === null || environmentId === undefined) {
|
|
65
|
-
throw new Exceptions_1.ArgumentNullException('environmentId', 'listEnvironmentNetworks');
|
|
66
|
-
}
|
|
67
|
-
let queryString = '';
|
|
68
|
-
const queryParams = { page: page, per_page: perPage, include_default_network: includeDefaultNetwork, provider_name: providerName, region: region, };
|
|
69
|
-
for (const key in queryParams) {
|
|
70
|
-
if (queryParams[key] === undefined || queryParams[key] === null) {
|
|
71
|
-
continue;
|
|
72
|
-
}
|
|
73
|
-
queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
|
|
74
|
-
}
|
|
75
|
-
const requestUrl = '/environments/{environment_id}/networks' + (queryString ? `?${queryString}` : '');
|
|
76
|
-
const response = yield this.get(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))));
|
|
77
|
-
return new ApiResponse_1.ApiResponse(response);
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
exports.EnvironmentsNetworksApiService = EnvironmentsNetworksApiService;
|
|
@@ -1,36 +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 { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
|
-
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
|
-
import { Server } from '../../generated/models';
|
|
15
|
-
import { ServerEnvironmentCreate } from '../../generated/models';
|
|
16
|
-
import { ServerRelation } from '../../generated/models';
|
|
17
|
-
/**
|
|
18
|
-
* EnvironmentsServersApiService - Auto-generated
|
|
19
|
-
*/
|
|
20
|
-
export declare class EnvironmentsServersApiService extends ApiBaseService {
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @summary Creates a server and link it to the given environment
|
|
24
|
-
* @param {number} environmentId The ID of the environment.
|
|
25
|
-
* @param {ServerEnvironmentCreate} serverEnvironmentCreate A JSON object containing the resource data
|
|
26
|
-
*/
|
|
27
|
-
addEnvironmentServer(environmentId: number, serverEnvironmentCreate: ServerEnvironmentCreate): Promise<ApiResponse<Server>>;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @summary Return a list of all servers 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
|
-
listEnvironmentServers(environmentId: number, page?: number, perPage?: number): Promise<ApiResponse<Array<ServerRelation>>>;
|
|
36
|
-
}
|
|
@@ -1,78 +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
|
-
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.EnvironmentsServersApiService = 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
|
-
* EnvironmentsServersApiService - Auto-generated
|
|
30
|
-
*/
|
|
31
|
-
class EnvironmentsServersApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @summary Creates a server and link it to the given environment
|
|
35
|
-
* @param {number} environmentId The ID of the environment.
|
|
36
|
-
* @param {ServerEnvironmentCreate} serverEnvironmentCreate A JSON object containing the resource data
|
|
37
|
-
*/
|
|
38
|
-
addEnvironmentServer(environmentId, serverEnvironmentCreate) {
|
|
39
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
-
if (environmentId === null || environmentId === undefined) {
|
|
41
|
-
throw new Exceptions_1.ArgumentNullException('environmentId', 'addEnvironmentServer');
|
|
42
|
-
}
|
|
43
|
-
if (serverEnvironmentCreate === null || serverEnvironmentCreate === undefined) {
|
|
44
|
-
throw new Exceptions_1.ArgumentNullException('serverEnvironmentCreate', 'addEnvironmentServer');
|
|
45
|
-
}
|
|
46
|
-
let queryString = '';
|
|
47
|
-
const requestUrl = '/environments/{environment_id}/servers' + (queryString ? `?${queryString}` : '');
|
|
48
|
-
const response = yield this.post(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))), serverEnvironmentCreate);
|
|
49
|
-
return new ApiResponse_1.ApiResponse(response);
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @summary Return a list of all servers 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
|
-
listEnvironmentServers(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', 'listEnvironmentServers');
|
|
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}/servers' + (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.EnvironmentsServersApiService = EnvironmentsServersApiService;
|
|
@@ -1,36 +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 { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
|
-
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
|
-
import { Service } from '../../generated/models';
|
|
15
|
-
import { ServiceEnvironmentCreate } from '../../generated/models';
|
|
16
|
-
import { ServiceRelation } from '../../generated/models';
|
|
17
|
-
/**
|
|
18
|
-
* EnvironmentsServicesApiService - Auto-generated
|
|
19
|
-
*/
|
|
20
|
-
export declare class EnvironmentsServicesApiService extends ApiBaseService {
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @summary Add a Service to the given environment
|
|
24
|
-
* @param {number} environmentId The ID of the environment.
|
|
25
|
-
* @param {ServiceEnvironmentCreate} serviceEnvironmentCreate A JSON object containing the resource data
|
|
26
|
-
*/
|
|
27
|
-
addEnvironmentService(environmentId: number, serviceEnvironmentCreate: ServiceEnvironmentCreate): Promise<ApiResponse<Service>>;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @summary Return a list of all services belonging to a 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
|
-
listEnvironmentServices(environmentId: number, page?: number, perPage?: number): Promise<ApiResponse<Array<ServiceRelation>>>;
|
|
36
|
-
}
|
|
@@ -1,78 +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
|
-
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.EnvironmentsServicesApiService = 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
|
-
* EnvironmentsServicesApiService - Auto-generated
|
|
30
|
-
*/
|
|
31
|
-
class EnvironmentsServicesApiService extends ApiBaseService_1.ApiBaseService {
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @summary Add a Service to the given environment
|
|
35
|
-
* @param {number} environmentId The ID of the environment.
|
|
36
|
-
* @param {ServiceEnvironmentCreate} serviceEnvironmentCreate A JSON object containing the resource data
|
|
37
|
-
*/
|
|
38
|
-
addEnvironmentService(environmentId, serviceEnvironmentCreate) {
|
|
39
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
-
if (environmentId === null || environmentId === undefined) {
|
|
41
|
-
throw new Exceptions_1.ArgumentNullException('environmentId', 'addEnvironmentService');
|
|
42
|
-
}
|
|
43
|
-
if (serviceEnvironmentCreate === null || serviceEnvironmentCreate === undefined) {
|
|
44
|
-
throw new Exceptions_1.ArgumentNullException('serviceEnvironmentCreate', 'addEnvironmentService');
|
|
45
|
-
}
|
|
46
|
-
let queryString = '';
|
|
47
|
-
const requestUrl = '/environments/{environment_id}/services' + (queryString ? `?${queryString}` : '');
|
|
48
|
-
const response = yield this.post(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))), serviceEnvironmentCreate);
|
|
49
|
-
return new ApiResponse_1.ApiResponse(response);
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @summary Return a list of all services belonging to a 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
|
-
listEnvironmentServices(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', 'listEnvironmentServices');
|
|
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}/services' + (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.EnvironmentsServicesApiService = EnvironmentsServicesApiService;
|
|
@@ -1,36 +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 { ApiBaseService } from "../../../services/ApiBaseService";
|
|
13
|
-
import { ApiResponse } from "../../../common/ApiResponse";
|
|
14
|
-
import { SshKey } from '../../generated/models';
|
|
15
|
-
import { SshKeyEnvironmentCreate } from '../../generated/models';
|
|
16
|
-
import { SshKeyRelation } from '../../generated/models';
|
|
17
|
-
/**
|
|
18
|
-
* EnvironmentsSSHKeysApiService - Auto-generated
|
|
19
|
-
*/
|
|
20
|
-
export declare class EnvironmentsSSHKeysApiService extends ApiBaseService {
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @summary Create an SSH key and link it to the given environment
|
|
24
|
-
* @param {number} environmentId The ID of the environment.
|
|
25
|
-
* @param {SshKeyEnvironmentCreate} sshKeyEnvironmentCreate A JSON object containing the resource data
|
|
26
|
-
*/
|
|
27
|
-
addEnvironmentSshKey(environmentId: number, sshKeyEnvironmentCreate: SshKeyEnvironmentCreate): Promise<ApiResponse<SshKey>>;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @summary Return a list of all SSH keys added 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
|
-
listEnvironmentSshKeys(environmentId: number, page?: number, perPage?: number): Promise<ApiResponse<Array<SshKeyRelation>>>;
|
|
36
|
-
}
|