@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.
Files changed (64) 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/credential-azure.d.ts +42 -0
  24. package/dist/api/generated/models/credential-azure.js +14 -0
  25. package/dist/api/generated/models/credential-input-settings.d.ts +3 -2
  26. package/dist/api/generated/models/index.d.ts +1 -0
  27. package/dist/api/generated/models/index.js +1 -0
  28. package/dist/api/generated/models/provider-code.d.ts +1 -0
  29. package/dist/api/generated/models/provider-code.js +1 -0
  30. package/dist/api/generated/models/provider-relation.d.ts +4 -11
  31. package/dist/api/generated/models/provider-relation.js +0 -10
  32. package/dist/api/generated/models/server-cloud-service-code.d.ts +1 -0
  33. package/dist/api/generated/models/server-cloud-service-code.js +1 -0
  34. package/dist/services/ApplicationService.d.ts +1 -2
  35. package/dist/services/ApplicationService.js +0 -2
  36. package/dist/services/EnvironmentService.d.ts +0 -22
  37. package/dist/services/EnvironmentService.js +0 -22
  38. package/dist/services/index.d.ts +1 -0
  39. package/dist/services/index.js +1 -0
  40. package/package.json +10 -10
  41. package/dist/api/generated/apis/applications-deployments-api.d.ts +0 -26
  42. package/dist/api/generated/apis/applications-deployments-api.js +0 -53
  43. package/dist/api/generated/apis/environments-applications-api.d.ts +0 -36
  44. package/dist/api/generated/apis/environments-applications-api.js +0 -78
  45. package/dist/api/generated/apis/environments-credentials-api.d.ts +0 -46
  46. package/dist/api/generated/apis/environments-credentials-api.js +0 -100
  47. package/dist/api/generated/apis/environments-cron-jobs-api.d.ts +0 -36
  48. package/dist/api/generated/apis/environments-cron-jobs-api.js +0 -78
  49. package/dist/api/generated/apis/environments-daemons-api.d.ts +0 -36
  50. package/dist/api/generated/apis/environments-daemons-api.js +0 -78
  51. package/dist/api/generated/apis/environments-network-rules-api.d.ts +0 -36
  52. package/dist/api/generated/apis/environments-network-rules-api.js +0 -78
  53. package/dist/api/generated/apis/environments-networks-api.d.ts +0 -39
  54. package/dist/api/generated/apis/environments-networks-api.js +0 -81
  55. package/dist/api/generated/apis/environments-servers-api.d.ts +0 -36
  56. package/dist/api/generated/apis/environments-servers-api.js +0 -78
  57. package/dist/api/generated/apis/environments-services-api.d.ts +0 -36
  58. package/dist/api/generated/apis/environments-services-api.js +0 -78
  59. package/dist/api/generated/apis/environments-sshkeys-api.d.ts +0 -36
  60. package/dist/api/generated/apis/environments-sshkeys-api.js +0 -78
  61. package/dist/api/generated/apis/environments-sslcertificates-api.d.ts +0 -36
  62. package/dist/api/generated/apis/environments-sslcertificates-api.js +0 -78
  63. package/dist/api/generated/apis/environments-virtual-hosts-api.d.ts +0 -36
  64. 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.EnvironmentsSSHKeysApiService = 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
