@scaleway/sdk 1.13.0 → 1.15.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 (50) hide show
  1. package/dist/api/account/v2/api.gen.js +77 -60
  2. package/dist/api/applesilicon/v1alpha1/api.gen.js +175 -173
  3. package/dist/api/baremetal/v1/api.gen.js +434 -378
  4. package/dist/api/baremetal/v1/api.utils.js +19 -22
  5. package/dist/api/billing/v2alpha1/api.gen.js +21 -17
  6. package/dist/api/cockpit/v1beta1/api.gen.js +308 -232
  7. package/dist/api/container/v1beta1/api.gen.js +384 -337
  8. package/dist/api/domain/v2beta1/api.gen.js +754 -668
  9. package/dist/api/flexibleip/v1alpha1/api.gen.js +164 -151
  10. package/dist/api/function/v1beta1/api.gen.js +467 -407
  11. package/dist/api/iam/v1alpha1/api.gen.js +641 -557
  12. package/dist/api/instance/v1/api.gen.js +802 -677
  13. package/dist/api/instance/v1/api.utils.js +337 -325
  14. package/dist/api/instance/v1/marshalling.gen.js +2 -1
  15. package/dist/api/iot/v1/api.gen.js +508 -452
  16. package/dist/api/ipfs/index.js +2 -0
  17. package/dist/api/ipfs/v1alpha1/api.gen.js +197 -0
  18. package/dist/api/ipfs/v1alpha1/content.gen.js +7 -0
  19. package/dist/api/ipfs/v1alpha1/index.gen.js +5 -0
  20. package/dist/api/ipfs/v1alpha1/marshalling.gen.js +125 -0
  21. package/dist/api/k8s/v1/api.gen.js +403 -342
  22. package/dist/api/k8s/v1/api.utils.js +7 -10
  23. package/dist/api/k8s/v1/marshalling.gen.js +19 -1
  24. package/dist/api/k8s/v1/validation-rules.gen.js +10 -1
  25. package/dist/api/lb/v1/api.gen.js +1501 -1363
  26. package/dist/api/lb/v1/api.utils.js +71 -75
  27. package/dist/api/lb/v1/marshalling.gen.js +6 -0
  28. package/dist/api/marketplace/v1/api.gen.js +35 -32
  29. package/dist/api/marketplace/v2/api.gen.js +117 -102
  30. package/dist/api/mnq/v1alpha1/api.gen.js +154 -137
  31. package/dist/api/rdb/v1/api.gen.js +897 -819
  32. package/dist/api/redis/v1/api.gen.js +358 -333
  33. package/dist/api/registry/v1/api.gen.js +211 -189
  34. package/dist/api/secret/v1alpha1/api.gen.js +265 -245
  35. package/dist/api/secret/v1alpha1/marshalling.gen.js +1 -0
  36. package/dist/api/tem/v1alpha1/api.gen.js +183 -156
  37. package/dist/api/tem/v1alpha1/marshalling.gen.js +32 -1
  38. package/dist/api/test/v1/api.gen.js +116 -104
  39. package/dist/api/vpc/v1/api.gen.js +74 -65
  40. package/dist/api/vpc/v2/api.gen.js +200 -178
  41. package/dist/api/vpc/v2/marshalling.gen.js +2 -0
  42. package/dist/api/vpcgw/v1/api.gen.js +575 -501
  43. package/dist/api/webhosting/v1alpha1/api.gen.js +127 -117
  44. package/dist/index.cjs +738 -343
  45. package/dist/index.d.ts +2067 -1592
  46. package/dist/index.js +28 -26
  47. package/dist/internal/logger/console-logger.js +4 -5
  48. package/dist/scw/constants.js +1 -1
  49. package/dist/scw/errors/scw-error.js +0 -1
  50. package/package.json +2 -2
