@scaleway/sdk-kafka 2.2.0 → 2.2.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.
package/dist/v1alpha1/api.gen.js
CHANGED
|
@@ -10,7 +10,9 @@ class API extends API$1 {
|
|
|
10
10
|
* type ∈ {'zone','region','global','unspecified'}
|
|
11
11
|
*/
|
|
12
12
|
static LOCALITY = toApiLocality({
|
|
13
|
-
regions: [
|
|
13
|
+
regions: [
|
|
14
|
+
"fr-par"
|
|
15
|
+
]
|
|
14
16
|
});
|
|
15
17
|
pageOfListNodeTypes = (request = {}) => this.client.fetch(
|
|
16
18
|
{
|
|
@@ -19,10 +21,7 @@ class API extends API$1 {
|
|
|
19
21
|
urlParams: urlParams(
|
|
20
22
|
["include_disabled_types", request.includeDisabledTypes],
|
|
21
23
|
["page", request.page],
|
|
22
|
-
[
|
|
23
|
-
"page_size",
|
|
24
|
-
request.pageSize ?? this.client.settings.defaultPageSize
|
|
25
|
-
]
|
|
24
|
+
["page_size", request.pageSize ?? this.client.settings.defaultPageSize]
|
|
26
25
|
)
|
|
27
26
|
},
|
|
28
27
|
unmarshalListNodeTypesResponse
|
|
@@ -40,10 +39,7 @@ class API extends API$1 {
|
|
|
40
39
|
path: `/kafka/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/versions`,
|
|
41
40
|
urlParams: urlParams(
|
|
42
41
|
["page", request.page],
|
|
43
|
-
[
|
|
44
|
-
"page_size",
|
|
45
|
-
request.pageSize ?? this.client.settings.defaultPageSize
|
|
46
|
-
],
|
|
42
|
+
["page_size", request.pageSize ?? this.client.settings.defaultPageSize],
|
|
47
43
|
["version", request.version]
|
|
48
44
|
)
|
|
49
45
|
},
|
|
@@ -65,10 +61,7 @@ class API extends API$1 {
|
|
|
65
61
|
["order_by", request.orderBy],
|
|
66
62
|
["organization_id", request.organizationId],
|
|
67
63
|
["page", request.page],
|
|
68
|
-
[
|
|
69
|
-
"page_size",
|
|
70
|
-
request.pageSize ?? this.client.settings.defaultPageSize
|
|
71
|
-
],
|
|
64
|
+
["page_size", request.pageSize ?? this.client.settings.defaultPageSize],
|
|
72
65
|
["project_id", request.projectId],
|
|
73
66
|
["tags", request.tags]
|
|
74
67
|
)
|
|
@@ -103,9 +96,7 @@ class API extends API$1 {
|
|
|
103
96
|
* @returns A Promise of Cluster
|
|
104
97
|
*/
|
|
105
98
|
waitForCluster = (request, options) => waitForResource(
|
|
106
|
-
options?.stop ?? ((res) => Promise.resolve(
|
|
107
|
-
!CLUSTER_TRANSIENT_STATUSES.includes(res.status)
|
|
108
|
-
)),
|
|
99
|
+
options?.stop ?? ((res) => Promise.resolve(!CLUSTER_TRANSIENT_STATUSES.includes(res.status))),
|
|
109
100
|
this.getCluster,
|
|
110
101
|
request,
|
|
111
102
|
options
|
|
@@ -163,32 +154,40 @@ class API extends API$1 {
|
|
|
163
154
|
* @param request - The request {@link GetClusterCertificateAuthorityRequest}
|
|
164
155
|
* @returns A Promise of Blob
|
|
165
156
|
*/
|
|
166
|
-
getClusterCertificateAuthority = (request) => this.client.fetch(
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
157
|
+
getClusterCertificateAuthority = (request) => this.client.fetch(
|
|
158
|
+
{
|
|
159
|
+
method: "GET",
|
|
160
|
+
path: `/kafka/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/clusters/${validatePathParam("clusterId", request.clusterId)}/certificate-authority`,
|
|
161
|
+
urlParams: urlParams(
|
|
162
|
+
["dl", 1]
|
|
163
|
+
),
|
|
164
|
+
responseType: "blob"
|
|
165
|
+
}
|
|
166
|
+
);
|
|
172
167
|
/**
|
|
173
168
|
* Renew the Kafka cluster's certificate authority. Request to renew the certificate authority for a given Kafka cluster, specified by the `region` and `cluster_id` parameters. The certificate authority will be renewed within a few minutes.
|
|
174
169
|
*
|
|
175
170
|
* @param request - The request {@link RenewClusterCertificateAuthorityRequest}
|
|
176
171
|
*/
|
|
177
|
-
renewClusterCertificateAuthority = (request) => this.client.fetch(
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
172
|
+
renewClusterCertificateAuthority = (request) => this.client.fetch(
|
|
173
|
+
{
|
|
174
|
+
body: "{}",
|
|
175
|
+
headers: jsonContentHeaders,
|
|
176
|
+
method: "POST",
|
|
177
|
+
path: `/kafka/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/clusters/${validatePathParam("clusterId", request.clusterId)}/renew-certificate-authority`
|
|
178
|
+
}
|
|
179
|
+
);
|
|
183
180
|
/**
|
|
184
181
|
* Delete a Kafka cluster endpoint. Delete the endpoint of a Kafka cluster. You must specify the `endpoint_id` parameter of the endpoint you want to delete. Note that you might need to update any environment configurations that point to the deleted endpoint.
|
|
185
182
|
*
|
|
186
183
|
* @param request - The request {@link DeleteEndpointRequest}
|
|
187
184
|
*/
|
|
188
|
-
deleteEndpoint = (request) => this.client.fetch(
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
185
|
+
deleteEndpoint = (request) => this.client.fetch(
|
|
186
|
+
{
|
|
187
|
+
method: "DELETE",
|
|
188
|
+
path: `/kafka/v1alpha1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/endpoints/${validatePathParam("endpointId", request.endpointId)}`
|
|
189
|
+
}
|
|
190
|
+
);
|
|
192
191
|
/**
|
|
193
192
|
* Create a new Kafka cluster endpoint. Create a new endpoint for a Kafka cluster. You can add `public_network` or `private_network` specifications to the body of the request. Note that currently only `private_network` is supported.
|
|
194
193
|
*
|
|
@@ -214,10 +213,7 @@ class API extends API$1 {
|
|
|
214
213
|
["name", request.name],
|
|
215
214
|
["order_by", request.orderBy],
|
|
216
215
|
["page", request.page],
|
|
217
|
-
[
|
|
218
|
-
"page_size",
|
|
219
|
-
request.pageSize ?? this.client.settings.defaultPageSize
|
|
220
|
-
]
|
|
216
|
+
["page_size", request.pageSize ?? this.client.settings.defaultPageSize]
|
|
221
217
|
)
|
|
222
218
|
},
|
|
223
219
|
unmarshalListUsersResponse
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { API } from './api.gen.js';
|
|
1
|
+
export { API, } from './api.gen.js';
|
|
2
2
|
export * from './content.gen.js';
|
|
3
3
|
export * from './marshalling.gen.js';
|
|
4
4
|
export type { Cluster, ClusterSetting, ClusterStatus, CreateClusterRequest, CreateClusterRequestVolumeSpec, CreateEndpointRequest, DeleteClusterRequest, DeleteEndpointRequest, Endpoint, EndpointPrivateNetworkDetails, EndpointPublicDetails, EndpointSpec, EndpointSpecPrivateNetworkDetails, EndpointSpecPublicDetails, GetClusterCertificateAuthorityRequest, GetClusterRequest, ListClustersRequest, ListClustersRequestOrderBy, ListClustersResponse, ListNodeTypesRequest, ListNodeTypesResponse, ListUsersRequest, ListUsersRequestOrderBy, ListUsersResponse, ListVersionsRequest, ListVersionsResponse, NodeType, NodeTypeStock, NodeTypeVolumeType, RenewClusterCertificateAuthorityRequest, UpdateClusterRequest, UpdateUserRequest, User, Version, VersionAvailableSetting, VersionAvailableSettingBooleanProperty, VersionAvailableSettingFloatProperty, VersionAvailableSettingIntegerProperty, VersionAvailableSettingStringProperty, Volume, VolumeType, } from './types.gen.js';
|
|
@@ -123,10 +123,7 @@ const unmarshalNodeType = (data) => {
|
|
|
123
123
|
);
|
|
124
124
|
}
|
|
125
125
|
return {
|
|
126
|
-
availableVolumeTypes: unmarshalArrayOfObject(
|
|
127
|
-
data.available_volume_types,
|
|
128
|
-
unmarshalNodeTypeVolumeType
|
|
129
|
-
),
|
|
126
|
+
availableVolumeTypes: unmarshalArrayOfObject(data.available_volume_types, unmarshalNodeTypeVolumeType),
|
|
130
127
|
beta: data.beta,
|
|
131
128
|
clusterRange: data.cluster_range,
|
|
132
129
|
description: data.description,
|
|
@@ -229,10 +226,7 @@ const unmarshalVersion = (data) => {
|
|
|
229
226
|
);
|
|
230
227
|
}
|
|
231
228
|
return {
|
|
232
|
-
availableSettings: unmarshalArrayOfObject(
|
|
233
|
-
data.available_settings,
|
|
234
|
-
unmarshalVersionAvailableSetting
|
|
235
|
-
),
|
|
229
|
+
availableSettings: unmarshalArrayOfObject(data.available_settings, unmarshalVersionAvailableSetting),
|
|
236
230
|
endOfLifeAt: unmarshalDate(data.end_of_life_at),
|
|
237
231
|
version: data.version
|
|
238
232
|
};
|
|
@@ -264,9 +258,7 @@ const marshalEndpointSpec = (request, defaults) => ({
|
|
|
264
258
|
},
|
|
265
259
|
{
|
|
266
260
|
param: "private_network",
|
|
267
|
-
value: request.privateNetwork !== void 0 ? marshalEndpointSpecPrivateNetworkDetails(
|
|
268
|
-
request.privateNetwork
|
|
269
|
-
) : void 0
|
|
261
|
+
value: request.privateNetwork !== void 0 ? marshalEndpointSpecPrivateNetworkDetails(request.privateNetwork) : void 0
|
|
270
262
|
}
|
|
271
263
|
])
|
|
272
264
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-kafka",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"description": "Scaleway SDK kafka",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"files": [
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@scaleway/random-name": "5.1.2",
|
|
30
|
-
"@scaleway/sdk-std": "2.1.
|
|
30
|
+
"@scaleway/sdk-std": "2.1.1"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
33
|
"@scaleway/sdk-client": "^2.1.0"
|