@scaleway/sdk 3.0.0-alpha.0 → 3.1.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 (214) hide show
  1. package/dist/index.gen.d.ts +362 -0
  2. package/dist/index.gen.js +323 -0
  3. package/package.json +71 -25
  4. package/README.md +0 -46
  5. package/dist/api/account/index.js +0 -4
  6. package/dist/api/account/v2/api.gen.js +0 -147
  7. package/dist/api/account/v2/index.gen.js +0 -4
  8. package/dist/api/account/v2/marshalling.gen.js +0 -39
  9. package/dist/api/account/v3/api.gen.js +0 -129
  10. package/dist/api/account/v3/index.gen.js +0 -6
  11. package/dist/api/account/v3/marshalling.gen.js +0 -39
  12. package/dist/api/account/v3/validation-rules.gen.js +0 -39
  13. package/dist/api/applesilicon/index.js +0 -2
  14. package/dist/api/applesilicon/v1alpha1/api.gen.js +0 -220
  15. package/dist/api/applesilicon/v1alpha1/content.gen.js +0 -7
  16. package/dist/api/applesilicon/v1alpha1/index.gen.js +0 -5
  17. package/dist/api/applesilicon/v1alpha1/marshalling.gen.js +0 -113
  18. package/dist/api/baremetal/index.js +0 -2
  19. package/dist/api/baremetal/v1/api.gen.js +0 -523
  20. package/dist/api/baremetal/v1/api.utils.js +0 -27
  21. package/dist/api/baremetal/v1/content.gen.js +0 -13
  22. package/dist/api/baremetal/v1/index.js +0 -5
  23. package/dist/api/baremetal/v1/marshalling.gen.js +0 -395
  24. package/dist/api/baremetal/v1/validation-rules.gen.js +0 -109
  25. package/dist/api/billing/index.js +0 -2
  26. package/dist/api/billing/v2alpha1/api.gen.js +0 -80
  27. package/dist/api/billing/v2alpha1/index.gen.js +0 -4
  28. package/dist/api/billing/v2alpha1/marshalling.gen.js +0 -53
  29. package/dist/api/block/index.js +0 -2
  30. package/dist/api/block/v1alpha1/api.gen.js +0 -245
  31. package/dist/api/block/v1alpha1/content.gen.js +0 -13
  32. package/dist/api/block/v1alpha1/index.gen.js +0 -7
  33. package/dist/api/block/v1alpha1/marshalling.gen.js +0 -175
  34. package/dist/api/block/v1alpha1/validation-rules.gen.js +0 -42
  35. package/dist/api/cockpit/index.js +0 -2
  36. package/dist/api/cockpit/v1beta1/api.gen.js +0 -448
  37. package/dist/api/cockpit/v1beta1/content.gen.js +0 -7
  38. package/dist/api/cockpit/v1beta1/index.gen.js +0 -5
  39. package/dist/api/cockpit/v1beta1/marshalling.gen.js +0 -220
  40. package/dist/api/container/index.js +0 -2
  41. package/dist/api/container/v1beta1/api.gen.js +0 -549
  42. package/dist/api/container/v1beta1/content.gen.js +0 -22
  43. package/dist/api/container/v1beta1/index.gen.js +0 -5
  44. package/dist/api/container/v1beta1/marshalling.gen.js +0 -330
  45. package/dist/api/document_db/index.js +0 -2
  46. package/dist/api/document_db/v1beta1/api.gen.js +0 -830
  47. package/dist/api/document_db/v1beta1/content.gen.js +0 -19
  48. package/dist/api/document_db/v1beta1/index.gen.js +0 -7
  49. package/dist/api/document_db/v1beta1/marshalling.gen.js +0 -580
  50. package/dist/api/document_db/v1beta1/validation-rules.gen.js +0 -10
  51. package/dist/api/domain/index.js +0 -2
  52. package/dist/api/domain/v2beta1/api.gen.js +0 -875
  53. package/dist/api/domain/v2beta1/content.gen.js +0 -28
  54. package/dist/api/domain/v2beta1/index.gen.js +0 -7
  55. package/dist/api/domain/v2beta1/marshalling.gen.js +0 -958
  56. package/dist/api/flexibleip/index.js +0 -2
  57. package/dist/api/flexibleip/v1alpha1/api.gen.js +0 -203
  58. package/dist/api/flexibleip/v1alpha1/content.gen.js +0 -10
  59. package/dist/api/flexibleip/v1alpha1/index.gen.js +0 -7
  60. package/dist/api/flexibleip/v1alpha1/marshalling.gen.js +0 -97
  61. package/dist/api/flexibleip/v1alpha1/validation-rules.gen.js +0 -14
  62. package/dist/api/function/index.js +0 -2
  63. package/dist/api/function/v1beta1/api.gen.js +0 -560
  64. package/dist/api/function/v1beta1/content.gen.js +0 -22
  65. package/dist/api/function/v1beta1/index.gen.js +0 -5
  66. package/dist/api/function/v1beta1/marshalling.gen.js +0 -368
  67. package/dist/api/iam/index.js +0 -2
  68. package/dist/api/iam/v1alpha1/api.gen.js +0 -799
  69. package/dist/api/iam/v1alpha1/index.gen.js +0 -6
  70. package/dist/api/iam/v1alpha1/marshalling.gen.js +0 -373
  71. package/dist/api/iam/v1alpha1/validation-rules.gen.js +0 -207
  72. package/dist/api/instance/index.js +0 -2
  73. package/dist/api/instance/v1/api.gen.js +0 -1003
  74. package/dist/api/instance/v1/api.utils.js +0 -369
  75. package/dist/api/instance/v1/content.gen.js +0 -31
  76. package/dist/api/instance/v1/index.js +0 -2
  77. package/dist/api/instance/v1/marshalling.gen.js +0 -1206
  78. package/dist/api/instance/v1/marshalling.utils.js +0 -63
  79. package/dist/api/iot/index.js +0 -2
  80. package/dist/api/iot/v1/api.gen.js +0 -581
  81. package/dist/api/iot/v1/content.gen.js +0 -7
  82. package/dist/api/iot/v1/index.gen.js +0 -5
  83. package/dist/api/iot/v1/marshalling.gen.js +0 -388
  84. package/dist/api/ipfs/index.js +0 -2
  85. package/dist/api/ipfs/v1alpha1/api.gen.js +0 -197
  86. package/dist/api/ipfs/v1alpha1/content.gen.js +0 -7
  87. package/dist/api/ipfs/v1alpha1/index.gen.js +0 -5
  88. package/dist/api/ipfs/v1alpha1/marshalling.gen.js +0 -121
  89. package/dist/api/k8s/index.js +0 -2
  90. package/dist/api/k8s/v1/api.gen.js +0 -454
  91. package/dist/api/k8s/v1/api.utils.js +0 -13
  92. package/dist/api/k8s/v1/content.gen.js +0 -13
  93. package/dist/api/k8s/v1/index.js +0 -4
  94. package/dist/api/k8s/v1/marshalling.gen.js +0 -333
  95. package/dist/api/k8s/v1/validation-rules.gen.js +0 -101
  96. package/dist/api/lb/index.js +0 -2
  97. package/dist/api/lb/v1/api.gen.js +0 -1669
  98. package/dist/api/lb/v1/api.utils.js +0 -81
  99. package/dist/api/lb/v1/content.gen.js +0 -16
  100. package/dist/api/lb/v1/index.js +0 -2
  101. package/dist/api/lb/v1/marshalling.gen.js +0 -923
  102. package/dist/api/marketplace/index.js +0 -4
  103. package/dist/api/marketplace/v1/api.gen.js +0 -60
  104. package/dist/api/marketplace/v1/index.gen.js +0 -4
  105. package/dist/api/marketplace/v1/marshalling.gen.js +0 -92
  106. package/dist/api/marketplace/v2/api.gen.js +0 -162
  107. package/dist/api/marketplace/v2/index.gen.js +0 -4
  108. package/dist/api/marketplace/v2/marshalling.gen.js +0 -94
  109. package/dist/api/mnq/index.js +0 -2
  110. package/dist/api/mnq/v1alpha1/api.gen.js +0 -205
  111. package/dist/api/mnq/v1alpha1/index.gen.js +0 -4
  112. package/dist/api/mnq/v1alpha1/marshalling.gen.js +0 -121
  113. package/dist/api/rdb/index.js +0 -2
  114. package/dist/api/rdb/v1/api.gen.js +0 -972
  115. package/dist/api/rdb/v1/content.gen.js +0 -22
  116. package/dist/api/rdb/v1/index.gen.js +0 -7
  117. package/dist/api/rdb/v1/marshalling.gen.js +0 -636
  118. package/dist/api/rdb/v1/validation-rules.gen.js +0 -10
  119. package/dist/api/redis/index.js +0 -2
  120. package/dist/api/redis/v1/api.gen.js +0 -389
  121. package/dist/api/redis/v1/content.gen.js +0 -7
  122. package/dist/api/redis/v1/index.gen.js +0 -5
  123. package/dist/api/redis/v1/marshalling.gen.js +0 -259
  124. package/dist/api/registry/index.js +0 -2
  125. package/dist/api/registry/v1/api.gen.js +0 -252
  126. package/dist/api/registry/v1/content.gen.js +0 -13
  127. package/dist/api/registry/v1/index.gen.js +0 -5
  128. package/dist/api/registry/v1/marshalling.gen.js +0 -106
  129. package/dist/api/secret/index.js +0 -2
  130. package/dist/api/secret/v1alpha1/api.gen.js +0 -415
  131. package/dist/api/secret/v1alpha1/index.gen.js +0 -4
  132. package/dist/api/secret/v1alpha1/marshalling.gen.js +0 -143
  133. package/dist/api/tem/index.js +0 -2
  134. package/dist/api/tem/v1alpha1/api.gen.js +0 -229
  135. package/dist/api/tem/v1alpha1/content.gen.js +0 -10
  136. package/dist/api/tem/v1alpha1/index.gen.js +0 -5
  137. package/dist/api/tem/v1alpha1/marshalling.gen.js +0 -159
  138. package/dist/api/test/index.js +0 -2
  139. package/dist/api/test/v1/api.gen.js +0 -152
  140. package/dist/api/test/v1/content.gen.js +0 -7
  141. package/dist/api/test/v1/index.gen.js +0 -5
  142. package/dist/api/test/v1/marshalling.gen.js +0 -79
  143. package/dist/api/vpc/index.js +0 -4
  144. package/dist/api/vpc/v1/api.gen.js +0 -110
  145. package/dist/api/vpc/v1/index.gen.js +0 -4
  146. package/dist/api/vpc/v1/marshalling.gen.js +0 -44
  147. package/dist/api/vpc/v2/api.gen.js +0 -276
  148. package/dist/api/vpc/v2/index.gen.js +0 -4
  149. package/dist/api/vpc/v2/marshalling.gen.js +0 -135
  150. package/dist/api/vpcgw/index.js +0 -2
  151. package/dist/api/vpcgw/v1/api.gen.js +0 -669
  152. package/dist/api/vpcgw/v1/content.gen.js +0 -10
  153. package/dist/api/vpcgw/v1/index.gen.js +0 -5
  154. package/dist/api/vpcgw/v1/marshalling.gen.js +0 -336
  155. package/dist/api/webhosting/index.js +0 -2
  156. package/dist/api/webhosting/v1alpha1/api.gen.js +0 -210
  157. package/dist/api/webhosting/v1alpha1/content.gen.js +0 -7
  158. package/dist/api/webhosting/v1alpha1/index.gen.js +0 -7
  159. package/dist/api/webhosting/v1alpha1/marshalling.gen.js +0 -173
  160. package/dist/api/webhosting/v1alpha1/validation-rules.gen.js +0 -23
  161. package/dist/helpers/is-browser.js +0 -5
  162. package/dist/helpers/is-response.js +0 -10
  163. package/dist/helpers/json.js +0 -11
  164. package/dist/helpers/marshalling.js +0 -130
  165. package/dist/index.cjs +0 -24364
  166. package/dist/index.d.ts +0 -27584
  167. package/dist/index.js +0 -69
  168. package/dist/internal/async/interval-retrier.js +0 -105
  169. package/dist/internal/async/sleep.js +0 -13
  170. package/dist/internal/interceptors/composer.js +0 -46
  171. package/dist/internal/interceptors/helpers.js +0 -32
  172. package/dist/internal/logger/console-logger.js +0 -38
  173. package/dist/internal/logger/index.js +0 -41
  174. package/dist/internal/logger/level-resolver.js +0 -13
  175. package/dist/internal/validations/string-validation.js +0 -38
  176. package/dist/node_modules/.pnpm/@scaleway_random-name@4.0.2/node_modules/@scaleway/random-name/dist/index.js +0 -13
  177. package/dist/scw/api.js +0 -12
  178. package/dist/scw/auth.js +0 -68
  179. package/dist/scw/client-ini-factory.js +0 -174
  180. package/dist/scw/client-ini-profile.js +0 -54
  181. package/dist/scw/client-settings.js +0 -78
  182. package/dist/scw/client.js +0 -98
  183. package/dist/scw/constants.js +0 -4
  184. package/dist/scw/custom-marshalling.js +0 -131
  185. package/dist/scw/errors/error-parser.js +0 -107
  186. package/dist/scw/errors/non-standard/invalid-request-mapper.js +0 -36
  187. package/dist/scw/errors/non-standard/unknown-resource-mapper.js +0 -27
  188. package/dist/scw/errors/scw-error.js +0 -66
  189. package/dist/scw/errors/standard/already-exists-error.js +0 -26
  190. package/dist/scw/errors/standard/denied-authentication-error.js +0 -52
  191. package/dist/scw/errors/standard/index.js +0 -13
  192. package/dist/scw/errors/standard/invalid-arguments-error.js +0 -67
  193. package/dist/scw/errors/standard/out-of-stock-error.js +0 -22
  194. package/dist/scw/errors/standard/permissions-denied-error.js +0 -48
  195. package/dist/scw/errors/standard/precondition-failed-error.js +0 -42
  196. package/dist/scw/errors/standard/quotas-exceeded-error.js +0 -68
  197. package/dist/scw/errors/standard/resource-expired-error.js +0 -26
  198. package/dist/scw/errors/standard/resource-locked-error.js +0 -25
  199. package/dist/scw/errors/standard/resource-not-found-error.js +0 -25
  200. package/dist/scw/errors/standard/too-many-requests-error.js +0 -70
  201. package/dist/scw/errors/standard/transient-state-error.js +0 -26
  202. package/dist/scw/errors/types.js +0 -23
  203. package/dist/scw/fetch/build-fetcher.js +0 -72
  204. package/dist/scw/fetch/http-dumper.js +0 -54
  205. package/dist/scw/fetch/http-interceptors.js +0 -99
  206. package/dist/scw/fetch/resource-paginator.js +0 -84
  207. package/dist/scw/fetch/response-parser.js +0 -72
  208. package/node_modules/@scaleway/random-name/.npmignore +0 -4
  209. package/node_modules/@scaleway/random-name/CHANGELOG.md +0 -129
  210. package/node_modules/@scaleway/random-name/LICENSE.md +0 -21
  211. package/node_modules/@scaleway/random-name/README.md +0 -26
  212. package/node_modules/@scaleway/random-name/dist/index.d.ts +0 -3
  213. package/node_modules/@scaleway/random-name/dist/index.js +0 -13
  214. package/node_modules/@scaleway/random-name/package.json +0 -23