@@ -13,11 +13,11 @@ const jsonContentHeaders = {
13
13
 
14
14
  /** Container Registry API. */
15
15
  class API extends API$1 {
16
- constructor() {
17
- var _this;
18
- super(...arguments);
19
- _this = this;
20
- this.pageOfListNamespaces = function (request) {
16
+ /** Lists the available regions of the API. */
17
+ static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
18
+ pageOfListNamespaces = (() => {
19
+ var _this = this;
20
+ return function (request) {
21
21
  if (request === void 0) {
22
22
  request = {};
23
23
  }
@@ -27,204 +27,226 @@ class API extends API$1 {
27
27
  urlParams: urlParams(['name', request.name], ['order_by', request.orderBy ?? 'created_at_asc'], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? _this.client.settings.defaultPageSize], ['project_id', request.projectId])
28
28
  }, unmarshalListNamespacesResponse);
29
29
  };
30
- /**
31
- * List namespaces. List all namespaces in a specified region. By default, the
32
- * namespaces listed are ordered by creation date in ascending order. This can
33
- * be modified via the order_by field. You can also define additional
34
- * parameters for your query, such as the `instance_id` and `project_id`
35
- * parameters.
36
- *
37
- * @param request - The request {@link ListNamespacesRequest}
38
- * @returns A Promise of ListNamespacesResponse
39
- */
40
- this.listNamespaces = function (request) {
30
+ })();
31
+
32
+ /**
33
+ * List namespaces. List all namespaces in a specified region. By default, the
34
+ * namespaces listed are ordered by creation date in ascending order. This can
35
+ * be modified via the order_by field. You can also define additional
36
+ * parameters for your query, such as the `instance_id` and `project_id`
37
+ * parameters.
38
+ *
39
+ * @param request - The request {@link ListNamespacesRequest}
40
+ * @returns A Promise of ListNamespacesResponse
41
+ */
42
+ listNamespaces = (() => {
43
+ var _this2 = this;
44
+ return function (request) {
41
45
  if (request === void 0) {
42
46
  request = {};
43
47
  }
44
- return enrichForPagination('namespaces', _this.pageOfListNamespaces, request);
48
+ return enrichForPagination('namespaces', _this2.pageOfListNamespaces, request);
45
49
  };
46
- /**
47
- * Get a namespace. Retrieve information about a given namespace, specified by
48
- * its `namespace_id` and region. Full details about the namespace, such as
49
- * `description`, `project_id`, `status`, `endpoint`, `is_public`, `size`, and
50
- * `image_count` are returned in the response.
51
- *
52
- * @param request - The request {@link GetNamespaceRequest}
53
- * @returns A Promise of Namespace
54
- */
55
- this.getNamespace = request => this.client.fetch({
56
- method: 'GET',
57
- path: `/registry/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces/${validatePathParam('namespaceId', request.namespaceId)}`
58
- }, unmarshalNamespace);
59
- /**
60
- * Waits for {@link Namespace} to be in a final state.
61
- *
62
- * @param request - The request {@link GetNamespaceRequest}
63
- * @param options - The waiting options
64
- * @returns A Promise of Namespace
65
- */
66
- this.waitForNamespace = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!NAMESPACE_TRANSIENT_STATUSES.includes(res.status))), this.getNamespace, request, options);
67
- /**
68
- * Create a namespace. Create a new Container Registry namespace. You must
69
- * specify the namespace name and region in which you want it to be created.
70
- * Optionally, you can specify the `project_id` and `is_public` in the request
71
- * payload.
72
- *
73
- * @param request - The request {@link CreateNamespaceRequest}
74
- * @returns A Promise of Namespace
75
- */
76
- this.createNamespace = request => this.client.fetch({
77
- body: JSON.stringify(marshalCreateNamespaceRequest(request, this.client.settings)),
78
- headers: jsonContentHeaders,
79
- method: 'POST',
80
- path: `/registry/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces`
81
- }, unmarshalNamespace);
82
- /**
83
- * Update a namespace. Update the parameters of a given namespace, specified
84
- * by its `namespace_id` and `region`. You can update the `description` and
85
- * `is_public` parameters.
86
- *
87
- * @param request - The request {@link UpdateNamespaceRequest}
88
- * @returns A Promise of Namespace
89
- */
90
- this.updateNamespace = request => this.client.fetch({
91
- body: JSON.stringify(marshalUpdateNamespaceRequest(request, this.client.settings)),
92
- headers: jsonContentHeaders,
93
- method: 'PATCH',
94
- path: `/registry/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces/${validatePathParam('namespaceId', request.namespaceId)}`
95
- }, unmarshalNamespace);
96
- /**
97
- * Delete a namespace. Delete a given namespace. You must specify, in the
98
- * endpoint, the `region` and `namespace_id` parameters of the namespace you
99
- * want to delete.
100
- *
101
- * @param request - The request {@link DeleteNamespaceRequest}
102
- * @returns A Promise of Namespace
103
- */
104
- this.deleteNamespace = request => this.client.fetch({
105
- method: 'DELETE',
106
- path: `/registry/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces/${validatePathParam('namespaceId', request.namespaceId)}`
107
- }, unmarshalNamespace);
108
- this.pageOfListImages = function (request) {
50
+ })();
51
+
52
+ /**
53
+ * Get a namespace. Retrieve information about a given namespace, specified by
54
+ * its `namespace_id` and region. Full details about the namespace, such as
55
+ * `description`, `project_id`, `status`, `endpoint`, `is_public`, `size`, and
56
+ * `image_count` are returned in the response.
57
+ *
58
+ * @param request - The request {@link GetNamespaceRequest}
59
+ * @returns A Promise of Namespace
60
+ */
61
+ getNamespace = request => this.client.fetch({
62
+ method: 'GET',
63
+ path: `/registry/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces/${validatePathParam('namespaceId', request.namespaceId)}`
64
+ }, unmarshalNamespace);
65
+
66
+ /**
67
+ * Waits for {@link Namespace} to be in a final state.
68
+ *
69
+ * @param request - The request {@link GetNamespaceRequest}
70
+ * @param options - The waiting options
71
+ * @returns A Promise of Namespace
72
+ */
73
+ waitForNamespace = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!NAMESPACE_TRANSIENT_STATUSES.includes(res.status))), this.getNamespace, request, options);
74
+
75
+ /**
76
+ * Create a namespace. Create a new Container Registry namespace. You must
77
+ * specify the namespace name and region in which you want it to be created.
78
+ * Optionally, you can specify the `project_id` and `is_public` in the request
79
+ * payload.
80
+ *
81
+ * @param request - The request {@link CreateNamespaceRequest}
82
+ * @returns A Promise of Namespace
83
+ */
84
+ createNamespace = request => this.client.fetch({
85
+ body: JSON.stringify(marshalCreateNamespaceRequest(request, this.client.settings)),
86
+ headers: jsonContentHeaders,
87
+ method: 'POST',
88
+ path: `/registry/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces`
89
+ }, unmarshalNamespace);
90
+
91
+ /**
92
+ * Update a namespace. Update the parameters of a given namespace, specified
93
+ * by its `namespace_id` and `region`. You can update the `description` and
94
+ * `is_public` parameters.
95
+ *
96
+ * @param request - The request {@link UpdateNamespaceRequest}
97
+ * @returns A Promise of Namespace
98
+ */
99
+ updateNamespace = request => this.client.fetch({
100
+ body: JSON.stringify(marshalUpdateNamespaceRequest(request, this.client.settings)),
101
+ headers: jsonContentHeaders,
102
+ method: 'PATCH',
103
+ path: `/registry/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces/${validatePathParam('namespaceId', request.namespaceId)}`
104
+ }, unmarshalNamespace);
105
+
106
+ /**
107
+ * Delete a namespace. Delete a given namespace. You must specify, in the
108
+ * endpoint, the `region` and `namespace_id` parameters of the namespace you
109
+ * want to delete.
110
+ *
111
+ * @param request - The request {@link DeleteNamespaceRequest}
112
+ * @returns A Promise of Namespace
113
+ */
114
+ deleteNamespace = request => this.client.fetch({
115
+ method: 'DELETE',
116
+ path: `/registry/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/namespaces/${validatePathParam('namespaceId', request.namespaceId)}`
117
+ }, unmarshalNamespace);
118
+ pageOfListImages = (() => {
119
+ var _this3 = this;
120
+ return function (request) {
109
121
  if (request === void 0) {
110
122
  request = {};
111
123
  }
112
- return _this.client.fetch({
124
+ return _this3.client.fetch({
113
125
  method: 'GET',
114
- path: `/registry/v1/regions/${validatePathParam('region', request.region ?? _this.client.settings.defaultRegion)}/images`,
115
- urlParams: urlParams(['name', request.name], ['namespace_id', request.namespaceId], ['order_by', request.orderBy ?? 'created_at_asc'], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? _this.client.settings.defaultPageSize], ['project_id', request.projectId])
126
+ path: `/registry/v1/regions/${validatePathParam('region', request.region ?? _this3.client.settings.defaultRegion)}/images`,
127
+ urlParams: urlParams(['name', request.name], ['namespace_id', request.namespaceId], ['order_by', request.orderBy ?? 'created_at_asc'], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? _this3.client.settings.defaultPageSize], ['project_id', request.projectId])
116
128
  }, unmarshalListImagesResponse);
117
129
  };
118
- /**
119
- * List images. List all images in a specified region. By default, the images
120
- * listed are ordered by creation date in ascending order. This can be
121
- * modified via the order_by field. You can also define additional parameters
122
- * for your query, such as the `namespace_id` and `project_id` parameters.
123
- *
124
- * @param request - The request {@link ListImagesRequest}
125
- * @returns A Promise of ListImagesResponse
126
- */
127
- this.listImages = function (request) {
130
+ })();
131
+
132
+ /**
133
+ * List images. List all images in a specified region. By default, the images
134
+ * listed are ordered by creation date in ascending order. This can be
135
+ * modified via the order_by field. You can also define additional parameters
136
+ * for your query, such as the `namespace_id` and `project_id` parameters.
137
+ *
138
+ * @param request - The request {@link ListImagesRequest}
139
+ * @returns A Promise of ListImagesResponse
140
+ */
141
+ listImages = (() => {
142
+ var _this4 = this;
143
+ return function (request) {
128
144
  if (request === void 0) {
129
145
  request = {};
130
146
  }
131
- return enrichForPagination('images', _this.pageOfListImages, request);
147
+ return enrichForPagination('images', _this4.pageOfListImages, request);
132
148
  };
133
- /**
134
- * Get an image. Retrieve information about a given container image, specified
135
- * by its `image_id` and region. Full details about the image, such as `name`,
136
- * `namespace_id`, `status`, `visibility`, and `size` are returned in the
137
- * response.
138
- *
139
- * @param request - The request {@link GetImageRequest}
140
- * @returns A Promise of Image
141
- */
142
- this.getImage = request => this.client.fetch({
143
- method: 'GET',
144
- path: `/registry/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/images/${validatePathParam('imageId', request.imageId)}`
145
- }, unmarshalImage);
146
- /**
147
- * Waits for {@link Image} to be in a final state.
148
- *
149
- * @param request - The request {@link GetImageRequest}
150
- * @param options - The waiting options
151
- * @returns A Promise of Image
152
- */
153
- this.waitForImage = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!IMAGE_TRANSIENT_STATUSES.includes(res.status))), this.getImage, request, options);
154
- /**
155
- * Update an image. Update the parameters of a given image, specified by its
156
- * `image_id` and `region`. You can update the `visibility` parameter.
157
- *
158
- * @param request - The request {@link UpdateImageRequest}
159
- * @returns A Promise of Image
160
- */
161
- this.updateImage = request => this.client.fetch({
162
- body: JSON.stringify(marshalUpdateImageRequest(request, this.client.settings)),
163
- headers: jsonContentHeaders,
164
- method: 'PATCH',
165
- path: `/registry/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/images/${validatePathParam('imageId', request.imageId)}`
166
- }, unmarshalImage);
167
- /**
168
- * Delete an image. Delete a given image. You must specify, in the endpoint,
169
- * the `region` and `image_id` parameters of the image you want to delete.
170
- *
171
- * @param request - The request {@link DeleteImageRequest}
172
- * @returns A Promise of Image
173
- */
174
- this.deleteImage = request => this.client.fetch({
175
- method: 'DELETE',
176
- path: `/registry/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/images/${validatePathParam('imageId', request.imageId)}`
177
- }, unmarshalImage);
178
- this.pageOfListTags = request => this.client.fetch({
179
- method: 'GET',
180
- path: `/registry/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/images/${validatePathParam('imageId', request.imageId)}/tags`,
181
- urlParams: urlParams(['name', request.name], ['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
182
- }, unmarshalListTagsResponse);
183
- /**
184
- * List tags. List all tags for a given image, specified by region. By
185
- * default, the tags listed are ordered by creation date in ascending order.
186
- * This can be modified via the order_by field. You can also define additional
187
- * parameters for your query, such as the `name`.
188
- *
189
- * @param request - The request {@link ListTagsRequest}
190
- * @returns A Promise of ListTagsResponse
191
- */
192
- this.listTags = request => enrichForPagination('tags', this.pageOfListTags, request);
193
- /**
194
- * Get a tag. Retrieve information about a given image tag, specified by its
195
- * `tag_id` and region. Full details about the tag, such as `name`,
196
- * `image_id`, `status`, and `digest` are returned in the response.
197
- *
198
- * @param request - The request {@link GetTagRequest}
199
- * @returns A Promise of Tag
200
- */
201
- this.getTag = request => this.client.fetch({
202
- method: 'GET',
203
- path: `/registry/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/tags/${validatePathParam('tagId', request.tagId)}`
204
- }, unmarshalTag);
205
- /**
206
- * Waits for {@link Tag} to be in a final state.
207
- *
208
- * @param request - The request {@link GetTagRequest}
209
- * @param options - The waiting options
210
- * @returns A Promise of Tag
211
- */
212
- this.waitForTag = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!TAG_TRANSIENT_STATUSES.includes(res.status))), this.getTag, request, options);
213
- /**
214
- * Delete a tag. Delete a given image tag. You must specify, in the endpoint,
215
- * the `region` and `tag_id` parameters of the tag you want to delete.
216
- *
217
- * @param request - The request {@link DeleteTagRequest}
218
- * @returns A Promise of Tag
219
- */
220
- this.deleteTag = request => this.client.fetch({
221
- method: 'DELETE',
222
- path: `/registry/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/tags/${validatePathParam('tagId', request.tagId)}`,
223
- urlParams: urlParams(['force', request.force])
224
- }, unmarshalTag);
225
- }
226
- /** Lists the available regions of the API. */
149
+ })();
150
+
151
+ /**
152
+ * Get an image. Retrieve information about a given container image, specified
153
+ * by its `image_id` and region. Full details about the image, such as `name`,
154
+ * `namespace_id`, `status`, `visibility`, and `size` are returned in the
155
+ * response.
156
+ *
157
+ * @param request - The request {@link GetImageRequest}
158
+ * @returns A Promise of Image
159
+ */
160
+ getImage = request => this.client.fetch({
161
+ method: 'GET',
162
+ path: `/registry/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/images/${validatePathParam('imageId', request.imageId)}`
163
+ }, unmarshalImage);
164
+
165
+ /**
166
+ * Waits for {@link Image} to be in a final state.
167
+ *
168
+ * @param request - The request {@link GetImageRequest}
169
+ * @param options - The waiting options
170
+ * @returns A Promise of Image
171
+ */
172
+ waitForImage = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!IMAGE_TRANSIENT_STATUSES.includes(res.status))), this.getImage, request, options);
173
+
174
+ /**
175
+ * Update an image. Update the parameters of a given image, specified by its
176
+ * `image_id` and `region`. You can update the `visibility` parameter.
177
+ *
178
+ * @param request - The request {@link UpdateImageRequest}
179
+ * @returns A Promise of Image
180
+ */
181
+ updateImage = request => this.client.fetch({
182
+ body: JSON.stringify(marshalUpdateImageRequest(request, this.client.settings)),
183
+ headers: jsonContentHeaders,
184
+ method: 'PATCH',
185
+ path: `/registry/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/images/${validatePathParam('imageId', request.imageId)}`
186
+ }, unmarshalImage);
187
+
188
+ /**
189
+ * Delete an image. Delete a given image. You must specify, in the endpoint,
190
+ * the `region` and `image_id` parameters of the image you want to delete.
191
+ *
192
+ * @param request - The request {@link DeleteImageRequest}
193
+ * @returns A Promise of Image
194
+ */
195
+ deleteImage = request => this.client.fetch({
196
+ method: 'DELETE',
197
+ path: `/registry/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/images/${validatePathParam('imageId', request.imageId)}`
198
+ }, unmarshalImage);
199
+ pageOfListTags = request => this.client.fetch({
200
+ method: 'GET',
201
+ path: `/registry/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/images/${validatePathParam('imageId', request.imageId)}/tags`,
202
+ urlParams: urlParams(['name', request.name], ['order_by', request.orderBy ?? 'created_at_asc'], ['page', request.page], ['page_size', request.pageSize ?? this.client.settings.defaultPageSize])
203
+ }, unmarshalListTagsResponse);
204
+
205
+ /**
206
+ * List tags. List all tags for a given image, specified by region. By
207
+ * default, the tags listed are ordered by creation date in ascending order.
208
+ * This can be modified via the order_by field. You can also define additional
209
+ * parameters for your query, such as the `name`.
210
+ *
211
+ * @param request - The request {@link ListTagsRequest}
212
+ * @returns A Promise of ListTagsResponse
213
+ */
214
+ listTags = request => enrichForPagination('tags', this.pageOfListTags, request);
215
+
216
+ /**
217
+ * Get a tag. Retrieve information about a given image tag, specified by its
218
+ * `tag_id` and region. Full details about the tag, such as `name`,
219
+ * `image_id`, `status`, and `digest` are returned in the response.
220
+ *
221
+ * @param request - The request {@link GetTagRequest}
222
+ * @returns A Promise of Tag
223
+ */
224
+ getTag = request => this.client.fetch({
225
+ method: 'GET',
226
+ path: `/registry/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/tags/${validatePathParam('tagId', request.tagId)}`
227
+ }, unmarshalTag);
228
+
229
+ /**
230
+ * Waits for {@link Tag} to be in a final state.
231
+ *
232
+ * @param request - The request {@link GetTagRequest}
233
+ * @param options - The waiting options
234
+ * @returns A Promise of Tag
235
+ */
236
+ waitForTag = (request, options) => waitForResource(options?.stop ?? (res => Promise.resolve(!TAG_TRANSIENT_STATUSES.includes(res.status))), this.getTag, request, options);
237
+
238
+ /**
239
+ * Delete a tag. Delete a given image tag. You must specify, in the endpoint,
240
+ * the `region` and `tag_id` parameters of the tag you want to delete.
241
+ *
242
+ * @param request - The request {@link DeleteTagRequest}
243
+ * @returns A Promise of Tag
244
+ */
245
+ deleteTag = request => this.client.fetch({
246
+ method: 'DELETE',
247
+ path: `/registry/v1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/tags/${validatePathParam('tagId', request.tagId)}`,
248
+ urlParams: urlParams(['force', request.force])
249
+ }, unmarshalTag);
227
250
  }
228
- API.LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
229
251
 
230
252
  export { API };