- * EnvironmentsSSHKeysApiService - Auto-generated
30
- */
31
- class EnvironmentsSSHKeysApiService extends ApiBaseService_1.ApiBaseService {
32
- /**
33
- *
34
- * @summary Create an SSH key and link it to the given environment
35
- * @param {number} environmentId The ID of the environment.
36
- * @param {SshKeyEnvironmentCreate} sshKeyEnvironmentCreate A JSON object containing the resource data
37
- */
38
- addEnvironmentSshKey(environmentId, sshKeyEnvironmentCreate) {
39
- return __awaiter(this, void 0, void 0, function* () {
40
- if (environmentId === null || environmentId === undefined) {
41
- throw new Exceptions_1.ArgumentNullException('environmentId', 'addEnvironmentSshKey');
42
- }
43
- if (sshKeyEnvironmentCreate === null || sshKeyEnvironmentCreate === undefined) {
44
- throw new Exceptions_1.ArgumentNullException('sshKeyEnvironmentCreate', 'addEnvironmentSshKey');
45
- }
46
- let queryString = '';
47
- const requestUrl = '/environments/{environment_id}/ssh-keys' + (queryString ? `?${queryString}` : '');
48
- const response = yield this.post(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))), sshKeyEnvironmentCreate);
49
- return new ApiResponse_1.ApiResponse(response);
50
- });
51
- }
52
- /**
53
- *
54
- * @summary Return a list of all SSH keys added 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
- listEnvironmentSshKeys(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', 'listEnvironmentSshKeys');
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}/ssh-keys' + (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.EnvironmentsSSHKeysApiService = EnvironmentsSSHKeysApiService;
@@ -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 { SslCertificate } from '../../generated/models';
15
- import { SslCertificateEnvironmentCreate } from '../../generated/models';
16
- import { SslCertificateRelation } from '../../generated/models';
17
- /**
18
- * EnvironmentsSSLCertificatesApiService - Auto-generated
19
- */
20
- export declare class EnvironmentsSSLCertificatesApiService extends ApiBaseService {
21
- /**
22
- *
23
- * @summary Create a new ssl certificate
24
- * @param {number} environmentId The ID of the environment.
25
- * @param {SslCertificateEnvironmentCreate} sslCertificateEnvironmentCreate A JSON object containing the resource data
26
- */
27
- addEnvironmentSslCertificate(environmentId: number, sslCertificateEnvironmentCreate: SslCertificateEnvironmentCreate): Promise<ApiResponse<SslCertificate>>;
28
- /**
29
- *
30
- * @summary Return a list of all SSL Certificates 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
- listEnvironmentSslCertificates(environmentId: number, page?: number, perPage?: number): Promise<ApiResponse<Array<SslCertificateRelation>>>;
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.EnvironmentsSSLCertificatesApiService = 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
- * EnvironmentsSSLCertificatesApiService - Auto-generated
30
- */
31
- class EnvironmentsSSLCertificatesApiService extends ApiBaseService_1.ApiBaseService {
32
- /**
33
- *
34
- * @summary Create a new ssl certificate
35
- * @param {number} environmentId The ID of the environment.
36
- * @param {SslCertificateEnvironmentCreate} sslCertificateEnvironmentCreate A JSON object containing the resource data
37
- */
38
- addEnvironmentSslCertificate(environmentId, sslCertificateEnvironmentCreate) {
39
- return __awaiter(this, void 0, void 0, function* () {
40
- if (environmentId === null || environmentId === undefined) {
41
- throw new Exceptions_1.ArgumentNullException('environmentId', 'addEnvironmentSslCertificate');
42
- }
43
- if (sslCertificateEnvironmentCreate === null || sslCertificateEnvironmentCreate === undefined) {
44
- throw new Exceptions_1.ArgumentNullException('sslCertificateEnvironmentCreate', 'addEnvironmentSslCertificate');
45
- }
46
- let queryString = '';
47
- const requestUrl = '/environments/{environment_id}/ssl-certificates' + (queryString ? `?${queryString}` : '');
48
- const response = yield this.post(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))), sslCertificateEnvironmentCreate);
49
- return new ApiResponse_1.ApiResponse(response);
50
- });
51
- }
52
- /**
53
- *
54
- * @summary Return a list of all SSL Certificates 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
- listEnvironmentSslCertificates(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', 'listEnvironmentSslCertificates');
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}/ssl-certificates' + (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.EnvironmentsSSLCertificatesApiService = EnvironmentsSSLCertificatesApiService;
@@ -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 { VirtualHost } from '../../generated/models';
15
- import { VirtualHostEnvironmentCreate } from '../../generated/models';
16
- import { VirtualHostRelation } from '../../generated/models';
17
- /**
18
- * EnvironmentsVirtualHostsApiService - Auto-generated
19
- */
20
- export declare class EnvironmentsVirtualHostsApiService extends ApiBaseService {
21
- /**
22
- *
23
- * @summary Create a new virtual host
24
- * @param {number} environmentId The ID of the environment.
25
- * @param {VirtualHostEnvironmentCreate} virtualHostEnvironmentCreate A JSON object containing the resource data
26
- */
27
- addEnvironmentVirtualHost(environmentId: number, virtualHostEnvironmentCreate: VirtualHostEnvironmentCreate): Promise<ApiResponse<VirtualHost>>;
28
- /**
29
- *
30
- * @summary Return a list of all Virtual Hosts 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
- listEnvironmentVirtualHosts(environmentId: number, page?: number, perPage?: number): Promise<ApiResponse<Array<VirtualHostRelation>>>;
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.EnvironmentsVirtualHostsApiService = 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
- * EnvironmentsVirtualHostsApiService - Auto-generated
30
- */
31
- class EnvironmentsVirtualHostsApiService extends ApiBaseService_1.ApiBaseService {
32
- /**
33
- *
34
- * @summary Create a new virtual host
35
- * @param {number} environmentId The ID of the environment.
36
- * @param {VirtualHostEnvironmentCreate} virtualHostEnvironmentCreate A JSON object containing the resource data
37
- */
38
- addEnvironmentVirtualHost(environmentId, virtualHostEnvironmentCreate) {
39
- return __awaiter(this, void 0, void 0, function* () {
40
- if (environmentId === null || environmentId === undefined) {
41
- throw new Exceptions_1.ArgumentNullException('environmentId', 'addEnvironmentVirtualHost');
42
- }
43
- if (virtualHostEnvironmentCreate === null || virtualHostEnvironmentCreate === undefined) {
44
- throw new Exceptions_1.ArgumentNullException('virtualHostEnvironmentCreate', 'addEnvironmentVirtualHost');
45
- }
46
- let queryString = '';
47
- const requestUrl = '/environments/{environment_id}/virtual-hosts' + (queryString ? `?${queryString}` : '');
48
- const response = yield this.post(requestUrl.replace(`{${"environment_id"}}`, encodeURIComponent(String(environmentId))), virtualHostEnvironmentCreate);
49
- return new ApiResponse_1.ApiResponse(response);
50
- });
51
- }
52
- /**
53
- *
54
- * @summary Return a list of all Virtual Hosts 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
- listEnvironmentVirtualHosts(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', 'listEnvironmentVirtualHosts');
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}/virtual-hosts' + (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.EnvironmentsVirtualHostsApiService = EnvironmentsVirtualHostsApiService;