@devopness/sdk-js 2.162.1 → 2.163.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 (71) hide show
  1. package/dist/api/generated/apis/applications-api.d.ts +25 -0
  2. package/dist/api/generated/apis/applications-api.js +65 -0
  3. package/dist/api/generated/apis/credentials-api.d.ts +27 -0
  4. package/dist/api/generated/apis/credentials-api.js +67 -0
  5. package/dist/api/generated/apis/cron-jobs-api.d.ts +17 -0
  6. package/dist/api/generated/apis/cron-jobs-api.js +45 -0
  7. package/dist/api/generated/apis/daemons-api.d.ts +17 -0
  8. package/dist/api/generated/apis/daemons-api.js +45 -0
  9. package/dist/api/generated/apis/network-rules-api.d.ts +17 -0
  10. package/dist/api/generated/apis/network-rules-api.js +45 -0
  11. package/dist/api/generated/apis/networks-api.d.ts +20 -0
  12. package/dist/api/generated/apis/networks-api.js +48 -0
  13. package/dist/api/generated/apis/servers-api.d.ts +17 -0
  14. package/dist/api/generated/apis/servers-api.js +45 -0
  15. package/dist/api/generated/apis/services-api.d.ts +17 -0
  16. package/dist/api/generated/apis/services-api.js +45 -0
  17. package/dist/api/generated/apis/sshkeys-api.d.ts +17 -0
  18. package/dist/api/generated/apis/sshkeys-api.js +45 -0
  19. package/dist/api/generated/apis/sslcertificates-api.d.ts +17 -0
  20. package/dist/api/generated/apis/sslcertificates-api.js +45 -0
  21. package/dist/api/generated/apis/virtual-hosts-api.d.ts +17 -0
  22. package/dist/api/generated/apis/virtual-hosts-api.js +45 -0
  23. package/dist/api/generated/models/action-relation-shallow.d.ts +121 -0
  24. package/dist/api/generated/models/action-relation-shallow.js +14 -0
  25. package/dist/api/generated/models/application-last-deployments.d.ts +5 -5
  26. package/dist/api/generated/models/cron-job-relation.d.ts +3 -3
  27. package/dist/api/generated/models/daemon-relation.d.ts +3 -3
  28. package/dist/api/generated/models/index.d.ts +2 -0
  29. package/dist/api/generated/models/index.js +2 -0
  30. package/dist/api/generated/models/network-relation.d.ts +3 -3
  31. package/dist/api/generated/models/network-rule-relation.d.ts +3 -3
  32. package/dist/api/generated/models/resource-link-child.d.ts +55 -0
  33. package/dist/api/generated/models/resource-link-child.js +14 -0
  34. package/dist/api/generated/models/resource-link-relation.d.ts +3 -2
  35. package/dist/api/generated/models/server-relation.d.ts +3 -3
  36. package/dist/api/generated/models/service-relation.d.ts +3 -3
  37. package/dist/api/generated/models/ssh-key-relation.d.ts +3 -3
  38. package/dist/api/generated/models/ssl-certificate-relation.d.ts +3 -3
  39. package/dist/api/generated/models/user-relation.d.ts +6 -0
  40. package/dist/api/generated/models/virtual-host-relation.d.ts +3 -3
  41. package/dist/services/ApplicationService.d.ts +1 -2
  42. package/dist/services/ApplicationService.js +0 -2
  43. package/dist/services/EnvironmentService.d.ts +0 -22
  44. package/dist/services/EnvironmentService.js +0 -22
  45. package/dist/services/index.d.ts +1 -0
  46. package/dist/services/index.js +1 -0
  47. package/package.json +8 -8
  48. package/dist/api/generated/apis/applications-deployments-api.d.ts +0 -26
  49. package/dist/api/generated/apis/applications-deployments-api.js +0 -53
  50. package/dist/api/generated/apis/environments-applications-api.d.ts +0 -36
  51. package/dist/api/generated/apis/environments-applications-api.js +0 -78
  52. package/dist/api/generated/apis/environments-credentials-api.d.ts +0 -46
  53. package/dist/api/generated/apis/environments-credentials-api.js +0 -100
  54. package/dist/api/generated/apis/environments-cron-jobs-api.d.ts +0 -36
  55. package/dist/api/generated/apis/environments-cron-jobs-api.js +0 -78
  56. package/dist/api/generated/apis/environments-daemons-api.d.ts +0 -36
  57. package/dist/api/generated/apis/environments-daemons-api.js +0 -78
  58. package/dist/api/generated/apis/environments-network-rules-api.d.ts +0 -36
  59. package/dist/api/generated/apis/environments-network-rules-api.js +0 -78
  60. package/dist/api/generated/apis/environments-networks-api.d.ts +0 -39
  61. package/dist/api/generated/apis/environments-networks-api.js +0 -81
  62. package/dist/api/generated/apis/environments-servers-api.d.ts +0 -36
  63. package/dist/api/generated/apis/environments-servers-api.js +0 -78
  64. package/dist/api/generated/apis/environments-services-api.d.ts +0 -36
  65. package/dist/api/generated/apis/environments-services-api.js +0 -78
  66. package/dist/api/generated/apis/environments-sshkeys-api.d.ts +0 -36
  67. package/dist/api/generated/apis/environments-sshkeys-api.js +0 -78
  68. package/dist/api/generated/apis/environments-sslcertificates-api.d.ts +0 -36
  69. package/dist/api/generated/apis/environments-sslcertificates-api.js +0 -78
  70. package/dist/api/generated/apis/environments-virtual-hosts-api.d.ts +0 -36
  71. package/dist/api/generated/apis/environments-virtual-hosts-api.js +0 -78
