@northflank/js-client 0.3.5 → 0.5.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 (262) hide show
  1. package/README.md +6 -6
  2. package/dist/cjs/api-client.d.ts +5697 -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 +5697 -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 -507
  10. package/dist/api-client.js +0 -637
  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/build.d.ts +0 -21
  26. package/dist/endpoints/abort/job/build.js +0 -36
  27. package/dist/endpoints/abort/job/run.d.ts +0 -21
  28. package/dist/endpoints/abort/job/run.js +0 -36
  29. package/dist/endpoints/abort/service/build.d.ts +0 -21
  30. package/dist/endpoints/abort/service/build.js +0 -36
  31. package/dist/endpoints/add/domain/subdomain.d.ts +0 -33
  32. package/dist/endpoints/add/domain/subdomain.js +0 -36
  33. package/dist/endpoints/add/registryCredentials.d.ts +0 -47
  34. package/dist/endpoints/add/registryCredentials.js +0 -36
  35. package/dist/endpoints/assign/subdomain/service.d.ts +0 -28
  36. package/dist/endpoints/assign/subdomain/service.js +0 -36
  37. package/dist/endpoints/backup/addon.d.ts +0 -24
  38. package/dist/endpoints/backup/addon.js +0 -36
  39. package/dist/endpoints/create/addon.d.ts +0 -90
  40. package/dist/endpoints/create/addon.js +0 -36
  41. package/dist/endpoints/create/domain.d.ts +0 -27
  42. package/dist/endpoints/create/domain.js +0 -36
  43. package/dist/endpoints/create/job/cron.d.ts +0 -155
  44. package/dist/endpoints/create/job/cron.js +0 -36
  45. package/dist/endpoints/create/job/manual.d.ts +0 -145
  46. package/dist/endpoints/create/job/manual.js +0 -36
  47. package/dist/endpoints/create/project.d.ts +0 -29
  48. package/dist/endpoints/create/project.js +0 -36
  49. package/dist/endpoints/create/secret.d.ts +0 -79
  50. package/dist/endpoints/create/secret.js +0 -36
  51. package/dist/endpoints/create/service/build.d.ts +0 -112
  52. package/dist/endpoints/create/service/build.js +0 -36
  53. package/dist/endpoints/create/service/combined.d.ts +0 -168
  54. package/dist/endpoints/create/service/combined.js +0 -36
  55. package/dist/endpoints/create/service/deployment.d.ts +0 -141
  56. package/dist/endpoints/create/service/deployment.js +0 -36
  57. package/dist/endpoints/delete/addon.d.ts +0 -19
  58. package/dist/endpoints/delete/addon.js +0 -36
  59. package/dist/endpoints/delete/backup.d.ts +0 -21
  60. package/dist/endpoints/delete/backup.js +0 -36
  61. package/dist/endpoints/delete/domain.d.ts +0 -17
  62. package/dist/endpoints/delete/domain.js +0 -36
  63. package/dist/endpoints/delete/job.d.ts +0 -19
  64. package/dist/endpoints/delete/job.js +0 -36
  65. package/dist/endpoints/delete/project.d.ts +0 -17
  66. package/dist/endpoints/delete/project.js +0 -36
  67. package/dist/endpoints/delete/registryCredentials.d.ts +0 -17
  68. package/dist/endpoints/delete/registryCredentials.js +0 -36
  69. package/dist/endpoints/delete/secret.d.ts +0 -19
  70. package/dist/endpoints/delete/secret.js +0 -36
  71. package/dist/endpoints/delete/secretLink.d.ts +0 -21
  72. package/dist/endpoints/delete/secretLink.js +0 -36
  73. package/dist/endpoints/delete/service.d.ts +0 -19
  74. package/dist/endpoints/delete/service.js +0 -36
  75. package/dist/endpoints/delete/subdomain.d.ts +0 -19
  76. package/dist/endpoints/delete/subdomain.js +0 -36
  77. package/dist/endpoints/get/addon/backup/details.d.ts +0 -39
  78. package/dist/endpoints/get/addon/backup/details.js +0 -36
  79. package/dist/endpoints/get/addon/backup/download.d.ts +0 -24
  80. package/dist/endpoints/get/addon/backup/download.js +0 -36
  81. package/dist/endpoints/get/addon/backups.d.ts +0 -47
  82. package/dist/endpoints/get/addon/backups.js +0 -40
  83. package/dist/endpoints/get/addon/containers.d.ts +0 -40
  84. package/dist/endpoints/get/addon/containers.js +0 -40
  85. package/dist/endpoints/get/addon/credentials.d.ts +0 -24
  86. package/dist/endpoints/get/addon/credentials.js +0 -36
  87. package/dist/endpoints/get/addon/details.d.ts +0 -69
  88. package/dist/endpoints/get/addon/details.js +0 -36
  89. package/dist/endpoints/get/addon/types.d.ts +0 -48
  90. package/dist/endpoints/get/addon/types.js +0 -36
  91. package/dist/endpoints/get/addon/version.d.ts +0 -53
  92. package/dist/endpoints/get/addon/version.js +0 -36
  93. package/dist/endpoints/get/dnsId.d.ts +0 -15
  94. package/dist/endpoints/get/dnsId.js +0 -36
  95. package/dist/endpoints/get/domain/details.d.ts +0 -33
  96. package/dist/endpoints/get/domain/details.js +0 -36
  97. package/dist/endpoints/get/job/buildArguments.d.ts +0 -19
  98. package/dist/endpoints/get/job/buildArguments.js +0 -36
  99. package/dist/endpoints/get/job/builds.d.ts +0 -50
  100. package/dist/endpoints/get/job/builds.js +0 -39
  101. package/dist/endpoints/get/job/containers.d.ts +0 -40
  102. package/dist/endpoints/get/job/containers.js +0 -40
  103. package/dist/endpoints/get/job/deployment.d.ts +0 -51
  104. package/dist/endpoints/get/job/deployment.js +0 -36
  105. package/dist/endpoints/get/job/details.d.ts +0 -84
  106. package/dist/endpoints/get/job/details.js +0 -36
  107. package/dist/endpoints/get/job/environment.d.ts +0 -24
  108. package/dist/endpoints/get/job/environment.js +0 -40
  109. package/dist/endpoints/get/job/environmentDetails.d.ts +0 -42
  110. package/dist/endpoints/get/job/environmentDetails.js +0 -36
  111. package/dist/endpoints/get/job/healthChecks.d.ts +0 -44
  112. package/dist/endpoints/get/job/healthChecks.js +0 -36
  113. package/dist/endpoints/get/job/run.d.ts +0 -42
  114. package/dist/endpoints/get/job/run.js +0 -36
  115. package/dist/endpoints/get/job/runs.d.ts +0 -52
  116. package/dist/endpoints/get/job/runs.js +0 -39
  117. package/dist/endpoints/get/project/details.d.ts +0 -72
  118. package/dist/endpoints/get/project/details.js +0 -36
  119. package/dist/endpoints/get/registryCredentials.d.ts +0 -34
  120. package/dist/endpoints/get/registryCredentials.js +0 -36
  121. package/dist/endpoints/get/secret.d.ts +0 -55
  122. package/dist/endpoints/get/secret.js +0 -39
  123. package/dist/endpoints/get/secretDetails.d.ts +0 -63
  124. package/dist/endpoints/get/secretDetails.js +0 -36
  125. package/dist/endpoints/get/secretLink.d.ts +0 -44
  126. package/dist/endpoints/get/secretLink.js +0 -36
  127. package/dist/endpoints/get/service/buildArguments.d.ts +0 -19
  128. package/dist/endpoints/get/service/buildArguments.js +0 -36
  129. package/dist/endpoints/get/service/builds.d.ts +0 -50
  130. package/dist/endpoints/get/service/builds.js +0 -40
  131. package/dist/endpoints/get/service/containers.d.ts +0 -40
  132. package/dist/endpoints/get/service/containers.js +0 -40
  133. package/dist/endpoints/get/service/deployment.d.ts +0 -51
  134. package/dist/endpoints/get/service/deployment.js +0 -36
  135. package/dist/endpoints/get/service/details.d.ts +0 -101
  136. package/dist/endpoints/get/service/details.js +0 -36
  137. package/dist/endpoints/get/service/environmentVariableDetails.d.ts +0 -42
  138. package/dist/endpoints/get/service/environmentVariableDetails.js +0 -36
  139. package/dist/endpoints/get/service/environmentVariables.d.ts +0 -24
  140. package/dist/endpoints/get/service/environmentVariables.js +0 -40
  141. package/dist/endpoints/get/service/healthChecks.d.ts +0 -44
  142. package/dist/endpoints/get/service/healthChecks.js +0 -36
  143. package/dist/endpoints/get/service/ports.d.ts +0 -34
  144. package/dist/endpoints/get/service/ports.js +0 -36
  145. package/dist/endpoints/get/service/security.d.ts +0 -40
  146. package/dist/endpoints/get/service/security.js +0 -36
  147. package/dist/endpoints/get/subdomain/details.d.ts +0 -30
  148. package/dist/endpoints/get/subdomain/details.js +0 -36
  149. package/dist/endpoints/import/addon/backup.d.ts +0 -31
  150. package/dist/endpoints/import/addon/backup.js +0 -36
  151. package/dist/endpoints/list/addon.d.ts +0 -45
  152. package/dist/endpoints/list/addon.js +0 -39
  153. package/dist/endpoints/list/domain.d.ts +0 -34
  154. package/dist/endpoints/list/domain.js +0 -39
  155. package/dist/endpoints/list/job.d.ts +0 -44
  156. package/dist/endpoints/list/job.js +0 -39
  157. package/dist/endpoints/list/plan.d.ts +0 -30
  158. package/dist/endpoints/list/plan.js +0 -36
  159. package/dist/endpoints/list/project.d.ts +0 -32
  160. package/dist/endpoints/list/project.js +0 -39
  161. package/dist/endpoints/list/region.d.ts +0 -18
  162. package/dist/endpoints/list/region.js +0 -36
  163. package/dist/endpoints/list/registryCredentials.d.ts +0 -41
  164. package/dist/endpoints/list/registryCredentials.js +0 -39
  165. package/dist/endpoints/list/secret.d.ts +0 -52
  166. package/dist/endpoints/list/secret.js +0 -39
  167. package/dist/endpoints/list/service.d.ts +0 -44
  168. package/dist/endpoints/list/service.js +0 -39
  169. package/dist/endpoints/list/vcs.d.ts +0 -51
  170. package/dist/endpoints/list/vcs.js +0 -36
  171. package/dist/endpoints/pause/addon.d.ts +0 -19
  172. package/dist/endpoints/pause/addon.js +0 -36
  173. package/dist/endpoints/pause/service.d.ts +0 -19
  174. package/dist/endpoints/pause/service.js +0 -36
  175. package/dist/endpoints/restart/addon.d.ts +0 -19
  176. package/dist/endpoints/restart/addon.js +0 -36
  177. package/dist/endpoints/restart/service.d.ts +0 -19
  178. package/dist/endpoints/restart/service.js +0 -36
  179. package/dist/endpoints/restore/addon/backup.d.ts +0 -21
  180. package/dist/endpoints/restore/addon/backup.js +0 -36
  181. package/dist/endpoints/resume/addon.d.ts +0 -19
  182. package/dist/endpoints/resume/addon.js +0 -36
  183. package/dist/endpoints/resume/service.d.ts +0 -24
  184. package/dist/endpoints/resume/service.js +0 -36
  185. package/dist/endpoints/scale/addon.d.ts +0 -28
  186. package/dist/endpoints/scale/addon.js +0 -36
  187. package/dist/endpoints/scale/service.d.ts +0 -26
  188. package/dist/endpoints/scale/service.js +0 -36
  189. package/dist/endpoints/start/job/build.d.ts +0 -37
  190. package/dist/endpoints/start/job/build.js +0 -36
  191. package/dist/endpoints/start/job/run.d.ts +0 -37
  192. package/dist/endpoints/start/job/run.js +0 -36
  193. package/dist/endpoints/start/service/build.d.ts +0 -41
  194. package/dist/endpoints/start/service/build.js +0 -36
  195. package/dist/endpoints/unassign/subdomain.d.ts +0 -19
  196. package/dist/endpoints/unassign/subdomain.js +0 -36
  197. package/dist/endpoints/update/addon/networkSettings.d.ts +0 -26
  198. package/dist/endpoints/update/addon/networkSettings.js +0 -36
  199. package/dist/endpoints/update/addon/security.d.ts +0 -29
  200. package/dist/endpoints/update/addon/security.js +0 -36
  201. package/dist/endpoints/update/addon/version.d.ts +0 -24
  202. package/dist/endpoints/update/addon/version.js +0 -36
  203. package/dist/endpoints/update/job/buildArguments.d.ts +0 -24
  204. package/dist/endpoints/update/job/buildArguments.js +0 -36
  205. package/dist/endpoints/update/job/cmdOverride.d.ts +0 -24
  206. package/dist/endpoints/update/job/cmdOverride.js +0 -36
  207. package/dist/endpoints/update/job/deployment.d.ts +0 -37
  208. package/dist/endpoints/update/job/deployment.js +0 -36
  209. package/dist/endpoints/update/job/environment.d.ts +0 -24
  210. package/dist/endpoints/update/job/environment.js +0 -36
  211. package/dist/endpoints/update/job/healthChecks.d.ts +0 -44
  212. package/dist/endpoints/update/job/healthChecks.js +0 -36
  213. package/dist/endpoints/update/job/settings.d.ts +0 -30
  214. package/dist/endpoints/update/job/settings.js +0 -36
  215. package/dist/endpoints/update/registryCredentials.d.ts +0 -31
  216. package/dist/endpoints/update/registryCredentials.js +0 -36
  217. package/dist/endpoints/update/secret.d.ts +0 -54
  218. package/dist/endpoints/update/secret.js +0 -36
  219. package/dist/endpoints/update/secretLink.d.ts +0 -40
  220. package/dist/endpoints/update/secretLink.js +0 -36
  221. package/dist/endpoints/update/service/buildArguments.d.ts +0 -24
  222. package/dist/endpoints/update/service/buildArguments.js +0 -36
  223. package/dist/endpoints/update/service/buildOptions.d.ts +0 -43
  224. package/dist/endpoints/update/service/buildOptions.js +0 -36
  225. package/dist/endpoints/update/service/cmdOverride.d.ts +0 -24
  226. package/dist/endpoints/update/service/cmdOverride.js +0 -36
  227. package/dist/endpoints/update/service/deployment.d.ts +0 -37
  228. package/dist/endpoints/update/service/deployment.js +0 -36
  229. package/dist/endpoints/update/service/environmentVariables.d.ts +0 -29
  230. package/dist/endpoints/update/service/environmentVariables.js +0 -36
  231. package/dist/endpoints/update/service/healthChecks.d.ts +0 -44
  232. package/dist/endpoints/update/service/healthChecks.js +0 -36
  233. package/dist/endpoints/update/service/ports.d.ts +0 -37
  234. package/dist/endpoints/update/service/ports.js +0 -36
  235. package/dist/endpoints/update/service/security.d.ts +0 -42
  236. package/dist/endpoints/update/service/security.js +0 -36
  237. package/dist/endpoints/verify/domain.d.ts +0 -17
  238. package/dist/endpoints/verify/domain.js +0 -36
  239. package/dist/endpoints/verify/subdomain.d.ts +0 -19
  240. package/dist/endpoints/verify/subdomain.js +0 -36
  241. package/dist/port-forward/client/api-helper.d.ts +0 -30
  242. package/dist/port-forward/client/api-helper.js +0 -102
  243. package/dist/port-forward/client/atomic-write.d.ts +0 -3
  244. package/dist/port-forward/client/atomic-write.js +0 -95
  245. package/dist/port-forward/client/host-file-ast.d.ts +0 -52
  246. package/dist/port-forward/client/host-file-ast.js +0 -279
  247. package/dist/port-forward/client/host-file.d.ts +0 -26
  248. package/dist/port-forward/client/host-file.js +0 -226
  249. package/dist/port-forward/client/loopback.d.ts +0 -4
  250. package/dist/port-forward/client/loopback.js +0 -219
  251. package/dist/port-forward/client/port-forwarder.d.ts +0 -86
  252. package/dist/port-forward/client/port-forwarder.js +0 -593
  253. package/dist/port-forward/client/port-tunnel-tcp.d.ts +0 -34
  254. package/dist/port-forward/client/port-tunnel-tcp.js +0 -209
  255. package/dist/port-forward/client/port-tunnel-udp.d.ts +0 -25
  256. package/dist/port-forward/client/port-tunnel-udp.js +0 -147
  257. package/dist/port-forward/client/port-tunnel.d.ts +0 -32
  258. package/dist/port-forward/client/port-tunnel.js +0 -2
  259. package/dist/port-forward/client/promise-mutex.d.ts +0 -4
  260. package/dist/port-forward/client/promise-mutex.js +0 -62
  261. package/dist/utils.d.ts +0 -8
  262. package/dist/utils.js +0 -97