@@ -1,1669 +0,0 @@
1
- import { waitForResource } from '../../../internal/async/interval-retrier.js';
2
- import { API as API$1 } from '../../../scw/api.js';
3
- import { validatePathParam, urlParams } from '../../../helpers/marshalling.js';
4
- import { enrichForPagination } from '../../../scw/fetch/resource-paginator.js';
5
- import { LB_TRANSIENT_STATUSES, CERTIFICATE_TRANSIENT_STATUSES } from './content.gen.js';
6
- import { unmarshalListLbsResponse, marshalZonedApiCreateLbRequest, unmarshalLb, marshalZonedApiUpdateLbRequest, marshalZonedApiMigrateLbRequest, unmarshalListIpsResponse, marshalZonedApiCreateIpRequest, unmarshalIp, marshalZonedApiUpdateIpRequest, unmarshalListBackendsResponse, marshalZonedApiCreateBackendRequest, unmarshalBackend, marshalZonedApiUpdateBackendRequest, marshalZonedApiAddBackendServersRequest, marshalZonedApiRemoveBackendServersRequest, marshalZonedApiSetBackendServersRequest, marshalZonedApiUpdateHealthCheckRequest, unmarshalHealthCheck, unmarshalListFrontendsResponse, marshalZonedApiCreateFrontendRequest, unmarshalFrontend, marshalZonedApiUpdateFrontendRequest, unmarshalListRoutesResponse, marshalZonedApiCreateRouteRequest, unmarshalRoute, marshalZonedApiUpdateRouteRequest, unmarshalLbStats, unmarshalListBackendStatsResponse, unmarshalListAclResponse, marshalZonedApiCreateAclRequest, unmarshalAcl, marshalZonedApiUpdateAclRequest, marshalZonedApiSetAclsRequest, unmarshalSetAclsResponse, marshalZonedApiCreateCertificateRequest, unmarshalCertificate, unmarshalListCertificatesResponse, marshalZonedApiUpdateCertificateRequest, unmarshalListLbTypesResponse, marshalZonedApiCreateSubscriberRequest, unmarshalSubscriber, unmarshalListSubscriberResponse, marshalZonedApiUpdateSubscriberRequest, marshalZonedApiSubscribeToLbRequest, unmarshalListLbPrivateNetworksResponse, marshalZonedApiAttachPrivateNetworkRequest, unmarshalPrivateNetwork, marshalCreateLbRequest, marshalUpdateLbRequest, marshalMigrateLbRequest, marshalCreateIpRequest, marshalUpdateIpRequest, marshalCreateBackendRequest, marshalUpdateBackendRequest, marshalAddBackendServersRequest, marshalRemoveBackendServersRequest, marshalSetBackendServersRequest, marshalUpdateHealthCheckRequest, marshalCreateFrontendRequest, marshalUpdateFrontendRequest, marshalCreateRouteRequest, marshalUpdateRouteRequest, marshalCreateAclRequest, marshalUpdateAclRequest, marshalCreateCertificateRequest, marshalUpdateCertificateRequest, marshalCreateSubscriberRequest, marshalUpdateSubscriberRequest, marshalSubscribeToLbRequest, marshalAttachPrivateNetworkRequest } from './marshalling.gen.js';
7
-
8
- // This file was automatically generated. DO NOT EDIT.
9
- // If you have any remark or suggestion do not hesitate to open an issue.
10
- const jsonContentHeaders = {
11
- 'Content-Type': 'application/json; charset=utf-8'
12
- };
13
-
14
- /**
15
- * Load Balancer API.
16
- *
17
- * This API allows you to manage your Scaleway Load Balancer services.
18
- */
19
- class ZonedAPI extends API$1 {
20
- /** Lists the available zones of the API. */
21
- static LOCALITIES = ['fr-par-1', 'fr-par-2', 'nl-ams-1', 'nl-ams-2', 'nl-ams-3', 'pl-waw-1', 'pl-waw-2'];
22
- pageOfListLbs = (() => {
23
- var _this = this;
24
- return function (request) {
25
- if (request === void 0) {
26
- request = {};
27
- }
28
- return _this.client.fetch({
29
- method: 'GET',
30
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? _this.client.settings.defaultZone)}/lbs`,
31
- urlParams: urlParams(['name', request.name], ['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? _this.client.settings.defaultPageSize], ['project_id', request.projectId])
32
- }, unmarshalListLbsResponse);
33
- };
34
- })();
35
-
36
- /**
37
- * List Load Balancers. List all Load Balancers in the specified zone, for a
38
- * Scaleway Organization or Scaleway Project. By default, the Load Balancers
39
- * returned in the list are ordered by creation date in ascending order,
40
- * though this can be modified via the `order_by` field.
41
- *
42
- * @param request - The request {@link ZonedApiListLbsRequest}
43
- * @returns A Promise of ListLbsResponse
44
- */
45
- listLbs = (() => {
46
- var _this2 = this;
47
- return function (request) {
48
- if (request === void 0) {
49
- request = {};
50
- }
51
- return enrichForPagination('lbs', _this2.pageOfListLbs, request);
52
- };
53
- })();
54
-
55
- /**
56
- * Create a Load Balancer. Create a new Load Balancer. Note that the Load
57
- * Balancer will be created without frontends or backends; these must be
58
- * created separately via the dedicated endpoints.
59
- *
60
- * @param request - The request {@link ZonedApiCreateLbRequest}
61
- * @returns A Promise of Lb
62
- */
63
- createLb = request => this.client.fetch({
64
- body: JSON.stringify(marshalZonedApiCreateLbRequest(request, this.client.settings)),
65
- headers: jsonContentHeaders,
66
- method: 'POST',
67
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs`
68
- }, unmarshalLb);
69
-
70
- /**
71
- * Get a Load Balancer. Retrieve information about an existing Load Balancer,
72
- * specified by its Load Balancer ID. Its full details, including name, status
73
- * and IP address, are returned in the response object.
74
- *
75
- * @param request - The request {@link ZonedApiGetLbRequest}
76
- * @returns A Promise of Lb
77
- */
78
- getLb = request => this.client.fetch({
79
- method: 'GET',
80
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}`
81
- }, unmarshalLb);
82
-
83
- /**
84
- * Waits for {@link Lb} to be in a final state.
85
- *
86
- * @param request - The request {@link ZonedApiGetLbRequest}
87
- * @param options - The waiting options
88
- * @returns A Promise of Lb
89
- */
90
- waitForLb = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!LB_TRANSIENT_STATUSES.includes(res.status))), this.getLb, request, options);
91
-
92
- /**
93
- * Update a Load Balancer. Update the parameters of an existing Load Balancer,
94
- * specified by its Load Balancer ID. Note that the request type is PUT and
95
- * not PATCH. You must set all parameters.
96
- *
97
- * @param request - The request {@link ZonedApiUpdateLbRequest}
98
- * @returns A Promise of Lb
99
- */
100
- updateLb = request => this.client.fetch({
101
- body: JSON.stringify(marshalZonedApiUpdateLbRequest(request, this.client.settings)),
102
- headers: jsonContentHeaders,
103
- method: 'PUT',
104
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}`
105
- }, unmarshalLb);
106
-
107
- /**
108
- * Delete a Load Balancer. Delete an existing Load Balancer, specified by its
109
- * Load Balancer ID. Deleting a Load Balancer is permanent, and cannot be
110
- * undone. The Load Balancer's flexible IP address can either be deleted with
111
- * the Load Balancer, or kept in your account for future use.
112
- *
113
- * @param request - The request {@link ZonedApiDeleteLbRequest}
114
- */
115
- deleteLb = request => this.client.fetch({
116
- method: 'DELETE',
117
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}`,
118
- urlParams: urlParams(['release_ip', request.releaseIp])
119
- });
120
-
121
- /**
122
- * Migrate a Load Balancer. Migrate an existing Load Balancer from one
123
- * commercial type to another. Allows you to scale your Load Balancer up or
124
- * down in terms of bandwidth or multi-cloud provision.
125
- *
126
- * @param request - The request {@link ZonedApiMigrateLbRequest}
127
- * @returns A Promise of Lb
128
- */
129
- migrateLb = request => this.client.fetch({
130
- body: JSON.stringify(marshalZonedApiMigrateLbRequest(request, this.client.settings)),
131
- headers: jsonContentHeaders,
132
- method: 'POST',
133
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}/migrate`
134
- }, unmarshalLb);
135
- pageOfListIPs = (() => {
136
- var _this3 = this;
137
- return function (request) {
138
- if (request === void 0) {
139
- request = {};
140
- }
141
- return _this3.client.fetch({
142
- method: 'GET',
143
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? _this3.client.settings.defaultZone)}/ips`,
144
- urlParams: urlParams(['ip_address', request.ipAddress], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? _this3.client.settings.defaultPageSize], ['project_id', request.projectId])
145
- }, unmarshalListIpsResponse);
146
- };
147
- })();
148
-
149
- /**
150
- * List IP addresses. List the Load Balancer flexible IP addresses held in the
151
- * account (filtered by Organization ID or Project ID). It is also possible to
152
- * search for a specific IP address.
153
- *
154
- * @param request - The request {@link ZonedApiListIPsRequest}
155
- * @returns A Promise of ListIpsResponse
156
- */
157
- listIPs = (() => {
158
- var _this4 = this;
159
- return function (request) {
160
- if (request === void 0) {
161
- request = {};
162
- }
163
- return enrichForPagination('ips', _this4.pageOfListIPs, request);
164
- };
165
- })();
166
-
167
- /**
168
- * Create an IP address. Create a new Load Balancer flexible IP address, in
169
- * the specified Scaleway Project. This can be attached to new Load Balancers
170
- * created in the future.
171
- *
172
- * @param request - The request {@link ZonedApiCreateIpRequest}
173
- * @returns A Promise of Ip
174
- */
175
- createIp = (() => {
176
- var _this5 = this;
177
- return function (request) {
178
- if (request === void 0) {
179
- request = {};
180
- }
181
- return _this5.client.fetch({
182
- body: JSON.stringify(marshalZonedApiCreateIpRequest(request, _this5.client.settings)),
183
- headers: jsonContentHeaders,
184
- method: 'POST',
185
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? _this5.client.settings.defaultZone)}/ips`
186
- }, unmarshalIp);
187
- };
188
- })();
189
-
190
- /**
191
- * Get an IP address. Retrieve the full details of a Load Balancer flexible IP
192
- * address.
193
- *
194
- * @param request - The request {@link ZonedApiGetIpRequest}
195
- * @returns A Promise of Ip
196
- */
197
- getIp = request => this.client.fetch({
198
- method: 'GET',
199
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/ips/${validatePathParam('ipId', request.ipId)}`
200
- }, unmarshalIp);
201
-
202
- /**
203
- * Delete an IP address. Delete a Load Balancer flexible IP address. This
204
- * action is irreversible, and cannot be undone.
205
- *
206
- * @param request - The request {@link ZonedApiReleaseIpRequest}
207
- */
208
- releaseIp = request => this.client.fetch({
209
- method: 'DELETE',
210
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/ips/${validatePathParam('ipId', request.ipId)}`
211
- });
212
-
213
- /**
214
- * Update an IP address. Update the reverse DNS of a Load Balancer flexible IP
215
- * address.
216
- *
217
- * @param request - The request {@link ZonedApiUpdateIpRequest}
218
- * @returns A Promise of Ip
219
- */
220
- updateIp = request => this.client.fetch({
221
- body: JSON.stringify(marshalZonedApiUpdateIpRequest(request, this.client.settings)),
222
- headers: jsonContentHeaders,
223
- method: 'PATCH',
224
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/ips/${validatePathParam('ipId', request.ipId)}`
225
- }, unmarshalIp);
226
- pageOfListBackends = request => this.client.fetch({
227
- method: 'GET',
228
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}/backends`,
229
- urlParams: urlParams(['name', request.name], ['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
230
- }, unmarshalListBackendsResponse);
231
-
232
- /**
233
- * List the backends of a given Load Balancer. List all the backends of a Load
234
- * Balancer, specified by its Load Balancer ID. By default, results are
235
- * returned in ascending order by the creation date of each backend. The
236
- * response is an array of backend objects, containing full details of each
237
- * one including their configuration parameters such as protocol, port and
238
- * forwarding algorithm.
239
- *
240
- * @param request - The request {@link ZonedApiListBackendsRequest}
241
- * @returns A Promise of ListBackendsResponse
242
- */
243
- listBackends = request => enrichForPagination('backends', this.pageOfListBackends, request);
244
-
245
- /**
246
- * Create a backend for a given Load Balancer. Create a new backend for a
247
- * given Load Balancer, specifying its full configuration including protocol,
248
- * port and forwarding algorithm.
249
- *
250
- * @param request - The request {@link ZonedApiCreateBackendRequest}
251
- * @returns A Promise of Backend
252
- */
253
- createBackend = request => this.client.fetch({
254
- body: JSON.stringify(marshalZonedApiCreateBackendRequest(request, this.client.settings)),
255
- headers: jsonContentHeaders,
256
- method: 'POST',
257
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}/backends`
258
- }, unmarshalBackend);
259
-
260
- /**
261
- * Get a backend of a given Load Balancer. Get the full details of a given
262
- * backend, specified by its backend ID. The response contains the backend's
263
- * full configuration parameters including protocol, port and forwarding
264
- * algorithm.
265
- *
266
- * @param request - The request {@link ZonedApiGetBackendRequest}
267
- * @returns A Promise of Backend
268
- */
269
- getBackend = request => this.client.fetch({
270
- method: 'GET',
271
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam('backendId', request.backendId)}`
272
- }, unmarshalBackend);
273
-
274
- /**
275
- * Update a backend of a given Load Balancer. Update a backend of a given Load
276
- * Balancer, specified by its backend ID. Note that the request type is PUT
277
- * and not PATCH. You must set all parameters.
278
- *
279
- * @param request - The request {@link ZonedApiUpdateBackendRequest}
280
- * @returns A Promise of Backend
281
- */
282
- updateBackend = request => this.client.fetch({
283
- body: JSON.stringify(marshalZonedApiUpdateBackendRequest(request, this.client.settings)),
284
- headers: jsonContentHeaders,
285
- method: 'PUT',
286
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam('backendId', request.backendId)}`
287
- }, unmarshalBackend);
288
-
289
- /**
290
- * Delete a backend of a given Load Balancer. Delete a backend of a given Load
291
- * Balancer, specified by its backend ID. This action is irreversible and
292
- * cannot be undone.
293
- *
294
- * @param request - The request {@link ZonedApiDeleteBackendRequest}
295
- */
296
- deleteBackend = request => this.client.fetch({
297
- method: 'DELETE',
298
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam('backendId', request.backendId)}`
299
- });
300
-
301
- /**
302
- * Add a set of backend servers to a given backend. For a given backend
303
- * specified by its backend ID, add a set of backend servers (identified by
304
- * their IP addresses) it should forward traffic to. These will be appended to
305
- * any existing set of backend servers for this backend.
306
- *
307
- * @param request - The request {@link ZonedApiAddBackendServersRequest}
308
- * @returns A Promise of Backend
309
- */
310
- addBackendServers = request => this.client.fetch({
311
- body: JSON.stringify(marshalZonedApiAddBackendServersRequest(request, this.client.settings)),
312
- headers: jsonContentHeaders,
313
- method: 'POST',
314
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam('backendId', request.backendId)}/servers`
315
- }, unmarshalBackend);
316
-
317
- /**
318
- * Remove a set of servers for a given backend. For a given backend specified
319
- * by its backend ID, remove the specified backend servers (identified by
320
- * their IP addresses) so that it no longer forwards traffic to them.
321
- *
322
- * @param request - The request {@link ZonedApiRemoveBackendServersRequest}
323
- * @returns A Promise of Backend
324
- */
325
- removeBackendServers = request => this.client.fetch({
326
- body: JSON.stringify(marshalZonedApiRemoveBackendServersRequest(request, this.client.settings)),
327
- headers: jsonContentHeaders,
328
- method: 'DELETE',
329
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam('backendId', request.backendId)}/servers`
330
- }, unmarshalBackend);
331
-
332
- /**
333
- * Define all backend servers for a given backend. For a given backend
334
- * specified by its backend ID, define the set of backend servers (identified
335
- * by their IP addresses) that it should forward traffic to. Any existing
336
- * backend servers configured for this backend will be removed.
337
- *
338
- * @param request - The request {@link ZonedApiSetBackendServersRequest}
339
- * @returns A Promise of Backend
340
- */
341
- setBackendServers = request => this.client.fetch({
342
- body: JSON.stringify(marshalZonedApiSetBackendServersRequest(request, this.client.settings)),
343
- headers: jsonContentHeaders,
344
- method: 'PUT',
345
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam('backendId', request.backendId)}/servers`
346
- }, unmarshalBackend);
347
-
348
- /**
349
- * Update a health check for a given backend. Update the configuration of the
350
- * health check performed by a given backend to verify the health of its
351
- * backend servers, identified by its backend ID. Note that the request type
352
- * is PUT and not PATCH. You must set all parameters.
353
- *
354
- * @param request - The request {@link ZonedApiUpdateHealthCheckRequest}
355
- * @returns A Promise of HealthCheck
356
- */
357
- updateHealthCheck = request => this.client.fetch({
358
- body: JSON.stringify(marshalZonedApiUpdateHealthCheckRequest(request, this.client.settings)),
359
- headers: jsonContentHeaders,
360
- method: 'PUT',
361
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/backends/${validatePathParam('backendId', request.backendId)}/healthcheck`
362
- }, unmarshalHealthCheck);
363
- pageOfListFrontends = request => this.client.fetch({
364
- method: 'GET',
365
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}/frontends`,
366
- urlParams: urlParams(['name', request.name], ['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
367
- }, unmarshalListFrontendsResponse);
368
-
369
- /**
370
- * List frontends of a given Load Balancer. List all the frontends of a Load
371
- * Balancer, specified by its Load Balancer ID. By default, results are
372
- * returned in ascending order by the creation date of each frontend. The
373
- * response is an array of frontend objects, containing full details of each
374
- * one including the port they listen on and the backend they are attached
375
- * to.
376
- *
377
- * @param request - The request {@link ZonedApiListFrontendsRequest}
378
- * @returns A Promise of ListFrontendsResponse
379
- */
380
- listFrontends = request => enrichForPagination('frontends', this.pageOfListFrontends, request);
381
-
382
- /**
383
- * Create a frontend in a given Load Balancer. Create a new frontend for a
384
- * given Load Balancer, specifying its configuration including the port it
385
- * should listen on and the backend to attach it to.
386
- *
387
- * @param request - The request {@link ZonedApiCreateFrontendRequest}
388
- * @returns A Promise of Frontend
389
- */
390
- createFrontend = request => this.client.fetch({
391
- body: JSON.stringify(marshalZonedApiCreateFrontendRequest(request, this.client.settings)),
392
- headers: jsonContentHeaders,
393
- method: 'POST',
394
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}/frontends`
395
- }, unmarshalFrontend);
396
-
397
- /**
398
- * Get a frontend. Get the full details of a given frontend, specified by its
399
- * frontend ID. The response contains the frontend's full configuration
400
- * parameters including the backend it is attached to, the port it listens on,
401
- * and any certificates it has.
402
- *
403
- * @param request - The request {@link ZonedApiGetFrontendRequest}
404
- * @returns A Promise of Frontend
405
- */
406
- getFrontend = request => this.client.fetch({
407
- method: 'GET',
408
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/frontends/${validatePathParam('frontendId', request.frontendId)}`
409
- }, unmarshalFrontend);
410
-
411
- /**
412
- * Update a frontend. Update a given frontend, specified by its frontend ID.
413
- * You can update configuration parameters including its name and the port it
414
- * listens on. Note that the request type is PUT and not PATCH. You must set
415
- * all parameters.
416
- *
417
- * @param request - The request {@link ZonedApiUpdateFrontendRequest}
418
- * @returns A Promise of Frontend
419
- */
420
- updateFrontend = request => this.client.fetch({
421
- body: JSON.stringify(marshalZonedApiUpdateFrontendRequest(request, this.client.settings)),
422
- headers: jsonContentHeaders,
423
- method: 'PUT',
424
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/frontends/${validatePathParam('frontendId', request.frontendId)}`
425
- }, unmarshalFrontend);
426
-
427
- /**
428
- * Delete a frontend. Delete a given frontend, specified by its frontend ID.
429
- * This action is irreversible and cannot be undone.
430
- *
431
- * @param request - The request {@link ZonedApiDeleteFrontendRequest}
432
- */
433
- deleteFrontend = request => this.client.fetch({
434
- method: 'DELETE',
435
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/frontends/${validatePathParam('frontendId', request.frontendId)}`
436
- });
437
- pageOfListRoutes = (() => {
438
- var _this6 = this;
439
- return function (request) {
440
- if (request === void 0) {
441
- request = {};
442
- }
443
- return _this6.client.fetch({
444
- method: 'GET',
445
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? _this6.client.settings.defaultZone)}/routes`,
446
- urlParams: urlParams(['frontend_id', request.frontendId], ['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? _this6.client.settings.defaultPageSize])
447
- }, unmarshalListRoutesResponse);
448
- };
449
- })();
450
-
451
- /**
452
- * List all routes. List all routes for a given frontend. The response is an
453
- * array of routes, each one with a specified backend to direct to if a
454
- * certain condition is matched (based on the value of the SNI field or HTTP
455
- * Host header).
456
- *
457
- * @param request - The request {@link ZonedApiListRoutesRequest}
458
- * @returns A Promise of ListRoutesResponse
459
- */
460
- listRoutes = (() => {
461
- var _this7 = this;
462
- return function (request) {
463
- if (request === void 0) {
464
- request = {};
465
- }
466
- return enrichForPagination('routes', _this7.pageOfListRoutes, request);
467
- };
468
- })();
469
-
470
- /**
471
- * Create a route. Create a new route on a given frontend. To configure a
472
- * route, specify the backend to direct to if a certain condition is matched
473
- * (based on the value of the SNI field or HTTP Host header).
474
- *
475
- * @param request - The request {@link ZonedApiCreateRouteRequest}
476
- * @returns A Promise of Route
477
- */
478
- createRoute = request => this.client.fetch({
479
- body: JSON.stringify(marshalZonedApiCreateRouteRequest(request, this.client.settings)),
480
- headers: jsonContentHeaders,
481
- method: 'POST',
482
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/routes`
483
- }, unmarshalRoute);
484
-
485
- /**
486
- * Get a route. Retrieve information about an existing route, specified by its
487
- * route ID. Its full details, origin frontend, target backend and match
488
- * condition, are returned in the response object.
489
- *
490
- * @param request - The request {@link ZonedApiGetRouteRequest}
491
- * @returns A Promise of Route
492
- */
493
- getRoute = request => this.client.fetch({
494
- method: 'GET',
495
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/routes/${validatePathParam('routeId', request.routeId)}`
496
- }, unmarshalRoute);
497
-
498
- /**
499
- * Update a route. Update the configuration of an existing route, specified by
500
- * its route ID.
501
- *
502
- * @param request - The request {@link ZonedApiUpdateRouteRequest}
503
- * @returns A Promise of Route
504
- */
505
- updateRoute = request => this.client.fetch({
506
- body: JSON.stringify(marshalZonedApiUpdateRouteRequest(request, this.client.settings)),
507
- headers: jsonContentHeaders,
508
- method: 'PUT',
509
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/routes/${validatePathParam('routeId', request.routeId)}`
510
- }, unmarshalRoute);
511
-
512
- /**
513
- * Delete a route. Delete an existing route, specified by its route ID.
514
- * Deleting a route is permanent, and cannot be undone.
515
- *
516
- * @param request - The request {@link ZonedApiDeleteRouteRequest}
517
- */
518
- deleteRoute = request => this.client.fetch({
519
- method: 'DELETE',
520
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/routes/${validatePathParam('routeId', request.routeId)}`
521
- });
522
-
523
- /**
524
- * Get usage statistics of a given Load Balancer.
525
- *
526
- * @deprecated
527
- * @param request - The request {@link ZonedApiGetLbStatsRequest}
528
- * @returns A Promise of LbStats
529
- */
530
- getLbStats = request => this.client.fetch({
531
- method: 'GET',
532
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}/stats`,
533
- urlParams: urlParams(['backend_id', request.backendId])
534
- }, unmarshalLbStats);
535
- pageOfListBackendStats = request => this.client.fetch({
536
- method: 'GET',
537
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}/backend-stats`,
538
- urlParams: urlParams(['backend_id', request.backendId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
539
- }, unmarshalListBackendStatsResponse);
540
-
541
- /**
542
- * List backend server statistics. List information about your backend
543
- * servers, including their state and the result of their last health check.
544
- *
545
- * @param request - The request {@link ZonedApiListBackendStatsRequest}
546
- * @returns A Promise of ListBackendStatsResponse
547
- */
548
- listBackendStats = request => enrichForPagination('backendServersStats', this.pageOfListBackendStats, request);
549
- pageOfListAcls = request => this.client.fetch({
550
- method: 'GET',
551
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/frontends/${validatePathParam('frontendId', request.frontendId)}/acls`,
552
- urlParams: urlParams(['name', request.name], ['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
553
- }, unmarshalListAclResponse);
554
-
555
- /**
556
- * List ACLs for a given frontend. List the ACLs for a given frontend,
557
- * specified by its frontend ID. The response is an array of ACL objects, each
558
- * one representing an ACL that denies or allows traffic based on certain
559
- * conditions.
560
- *
561
- * @param request - The request {@link ZonedApiListAclsRequest}
562
- * @returns A Promise of ListAclResponse
563
- */
564
- listAcls = request => enrichForPagination('acls', this.pageOfListAcls, request);
565
-
566
- /**
567
- * Create an ACL for a given frontend. Create a new ACL for a given frontend.
568
- * Each ACL must have a name, an action to perform (allow or deny), and a
569
- * match rule (the action is carried out when the incoming traffic matches the
570
- * rule).
571
- *
572
- * @param request - The request {@link ZonedApiCreateAclRequest}
573
- * @returns A Promise of Acl
574
- */
575
- createAcl = request => this.client.fetch({
576
- body: JSON.stringify(marshalZonedApiCreateAclRequest(request, this.client.settings)),
577
- headers: jsonContentHeaders,
578
- method: 'POST',
579
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/frontends/${validatePathParam('frontendId', request.frontendId)}/acls`
580
- }, unmarshalAcl);
581
-
582
- /**
583
- * Get an ACL. Get information for a particular ACL, specified by its ACL ID.
584
- * The response returns full details of the ACL, including its name, action,
585
- * match rule and frontend.
586
- *
587
- * @param request - The request {@link ZonedApiGetAclRequest}
588
- * @returns A Promise of Acl
589
- */
590
- getAcl = request => this.client.fetch({
591
- method: 'GET',
592
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/acls/${validatePathParam('aclId', request.aclId)}`
593
- }, unmarshalAcl);
594
-
595
- /**
596
- * Update an ACL. Update a particular ACL, specified by its ACL ID. You can
597
- * update details including its name, action and match rule.
598
- *
599
- * @param request - The request {@link ZonedApiUpdateAclRequest}
600
- * @returns A Promise of Acl
601
- */
602
- updateAcl = request => this.client.fetch({
603
- body: JSON.stringify(marshalZonedApiUpdateAclRequest(request, this.client.settings)),
604
- headers: jsonContentHeaders,
605
- method: 'PUT',
606
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/acls/${validatePathParam('aclId', request.aclId)}`
607
- }, unmarshalAcl);
608
-
609
- /**
610
- * Delete an ACL. Delete an ACL, specified by its ACL ID. Deleting an ACL is
611
- * irreversible and cannot be undone.
612
- *
613
- * @param request - The request {@link ZonedApiDeleteAclRequest}
614
- */
615
- deleteAcl = request => this.client.fetch({
616
- method: 'DELETE',
617
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/acls/${validatePathParam('aclId', request.aclId)}`
618
- });
619
-
620
- /**
621
- * Define all ACLs for a given frontend. For a given frontend specified by its
622
- * frontend ID, define and add the complete set of ACLS for that frontend. Any
623
- * existing ACLs on this frontend will be removed.
624
- *
625
- * @param request - The request {@link ZonedApiSetAclsRequest}
626
- * @returns A Promise of SetAclsResponse
627
- */
628
- setAcls = request => this.client.fetch({
629
- body: JSON.stringify(marshalZonedApiSetAclsRequest(request, this.client.settings)),
630
- headers: jsonContentHeaders,
631
- method: 'PUT',
632
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/frontends/${validatePathParam('frontendId', request.frontendId)}/acls`
633
- }, unmarshalSetAclsResponse);
634
-
635
- /**
636
- * Create an SSL/TLS certificate. Generate a new SSL/TLS certificate for a
637
- * given Load Balancer. You can choose to create a Let's Encrypt certificate,
638
- * or import a custom certificate.
639
- *
640
- * @param request - The request {@link ZonedApiCreateCertificateRequest}
641
- * @returns A Promise of Certificate
642
- */
643
- createCertificate = request => this.client.fetch({
644
- body: JSON.stringify(marshalZonedApiCreateCertificateRequest(request, this.client.settings)),
645
- headers: jsonContentHeaders,
646
- method: 'POST',
647
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}/certificates`
648
- }, unmarshalCertificate);
649
- pageOfListCertificates = request => this.client.fetch({
650
- method: 'GET',
651
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}/certificates`,
652
- urlParams: urlParams(['name', request.name], ['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
653
- }, unmarshalListCertificatesResponse);
654
-
655
- /**
656
- * List all SSL/TLS certificates on a given Load Balancer. List all the
657
- * SSL/TLS certificates on a given Load Balancer. The response is an array of
658
- * certificate objects, which are by default listed in ascending order of
659
- * creation date.
660
- *
661
- * @param request - The request {@link ZonedApiListCertificatesRequest}
662
- * @returns A Promise of ListCertificatesResponse
663
- */
664
- listCertificates = request => enrichForPagination('certificates', this.pageOfListCertificates, request);
665
-
666
- /**
667
- * Get an SSL/TLS certificate. Get information for a particular SSL/TLS
668
- * certificate, specified by its certificate ID. The response returns full
669
- * details of the certificate, including its type, main domain name, and
670
- * alternative domain names.
671
- *
672
- * @param request - The request {@link ZonedApiGetCertificateRequest}
673
- * @returns A Promise of Certificate
674
- */
675
- getCertificate = request => this.client.fetch({
676
- method: 'GET',
677
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/certificates/${validatePathParam('certificateId', request.certificateId)}`
678
- }, unmarshalCertificate);
679
-
680
- /**
681
- * Waits for {@link Certificate} to be in a final state.
682
- *
683
- * @param request - The request {@link ZonedApiGetCertificateRequest}
684
- * @param options - The waiting options
685
- * @returns A Promise of Certificate
686
- */
687
- waitForCertificate = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!CERTIFICATE_TRANSIENT_STATUSES.includes(res.status))), this.getCertificate, request, options);
688
-
689
- /**
690
- * Update an SSL/TLS certificate. Update the name of a particular SSL/TLS
691
- * certificate, specified by its certificate ID.
692
- *
693
- * @param request - The request {@link ZonedApiUpdateCertificateRequest}
694
- * @returns A Promise of Certificate
695
- */
696
- updateCertificate = request => this.client.fetch({
697
- body: JSON.stringify(marshalZonedApiUpdateCertificateRequest(request, this.client.settings)),
698
- headers: jsonContentHeaders,
699
- method: 'PUT',
700
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/certificates/${validatePathParam('certificateId', request.certificateId)}`
701
- }, unmarshalCertificate);
702
-
703
- /**
704
- * Delete an SSL/TLS certificate. Delete an SSL/TLS certificate, specified by
705
- * its certificate ID. Deleting a certificate is irreversible and cannot be
706
- * undone.
707
- *
708
- * @param request - The request {@link ZonedApiDeleteCertificateRequest}
709
- */
710
- deleteCertificate = request => this.client.fetch({
711
- method: 'DELETE',
712
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/certificates/${validatePathParam('certificateId', request.certificateId)}`
713
- });
714
- pageOfListLbTypes = (() => {
715
- var _this8 = this;
716
- return function (request) {
717
- if (request === void 0) {
718
- request = {};
719
- }
720
- return _this8.client.fetch({
721
- method: 'GET',
722
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? _this8.client.settings.defaultZone)}/lb-types`,
723
- urlParams: urlParams(['page', request.page], ['page_size', request.pageSize ?? _this8.client.settings.defaultPageSize])
724
- }, unmarshalListLbTypesResponse);
725
- };
726
- })();
727
-
728
- /**
729
- * List all Load Balancer offer types. List all the different commercial Load
730
- * Balancer types. The response includes an array of offer types, each with a
731
- * name, description, and information about its stock availability.
732
- *
733
- * @param request - The request {@link ZonedApiListLbTypesRequest}
734
- * @returns A Promise of ListLbTypesResponse
735
- */
736
- listLbTypes = (() => {
737
- var _this9 = this;
738
- return function (request) {
739
- if (request === void 0) {
740
- request = {};
741
- }
742
- return enrichForPagination('lbTypes', _this9.pageOfListLbTypes, request);
743
- };
744
- })();
745
-
746
- /**
747
- * Create a subscriber. Create a new subscriber, either with an email
748
- * configuration or a webhook configuration, for a specified Scaleway
749
- * Project.
750
- *
751
- * @param request - The request {@link ZonedApiCreateSubscriberRequest}
752
- * @returns A Promise of Subscriber
753
- */
754
- createSubscriber = request => this.client.fetch({
755
- body: JSON.stringify(marshalZonedApiCreateSubscriberRequest(request, this.client.settings)),
756
- headers: jsonContentHeaders,
757
- method: 'POST',
758
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/subscribers`
759
- }, unmarshalSubscriber);
760
-
761
- /**
762
- * Get a subscriber. Retrieve information about an existing subscriber,
763
- * specified by its subscriber ID. Its full details, including name and
764
- * email/webhook configuration, are returned in the response object.
765
- *
766
- * @param request - The request {@link ZonedApiGetSubscriberRequest}
767
- * @returns A Promise of Subscriber
768
- */
769
- getSubscriber = request => this.client.fetch({
770
- method: 'GET',
771
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/subscribers/${validatePathParam('subscriberId', request.subscriberId)}`
772
- }, unmarshalSubscriber);
773
- pageOfListSubscriber = (() => {
774
- var _this10 = this;
775
- return function (request) {
776
- if (request === void 0) {
777
- request = {};
778
- }
779
- return _this10.client.fetch({
780
- method: 'GET',
781
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? _this10.client.settings.defaultZone)}/subscribers`,
782
- urlParams: urlParams(['name', request.name], ['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? _this10.client.settings.defaultPageSize], ['project_id', request.projectId])
783
- }, unmarshalListSubscriberResponse);
784
- };
785
- })();
786
-
787
- /**
788
- * List all subscribers. List all subscribers to Load Balancer alerts. By
789
- * default, returns all subscribers to Load Balancer alerts for the
790
- * Organization associated with the authentication token used for the
791
- * request.
792
- *
793
- * @param request - The request {@link ZonedApiListSubscriberRequest}
794
- * @returns A Promise of ListSubscriberResponse
795
- */
796
- listSubscriber = (() => {
797
- var _this11 = this;
798
- return function (request) {
799
- if (request === void 0) {
800
- request = {};
801
- }
802
- return enrichForPagination('subscribers', _this11.pageOfListSubscriber, request);
803
- };
804
- })();
805
-
806
- /**
807
- * Update a subscriber. Update the parameters of a given subscriber (e.g.
808
- * name, webhook configuration, email configuration), specified by its
809
- * subscriber ID.
810
- *
811
- * @param request - The request {@link ZonedApiUpdateSubscriberRequest}
812
- * @returns A Promise of Subscriber
813
- */
814
- updateSubscriber = request => this.client.fetch({
815
- body: JSON.stringify(marshalZonedApiUpdateSubscriberRequest(request, this.client.settings)),
816
- headers: jsonContentHeaders,
817
- method: 'PUT',
818
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/subscribers/${validatePathParam('subscriberId', request.subscriberId)}`
819
- }, unmarshalSubscriber);
820
-
821
- /**
822
- * Delete a subscriber. Delete an existing subscriber, specified by its
823
- * subscriber ID. Deleting a subscriber is permanent, and cannot be undone.
824
- *
825
- * @param request - The request {@link ZonedApiDeleteSubscriberRequest}
826
- */
827
- deleteSubscriber = request => this.client.fetch({
828
- method: 'DELETE',
829
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lb/subscription/${validatePathParam('subscriberId', request.subscriberId)}`
830
- });
831
-
832
- /**
833
- * Subscribe a subscriber to alerts for a given Load Balancer. Subscribe an
834
- * existing subscriber to alerts for a given Load Balancer.
835
- *
836
- * @param request - The request {@link ZonedApiSubscribeToLbRequest}
837
- * @returns A Promise of Lb
838
- */
839
- subscribeToLb = request => this.client.fetch({
840
- body: JSON.stringify(marshalZonedApiSubscribeToLbRequest(request, this.client.settings)),
841
- headers: jsonContentHeaders,
842
- method: 'POST',
843
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lb/${validatePathParam('lbId', request.lbId)}/subscribe`
844
- }, unmarshalLb);
845
-
846
- /**
847
- * Unsubscribe a subscriber from alerts for a given Load Balancer. Unsubscribe
848
- * a subscriber from alerts for a given Load Balancer. The subscriber is not
849
- * deleted, and can be resubscribed in the future if necessary.
850
- *
851
- * @param request - The request {@link ZonedApiUnsubscribeFromLbRequest}
852
- * @returns A Promise of Lb
853
- */
854
- unsubscribeFromLb = request => this.client.fetch({
855
- method: 'DELETE',
856
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lb/${validatePathParam('lbId', request.lbId)}/unsubscribe`
857
- }, unmarshalLb);
858
- pageOfListLbPrivateNetworks = request => this.client.fetch({
859
- method: 'GET',
860
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}/private-networks`,
861
- urlParams: urlParams(['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
862
- }, unmarshalListLbPrivateNetworksResponse);
863
-
864
- /**
865
- * List Private Networks attached to a Load Balancer. List the Private
866
- * Networks attached to a given Load Balancer, specified by its Load Balancer
867
- * ID. The response is an array of Private Network objects, giving information
868
- * including the status, configuration, name and creation date of each Private
869
- * Network.
870
- *
871
- * @param request - The request {@link ZonedApiListLbPrivateNetworksRequest}
872
- * @returns A Promise of ListLbPrivateNetworksResponse
873
- */
874
- listLbPrivateNetworks = request => enrichForPagination('privateNetwork', this.pageOfListLbPrivateNetworks, request);
875
-
876
- /**
877
- * Attach a Load Balancer to a Private Network. Attach a specified Load
878
- * Balancer to a specified Private Network, defining a static or DHCP
879
- * configuration for the Load Balancer on the network.
880
- *
881
- * @param request - The request {@link ZonedApiAttachPrivateNetworkRequest}
882
- * @returns A Promise of PrivateNetwork
883
- */
884
- attachPrivateNetwork = request => this.client.fetch({
885
- body: JSON.stringify(marshalZonedApiAttachPrivateNetworkRequest(request, this.client.settings)),
886
- headers: jsonContentHeaders,
887
- method: 'POST',
888
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}/private-networks/${validatePathParam('privateNetworkId', request.privateNetworkId)}/attach`
889
- }, unmarshalPrivateNetwork);
890
-
891
- /**
892
- * Detach Load Balancer from Private Network. Detach a specified Load Balancer
893
- * from a specified Private Network.
894
- *
895
- * @param request - The request {@link ZonedApiDetachPrivateNetworkRequest}
896
- */
897
- detachPrivateNetwork = request => this.client.fetch({
898
- body: '{}',
899
- headers: jsonContentHeaders,
900
- method: 'POST',
901
- path: `/lb/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/lbs/${validatePathParam('lbId', request.lbId)}/private-networks/${validatePathParam('privateNetworkId', request.privateNetworkId)}/detach`
902
- });
903
- }
904
-
905
- /**
906
- * Load balancer API.
907
- *
908
- * This API allows you to manage your load balancer service.
909
- */
910
- class API extends API$1 {
911
- /** Lists the available regions of the API. */
912
- static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
913
- pageOfListLbs = (() => {
914
- var _this12 = this;
915
- return function (request) {
916
- if (request === void 0) {
917
- request = {};
918
- }
919
- return _this12.client.fetch({
920
- method: 'GET',
921
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? _this12.client.settings.defaultRegion)}/lbs`,
922
- urlParams: urlParams(['name', request.name], ['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? _this12.client.settings.defaultPageSize], ['project_id', request.projectId])
923
- }, unmarshalListLbsResponse);
924
- };
925
- })();
926
-
927
- /**
928
- * List load balancers.
929
- *
930
- * @param request - The request {@link ListLbsRequest}
931
- * @returns A Promise of ListLbsResponse
932
- */
933
- listLbs = (() => {
934
- var _this13 = this;
935
- return function (request) {
936
- if (request === void 0) {
937
- request = {};
938
- }
939
- return enrichForPagination('lbs', _this13.pageOfListLbs, request);
940
- };
941
- })();
942
-
943
- /**
944
- * Create a load balancer.
945
- *
946
- * @param request - The request {@link CreateLbRequest}
947
- * @returns A Promise of Lb
948
- */
949
- createLb = request => this.client.fetch({
950
- body: JSON.stringify(marshalCreateLbRequest(request, this.client.settings)),
951
- headers: jsonContentHeaders,
952
- method: 'POST',
953
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs`
954
- }, unmarshalLb);
955
-
956
- /**
957
- * Get a load balancer.
958
- *
959
- * @param request - The request {@link GetLbRequest}
960
- * @returns A Promise of Lb
961
- */
962
- getLb = request => this.client.fetch({
963
- method: 'GET',
964
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}`
965
- }, unmarshalLb);
966
-
967
- /**
968
- * Waits for {@link Lb} to be in a final state.
969
- *
970
- * @param request - The request {@link GetLbRequest}
971
- * @param options - The waiting options
972
- * @returns A Promise of Lb
973
- */
974
- waitForLb = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!LB_TRANSIENT_STATUSES.includes(res.status))), this.getLb, request, options);
975
-
976
- /**
977
- * Update a load balancer.
978
- *
979
- * @param request - The request {@link UpdateLbRequest}
980
- * @returns A Promise of Lb
981
- */
982
- updateLb = request => this.client.fetch({
983
- body: JSON.stringify(marshalUpdateLbRequest(request, this.client.settings)),
984
- headers: jsonContentHeaders,
985
- method: 'PUT',
986
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}`
987
- }, unmarshalLb);
988
-
989
- /**
990
- * Delete a load balancer.
991
- *
992
- * @param request - The request {@link DeleteLbRequest}
993
- */
994
- deleteLb = request => this.client.fetch({
995
- method: 'DELETE',
996
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}`,
997
- urlParams: urlParams(['release_ip', request.releaseIp])
998
- });
999
-
1000
- /**
1001
- * Migrate a load balancer.
1002
- *
1003
- * @param request - The request {@link MigrateLbRequest}
1004
- * @returns A Promise of Lb
1005
- */
1006
- migrateLb = request => this.client.fetch({
1007
- body: JSON.stringify(marshalMigrateLbRequest(request, this.client.settings)),
1008
- headers: jsonContentHeaders,
1009
- method: 'POST',
1010
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}/migrate`
1011
- }, unmarshalLb);
1012
- pageOfListIPs = (() => {
1013
- var _this14 = this;
1014
- return function (request) {
1015
- if (request === void 0) {
1016
- request = {};
1017
- }
1018
- return _this14.client.fetch({
1019
- method: 'GET',
1020
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? _this14.client.settings.defaultRegion)}/ips`,
1021
- urlParams: urlParams(['ip_address', request.ipAddress], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? _this14.client.settings.defaultPageSize], ['project_id', request.projectId])
1022
- }, unmarshalListIpsResponse);
1023
- };
1024
- })();
1025
-
1026
- /**
1027
- * List IPs.
1028
- *
1029
- * @param request - The request {@link ListIPsRequest}
1030
- * @returns A Promise of ListIpsResponse
1031
- */
1032
- listIPs = (() => {
1033
- var _this15 = this;
1034
- return function (request) {
1035
- if (request === void 0) {
1036
- request = {};
1037
- }
1038
- return enrichForPagination('ips', _this15.pageOfListIPs, request);
1039
- };
1040
- })();
1041
-
1042
- /**
1043
- * Create an IP.
1044
- *
1045
- * @param request - The request {@link CreateIpRequest}
1046
- * @returns A Promise of Ip
1047
- */
1048
- createIp = (() => {
1049
- var _this16 = this;
1050
- return function (request) {
1051
- if (request === void 0) {
1052
- request = {};
1053
- }
1054
- return _this16.client.fetch({
1055
- body: JSON.stringify(marshalCreateIpRequest(request, _this16.client.settings)),
1056
- headers: jsonContentHeaders,
1057
- method: 'POST',
1058
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? _this16.client.settings.defaultRegion)}/ips`
1059
- }, unmarshalIp);
1060
- };
1061
- })();
1062
-
1063
- /**
1064
- * Get an IP.
1065
- *
1066
- * @param request - The request {@link GetIpRequest}
1067
- * @returns A Promise of Ip
1068
- */
1069
- getIp = request => this.client.fetch({
1070
- method: 'GET',
1071
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/ips/${validatePathParam('ipId', request.ipId)}`
1072
- }, unmarshalIp);
1073
-
1074
- /**
1075
- * Delete an IP.
1076
- *
1077
- * @param request - The request {@link ReleaseIpRequest}
1078
- */
1079
- releaseIp = request => this.client.fetch({
1080
- method: 'DELETE',
1081
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/ips/${validatePathParam('ipId', request.ipId)}`
1082
- });
1083
-
1084
- /**
1085
- * Update an IP.
1086
- *
1087
- * @param request - The request {@link UpdateIpRequest}
1088
- * @returns A Promise of Ip
1089
- */
1090
- updateIp = request => this.client.fetch({
1091
- body: JSON.stringify(marshalUpdateIpRequest(request, this.client.settings)),
1092
- headers: jsonContentHeaders,
1093
- method: 'PATCH',
1094
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/ips/${validatePathParam('ipId', request.ipId)}`
1095
- }, unmarshalIp);
1096
- pageOfListBackends = request => this.client.fetch({
1097
- method: 'GET',
1098
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}/backends`,
1099
- urlParams: urlParams(['name', request.name], ['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
1100
- }, unmarshalListBackendsResponse);
1101
-
1102
- /**
1103
- * List backends in a given load balancer.
1104
- *
1105
- * @param request - The request {@link ListBackendsRequest}
1106
- * @returns A Promise of ListBackendsResponse
1107
- */
1108
- listBackends = request => enrichForPagination('backends', this.pageOfListBackends, request);
1109
-
1110
- /**
1111
- * Create a backend in a given load balancer.
1112
- *
1113
- * @param request - The request {@link CreateBackendRequest}
1114
- * @returns A Promise of Backend
1115
- */
1116
- createBackend = request => this.client.fetch({
1117
- body: JSON.stringify(marshalCreateBackendRequest(request, this.client.settings)),
1118
- headers: jsonContentHeaders,
1119
- method: 'POST',
1120
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}/backends`
1121
- }, unmarshalBackend);
1122
-
1123
- /**
1124
- * Get a backend in a given load balancer.
1125
- *
1126
- * @param request - The request {@link GetBackendRequest}
1127
- * @returns A Promise of Backend
1128
- */
1129
- getBackend = request => this.client.fetch({
1130
- method: 'GET',
1131
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam('backendId', request.backendId)}`
1132
- }, unmarshalBackend);
1133
-
1134
- /**
1135
- * Update a backend in a given load balancer.
1136
- *
1137
- * @param request - The request {@link UpdateBackendRequest}
1138
- * @returns A Promise of Backend
1139
- */
1140
- updateBackend = request => this.client.fetch({
1141
- body: JSON.stringify(marshalUpdateBackendRequest(request, this.client.settings)),
1142
- headers: jsonContentHeaders,
1143
- method: 'PUT',
1144
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam('backendId', request.backendId)}`
1145
- }, unmarshalBackend);
1146
-
1147
- /**
1148
- * Delete a backend in a given load balancer.
1149
- *
1150
- * @param request - The request {@link DeleteBackendRequest}
1151
- */
1152
- deleteBackend = request => this.client.fetch({
1153
- method: 'DELETE',
1154
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam('backendId', request.backendId)}`
1155
- });
1156
-
1157
- /**
1158
- * Add a set of servers in a given backend.
1159
- *
1160
- * @param request - The request {@link AddBackendServersRequest}
1161
- * @returns A Promise of Backend
1162
- */
1163
- addBackendServers = request => this.client.fetch({
1164
- body: JSON.stringify(marshalAddBackendServersRequest(request, this.client.settings)),
1165
- headers: jsonContentHeaders,
1166
- method: 'POST',
1167
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam('backendId', request.backendId)}/servers`
1168
- }, unmarshalBackend);
1169
-
1170
- /**
1171
- * Remove a set of servers for a given backend.
1172
- *
1173
- * @param request - The request {@link RemoveBackendServersRequest}
1174
- * @returns A Promise of Backend
1175
- */
1176
- removeBackendServers = request => this.client.fetch({
1177
- body: JSON.stringify(marshalRemoveBackendServersRequest(request, this.client.settings)),
1178
- headers: jsonContentHeaders,
1179
- method: 'DELETE',
1180
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam('backendId', request.backendId)}/servers`
1181
- }, unmarshalBackend);
1182
-
1183
- /**
1184
- * Define all servers in a given backend.
1185
- *
1186
- * @param request - The request {@link SetBackendServersRequest}
1187
- * @returns A Promise of Backend
1188
- */
1189
- setBackendServers = request => this.client.fetch({
1190
- body: JSON.stringify(marshalSetBackendServersRequest(request, this.client.settings)),
1191
- headers: jsonContentHeaders,
1192
- method: 'PUT',
1193
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam('backendId', request.backendId)}/servers`
1194
- }, unmarshalBackend);
1195
-
1196
- /**
1197
- * Update an health check for a given backend.
1198
- *
1199
- * @param request - The request {@link UpdateHealthCheckRequest}
1200
- * @returns A Promise of HealthCheck
1201
- */
1202
- updateHealthCheck = request => this.client.fetch({
1203
- body: JSON.stringify(marshalUpdateHealthCheckRequest(request, this.client.settings)),
1204
- headers: jsonContentHeaders,
1205
- method: 'PUT',
1206
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/backends/${validatePathParam('backendId', request.backendId)}/healthcheck`
1207
- }, unmarshalHealthCheck);
1208
- pageOfListFrontends = request => this.client.fetch({
1209
- method: 'GET',
1210
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}/frontends`,
1211
- urlParams: urlParams(['name', request.name], ['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
1212
- }, unmarshalListFrontendsResponse);
1213
-
1214
- /**
1215
- * List frontends in a given load balancer.
1216
- *
1217
- * @param request - The request {@link ListFrontendsRequest}
1218
- * @returns A Promise of ListFrontendsResponse
1219
- */
1220
- listFrontends = request => enrichForPagination('frontends', this.pageOfListFrontends, request);
1221
-
1222
- /**
1223
- * Create a frontend in a given load balancer.
1224
- *
1225
- * @param request - The request {@link CreateFrontendRequest}
1226
- * @returns A Promise of Frontend
1227
- */
1228
- createFrontend = request => this.client.fetch({
1229
- body: JSON.stringify(marshalCreateFrontendRequest(request, this.client.settings)),
1230
- headers: jsonContentHeaders,
1231
- method: 'POST',
1232
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}/frontends`
1233
- }, unmarshalFrontend);
1234
-
1235
- /**
1236
- * Get a frontend.
1237
- *
1238
- * @param request - The request {@link GetFrontendRequest}
1239
- * @returns A Promise of Frontend
1240
- */
1241
- getFrontend = request => this.client.fetch({
1242
- method: 'GET',
1243
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/frontends/${validatePathParam('frontendId', request.frontendId)}`
1244
- }, unmarshalFrontend);
1245
-
1246
- /**
1247
- * Update a frontend.
1248
- *
1249
- * @param request - The request {@link UpdateFrontendRequest}
1250
- * @returns A Promise of Frontend
1251
- */
1252
- updateFrontend = request => this.client.fetch({
1253
- body: JSON.stringify(marshalUpdateFrontendRequest(request, this.client.settings)),
1254
- headers: jsonContentHeaders,
1255
- method: 'PUT',
1256
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/frontends/${validatePathParam('frontendId', request.frontendId)}`
1257
- }, unmarshalFrontend);
1258
-
1259
- /**
1260
- * Delete a frontend.
1261
- *
1262
- * @param request - The request {@link DeleteFrontendRequest}
1263
- */
1264
- deleteFrontend = request => this.client.fetch({
1265
- method: 'DELETE',
1266
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/frontends/${validatePathParam('frontendId', request.frontendId)}`
1267
- });
1268
- pageOfListRoutes = (() => {
1269
- var _this17 = this;
1270
- return function (request) {
1271
- if (request === void 0) {
1272
- request = {};
1273
- }
1274
- return _this17.client.fetch({
1275
- method: 'GET',
1276
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? _this17.client.settings.defaultRegion)}/routes`,
1277
- urlParams: urlParams(['frontend_id', request.frontendId], ['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? _this17.client.settings.defaultPageSize])
1278
- }, unmarshalListRoutesResponse);
1279
- };
1280
- })();
1281
-
1282
- /**
1283
- * List all backend redirections.
1284
- *
1285
- * @param request - The request {@link ListRoutesRequest}
1286
- * @returns A Promise of ListRoutesResponse
1287
- */
1288
- listRoutes = (() => {
1289
- var _this18 = this;
1290
- return function (request) {
1291
- if (request === void 0) {
1292
- request = {};
1293
- }
1294
- return enrichForPagination('routes', _this18.pageOfListRoutes, request);
1295
- };
1296
- })();
1297
-
1298
- /**
1299
- * Create a backend redirection.
1300
- *
1301
- * @param request - The request {@link CreateRouteRequest}
1302
- * @returns A Promise of Route
1303
- */
1304
- createRoute = request => this.client.fetch({
1305
- body: JSON.stringify(marshalCreateRouteRequest(request, this.client.settings)),
1306
- headers: jsonContentHeaders,
1307
- method: 'POST',
1308
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/routes`
1309
- }, unmarshalRoute);
1310
-
1311
- /**
1312
- * Get single backend redirection.
1313
- *
1314
- * @param request - The request {@link GetRouteRequest}
1315
- * @returns A Promise of Route
1316
- */
1317
- getRoute = request => this.client.fetch({
1318
- method: 'GET',
1319
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/routes/${validatePathParam('routeId', request.routeId)}`
1320
- }, unmarshalRoute);
1321
-
1322
- /**
1323
- * Edit a backend redirection.
1324
- *
1325
- * @param request - The request {@link UpdateRouteRequest}
1326
- * @returns A Promise of Route
1327
- */
1328
- updateRoute = request => this.client.fetch({
1329
- body: JSON.stringify(marshalUpdateRouteRequest(request, this.client.settings)),
1330
- headers: jsonContentHeaders,
1331
- method: 'PUT',
1332
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/routes/${validatePathParam('routeId', request.routeId)}`
1333
- }, unmarshalRoute);
1334
-
1335
- /**
1336
- * Delete a backend redirection.
1337
- *
1338
- * @param request - The request {@link DeleteRouteRequest}
1339
- */
1340
- deleteRoute = request => this.client.fetch({
1341
- method: 'DELETE',
1342
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/routes/${validatePathParam('routeId', request.routeId)}`
1343
- });
1344
-
1345
- /**
1346
- * Get usage statistics of a given load balancer.
1347
- *
1348
- * @deprecated
1349
- * @param request - The request {@link GetLbStatsRequest}
1350
- * @returns A Promise of LbStats
1351
- */
1352
- getLbStats = request => this.client.fetch({
1353
- method: 'GET',
1354
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}/stats`,
1355
- urlParams: urlParams(['backend_id', request.backendId])
1356
- }, unmarshalLbStats);
1357
- pageOfListBackendStats = request => this.client.fetch({
1358
- method: 'GET',
1359
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}/backend-stats`,
1360
- urlParams: urlParams(['backend_id', request.backendId], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
1361
- }, unmarshalListBackendStatsResponse);
1362
-
1363
- /**
1364
- * List backend server statistics.
1365
- *
1366
- * @param request - The request {@link ListBackendStatsRequest}
1367
- * @returns A Promise of ListBackendStatsResponse
1368
- */
1369
- listBackendStats = request => enrichForPagination('backendServersStats', this.pageOfListBackendStats, request);
1370
- pageOfListAcls = request => this.client.fetch({
1371
- method: 'GET',
1372
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/frontends/${validatePathParam('frontendId', request.frontendId)}/acls`,
1373
- urlParams: urlParams(['name', request.name], ['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
1374
- }, unmarshalListAclResponse);
1375
-
1376
- /**
1377
- * List ACL for a given frontend.
1378
- *
1379
- * @param request - The request {@link ListAclsRequest}
1380
- * @returns A Promise of ListAclResponse
1381
- */
1382
- listAcls = request => enrichForPagination('acls', this.pageOfListAcls, request);
1383
-
1384
- /**
1385
- * Create an ACL for a given frontend.
1386
- *
1387
- * @param request - The request {@link CreateAclRequest}
1388
- * @returns A Promise of Acl
1389
- */
1390
- createAcl = request => this.client.fetch({
1391
- body: JSON.stringify(marshalCreateAclRequest(request, this.client.settings)),
1392
- headers: jsonContentHeaders,
1393
- method: 'POST',
1394
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/frontends/${validatePathParam('frontendId', request.frontendId)}/acls`
1395
- }, unmarshalAcl);
1396
-
1397
- /**
1398
- * Get an ACL.
1399
- *
1400
- * @param request - The request {@link GetAclRequest}
1401
- * @returns A Promise of Acl
1402
- */
1403
- getAcl = request => this.client.fetch({
1404
- method: 'GET',
1405
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/acls/${validatePathParam('aclId', request.aclId)}`
1406
- }, unmarshalAcl);
1407
-
1408
- /**
1409
- * Update an ACL.
1410
- *
1411
- * @param request - The request {@link UpdateAclRequest}
1412
- * @returns A Promise of Acl
1413
- */
1414
- updateAcl = request => this.client.fetch({
1415
- body: JSON.stringify(marshalUpdateAclRequest(request, this.client.settings)),
1416
- headers: jsonContentHeaders,
1417
- method: 'PUT',
1418
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/acls/${validatePathParam('aclId', request.aclId)}`
1419
- }, unmarshalAcl);
1420
-
1421
- /**
1422
- * Delete an ACL.
1423
- *
1424
- * @param request - The request {@link DeleteAclRequest}
1425
- */
1426
- deleteAcl = request => this.client.fetch({
1427
- method: 'DELETE',
1428
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/acls/${validatePathParam('aclId', request.aclId)}`
1429
- });
1430
-
1431
- /**
1432
- * Create a TLS certificate. Generate a new TLS certificate using Let's
1433
- * Encrypt or import your certificate.
1434
- *
1435
- * @param request - The request {@link CreateCertificateRequest}
1436
- * @returns A Promise of Certificate
1437
- */
1438
- createCertificate = request => this.client.fetch({
1439
- body: JSON.stringify(marshalCreateCertificateRequest(request, this.client.settings)),
1440
- headers: jsonContentHeaders,
1441
- method: 'POST',
1442
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}/certificates`
1443
- }, unmarshalCertificate);
1444
- pageOfListCertificates = request => this.client.fetch({
1445
- method: 'GET',
1446
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}/certificates`,
1447
- urlParams: urlParams(['name', request.name], ['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
1448
- }, unmarshalListCertificatesResponse);
1449
-
1450
- /**
1451
- * List all TLS certificates on a given load balancer.
1452
- *
1453
- * @param request - The request {@link ListCertificatesRequest}
1454
- * @returns A Promise of ListCertificatesResponse
1455
- */
1456
- listCertificates = request => enrichForPagination('certificates', this.pageOfListCertificates, request);
1457
-
1458
- /**
1459
- * Get a TLS certificate.
1460
- *
1461
- * @param request - The request {@link GetCertificateRequest}
1462
- * @returns A Promise of Certificate
1463
- */
1464
- getCertificate = request => this.client.fetch({
1465
- method: 'GET',
1466
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/certificates/${validatePathParam('certificateId', request.certificateId)}`
1467
- }, unmarshalCertificate);
1468
-
1469
- /**
1470
- * Waits for {@link Certificate} to be in a final state.
1471
- *
1472
- * @param request - The request {@link GetCertificateRequest}
1473
- * @param options - The waiting options
1474
- * @returns A Promise of Certificate
1475
- */
1476
- waitForCertificate = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!CERTIFICATE_TRANSIENT_STATUSES.includes(res.status))), this.getCertificate, request, options);
1477
-
1478
- /**
1479
- * Update a TLS certificate.
1480
- *
1481
- * @param request - The request {@link UpdateCertificateRequest}
1482
- * @returns A Promise of Certificate
1483
- */
1484
- updateCertificate = request => this.client.fetch({
1485
- body: JSON.stringify(marshalUpdateCertificateRequest(request, this.client.settings)),
1486
- headers: jsonContentHeaders,
1487
- method: 'PUT',
1488
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/certificates/${validatePathParam('certificateId', request.certificateId)}`
1489
- }, unmarshalCertificate);
1490
-
1491
- /**
1492
- * Delete a TLS certificate.
1493
- *
1494
- * @param request - The request {@link DeleteCertificateRequest}
1495
- */
1496
- deleteCertificate = request => this.client.fetch({
1497
- method: 'DELETE',
1498
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/certificates/${validatePathParam('certificateId', request.certificateId)}`
1499
- });
1500
- pageOfListLbTypes = (() => {
1501
- var _this19 = this;
1502
- return function (request) {
1503
- if (request === void 0) {
1504
- request = {};
1505
- }
1506
- return _this19.client.fetch({
1507
- method: 'GET',
1508
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? _this19.client.settings.defaultRegion)}/lb-types`,
1509
- urlParams: urlParams(['page', request.page], ['page_size', request.pageSize ?? _this19.client.settings.defaultPageSize])
1510
- }, unmarshalListLbTypesResponse);
1511
- };
1512
- })();
1513
-
1514
- /**
1515
- * List all load balancer offer type.
1516
- *
1517
- * @param request - The request {@link ListLbTypesRequest}
1518
- * @returns A Promise of ListLbTypesResponse
1519
- */
1520
- listLbTypes = (() => {
1521
- var _this20 = this;
1522
- return function (request) {
1523
- if (request === void 0) {
1524
- request = {};
1525
- }
1526
- return enrichForPagination('lbTypes', _this20.pageOfListLbTypes, request);
1527
- };
1528
- })();
1529
-
1530
- /**
1531
- * Create a subscriber, webhook or email.
1532
- *
1533
- * @param request - The request {@link CreateSubscriberRequest}
1534
- * @returns A Promise of Subscriber
1535
- */
1536
- createSubscriber = request => this.client.fetch({
1537
- body: JSON.stringify(marshalCreateSubscriberRequest(request, this.client.settings)),
1538
- headers: jsonContentHeaders,
1539
- method: 'POST',
1540
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/subscribers`
1541
- }, unmarshalSubscriber);
1542
-
1543
- /**
1544
- * Get a subscriber.
1545
- *
1546
- * @param request - The request {@link GetSubscriberRequest}
1547
- * @returns A Promise of Subscriber
1548
- */
1549
- getSubscriber = request => this.client.fetch({
1550
- method: 'GET',
1551
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/subscribers/${validatePathParam('subscriberId', request.subscriberId)}`
1552
- }, unmarshalSubscriber);
1553
- pageOfListSubscriber = (() => {
1554
- var _this21 = this;
1555
- return function (request) {
1556
- if (request === void 0) {
1557
- request = {};
1558
- }
1559
- return _this21.client.fetch({
1560
- method: 'GET',
1561
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? _this21.client.settings.defaultRegion)}/subscribers`,
1562
- urlParams: urlParams(['name', request.name], ['order_by', request.orderBy], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? _this21.client.settings.defaultPageSize], ['project_id', request.projectId])
1563
- }, unmarshalListSubscriberResponse);
1564
- };
1565
- })();
1566
-
1567
- /**
1568
- * List all subscriber.
1569
- *
1570
- * @param request - The request {@link ListSubscriberRequest}
1571
- * @returns A Promise of ListSubscriberResponse
1572
- */
1573
- listSubscriber = (() => {
1574
- var _this22 = this;
1575
- return function (request) {
1576
- if (request === void 0) {
1577
- request = {};
1578
- }
1579
- return enrichForPagination('subscribers', _this22.pageOfListSubscriber, request);
1580
- };
1581
- })();
1582
-
1583
- /**
1584
- * Update a subscriber.
1585
- *
1586
- * @param request - The request {@link UpdateSubscriberRequest}
1587
- * @returns A Promise of Subscriber
1588
- */
1589
- updateSubscriber = request => this.client.fetch({
1590
- body: JSON.stringify(marshalUpdateSubscriberRequest(request, this.client.settings)),
1591
- headers: jsonContentHeaders,
1592
- method: 'PUT',
1593
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/subscribers/${validatePathParam('subscriberId', request.subscriberId)}`
1594
- }, unmarshalSubscriber);
1595
-
1596
- /**
1597
- * Delete a subscriber.
1598
- *
1599
- * @param request - The request {@link DeleteSubscriberRequest}
1600
- */
1601
- deleteSubscriber = request => this.client.fetch({
1602
- method: 'DELETE',
1603
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lb/subscriber/${validatePathParam('subscriberId', request.subscriberId)}`
1604
- });
1605
-
1606
- /**
1607
- * Subscribe a subscriber to a given load balancer.
1608
- *
1609
- * @param request - The request {@link SubscribeToLbRequest}
1610
- * @returns A Promise of Lb
1611
- */
1612
- subscribeToLb = request => this.client.fetch({
1613
- body: JSON.stringify(marshalSubscribeToLbRequest(request, this.client.settings)),
1614
- headers: jsonContentHeaders,
1615
- method: 'POST',
1616
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lb/${validatePathParam('lbId', request.lbId)}/subscribe`
1617
- }, unmarshalLb);
1618
-
1619
- /**
1620
- * Unsubscribe a subscriber from a given load balancer.
1621
- *
1622
- * @param request - The request {@link UnsubscribeFromLbRequest}
1623
- * @returns A Promise of Lb
1624
- */
1625
- unsubscribeFromLb = request => this.client.fetch({
1626
- method: 'DELETE',
1627
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lb/${validatePathParam('lbId', request.lbId)}/unsubscribe`
1628
- }, unmarshalLb);
1629
- pageOfListLbPrivateNetworks = request => this.client.fetch({
1630
- method: 'GET',
1631
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}/private-networks`,
1632
- urlParams: urlParams(['order_by', request.orderBy], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
1633
- }, unmarshalListLbPrivateNetworksResponse);
1634
-
1635
- /**
1636
- * List attached private network of load balancer.
1637
- *
1638
- * @param request - The request {@link ListLbPrivateNetworksRequest}
1639
- * @returns A Promise of ListLbPrivateNetworksResponse
1640
- */
1641
- listLbPrivateNetworks = request => enrichForPagination('privateNetwork', this.pageOfListLbPrivateNetworks, request);
1642
-
1643
- /**
1644
- * Add load balancer on instance private network.
1645
- *
1646
- * @param request - The request {@link AttachPrivateNetworkRequest}
1647
- * @returns A Promise of PrivateNetwork
1648
- */
1649
- attachPrivateNetwork = request => this.client.fetch({
1650
- body: JSON.stringify(marshalAttachPrivateNetworkRequest(request, this.client.settings)),
1651
- headers: jsonContentHeaders,
1652
- method: 'POST',
1653
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}/private-networks/${validatePathParam('privateNetworkId', request.privateNetworkId)}/attach`
1654
- }, unmarshalPrivateNetwork);
1655
-
1656
- /**
1657
- * Remove load balancer of private network.
1658
- *
1659
- * @param request - The request {@link DetachPrivateNetworkRequest}
1660
- */
1661
- detachPrivateNetwork = request => this.client.fetch({
1662
- body: '{}',
1663
- headers: jsonContentHeaders,
1664
- method: 'POST',
1665
- path: `/lb/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/lbs/${validatePathParam('lbId', request.lbId)}/private-networks/${validatePathParam('privateNetworkId', request.privateNetworkId)}/detach`
1666
- });
1667
- }
1668
-
1669
- export { API, ZonedAPI };