@scaleway/sdk 0.1.0-beta.28 → 0.1.0-beta.29
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/api/instance/v1/marshalling.gen.js +3 -7
- package/dist/index.cjs +4 -8
- package/dist/index.d.ts +24 -18
- package/dist/scw/constants.js +1 -1
- package/package.json +2 -2
|
@@ -930,10 +930,6 @@ const marshalImage = (request, defaults) => ({
|
|
|
930
930
|
tags: request.tags,
|
|
931
931
|
zone: request.zone
|
|
932
932
|
});
|
|
933
|
-
const marshalNullableStringValue = (request, defaults) => ({
|
|
934
|
-
null: request.null,
|
|
935
|
-
value: request.value
|
|
936
|
-
});
|
|
937
933
|
const marshalPlacementGroup = (request, defaults) => ({
|
|
938
934
|
id: request.id,
|
|
939
935
|
name: request.name,
|
|
@@ -1309,8 +1305,8 @@ const marshalSetSnapshotRequest = (request, defaults) => ({
|
|
|
1309
1305
|
volume_type: request.volumeType
|
|
1310
1306
|
});
|
|
1311
1307
|
const marshalUpdateIpRequest = (request, defaults) => ({
|
|
1312
|
-
reverse: request.reverse
|
|
1313
|
-
server: request.server
|
|
1308
|
+
reverse: request.reverse,
|
|
1309
|
+
server: request.server,
|
|
1314
1310
|
tags: request.tags
|
|
1315
1311
|
});
|
|
1316
1312
|
const marshalUpdatePlacementGroupRequest = (request, defaults) => ({
|
|
@@ -1328,7 +1324,7 @@ const marshalUpdateServerRequest = (request, defaults) => ({
|
|
|
1328
1324
|
dynamic_ip_required: request.dynamicIpRequired,
|
|
1329
1325
|
enable_ipv6: request.enableIpv6,
|
|
1330
1326
|
name: request.name,
|
|
1331
|
-
placement_group: request.placementGroup
|
|
1327
|
+
placement_group: request.placementGroup,
|
|
1332
1328
|
private_nics: request.privateNics ? request.privateNics.map(elt => marshalPrivateNIC(elt)) : undefined,
|
|
1333
1329
|
protected: request.protected,
|
|
1334
1330
|
security_group: request.securityGroup ? marshalSecurityGroupTemplate(request.securityGroup) : undefined,
|
package/dist/index.cjs
CHANGED
|
@@ -392,7 +392,7 @@ const assertValidSettings = obj => {
|
|
|
392
392
|
}
|
|
393
393
|
};
|
|
394
394
|
|
|
395
|
-
const version = 'v0.1.0-beta.
|
|
395
|
+
const version = 'v0.1.0-beta.28';
|
|
396
396
|
const userAgent = `scaleway-sdk-js/${version}`;
|
|
397
397
|
|
|
398
398
|
const isBrowser = () => typeof window !== 'undefined' && typeof window.document !== 'undefined';
|
|
@@ -9042,10 +9042,6 @@ const marshalImage = (request, defaults) => ({
|
|
|
9042
9042
|
tags: request.tags,
|
|
9043
9043
|
zone: request.zone
|
|
9044
9044
|
});
|
|
9045
|
-
const marshalNullableStringValue = (request, defaults) => ({
|
|
9046
|
-
null: request.null,
|
|
9047
|
-
value: request.value
|
|
9048
|
-
});
|
|
9049
9045
|
const marshalPlacementGroup = (request, defaults) => ({
|
|
9050
9046
|
id: request.id,
|
|
9051
9047
|
name: request.name,
|
|
@@ -9406,8 +9402,8 @@ const marshalSetSnapshotRequest = (request, defaults) => ({
|
|
|
9406
9402
|
volume_type: request.volumeType
|
|
9407
9403
|
});
|
|
9408
9404
|
const marshalUpdateIpRequest$1 = (request, defaults) => ({
|
|
9409
|
-
reverse: request.reverse
|
|
9410
|
-
server: request.server
|
|
9405
|
+
reverse: request.reverse,
|
|
9406
|
+
server: request.server,
|
|
9411
9407
|
tags: request.tags
|
|
9412
9408
|
});
|
|
9413
9409
|
const marshalUpdatePlacementGroupRequest = (request, defaults) => ({
|
|
@@ -9425,7 +9421,7 @@ const marshalUpdateServerRequest = (request, defaults) => ({
|
|
|
9425
9421
|
dynamic_ip_required: request.dynamicIpRequired,
|
|
9426
9422
|
enable_ipv6: request.enableIpv6,
|
|
9427
9423
|
name: request.name,
|
|
9428
|
-
placement_group: request.placementGroup
|
|
9424
|
+
placement_group: request.placementGroup,
|
|
9429
9425
|
private_nics: request.privateNics ? request.privateNics.map(elt => marshalPrivateNIC(elt)) : undefined,
|
|
9430
9426
|
protected: request.protected,
|
|
9431
9427
|
security_group: request.securityGroup ? marshalSecurityGroupTemplate(request.securityGroup) : undefined,
|
package/dist/index.d.ts
CHANGED
|
@@ -5570,7 +5570,7 @@ type CronStatus = 'unknown' | 'ready' | 'deleting' | 'error' | 'locked' | 'creat
|
|
|
5570
5570
|
type DomainStatus$1 = 'unknown' | 'ready' | 'deleting' | 'error' | 'creating' | 'pending';
|
|
5571
5571
|
type FunctionHttpOption = 'unknown_http_option' | 'enabled' | 'redirected';
|
|
5572
5572
|
type FunctionPrivacy = 'unknown_privacy' | 'public' | 'private';
|
|
5573
|
-
type FunctionRuntime = 'unknown_runtime' | 'golang' | 'python' | 'python3' | 'node8' | 'node10' | 'node14' | 'node16' | 'node17' | 'python37' | 'python38' | 'python39' | 'python310' | 'go113' | 'go117' | 'go118' | 'node18' | 'rust165' | 'go119' | 'python311';
|
|
5573
|
+
type FunctionRuntime = 'unknown_runtime' | 'golang' | 'python' | 'python3' | 'node8' | 'node10' | 'node14' | 'node16' | 'node17' | 'python37' | 'python38' | 'python39' | 'python310' | 'go113' | 'go117' | 'go118' | 'node18' | 'rust165' | 'go119' | 'python311' | 'php82';
|
|
5574
5574
|
type FunctionStatus = 'unknown' | 'ready' | 'deleting' | 'error' | 'locked' | 'creating' | 'pending' | 'created';
|
|
5575
5575
|
type ListCronsRequestOrderBy = 'created_at_asc' | 'created_at_desc';
|
|
5576
5576
|
type ListDomainsRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'hostname_asc' | 'hostname_desc';
|
|
@@ -8061,10 +8061,6 @@ interface ListVolumesTypesResponse {
|
|
|
8061
8061
|
/** Map of volume types */
|
|
8062
8062
|
volumes: Record<string, VolumeType$1>;
|
|
8063
8063
|
}
|
|
8064
|
-
interface NullableStringValue {
|
|
8065
|
-
null: boolean;
|
|
8066
|
-
value: string;
|
|
8067
|
-
}
|
|
8068
8064
|
/** Placement group */
|
|
8069
8065
|
interface PlacementGroup {
|
|
8070
8066
|
/** The placement group unique ID */
|
|
@@ -9181,10 +9177,10 @@ type UpdateIpRequest$1 = {
|
|
|
9181
9177
|
/** IP ID or IP address */
|
|
9182
9178
|
ip: string;
|
|
9183
9179
|
/** Reverse domain name */
|
|
9184
|
-
reverse?:
|
|
9180
|
+
reverse?: string;
|
|
9185
9181
|
/** An array of keywords you want to tag this IP with */
|
|
9186
9182
|
tags?: Array<string>;
|
|
9187
|
-
server?:
|
|
9183
|
+
server?: string;
|
|
9188
9184
|
};
|
|
9189
9185
|
type DeleteIpRequest = {
|
|
9190
9186
|
/** Zone to target. If none is passed will use default zone from the config */
|
|
@@ -9376,7 +9372,7 @@ type UpdateServerRequest = {
|
|
|
9376
9372
|
protected?: boolean;
|
|
9377
9373
|
securityGroup?: SecurityGroupTemplate;
|
|
9378
9374
|
/** Placement group ID if server must be part of a placement group */
|
|
9379
|
-
placementGroup?:
|
|
9375
|
+
placementGroup?: string;
|
|
9380
9376
|
/** The server private NICs */
|
|
9381
9377
|
privateNics?: Array<PrivateNIC>;
|
|
9382
9378
|
};
|
|
@@ -10146,7 +10142,6 @@ type index$r_ListServersResponse = ListServersResponse;
|
|
|
10146
10142
|
type index$r_ListServersTypesResponse = ListServersTypesResponse;
|
|
10147
10143
|
type index$r_ListVolumesResponse = ListVolumesResponse;
|
|
10148
10144
|
type index$r_ListVolumesTypesResponse = ListVolumesTypesResponse;
|
|
10149
|
-
type index$r_NullableStringValue = NullableStringValue;
|
|
10150
10145
|
type index$r_PlacementGroup = PlacementGroup;
|
|
10151
10146
|
type index$r_PlacementGroupServer = PlacementGroupServer;
|
|
10152
10147
|
type index$r_PrivateNIC = PrivateNIC;
|
|
@@ -10316,7 +10311,6 @@ declare namespace index$r {
|
|
|
10316
10311
|
ListSnapshotsResponse$1 as ListSnapshotsResponse,
|
|
10317
10312
|
index$r_ListVolumesResponse as ListVolumesResponse,
|
|
10318
10313
|
index$r_ListVolumesTypesResponse as ListVolumesTypesResponse,
|
|
10319
|
-
index$r_NullableStringValue as NullableStringValue,
|
|
10320
10314
|
index$r_PlacementGroup as PlacementGroup,
|
|
10321
10315
|
index$r_PlacementGroupServer as PlacementGroupServer,
|
|
10322
10316
|
index$r_PrivateNIC as PrivateNIC,
|
|
@@ -17234,21 +17228,25 @@ interface Endpoint$2 {
|
|
|
17234
17228
|
/** Name of the endpoint */
|
|
17235
17229
|
name?: string;
|
|
17236
17230
|
/**
|
|
17237
|
-
* Private network details.
|
|
17231
|
+
* Private network details. One at the most per RDB instance or read replica
|
|
17232
|
+
* (an RDB instance and its read replica can have different private networks).
|
|
17233
|
+
* Cannot be updated (has to be deleted and recreated).
|
|
17238
17234
|
*
|
|
17239
17235
|
* One-of ('details'): at most one of 'privateNetwork', 'loadBalancer',
|
|
17240
17236
|
* 'directAccess' could be set.
|
|
17241
17237
|
*/
|
|
17242
17238
|
privateNetwork?: EndpointPrivateNetworkDetails;
|
|
17243
17239
|
/**
|
|
17244
|
-
* Load balancer details.
|
|
17240
|
+
* Load balancer details. Public endpoint for RDB instances which is
|
|
17241
|
+
* systematically present. One per RDB instance.
|
|
17245
17242
|
*
|
|
17246
17243
|
* One-of ('details'): at most one of 'privateNetwork', 'loadBalancer',
|
|
17247
17244
|
* 'directAccess' could be set.
|
|
17248
17245
|
*/
|
|
17249
17246
|
loadBalancer?: EndpointLoadBalancerDetails;
|
|
17250
17247
|
/**
|
|
17251
|
-
* Direct access details.
|
|
17248
|
+
* Direct access details. Public endpoint reserved for read replicas. One per
|
|
17249
|
+
* read replica.
|
|
17252
17250
|
*
|
|
17253
17251
|
* One-of ('details'): at most one of 'privateNetwork', 'loadBalancer',
|
|
17254
17252
|
* 'directAccess' could be set.
|
|
@@ -17277,14 +17275,17 @@ interface EndpointPrivateNetworkDetails {
|
|
|
17277
17275
|
/** Endpoint spec */
|
|
17278
17276
|
interface EndpointSpec$2 {
|
|
17279
17277
|
/**
|
|
17280
|
-
* Load balancer endpoint specifications.
|
|
17278
|
+
* Load balancer endpoint specifications. Public endpoint for RDB instances
|
|
17279
|
+
* which is systematically present. One per RDB instance.
|
|
17281
17280
|
*
|
|
17282
17281
|
* One-of ('spec'): at most one of 'loadBalancer', 'privateNetwork' could be
|
|
17283
17282
|
* set.
|
|
17284
17283
|
*/
|
|
17285
17284
|
loadBalancer?: EndpointSpecLoadBalancer;
|
|
17286
17285
|
/**
|
|
17287
|
-
* Private network endpoint specifications.
|
|
17286
|
+
* Private network endpoint specifications. One at the most per RDB instance
|
|
17287
|
+
* or read replica (an RDB instance and its read replica can have different
|
|
17288
|
+
* private networks). Cannot be updated (has to be deleted and recreated).
|
|
17288
17289
|
*
|
|
17289
17290
|
* One-of ('spec'): at most one of 'loadBalancer', 'privateNetwork' could be
|
|
17290
17291
|
* set.
|
|
@@ -17590,14 +17591,16 @@ interface ReadReplica {
|
|
|
17590
17591
|
/** Read replica endpoint spec */
|
|
17591
17592
|
interface ReadReplicaEndpointSpec {
|
|
17592
17593
|
/**
|
|
17593
|
-
* Direct access endpoint specifications.
|
|
17594
|
+
* Direct access endpoint specifications. Public endpoint reserved for read
|
|
17595
|
+
* replicas. One per read replica.
|
|
17594
17596
|
*
|
|
17595
17597
|
* One-of ('spec'): at most one of 'directAccess', 'privateNetwork' could be
|
|
17596
17598
|
* set.
|
|
17597
17599
|
*/
|
|
17598
17600
|
directAccess?: ReadReplicaEndpointSpecDirectAccess;
|
|
17599
17601
|
/**
|
|
17600
|
-
* Private network endpoint specifications.
|
|
17602
|
+
* Private network endpoint specifications. One at the most per read replica.
|
|
17603
|
+
* Cannot be updated (has to be deleted and recreated).
|
|
17601
17604
|
*
|
|
17602
17605
|
* One-of ('spec'): at most one of 'directAccess', 'privateNetwork' could be
|
|
17603
17606
|
* set.
|
|
@@ -17866,7 +17869,10 @@ type CreateInstanceRequest = {
|
|
|
17866
17869
|
volumeType: VolumeType;
|
|
17867
17870
|
/** Volume size when volume_type is not lssd */
|
|
17868
17871
|
volumeSize: number;
|
|
17869
|
-
/**
|
|
17872
|
+
/**
|
|
17873
|
+
* One or multiple EndpointSpec used to expose your database instance. A
|
|
17874
|
+
* load_balancer public endpoint is systematically created
|
|
17875
|
+
*/
|
|
17870
17876
|
initEndpoints?: Array<EndpointSpec$2>;
|
|
17871
17877
|
/** Store logical backups in the same region as the database instance */
|
|
17872
17878
|
backupSameRegion: boolean;
|
package/dist/scw/constants.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.29",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Scaleway SDK.",
|
|
6
6
|
"keywords": [
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"bundledDependencies": [
|
|
37
37
|
"@scaleway/random-name"
|
|
38
38
|
],
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "fd83d3e6559b303cc465e4410dcb80955ec46bdc"
|
|
40
40
|
}
|