@@ -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': 'scheduled' | 'in-progress' | 'completed' | 'aborting' | 'aborted' | 'failed' | 'not-supported';
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
- }
@@ -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.GetAddonBackupDetailsEndpoint = void 0;
20
- var api_endpoint_1 = require("../../../../api-endpoint");
21
- /** Gets details about a given backup including restore history */
22
- var GetAddonBackupDetailsEndpoint = /** @class */ (function (_super) {
23
- __extends(GetAddonBackupDetailsEndpoint, _super);
24
- function GetAddonBackupDetailsEndpoint() {
25
- var _this = _super !== null && _super.apply(this, arguments) || this;
26
- _this.description = 'Gets details about a given backup including restore history';
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 GetAddonBackupDetailsEndpoint;
35
- }(api_endpoint_1.GetApiEndpoint));
36
- exports.GetAddonBackupDetailsEndpoint = GetAddonBackupDetailsEndpoint;
@@ -1,24 +0,0 @@
1
- /** WARNING: Autogenerated Code - do not modify! */
2
- import { ApiCallResponse, GetApiEndpoint } from '../../../../api-endpoint';
3
- export declare type GetAddonBackupDownloadResult = {
4
- /** The url to download the backup from. Example: "https://storage.googleapis.com/..." */
5
- 'downloadLink': string;
6
- };
7
- export declare type GetAddonBackupDownloadCall = (opts: GetAddonBackupDownloadRequest) => Promise<ApiCallResponse<GetAddonBackupDownloadResult>>;
8
- export declare type GetAddonBackupDownloadRequest = {
9
- parameters: GetAddonBackupDownloadParameters;
10
- };
11
- export declare type GetAddonBackupDownloadParameters = {
12
- /** ID of the project */ 'projectId': string;
13
- /** ID of the addon */
14
- 'addonId': string;
15
- /** ID of the backup */
16
- 'backupId': string;
17
- };
18
- /** Generates a temporary download link for downloading the given backup. */
19
- export declare class GetAddonBackupDownloadEndpoint extends GetApiEndpoint<GetAddonBackupDownloadRequest, GetAddonBackupDownloadResult> {
20
- description: string;
21
- withAuth: boolean;
22
- endpointUrl: (opts: GetAddonBackupDownloadRequest) => string;
23
- body: () => undefined;
24
- }
@@ -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.GetAddonBackupDownloadEndpoint = void 0;
20
- var api_endpoint_1 = require("../../../../api-endpoint");
21
- /** Generates a temporary download link for downloading the given backup. */
22
- var GetAddonBackupDownloadEndpoint = /** @class */ (function (_super) {
23
- __extends(GetAddonBackupDownloadEndpoint, _super);
24
- function GetAddonBackupDownloadEndpoint() {
25
- var _this = _super !== null && _super.apply(this, arguments) || this;
26
- _this.description = 'Generates a temporary download link for downloading the 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 + "/download-link";
30
- };
31
- _this.body = function () { return undefined; };
32
- return _this;
33
- }
34
- return GetAddonBackupDownloadEndpoint;
35
- }(api_endpoint_1.GetApiEndpoint));
36
- exports.GetAddonBackupDownloadEndpoint = GetAddonBackupDownloadEndpoint;
@@ -1,47 +0,0 @@
1
- /** WARNING: Autogenerated Code - do not modify! */
2
- import { ApiCallResponse, GetApiEndpoint } from '../../../api-endpoint';
3
- export declare type GetAddonBackupsResult = {
4
- /** A list of backups for the given addon. */
5
- 'backups': {
6
- /** The identifier for the backup. Example: "example-backup" */
7
- 'id': string;
8
- /** The name of the backup. Example: "Example Backup" */
9
- 'name': string;
10
- /** The current status of the backup. Example: "completed" */
11
- 'status': 'scheduled' | 'in-progress' | 'completed' | 'aborting' | 'aborted' | 'failed' | 'not-supported';
12
- /** The time the backup was initiated. Example: "2021-01-20T11:19:53.175Z" */
13
- 'createdAt': string;
14
- /** The time the backup was completed. Example: "2021-01-20T11:19:54.494Z" */
15
- 'completedAt': string;
16
- /** Data about the backup configuration. */
17
- 'config': {
18
- /** The size of the backup, in bytes Example: "1234" */
19
- 'size': string;
20
- };
21
- }[];
22
- };
23
- export declare type GetAddonBackupsCall = (opts: GetAddonBackupsRequest) => Promise<ApiCallResponse<GetAddonBackupsResult>>;
24
- export declare type GetAddonBackupsRequest = {
25
- parameters: GetAddonBackupsParameters;
26
- options?: GetAddonBackupsOptions;
27
- };
28
- export declare type GetAddonBackupsParameters = {
29
- /** ID of the project */ 'projectId': string;
30
- /** ID of the addon */
31
- 'addonId': string;
32
- };
33
- export declare type GetAddonBackupsOptions = {
34
- /** The number of results to display per request. Maximum of 100 results per page. */
35
- 'per_page'?: number;
36
- /** The page number to access. */
37
- 'page'?: number;
38
- /** The cursor returned from the previous page of results, used to request the next page. */
39
- 'cursor'?: string;
40
- };
41
- /** Returns a list of backups for the given addon. */
42
- export declare class GetAddonBackupsEndpoint extends GetApiEndpoint<GetAddonBackupsRequest, GetAddonBackupsResult> {
43
- description: string;
44
- withAuth: boolean;
45
- endpointUrl: (opts: GetAddonBackupsRequest) => string;
46
- body: () => undefined;
47
- }
@@ -1,40 +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.GetAddonBackupsEndpoint = void 0;
20
- var api_endpoint_1 = require("../../../api-endpoint");
21
- /** Returns a list of backups for the given addon. */
22
- var GetAddonBackupsEndpoint = /** @class */ (function (_super) {
23
- __extends(GetAddonBackupsEndpoint, _super);
24
- function GetAddonBackupsEndpoint() {
25
- var _this = _super !== null && _super.apply(this, arguments) || this;
26
- _this.description = 'Returns a list of backups for the given addon.';
27
- _this.withAuth = true;
28
- _this.endpointUrl = function (opts) {
29
- var _a;
30
- var optionEntries = Object.entries((_a = opts === null || opts === void 0 ? void 0 : opts.options) !== null && _a !== void 0 ? _a : {});
31
- var optionStr = optionEntries.length > 0 ? '?' + optionEntries.map(function (a) { return a[0] + '=' + a[1]; }).join('&') : '';
32
- return ("/v1/projects/" + opts.parameters.projectId + "/addons/" + opts.parameters.addonId + "/backups" +
33
- optionStr);
34
- };
35
- _this.body = function () { return undefined; };
36
- return _this;
37
- }
38
- return GetAddonBackupsEndpoint;
39
- }(api_endpoint_1.GetApiEndpoint));
40
- exports.GetAddonBackupsEndpoint = GetAddonBackupsEndpoint;
@@ -1,40 +0,0 @@
1
- /** WARNING: Autogenerated Code - do not modify! */
2
- import { ApiCallResponse, GetApiEndpoint } from '../../../api-endpoint';
3
- export declare type GetAddonContainersResult = {
4
- /** An array of containers. */
5
- 'pods': {
6
- /** The timestamp the pod was created. Example: 1611241087 */
7
- 'createdAt': number;
8
- /** The name of the pod. Example: "example-service-78b4d4459d-sbtn8" */
9
- 'podName': string;
10
- /** The region where the pod is deployed. Example: "europe-west" */
11
- 'region': string;
12
- /** The current status of the pod. Example: "TASK_RUNNING" */
13
- 'status': 'TASK_RUNNING' | 'TASK_STARTING' | 'TASK_STAGING' | 'TASK_KILLING' | 'TASK_KILLED' | 'TASK_FAILED' | 'TASK_FINISHED';
14
- }[];
15
- };
16
- export declare type GetAddonContainersCall = (opts: GetAddonContainersRequest) => Promise<ApiCallResponse<GetAddonContainersResult>>;
17
- export declare type GetAddonContainersRequest = {
18
- parameters: GetAddonContainersParameters;
19
- options?: GetAddonContainersOptions;
20
- };
21
- export declare type GetAddonContainersParameters = {
22
- /** ID of the project */ 'projectId': string;
23
- /** ID of the addon */
24
- 'addonId': string;
25
- };
26
- export declare type GetAddonContainersOptions = {
27
- /** The number of results to display per request. Maximum of 100 results per page. */
28
- 'per_page'?: number;
29
- /** The page number to access. */
30
- 'page'?: number;
31
- /** The cursor returned from the previous page of results, used to request the next page. */
32
- 'cursor'?: string;
33
- };
34
- /** Gets a list of containers for the given addon. */
35
- export declare class GetAddonContainersEndpoint extends GetApiEndpoint<GetAddonContainersRequest, GetAddonContainersResult> {
36
- description: string;
37
- withAuth: boolean;
38
- endpointUrl: (opts: GetAddonContainersRequest) => string;
39
- body: () => undefined;
40
- }
@@ -1,40 +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.GetAddonContainersEndpoint = void 0;
20
- var api_endpoint_1 = require("../../../api-endpoint");
21
- /** Gets a list of containers for the given addon. */
22
- var GetAddonContainersEndpoint = /** @class */ (function (_super) {
23
- __extends(GetAddonContainersEndpoint, _super);
24
- function GetAddonContainersEndpoint() {
25
- var _this = _super !== null && _super.apply(this, arguments) || this;
26
- _this.description = 'Gets a list of containers for the given addon.';
27
- _this.withAuth = true;
28
- _this.endpointUrl = function (opts) {
29
- var _a;
30
- var optionEntries = Object.entries((_a = opts === null || opts === void 0 ? void 0 : opts.options) !== null && _a !== void 0 ? _a : {});
31
- var optionStr = optionEntries.length > 0 ? '?' + optionEntries.map(function (a) { return a[0] + '=' + a[1]; }).join('&') : '';
32
- return ("/v1/projects/" + opts.parameters.projectId + "/addons/" + opts.parameters.addonId + "/containers" +
33
- optionStr);
34
- };
35
- _this.body = function () { return undefined; };
36
- return _this;
37
- }
38
- return GetAddonContainersEndpoint;
39
- }(api_endpoint_1.GetApiEndpoint));
40
- exports.GetAddonContainersEndpoint = GetAddonContainersEndpoint;