@@ -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.EnvironmentsApplicationsApiService = 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
- * EnvironmentsApplicationsApiService - Auto-generated
30
- */
31
- class EnvironmentsApplicationsApiService extends ApiBaseService_1.ApiBaseService {
32
- /**
33
- *
34
- * @summary Create a new application
35
- * @param {number} environmentId The ID of the environment.
36
- * @param {ApplicationEnvironmentCreate} applicationEnvironmentCreate A JSON object containing the resource data
37
- */
38
- addEnvironmentApplication(environmentId, applicationEnvironmentCreate) {
39
- return __awaiter(this, void 0, void 0, function* () {
40
- if (environmentId === null || environmentId === undefined) {
41
- throw new Exceptions_1.ArgumentNullException('environmentId', 'addEnvironmentApplication');
42
- }
43
- if (applicationEnvironmentCreate === null || applicationEnvironmentCreate === undefined) {
44
- throw new Exceptions_1.ArgumentNullException('applicationEnvironmentCreate', 'addEnvironmentApplication');
45
- }
46
- let queryString = '';
47
- const requestUrl = '/environments/{environment_id}/applications' + (queryString ? `?${queryString}` : '');
48
- const response = yield this.post(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))), applicationEnvironmentCreate);
49
- return new ApiResponse_1.ApiResponse(response);
50
- });
51
- }
52
- /**
53
- *
54
- * @summary Return a list of all Applications 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
- listEnvironmentApplications(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', 'listEnvironmentApplications');
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}/applications' + (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.EnvironmentsApplicationsApiService = EnvironmentsApplicationsApiService;
@@ -1,46 +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 { Credential } from '../../generated/models';
15
- import { CredentialEnvironmentCreate } from '../../generated/models';
16
- import { CredentialRelation } from '../../generated/models';
17
- import { CredentialSetting } from '../../generated/models';
18
- /**
19
- * EnvironmentsCredentialsApiService - Auto-generated
20
- */
21
- export declare class EnvironmentsCredentialsApiService extends ApiBaseService {
22
- /**
23
- *
24
- * @summary Add a Credential to the given environment
25
- * @param {number} environmentId The ID of the environment.
26
- * @param {CredentialEnvironmentCreate} credentialEnvironmentCreate A JSON object containing the resource data
27
- */
28
- addEnvironmentCredential(environmentId: number, credentialEnvironmentCreate: CredentialEnvironmentCreate): Promise<ApiResponse<Credential>>;
29
- /**
30
- *
31
- * @summary Return provider settings
32
- * @param {number} environmentId The ID of the environment.
33
- * @param {string} providerCode The code of the provider.
34
- */
35
- getEnvironmentCredentialSettings(environmentId: number, providerCode: string): Promise<ApiResponse<CredentialSetting>>;
36
- /**
37
- *
38
- * @summary Return a list of all Credentials belonging to an environment
39
- * @param {number} environmentId The ID of the environment.
40
- * @param {number} [page] Number of the page to be retrieved
41
- * @param {number} [perPage] Number of items returned per page
42
- * @param {string} [providerCode] Filter credentials by provider code.
43
- * @param {string} [providerType] Filter credentials by provider type.
44
- */
45
- listEnvironmentCredentials(environmentId: number, page?: number, perPage?: number, providerCode?: string, providerType?: string): Promise<ApiResponse<Array<CredentialRelation>>>;
46
- }
@@ -1,100 +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.EnvironmentsCredentialsApiService = 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
- * EnvironmentsCredentialsApiService - Auto-generated
30
- */
31
- class EnvironmentsCredentialsApiService extends ApiBaseService_1.ApiBaseService {
32
- /**
33
- *
34
- * @summary Add a Credential to the given environment
35
- * @param {number} environmentId The ID of the environment.
36
- * @param {CredentialEnvironmentCreate} credentialEnvironmentCreate A JSON object containing the resource data
37
- */
38
- addEnvironmentCredential(environmentId, credentialEnvironmentCreate) {
39
- return __awaiter(this, void 0, void 0, function* () {
40
- if (environmentId === null || environmentId === undefined) {
41
- throw new Exceptions_1.ArgumentNullException('environmentId', 'addEnvironmentCredential');
42
- }
43
- if (credentialEnvironmentCreate === null || credentialEnvironmentCreate === undefined) {
44
- throw new Exceptions_1.ArgumentNullException('credentialEnvironmentCreate', 'addEnvironmentCredential');
45
- }
46
- let queryString = '';
47
- const requestUrl = '/environments/{environment_id}/credentials' + (queryString ? `?${queryString}` : '');
48
- const response = yield this.post(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))), credentialEnvironmentCreate);
49
- return new ApiResponse_1.ApiResponse(response);
50
- });
51
- }
52
- /**
53
- *
54
- * @summary Return provider settings
55
- * @param {number} environmentId The ID of the environment.
56
- * @param {string} providerCode The code of the provider.
57
- */
58
- getEnvironmentCredentialSettings(environmentId, providerCode) {
59
- return __awaiter(this, void 0, void 0, function* () {
60
- if (environmentId === null || environmentId === undefined) {
61
- throw new Exceptions_1.ArgumentNullException('environmentId', 'getEnvironmentCredentialSettings');
62
- }
63
- if (providerCode === null || providerCode === undefined) {
64
- throw new Exceptions_1.ArgumentNullException('providerCode', 'getEnvironmentCredentialSettings');
65
- }
66
- let queryString = '';
67
- const requestUrl = '/environments/{environment_id}/credentials/{provider_code}/settings' + (queryString ? `?${queryString}` : '');
68
- const response = yield this.get(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))).replace(`{${"provider_code"}}`, encodeURIComponent(String(providerCode))));
69
- return new ApiResponse_1.ApiResponse(response);
70
- });
71
- }
72
- /**
73
- *
74
- * @summary Return a list of all Credentials belonging to an environment
75
- * @param {number} environmentId The ID of the environment.
76
- * @param {number} [page] Number of the page to be retrieved
77
- * @param {number} [perPage] Number of items returned per page
78
- * @param {string} [providerCode] Filter credentials by provider code.
79
- * @param {string} [providerType] Filter credentials by provider type.
80
- */
81
- listEnvironmentCredentials(environmentId, page, perPage, providerCode, providerType) {
82
- return __awaiter(this, void 0, void 0, function* () {
83
- if (environmentId === null || environmentId === undefined) {
84
- throw new Exceptions_1.ArgumentNullException('environmentId', 'listEnvironmentCredentials');
85
- }
86
- let queryString = '';
87
- const queryParams = { page: page, per_page: perPage, provider_code: providerCode, provider_type: providerType, };
88
- for (const key in queryParams) {
89
- if (queryParams[key] === undefined || queryParams[key] === null) {
90
- continue;
91
- }
92
- queryString += (queryString ? '&' : '') + `${key}=${encodeURI(queryParams[key])}`;
93
- }
94
- const requestUrl = '/environments/{environment_id}/credentials' + (queryString ? `?${queryString}` : '');
95
- const response = yield this.get(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))));
96
- return new ApiResponse_1.ApiResponse(response);
97
- });
98
- }
99
- }
100
- exports.EnvironmentsCredentialsApiService = EnvironmentsCredentialsApiService;
@@ -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 { CronJob } from '../../generated/models';
15
- import { CronJobEnvironmentCreate } from '../../generated/models';
16
- import { CronJobRelation } from '../../generated/models';
17
- /**
18
- * EnvironmentsCronJobsApiService - Auto-generated
19
- */
20
- export declare class EnvironmentsCronJobsApiService extends ApiBaseService {
21
- /**
22
- *
23
- * @summary Add a Cron Job to the given environment
24
- * @param {number} environmentId The ID of the environment.
25
- * @param {CronJobEnvironmentCreate} cronJobEnvironmentCreate A JSON object containing the resource data
26
- */
27
- addEnvironmentCronJob(environmentId: number, cronJobEnvironmentCreate: CronJobEnvironmentCreate): Promise<ApiResponse<CronJob>>;
28
- /**
29
- *
30
- * @summary Return a list of all Cron Jobs 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
- listEnvironmentCronJobs(environmentId: number, page?: number, perPage?: number): Promise<ApiResponse<Array<CronJobRelation>>>;
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.EnvironmentsCronJobsApiService = 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
- * EnvironmentsCronJobsApiService - Auto-generated
30
- */
31
- class EnvironmentsCronJobsApiService extends ApiBaseService_1.ApiBaseService {
32
- /**
33
- *
34
- * @summary Add a Cron Job to the given environment
35
- * @param {number} environmentId The ID of the environment.
36
- * @param {CronJobEnvironmentCreate} cronJobEnvironmentCreate A JSON object containing the resource data
37
- */
38
- addEnvironmentCronJob(environmentId, cronJobEnvironmentCreate) {
39
- return __awaiter(this, void 0, void 0, function* () {
40
- if (environmentId === null || environmentId === undefined) {
41
- throw new Exceptions_1.ArgumentNullException('environmentId', 'addEnvironmentCronJob');
42
- }
43
- if (cronJobEnvironmentCreate === null || cronJobEnvironmentCreate === undefined) {
44
- throw new Exceptions_1.ArgumentNullException('cronJobEnvironmentCreate', 'addEnvironmentCronJob');
45
- }
46
- let queryString = '';
47
- const requestUrl = '/environments/{environment_id}/cron-jobs' + (queryString ? `?${queryString}` : '');
48
- const response = yield this.post(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))), cronJobEnvironmentCreate);
49
- return new ApiResponse_1.ApiResponse(response);
50
- });
51
- }
52
- /**
53
- *
54
- * @summary Return a list of all Cron Jobs 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
- listEnvironmentCronJobs(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', 'listEnvironmentCronJobs');
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}/cron-jobs' + (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.EnvironmentsCronJobsApiService = EnvironmentsCronJobsApiService;
@@ -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 \&#39;default\&#39; network in the list.
35
- * @param {string} [providerName] Filter by network\&#39;s cloud provider.
36
- * @param {string} [region] Filter by network\&#39;s region.
37
- */
38
- listEnvironmentNetworks(environmentId: number, page?: number, perPage?: number, includeDefaultNetwork?: boolean, providerName?: string, region?: string): Promise<ApiResponse<Array<NetworkRelation>>>;
39
- }