@northflank/js-client 0.3.4 → 0.5.0-beta.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 (258) hide show
  1. package/README.md +2 -2
  2. package/dist/cjs/api-client.d.ts +6013 -0
  3. package/dist/cjs/api-client.js +1 -0
  4. package/dist/cjs/package.json +3 -0
  5. package/dist/esm/api-client.d.ts +6013 -0
  6. package/dist/esm/api-client.js +15 -0
  7. package/dist/esm/package.json +3 -0
  8. package/package.json +13 -20
  9. package/dist/api-client.d.ts +0 -497
  10. package/dist/api-client.js +0 -625
  11. package/dist/api-endpoint.d.ts +0 -63
  12. package/dist/api-endpoint.js +0 -216
  13. package/dist/context/api-client-context-provider.d.ts +0 -47
  14. package/dist/context/api-client-context-provider.js +0 -332
  15. package/dist/context/api-client-file-context-provider.d.ts +0 -11
  16. package/dist/context/api-client-file-context-provider.js +0 -136
  17. package/dist/context/api-client-in-memory-context-provider.d.ts +0 -6
  18. package/dist/context/api-client-in-memory-context-provider.js +0 -82
  19. package/dist/context/index.d.ts +0 -3
  20. package/dist/context/index.js +0 -15
  21. package/dist/endpoints/abort/addon/backup.d.ts +0 -21
  22. package/dist/endpoints/abort/addon/backup.js +0 -36
  23. package/dist/endpoints/abort/addon/restore.d.ts +0 -26
  24. package/dist/endpoints/abort/addon/restore.js +0 -36
  25. package/dist/endpoints/abort/job/run.d.ts +0 -21
  26. package/dist/endpoints/abort/job/run.js +0 -36
  27. package/dist/endpoints/add/domain/subdomain.d.ts +0 -33
  28. package/dist/endpoints/add/domain/subdomain.js +0 -36
  29. package/dist/endpoints/add/registryCredentials.d.ts +0 -47
  30. package/dist/endpoints/add/registryCredentials.js +0 -36
  31. package/dist/endpoints/assign/subdomain/service.d.ts +0 -25
  32. package/dist/endpoints/assign/subdomain/service.js +0 -36
  33. package/dist/endpoints/backup/addon.d.ts +0 -24
  34. package/dist/endpoints/backup/addon.js +0 -36
  35. package/dist/endpoints/create/addon.d.ts +0 -90
  36. package/dist/endpoints/create/addon.js +0 -36
  37. package/dist/endpoints/create/domain.d.ts +0 -27
  38. package/dist/endpoints/create/domain.js +0 -36
  39. package/dist/endpoints/create/job/cron.d.ts +0 -155
  40. package/dist/endpoints/create/job/cron.js +0 -36
  41. package/dist/endpoints/create/job/normal.d.ts +0 -145
  42. package/dist/endpoints/create/job/normal.js +0 -36
  43. package/dist/endpoints/create/project.d.ts +0 -24
  44. package/dist/endpoints/create/project.js +0 -36
  45. package/dist/endpoints/create/secret.d.ts +0 -79
  46. package/dist/endpoints/create/secret.js +0 -36
  47. package/dist/endpoints/create/service/build.d.ts +0 -112
  48. package/dist/endpoints/create/service/build.js +0 -36
  49. package/dist/endpoints/create/service/combined.d.ts +0 -168
  50. package/dist/endpoints/create/service/combined.js +0 -36
  51. package/dist/endpoints/create/service/deployment.d.ts +0 -141
  52. package/dist/endpoints/create/service/deployment.js +0 -36
  53. package/dist/endpoints/delete/addon.d.ts +0 -19
  54. package/dist/endpoints/delete/addon.js +0 -36
  55. package/dist/endpoints/delete/backup.d.ts +0 -21
  56. package/dist/endpoints/delete/backup.js +0 -36
  57. package/dist/endpoints/delete/domain.d.ts +0 -17
  58. package/dist/endpoints/delete/domain.js +0 -36
  59. package/dist/endpoints/delete/job.d.ts +0 -19
  60. package/dist/endpoints/delete/job.js +0 -36
  61. package/dist/endpoints/delete/project.d.ts +0 -17
  62. package/dist/endpoints/delete/project.js +0 -36
  63. package/dist/endpoints/delete/registryCredentials.d.ts +0 -17
  64. package/dist/endpoints/delete/registryCredentials.js +0 -36
  65. package/dist/endpoints/delete/secret.d.ts +0 -19
  66. package/dist/endpoints/delete/secret.js +0 -36
  67. package/dist/endpoints/delete/secretLink.d.ts +0 -21
  68. package/dist/endpoints/delete/secretLink.js +0 -36
  69. package/dist/endpoints/delete/service.d.ts +0 -19
  70. package/dist/endpoints/delete/service.js +0 -36
  71. package/dist/endpoints/delete/subdomain.d.ts +0 -19
  72. package/dist/endpoints/delete/subdomain.js +0 -36
  73. package/dist/endpoints/get/addon/backup/details.d.ts +0 -39
  74. package/dist/endpoints/get/addon/backup/details.js +0 -36
  75. package/dist/endpoints/get/addon/backup/download.d.ts +0 -24
  76. package/dist/endpoints/get/addon/backup/download.js +0 -36
  77. package/dist/endpoints/get/addon/backups.d.ts +0 -47
  78. package/dist/endpoints/get/addon/backups.js +0 -40
  79. package/dist/endpoints/get/addon/containers.d.ts +0 -40
  80. package/dist/endpoints/get/addon/containers.js +0 -40
  81. package/dist/endpoints/get/addon/credentials.d.ts +0 -24
  82. package/dist/endpoints/get/addon/credentials.js +0 -36
  83. package/dist/endpoints/get/addon/details.d.ts +0 -69
  84. package/dist/endpoints/get/addon/details.js +0 -36
  85. package/dist/endpoints/get/addon/types.d.ts +0 -48
  86. package/dist/endpoints/get/addon/types.js +0 -36
  87. package/dist/endpoints/get/addon/version.d.ts +0 -53
  88. package/dist/endpoints/get/addon/version.js +0 -36
  89. package/dist/endpoints/get/dnsId.d.ts +0 -15
  90. package/dist/endpoints/get/dnsId.js +0 -36
  91. package/dist/endpoints/get/domain/details.d.ts +0 -33
  92. package/dist/endpoints/get/domain/details.js +0 -36
  93. package/dist/endpoints/get/job/buildArguments.d.ts +0 -19
  94. package/dist/endpoints/get/job/buildArguments.js +0 -36
  95. package/dist/endpoints/get/job/builds.d.ts +0 -50
  96. package/dist/endpoints/get/job/builds.js +0 -39
  97. package/dist/endpoints/get/job/containers.d.ts +0 -40
  98. package/dist/endpoints/get/job/containers.js +0 -40
  99. package/dist/endpoints/get/job/deployment.d.ts +0 -51
  100. package/dist/endpoints/get/job/deployment.js +0 -36
  101. package/dist/endpoints/get/job/details.d.ts +0 -84
  102. package/dist/endpoints/get/job/details.js +0 -36
  103. package/dist/endpoints/get/job/environment.d.ts +0 -24
  104. package/dist/endpoints/get/job/environment.js +0 -40
  105. package/dist/endpoints/get/job/environmentDetails.d.ts +0 -42
  106. package/dist/endpoints/get/job/environmentDetails.js +0 -36
  107. package/dist/endpoints/get/job/healthChecks.d.ts +0 -44
  108. package/dist/endpoints/get/job/healthChecks.js +0 -36
  109. package/dist/endpoints/get/job/run.d.ts +0 -42
  110. package/dist/endpoints/get/job/run.js +0 -36
  111. package/dist/endpoints/get/job/runs.d.ts +0 -52
  112. package/dist/endpoints/get/job/runs.js +0 -39
  113. package/dist/endpoints/get/project/details.d.ts +0 -72
  114. package/dist/endpoints/get/project/details.js +0 -36
  115. package/dist/endpoints/get/registryCredentials.d.ts +0 -34
  116. package/dist/endpoints/get/registryCredentials.js +0 -36
  117. package/dist/endpoints/get/secret.d.ts +0 -55
  118. package/dist/endpoints/get/secret.js +0 -39
  119. package/dist/endpoints/get/secretDetails.d.ts +0 -63
  120. package/dist/endpoints/get/secretDetails.js +0 -36
  121. package/dist/endpoints/get/secretLink.d.ts +0 -44
  122. package/dist/endpoints/get/secretLink.js +0 -36
  123. package/dist/endpoints/get/service/buildArguments.d.ts +0 -19
  124. package/dist/endpoints/get/service/buildArguments.js +0 -36
  125. package/dist/endpoints/get/service/builds.d.ts +0 -50
  126. package/dist/endpoints/get/service/builds.js +0 -40
  127. package/dist/endpoints/get/service/containers.d.ts +0 -40
  128. package/dist/endpoints/get/service/containers.js +0 -40
  129. package/dist/endpoints/get/service/deployment.d.ts +0 -51
  130. package/dist/endpoints/get/service/deployment.js +0 -36
  131. package/dist/endpoints/get/service/details.d.ts +0 -101
  132. package/dist/endpoints/get/service/details.js +0 -36
  133. package/dist/endpoints/get/service/environmentVariableDetails.d.ts +0 -42
  134. package/dist/endpoints/get/service/environmentVariableDetails.js +0 -36
  135. package/dist/endpoints/get/service/environmentVariables.d.ts +0 -24
  136. package/dist/endpoints/get/service/environmentVariables.js +0 -40
  137. package/dist/endpoints/get/service/healthChecks.d.ts +0 -44
  138. package/dist/endpoints/get/service/healthChecks.js +0 -36
  139. package/dist/endpoints/get/service/ports.d.ts +0 -34
  140. package/dist/endpoints/get/service/ports.js +0 -36
  141. package/dist/endpoints/get/service/security.d.ts +0 -40
  142. package/dist/endpoints/get/service/security.js +0 -36
  143. package/dist/endpoints/get/subdomain/details.d.ts +0 -30
  144. package/dist/endpoints/get/subdomain/details.js +0 -36
  145. package/dist/endpoints/import/addon/backup.d.ts +0 -31
  146. package/dist/endpoints/import/addon/backup.js +0 -36
  147. package/dist/endpoints/list/addon.d.ts +0 -45
  148. package/dist/endpoints/list/addon.js +0 -39
  149. package/dist/endpoints/list/domain.d.ts +0 -34
  150. package/dist/endpoints/list/domain.js +0 -39
  151. package/dist/endpoints/list/job.d.ts +0 -44
  152. package/dist/endpoints/list/job.js +0 -39
  153. package/dist/endpoints/list/plan.d.ts +0 -30
  154. package/dist/endpoints/list/plan.js +0 -36
  155. package/dist/endpoints/list/project.d.ts +0 -32
  156. package/dist/endpoints/list/project.js +0 -39
  157. package/dist/endpoints/list/region.d.ts +0 -18
  158. package/dist/endpoints/list/region.js +0 -36
  159. package/dist/endpoints/list/registryCredentials.d.ts +0 -41
  160. package/dist/endpoints/list/registryCredentials.js +0 -39
  161. package/dist/endpoints/list/secret.d.ts +0 -52
  162. package/dist/endpoints/list/secret.js +0 -39
  163. package/dist/endpoints/list/service.d.ts +0 -44
  164. package/dist/endpoints/list/service.js +0 -39
  165. package/dist/endpoints/list/vcs.d.ts +0 -51
  166. package/dist/endpoints/list/vcs.js +0 -36
  167. package/dist/endpoints/pause/addon.d.ts +0 -19
  168. package/dist/endpoints/pause/addon.js +0 -36
  169. package/dist/endpoints/pause/service.d.ts +0 -19
  170. package/dist/endpoints/pause/service.js +0 -36
  171. package/dist/endpoints/restart/addon.d.ts +0 -19
  172. package/dist/endpoints/restart/addon.js +0 -36
  173. package/dist/endpoints/restart/service.d.ts +0 -19
  174. package/dist/endpoints/restart/service.js +0 -36
  175. package/dist/endpoints/restore/addon/backup.d.ts +0 -21
  176. package/dist/endpoints/restore/addon/backup.js +0 -36
  177. package/dist/endpoints/resume/addon.d.ts +0 -19
  178. package/dist/endpoints/resume/addon.js +0 -36
  179. package/dist/endpoints/resume/service.d.ts +0 -24
  180. package/dist/endpoints/resume/service.js +0 -36
  181. package/dist/endpoints/scale/addon.d.ts +0 -28
  182. package/dist/endpoints/scale/addon.js +0 -36
  183. package/dist/endpoints/scale/service.d.ts +0 -26
  184. package/dist/endpoints/scale/service.js +0 -36
  185. package/dist/endpoints/start/job/build.d.ts +0 -37
  186. package/dist/endpoints/start/job/build.js +0 -36
  187. package/dist/endpoints/start/job/run.d.ts +0 -24
  188. package/dist/endpoints/start/job/run.js +0 -36
  189. package/dist/endpoints/start/service/build.d.ts +0 -41
  190. package/dist/endpoints/start/service/build.js +0 -36
  191. package/dist/endpoints/unassign/subdomain.d.ts +0 -19
  192. package/dist/endpoints/unassign/subdomain.js +0 -36
  193. package/dist/endpoints/update/addon/networkSettings.d.ts +0 -26
  194. package/dist/endpoints/update/addon/networkSettings.js +0 -36
  195. package/dist/endpoints/update/addon/security.d.ts +0 -29
  196. package/dist/endpoints/update/addon/security.js +0 -36
  197. package/dist/endpoints/update/addon/version.d.ts +0 -24
  198. package/dist/endpoints/update/addon/version.js +0 -36
  199. package/dist/endpoints/update/job/buildArguments.d.ts +0 -24
  200. package/dist/endpoints/update/job/buildArguments.js +0 -36
  201. package/dist/endpoints/update/job/cmdOverride.d.ts +0 -24
  202. package/dist/endpoints/update/job/cmdOverride.js +0 -36
  203. package/dist/endpoints/update/job/deployment.d.ts +0 -37
  204. package/dist/endpoints/update/job/deployment.js +0 -36
  205. package/dist/endpoints/update/job/environment.d.ts +0 -24
  206. package/dist/endpoints/update/job/environment.js +0 -36
  207. package/dist/endpoints/update/job/healthChecks.d.ts +0 -44
  208. package/dist/endpoints/update/job/healthChecks.js +0 -36
  209. package/dist/endpoints/update/job/settings.d.ts +0 -30
  210. package/dist/endpoints/update/job/settings.js +0 -36
  211. package/dist/endpoints/update/registryCredentials.d.ts +0 -31
  212. package/dist/endpoints/update/registryCredentials.js +0 -36
  213. package/dist/endpoints/update/secret.d.ts +0 -54
  214. package/dist/endpoints/update/secret.js +0 -36
  215. package/dist/endpoints/update/secretLink.d.ts +0 -40
  216. package/dist/endpoints/update/secretLink.js +0 -36
  217. package/dist/endpoints/update/service/buildArguments.d.ts +0 -24
  218. package/dist/endpoints/update/service/buildArguments.js +0 -36
  219. package/dist/endpoints/update/service/buildOptions.d.ts +0 -43
  220. package/dist/endpoints/update/service/buildOptions.js +0 -36
  221. package/dist/endpoints/update/service/cmdOverride.d.ts +0 -24
  222. package/dist/endpoints/update/service/cmdOverride.js +0 -36
  223. package/dist/endpoints/update/service/deployment.d.ts +0 -37
  224. package/dist/endpoints/update/service/deployment.js +0 -36
  225. package/dist/endpoints/update/service/environmentVariables.d.ts +0 -29
  226. package/dist/endpoints/update/service/environmentVariables.js +0 -36
  227. package/dist/endpoints/update/service/healthChecks.d.ts +0 -44
  228. package/dist/endpoints/update/service/healthChecks.js +0 -36
  229. package/dist/endpoints/update/service/ports.d.ts +0 -37
  230. package/dist/endpoints/update/service/ports.js +0 -36
  231. package/dist/endpoints/update/service/security.d.ts +0 -42
  232. package/dist/endpoints/update/service/security.js +0 -36
  233. package/dist/endpoints/verify/domain.d.ts +0 -17
  234. package/dist/endpoints/verify/domain.js +0 -36
  235. package/dist/endpoints/verify/subdomain.d.ts +0 -19
  236. package/dist/endpoints/verify/subdomain.js +0 -36
  237. package/dist/port-forward/client/api-helper.d.ts +0 -30
  238. package/dist/port-forward/client/api-helper.js +0 -102
  239. package/dist/port-forward/client/atomic-write.d.ts +0 -3
  240. package/dist/port-forward/client/atomic-write.js +0 -95
  241. package/dist/port-forward/client/host-file-ast.d.ts +0 -52
  242. package/dist/port-forward/client/host-file-ast.js +0 -279
  243. package/dist/port-forward/client/host-file.d.ts +0 -26
  244. package/dist/port-forward/client/host-file.js +0 -226
  245. package/dist/port-forward/client/loopback.d.ts +0 -4
  246. package/dist/port-forward/client/loopback.js +0 -219
  247. package/dist/port-forward/client/port-forwarder.d.ts +0 -79
  248. package/dist/port-forward/client/port-forwarder.js +0 -569
  249. package/dist/port-forward/client/port-tunnel-tcp.d.ts +0 -34
  250. package/dist/port-forward/client/port-tunnel-tcp.js +0 -209
  251. package/dist/port-forward/client/port-tunnel-udp.d.ts +0 -25
  252. package/dist/port-forward/client/port-tunnel-udp.js +0 -147
  253. package/dist/port-forward/client/port-tunnel.d.ts +0 -32
  254. package/dist/port-forward/client/port-tunnel.js +0 -2
  255. package/dist/port-forward/client/promise-mutex.d.ts +0 -4
  256. package/dist/port-forward/client/promise-mutex.js +0 -62
  257. package/dist/utils.d.ts +0 -7
  258. package/dist/utils.js +0 -46
@@ -1,36 +0,0 @@
1
- "use strict";
2
- /** WARNING: Autogenerated Code - do not modify! */
3
- var __extends = (this && this.__extends) || (function () {
4
- var extendStatics = function (d, b) {
5
- extendStatics = Object.setPrototypeOf ||
6
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
8
- return extendStatics(d, b);
9
- };
10
- return function (d, b) {
11
- if (typeof b !== "function" && b !== null)
12
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
13
- extendStatics(d, b);
14
- function __() { this.constructor = d; }
15
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
16
- };
17
- })();
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.CreateServiceDeploymentEndpoint = void 0;
20
- var api_endpoint_1 = require("../../../api-endpoint");
21
- /** Creates a new deployment service. */
22
- var CreateServiceDeploymentEndpoint = /** @class */ (function (_super) {
23
- __extends(CreateServiceDeploymentEndpoint, _super);
24
- function CreateServiceDeploymentEndpoint() {
25
- var _this = _super !== null && _super.apply(this, arguments) || this;
26
- _this.description = 'Creates a new deployment service.';
27
- _this.withAuth = true;
28
- _this.endpointUrl = function (opts) {
29
- return "/v1/projects/" + opts.parameters.projectId + "/services/deployment";
30
- };
31
- _this.body = function (payload) { return JSON.stringify(payload.data); };
32
- return _this;
33
- }
34
- return CreateServiceDeploymentEndpoint;
35
- }(api_endpoint_1.PostApiEndpoint));
36
- exports.CreateServiceDeploymentEndpoint = CreateServiceDeploymentEndpoint;
@@ -1,19 +0,0 @@
1
- /** WARNING: Autogenerated Code - do not modify! */
2
- import { ApiCallResponse, DeleteApiEndpoint } from '../../api-endpoint';
3
- export declare type DeleteAddonResult = any;
4
- export declare type DeleteAddonCall = (opts: DeleteAddonRequest) => Promise<ApiCallResponse<DeleteAddonResult>>;
5
- export declare type DeleteAddonRequest = {
6
- parameters: DeleteAddonParameters;
7
- };
8
- export declare type DeleteAddonParameters = {
9
- /** ID of the project */ 'projectId': string;
10
- /** ID of the addon */
11
- 'addonId': string;
12
- };
13
- /** Deletes the given addon. */
14
- export declare class DeleteAddonEndpoint extends DeleteApiEndpoint<DeleteAddonRequest, DeleteAddonResult> {
15
- description: string;
16
- withAuth: boolean;
17
- endpointUrl: (opts: DeleteAddonRequest) => string;
18
- body: () => undefined;
19
- }
@@ -1,36 +0,0 @@
1
- "use strict";
2
- /** WARNING: Autogenerated Code - do not modify! */
3
- var __extends = (this && this.__extends) || (function () {
4
- var extendStatics = function (d, b) {
5
- extendStatics = Object.setPrototypeOf ||
6
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
8
- return extendStatics(d, b);
9
- };
10
- return function (d, b) {
11
- if (typeof b !== "function" && b !== null)
12
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
13
- extendStatics(d, b);
14
- function __() { this.constructor = d; }
15
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
16
- };
17
- })();
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.DeleteAddonEndpoint = void 0;
20
- var api_endpoint_1 = require("../../api-endpoint");
21
- /** Deletes the given addon. */
22
- var DeleteAddonEndpoint = /** @class */ (function (_super) {
23
- __extends(DeleteAddonEndpoint, _super);
24
- function DeleteAddonEndpoint() {
25
- var _this = _super !== null && _super.apply(this, arguments) || this;
26
- _this.description = 'Deletes the given addon.';
27
- _this.withAuth = true;
28
- _this.endpointUrl = function (opts) {
29
- return "/v1/projects/" + opts.parameters.projectId + "/addons/" + opts.parameters.addonId;
30
- };
31
- _this.body = function () { return undefined; };
32
- return _this;
33
- }
34
- return DeleteAddonEndpoint;
35
- }(api_endpoint_1.DeleteApiEndpoint));
36
- exports.DeleteAddonEndpoint = DeleteAddonEndpoint;
@@ -1,21 +0,0 @@
1
- /** WARNING: Autogenerated Code - do not modify! */
2
- import { ApiCallResponse, DeleteApiEndpoint } from '../../api-endpoint';
3
- export declare type DeleteBackupResult = any;
4
- export declare type DeleteBackupCall = (opts: DeleteBackupRequest) => Promise<ApiCallResponse<DeleteBackupResult>>;
5
- export declare type DeleteBackupRequest = {
6
- parameters: DeleteBackupParameters;
7
- };
8
- export declare type DeleteBackupParameters = {
9
- /** ID of the project */ 'projectId': string;
10
- /** ID of the addon */
11
- 'addonId': string;
12
- /** ID of the backup */
13
- 'backupId': string;
14
- };
15
- /** Deletes a given backup */
16
- export declare class DeleteBackupEndpoint extends DeleteApiEndpoint<DeleteBackupRequest, DeleteBackupResult> {
17
- description: string;
18
- withAuth: boolean;
19
- endpointUrl: (opts: DeleteBackupRequest) => string;
20
- body: () => undefined;
21
- }
@@ -1,36 +0,0 @@
1
- "use strict";
2
- /** WARNING: Autogenerated Code - do not modify! */
3
- var __extends = (this && this.__extends) || (function () {
4
- var extendStatics = function (d, b) {
5
- extendStatics = Object.setPrototypeOf ||
6
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
8
- return extendStatics(d, b);
9
- };
10
- return function (d, b) {
11
- if (typeof b !== "function" && b !== null)
12
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
13
- extendStatics(d, b);
14
- function __() { this.constructor = d; }
15
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
16
- };
17
- })();
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.DeleteBackupEndpoint = void 0;
20
- var api_endpoint_1 = require("../../api-endpoint");
21
- /** Deletes a given backup */
22
- var DeleteBackupEndpoint = /** @class */ (function (_super) {
23
- __extends(DeleteBackupEndpoint, _super);
24
- function DeleteBackupEndpoint() {
25
- var _this = _super !== null && _super.apply(this, arguments) || this;
26
- _this.description = 'Deletes a given backup';
27
- _this.withAuth = true;
28
- _this.endpointUrl = function (opts) {
29
- return "/v1/projects/" + opts.parameters.projectId + "/addons/" + opts.parameters.addonId + "/backups/" + opts.parameters.backupId;
30
- };
31
- _this.body = function () { return undefined; };
32
- return _this;
33
- }
34
- return DeleteBackupEndpoint;
35
- }(api_endpoint_1.DeleteApiEndpoint));
36
- exports.DeleteBackupEndpoint = DeleteBackupEndpoint;
@@ -1,17 +0,0 @@
1
- /** WARNING: Autogenerated Code - do not modify! */
2
- import { ApiCallResponse, DeleteApiEndpoint } from '../../api-endpoint';
3
- export declare type DeleteDomainResult = any;
4
- export declare type DeleteDomainCall = (opts: DeleteDomainRequest) => Promise<ApiCallResponse<DeleteDomainResult>>;
5
- export declare type DeleteDomainRequest = {
6
- parameters: DeleteDomainParameters;
7
- };
8
- export declare type DeleteDomainParameters = {
9
- /** Name of the domain */ 'domain': string;
10
- };
11
- /** Deletes a domain and each of its registered subdomains. */
12
- export declare class DeleteDomainEndpoint extends DeleteApiEndpoint<DeleteDomainRequest, DeleteDomainResult> {
13
- description: string;
14
- withAuth: boolean;
15
- endpointUrl: (opts: DeleteDomainRequest) => string;
16
- body: () => undefined;
17
- }
@@ -1,36 +0,0 @@
1
- "use strict";
2
- /** WARNING: Autogenerated Code - do not modify! */
3
- var __extends = (this && this.__extends) || (function () {
4
- var extendStatics = function (d, b) {
5
- extendStatics = Object.setPrototypeOf ||
6
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
8
- return extendStatics(d, b);
9
- };
10
- return function (d, b) {
11
- if (typeof b !== "function" && b !== null)
12
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
13
- extendStatics(d, b);
14
- function __() { this.constructor = d; }
15
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
16
- };
17
- })();
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.DeleteDomainEndpoint = void 0;
20
- var api_endpoint_1 = require("../../api-endpoint");
21
- /** Deletes a domain and each of its registered subdomains. */
22
- var DeleteDomainEndpoint = /** @class */ (function (_super) {
23
- __extends(DeleteDomainEndpoint, _super);
24
- function DeleteDomainEndpoint() {
25
- var _this = _super !== null && _super.apply(this, arguments) || this;
26
- _this.description = 'Deletes a domain and each of its registered subdomains.';
27
- _this.withAuth = true;
28
- _this.endpointUrl = function (opts) {
29
- return "/v1/domains/" + opts.parameters.domain;
30
- };
31
- _this.body = function () { return undefined; };
32
- return _this;
33
- }
34
- return DeleteDomainEndpoint;
35
- }(api_endpoint_1.DeleteApiEndpoint));
36
- exports.DeleteDomainEndpoint = DeleteDomainEndpoint;
@@ -1,19 +0,0 @@
1
- /** WARNING: Autogenerated Code - do not modify! */
2
- import { ApiCallResponse, DeleteApiEndpoint } from '../../api-endpoint';
3
- export declare type DeleteJobResult = any;
4
- export declare type DeleteJobCall = (opts: DeleteJobRequest) => Promise<ApiCallResponse<DeleteJobResult>>;
5
- export declare type DeleteJobRequest = {
6
- parameters: DeleteJobParameters;
7
- };
8
- export declare type DeleteJobParameters = {
9
- /** ID of the project */ 'projectId': string;
10
- /** ID of the job */
11
- 'jobId': string;
12
- };
13
- /** Deletes the given job. */
14
- export declare class DeleteJobEndpoint extends DeleteApiEndpoint<DeleteJobRequest, DeleteJobResult> {
15
- description: string;
16
- withAuth: boolean;
17
- endpointUrl: (opts: DeleteJobRequest) => string;
18
- body: () => undefined;
19
- }
@@ -1,36 +0,0 @@
1
- "use strict";
2
- /** WARNING: Autogenerated Code - do not modify! */
3
- var __extends = (this && this.__extends) || (function () {
4
- var extendStatics = function (d, b) {
5
- extendStatics = Object.setPrototypeOf ||
6
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
8
- return extendStatics(d, b);
9
- };
10
- return function (d, b) {
11
- if (typeof b !== "function" && b !== null)
12
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
13
- extendStatics(d, b);
14
- function __() { this.constructor = d; }
15
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
16
- };
17
- })();
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.DeleteJobEndpoint = void 0;
20
- var api_endpoint_1 = require("../../api-endpoint");
21
- /** Deletes the given job. */
22
- var DeleteJobEndpoint = /** @class */ (function (_super) {
23
- __extends(DeleteJobEndpoint, _super);
24
- function DeleteJobEndpoint() {
25
- var _this = _super !== null && _super.apply(this, arguments) || this;
26
- _this.description = 'Deletes the given job.';
27
- _this.withAuth = true;
28
- _this.endpointUrl = function (opts) {
29
- return "/v1/projects/" + opts.parameters.projectId + "/jobs/" + opts.parameters.jobId;
30
- };
31
- _this.body = function () { return undefined; };
32
- return _this;
33
- }
34
- return DeleteJobEndpoint;
35
- }(api_endpoint_1.DeleteApiEndpoint));
36
- exports.DeleteJobEndpoint = DeleteJobEndpoint;
@@ -1,17 +0,0 @@
1
- /** WARNING: Autogenerated Code - do not modify! */
2
- import { ApiCallResponse, DeleteApiEndpoint } from '../../api-endpoint';
3
- export declare type DeleteProjectResult = any | any;
4
- export declare type DeleteProjectCall = (opts: DeleteProjectRequest) => Promise<ApiCallResponse<DeleteProjectResult>>;
5
- export declare type DeleteProjectRequest = {
6
- parameters: DeleteProjectParameters;
7
- };
8
- export declare type DeleteProjectParameters = {
9
- /** ID of the project */ 'projectId': string;
10
- };
11
- /** Delete the given project. Fails if the project isn't empty. */
12
- export declare class DeleteProjectEndpoint extends DeleteApiEndpoint<DeleteProjectRequest, DeleteProjectResult> {
13
- description: string;
14
- withAuth: boolean;
15
- endpointUrl: (opts: DeleteProjectRequest) => string;
16
- body: () => undefined;
17
- }
@@ -1,36 +0,0 @@
1
- "use strict";
2
- /** WARNING: Autogenerated Code - do not modify! */
3
- var __extends = (this && this.__extends) || (function () {
4
- var extendStatics = function (d, b) {
5
- extendStatics = Object.setPrototypeOf ||
6
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
8
- return extendStatics(d, b);
9
- };
10
- return function (d, b) {
11
- if (typeof b !== "function" && b !== null)
12
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
13
- extendStatics(d, b);
14
- function __() { this.constructor = d; }
15
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
16
- };
17
- })();
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.DeleteProjectEndpoint = void 0;
20
- var api_endpoint_1 = require("../../api-endpoint");
21
- /** Delete the given project. Fails if the project isn't empty. */
22
- var DeleteProjectEndpoint = /** @class */ (function (_super) {
23
- __extends(DeleteProjectEndpoint, _super);
24
- function DeleteProjectEndpoint() {
25
- var _this = _super !== null && _super.apply(this, arguments) || this;
26
- _this.description = "Delete the given project. Fails if the project isn't empty.";
27
- _this.withAuth = true;
28
- _this.endpointUrl = function (opts) {
29
- return "/v1/projects/" + opts.parameters.projectId;
30
- };
31
- _this.body = function () { return undefined; };
32
- return _this;
33
- }
34
- return DeleteProjectEndpoint;
35
- }(api_endpoint_1.DeleteApiEndpoint));
36
- exports.DeleteProjectEndpoint = DeleteProjectEndpoint;
@@ -1,17 +0,0 @@
1
- /** WARNING: Autogenerated Code - do not modify! */
2
- import { ApiCallResponse, DeleteApiEndpoint } from '../../api-endpoint';
3
- export declare type DeleteRegistrycredentialsResult = any;
4
- export declare type DeleteRegistrycredentialsCall = (opts: DeleteRegistrycredentialsRequest) => Promise<ApiCallResponse<DeleteRegistrycredentialsResult>>;
5
- export declare type DeleteRegistrycredentialsRequest = {
6
- parameters: DeleteRegistrycredentialsParameters;
7
- };
8
- export declare type DeleteRegistrycredentialsParameters = {
9
- /** ID of the registry credential */ 'credentialId': string;
10
- };
11
- /** Deletes a set of registry credential data. */
12
- export declare class DeleteRegistrycredentialsEndpoint extends DeleteApiEndpoint<DeleteRegistrycredentialsRequest, DeleteRegistrycredentialsResult> {
13
- description: string;
14
- withAuth: boolean;
15
- endpointUrl: (opts: DeleteRegistrycredentialsRequest) => string;
16
- body: () => undefined;
17
- }
@@ -1,36 +0,0 @@
1
- "use strict";
2
- /** WARNING: Autogenerated Code - do not modify! */
3
- var __extends = (this && this.__extends) || (function () {
4
- var extendStatics = function (d, b) {
5
- extendStatics = Object.setPrototypeOf ||
6
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
8
- return extendStatics(d, b);
9
- };
10
- return function (d, b) {
11
- if (typeof b !== "function" && b !== null)
12
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
13
- extendStatics(d, b);
14
- function __() { this.constructor = d; }
15
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
16
- };
17
- })();
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.DeleteRegistrycredentialsEndpoint = void 0;
20
- var api_endpoint_1 = require("../../api-endpoint");
21
- /** Deletes a set of registry credential data. */
22
- var DeleteRegistrycredentialsEndpoint = /** @class */ (function (_super) {
23
- __extends(DeleteRegistrycredentialsEndpoint, _super);
24
- function DeleteRegistrycredentialsEndpoint() {
25
- var _this = _super !== null && _super.apply(this, arguments) || this;
26
- _this.description = 'Deletes a set of registry credential data.';
27
- _this.withAuth = true;
28
- _this.endpointUrl = function (opts) {
29
- return "/v1/registry-credentials/" + opts.parameters.credentialId;
30
- };
31
- _this.body = function () { return undefined; };
32
- return _this;
33
- }
34
- return DeleteRegistrycredentialsEndpoint;
35
- }(api_endpoint_1.DeleteApiEndpoint));
36
- exports.DeleteRegistrycredentialsEndpoint = DeleteRegistrycredentialsEndpoint;
@@ -1,19 +0,0 @@
1
- /** WARNING: Autogenerated Code - do not modify! */
2
- import { ApiCallResponse, DeleteApiEndpoint } from '../../api-endpoint';
3
- export declare type DeleteSecretResult = any;
4
- export declare type DeleteSecretCall = (opts: DeleteSecretRequest) => Promise<ApiCallResponse<DeleteSecretResult>>;
5
- export declare type DeleteSecretRequest = {
6
- parameters: DeleteSecretParameters;
7
- };
8
- export declare type DeleteSecretParameters = {
9
- /** ID of the project */ 'projectId': string;
10
- /** ID of the secret */
11
- 'secretId': string;
12
- };
13
- /** Delete a secret */
14
- export declare class DeleteSecretEndpoint extends DeleteApiEndpoint<DeleteSecretRequest, DeleteSecretResult> {
15
- description: string;
16
- withAuth: boolean;
17
- endpointUrl: (opts: DeleteSecretRequest) => string;
18
- body: () => undefined;
19
- }
@@ -1,36 +0,0 @@
1
- "use strict";
2
- /** WARNING: Autogenerated Code - do not modify! */
3
- var __extends = (this && this.__extends) || (function () {
4
- var extendStatics = function (d, b) {
5
- extendStatics = Object.setPrototypeOf ||
6
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
8
- return extendStatics(d, b);
9
- };
10
- return function (d, b) {
11
- if (typeof b !== "function" && b !== null)
12
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
13
- extendStatics(d, b);
14
- function __() { this.constructor = d; }
15
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
16
- };
17
- })();
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.DeleteSecretEndpoint = void 0;
20
- var api_endpoint_1 = require("../../api-endpoint");
21
- /** Delete a secret */
22
- var DeleteSecretEndpoint = /** @class */ (function (_super) {
23
- __extends(DeleteSecretEndpoint, _super);
24
- function DeleteSecretEndpoint() {
25
- var _this = _super !== null && _super.apply(this, arguments) || this;
26
- _this.description = 'Delete a secret';
27
- _this.withAuth = true;
28
- _this.endpointUrl = function (opts) {
29
- return "/v1/projects/" + opts.parameters.projectId + "/secrets/" + opts.parameters.secretId;
30
- };
31
- _this.body = function () { return undefined; };
32
- return _this;
33
- }
34
- return DeleteSecretEndpoint;
35
- }(api_endpoint_1.DeleteApiEndpoint));
36
- exports.DeleteSecretEndpoint = DeleteSecretEndpoint;
@@ -1,21 +0,0 @@
1
- /** WARNING: Autogenerated Code - do not modify! */
2
- import { ApiCallResponse, DeleteApiEndpoint } from '../../api-endpoint';
3
- export declare type DeleteSecretlinkResult = any;
4
- export declare type DeleteSecretlinkCall = (opts: DeleteSecretlinkRequest) => Promise<ApiCallResponse<DeleteSecretlinkResult>>;
5
- export declare type DeleteSecretlinkRequest = {
6
- parameters: DeleteSecretlinkParameters;
7
- };
8
- export declare type DeleteSecretlinkParameters = {
9
- /** ID of the project */ 'projectId': string;
10
- /** ID of the secret */
11
- 'secretId': string;
12
- /** ID of the addon */
13
- 'addonId': string;
14
- };
15
- /** Unlinks an addon from the secret group. */
16
- export declare class DeleteSecretlinkEndpoint extends DeleteApiEndpoint<DeleteSecretlinkRequest, DeleteSecretlinkResult> {
17
- description: string;
18
- withAuth: boolean;
19
- endpointUrl: (opts: DeleteSecretlinkRequest) => string;
20
- body: () => undefined;
21
- }
@@ -1,36 +0,0 @@
1
- "use strict";
2
- /** WARNING: Autogenerated Code - do not modify! */
3
- var __extends = (this && this.__extends) || (function () {
4
- var extendStatics = function (d, b) {
5
- extendStatics = Object.setPrototypeOf ||
6
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
8
- return extendStatics(d, b);
9
- };
10
- return function (d, b) {
11
- if (typeof b !== "function" && b !== null)
12
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
13
- extendStatics(d, b);
14
- function __() { this.constructor = d; }
15
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
16
- };
17
- })();
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.DeleteSecretlinkEndpoint = void 0;
20
- var api_endpoint_1 = require("../../api-endpoint");
21
- /** Unlinks an addon from the secret group. */
22
- var DeleteSecretlinkEndpoint = /** @class */ (function (_super) {
23
- __extends(DeleteSecretlinkEndpoint, _super);
24
- function DeleteSecretlinkEndpoint() {
25
- var _this = _super !== null && _super.apply(this, arguments) || this;
26
- _this.description = 'Unlinks an addon from the secret group.';
27
- _this.withAuth = true;
28
- _this.endpointUrl = function (opts) {
29
- return "/v1/projects/" + opts.parameters.projectId + "/secrets/" + opts.parameters.secretId + "/addons/" + opts.parameters.addonId;
30
- };
31
- _this.body = function () { return undefined; };
32
- return _this;
33
- }
34
- return DeleteSecretlinkEndpoint;
35
- }(api_endpoint_1.DeleteApiEndpoint));
36
- exports.DeleteSecretlinkEndpoint = DeleteSecretlinkEndpoint;
@@ -1,19 +0,0 @@
1
- /** WARNING: Autogenerated Code - do not modify! */
2
- import { ApiCallResponse, DeleteApiEndpoint } from '../../api-endpoint';
3
- export declare type DeleteServiceResult = any;
4
- export declare type DeleteServiceCall = (opts: DeleteServiceRequest) => Promise<ApiCallResponse<DeleteServiceResult>>;
5
- export declare type DeleteServiceRequest = {
6
- parameters: DeleteServiceParameters;
7
- };
8
- export declare type DeleteServiceParameters = {
9
- /** ID of the project */ 'projectId': string;
10
- /** ID of the service */
11
- 'serviceId': string;
12
- };
13
- /** Deletes the given service. */
14
- export declare class DeleteServiceEndpoint extends DeleteApiEndpoint<DeleteServiceRequest, DeleteServiceResult> {
15
- description: string;
16
- withAuth: boolean;
17
- endpointUrl: (opts: DeleteServiceRequest) => string;
18
- body: () => undefined;
19
- }
@@ -1,36 +0,0 @@
1
- "use strict";
2
- /** WARNING: Autogenerated Code - do not modify! */
3
- var __extends = (this && this.__extends) || (function () {
4
- var extendStatics = function (d, b) {
5
- extendStatics = Object.setPrototypeOf ||
6
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
8
- return extendStatics(d, b);
9
- };
10
- return function (d, b) {
11
- if (typeof b !== "function" && b !== null)
12
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
13
- extendStatics(d, b);
14
- function __() { this.constructor = d; }
15
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
16
- };
17
- })();
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.DeleteServiceEndpoint = void 0;
20
- var api_endpoint_1 = require("../../api-endpoint");
21
- /** Deletes the given service. */
22
- var DeleteServiceEndpoint = /** @class */ (function (_super) {
23
- __extends(DeleteServiceEndpoint, _super);
24
- function DeleteServiceEndpoint() {
25
- var _this = _super !== null && _super.apply(this, arguments) || this;
26
- _this.description = 'Deletes the given service.';
27
- _this.withAuth = true;
28
- _this.endpointUrl = function (opts) {
29
- return "/v1/projects/" + opts.parameters.projectId + "/services/" + opts.parameters.serviceId;
30
- };
31
- _this.body = function () { return undefined; };
32
- return _this;
33
- }
34
- return DeleteServiceEndpoint;
35
- }(api_endpoint_1.DeleteApiEndpoint));
36
- exports.DeleteServiceEndpoint = DeleteServiceEndpoint;
@@ -1,19 +0,0 @@
1
- /** WARNING: Autogenerated Code - do not modify! */
2
- import { ApiCallResponse, DeleteApiEndpoint } from '../../api-endpoint';
3
- export declare type DeleteSubdomainResult = any | any;
4
- export declare type DeleteSubdomainCall = (opts: DeleteSubdomainRequest) => Promise<ApiCallResponse<DeleteSubdomainResult>>;
5
- export declare type DeleteSubdomainRequest = {
6
- parameters: DeleteSubdomainParameters;
7
- };
8
- export declare type DeleteSubdomainParameters = {
9
- /** Name of the domain */ 'domain': string;
10
- /** Name of the subdomain */
11
- 'subdomain': string;
12
- };
13
- /** Removes a subdomain from a domain. */
14
- export declare class DeleteSubdomainEndpoint extends DeleteApiEndpoint<DeleteSubdomainRequest, DeleteSubdomainResult> {
15
- description: string;
16
- withAuth: boolean;
17
- endpointUrl: (opts: DeleteSubdomainRequest) => string;
18
- body: () => undefined;
19
- }
@@ -1,36 +0,0 @@
1
- "use strict";
2
- /** WARNING: Autogenerated Code - do not modify! */
3
- var __extends = (this && this.__extends) || (function () {
4
- var extendStatics = function (d, b) {
5
- extendStatics = Object.setPrototypeOf ||
6
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
7
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
8
- return extendStatics(d, b);
9
- };
10
- return function (d, b) {
11
- if (typeof b !== "function" && b !== null)
12
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
13
- extendStatics(d, b);
14
- function __() { this.constructor = d; }
15
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
16
- };
17
- })();
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.DeleteSubdomainEndpoint = void 0;
20
- var api_endpoint_1 = require("../../api-endpoint");
21
- /** Removes a subdomain from a domain. */
22
- var DeleteSubdomainEndpoint = /** @class */ (function (_super) {
23
- __extends(DeleteSubdomainEndpoint, _super);
24
- function DeleteSubdomainEndpoint() {
25
- var _this = _super !== null && _super.apply(this, arguments) || this;
26
- _this.description = 'Removes a subdomain from a domain.';
27
- _this.withAuth = true;
28
- _this.endpointUrl = function (opts) {
29
- return "/v1/domains/" + opts.parameters.domain + "/subdomains/" + opts.parameters.subdomain;
30
- };
31
- _this.body = function () { return undefined; };
32
- return _this;
33
- }
34
- return DeleteSubdomainEndpoint;
35
- }(api_endpoint_1.DeleteApiEndpoint));
36
- exports.DeleteSubdomainEndpoint = DeleteSubdomainEndpoint;
@@ -1,39 +0,0 @@
1
- /** WARNING: Autogenerated Code - do not modify! */
2
- import { ApiCallResponse, GetApiEndpoint } from '../../../../api-endpoint';
3
- export declare type GetAddonBackupDetailsResult = {
4
- /** The identifier for the backup. Example: "example-backup" */
5
- 'id': string;
6
- /** The name of the backup. Example: "Example Backup" */
7
- 'name': string;
8
- /** The current status of the backup. Example: "completed" */
9
- 'status': string;
10
- /** The time the backup was initiated. Example: "2021-01-20T11:19:53.175Z" */
11
- 'createdAt': string;
12
- /** The time the backup was completed. Example: "2021-01-20T11:19:54.494Z" */
13
- 'completedAt': string;
14
- /** Data about the backup configuration. */
15
- 'config': {
16
- /** The size of the backup, in bytes Example: "1234" */
17
- 'size': string;
18
- };
19
- /** An object containing the restore history for the given backup. Example: {"1611305397038":{"restoreTimestamp":"2021-01-22T08:49:57.038Z","status":"completed","completedAt":"2021-01-22T08:50:30.749Z"}} */
20
- 'restores': any;
21
- };
22
- export declare type GetAddonBackupDetailsCall = (opts: GetAddonBackupDetailsRequest) => Promise<ApiCallResponse<GetAddonBackupDetailsResult>>;
23
- export declare type GetAddonBackupDetailsRequest = {
24
- parameters: GetAddonBackupDetailsParameters;
25
- };
26
- export declare type GetAddonBackupDetailsParameters = {
27
- /** ID of the project */ 'projectId': string;
28
- /** ID of the addon */
29
- 'addonId': string;
30
- /** ID of the backup */
31
- 'backupId': string;
32
- };
33
- /** Gets details about a given backup including restore history */
34
- export declare class GetAddonBackupDetailsEndpoint extends GetApiEndpoint<GetAddonBackupDetailsRequest, GetAddonBackupDetailsResult> {
35
- description: string;
36
- withAuth: boolean;
37
- endpointUrl: (opts: GetAddonBackupDetailsRequest) => string;
38
- body: () => undefined;
39
- }