@scaleway/sdk-baremetal 2.20.0 → 2.20.2
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/v1/constants.gen.d.ts +3 -1
- package/dist/v1/constants.gen.js +10 -1
- package/dist/v1/index.gen.d.ts +4 -4
- package/dist/v1/index.gen.js +3 -2
- package/dist/v1/marshalling.gen.js +63 -60
- package/dist/v1/types.gen.d.ts +171 -158
- package/dist/v3/marshalling.gen.js +3 -3
- package/dist/v3/types.gen.d.ts +16 -16
- package/package.json +4 -4
|
@@ -4,15 +4,15 @@ import { isJSONObject, unmarshalArrayOfObject, unmarshalDate } from "@scaleway/s
|
|
|
4
4
|
const unmarshalServerPrivateNetwork = (data) => {
|
|
5
5
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ServerPrivateNetwork' failed as data isn't a dictionary.`);
|
|
6
6
|
return {
|
|
7
|
-
createdAt: unmarshalDate(data.created_at),
|
|
7
|
+
createdAt: unmarshalDate(data.created_at) ?? null,
|
|
8
8
|
id: data.id,
|
|
9
9
|
ipamIpIds: data.ipam_ip_ids,
|
|
10
10
|
privateNetworkId: data.private_network_id,
|
|
11
11
|
projectId: data.project_id,
|
|
12
12
|
serverId: data.server_id,
|
|
13
13
|
status: data.status,
|
|
14
|
-
updatedAt: unmarshalDate(data.updated_at),
|
|
15
|
-
vlan: data.vlan
|
|
14
|
+
updatedAt: unmarshalDate(data.updated_at) ?? null,
|
|
15
|
+
vlan: data.vlan ?? null
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
18
|
const unmarshalListServerPrivateNetworksResponse = (data) => {
|
package/dist/v3/types.gen.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ export interface ServerPrivateNetwork {
|
|
|
22
22
|
/**
|
|
23
23
|
* VLAN UUID associated with the Private Network.
|
|
24
24
|
*/
|
|
25
|
-
vlan?: number;
|
|
25
|
+
vlan?: number | null;
|
|
26
26
|
/**
|
|
27
27
|
* Configuration status of the Private Network.
|
|
28
28
|
*/
|
|
@@ -30,11 +30,11 @@ export interface ServerPrivateNetwork {
|
|
|
30
30
|
/**
|
|
31
31
|
* Private Network creation date.
|
|
32
32
|
*/
|
|
33
|
-
createdAt?: Date;
|
|
33
|
+
createdAt?: Date | null;
|
|
34
34
|
/**
|
|
35
35
|
* Date the Private Network was last modified.
|
|
36
36
|
*/
|
|
37
|
-
updatedAt?: Date;
|
|
37
|
+
updatedAt?: Date | null;
|
|
38
38
|
/**
|
|
39
39
|
* IPAM IP IDs of the server, if it has any.
|
|
40
40
|
*/
|
|
@@ -48,7 +48,7 @@ export type PrivateNetworkApiAddServerPrivateNetworkRequest = {
|
|
|
48
48
|
/**
|
|
49
49
|
* Zone to target. If none is passed will use default zone from the config.
|
|
50
50
|
*/
|
|
51
|
-
zone?: Zone;
|
|
51
|
+
zone?: Zone | null;
|
|
52
52
|
/**
|
|
53
53
|
* UUID of the server.
|
|
54
54
|
*/
|
|
@@ -60,13 +60,13 @@ export type PrivateNetworkApiAddServerPrivateNetworkRequest = {
|
|
|
60
60
|
/**
|
|
61
61
|
* IPAM IDs of an IPs to attach to the server.
|
|
62
62
|
*/
|
|
63
|
-
ipamIpIds?: string[];
|
|
63
|
+
ipamIpIds?: string[] | null;
|
|
64
64
|
};
|
|
65
65
|
export type PrivateNetworkApiDeleteServerPrivateNetworkRequest = {
|
|
66
66
|
/**
|
|
67
67
|
* Zone to target. If none is passed will use default zone from the config.
|
|
68
68
|
*/
|
|
69
|
-
zone?: Zone;
|
|
69
|
+
zone?: Zone | null;
|
|
70
70
|
/**
|
|
71
71
|
* UUID of the server.
|
|
72
72
|
*/
|
|
@@ -80,45 +80,45 @@ export type PrivateNetworkApiListServerPrivateNetworksRequest = {
|
|
|
80
80
|
/**
|
|
81
81
|
* Zone to target. If none is passed will use default zone from the config.
|
|
82
82
|
*/
|
|
83
|
-
zone?: Zone;
|
|
83
|
+
zone?: Zone | null;
|
|
84
84
|
/**
|
|
85
85
|
* Sort order for the returned Private Networks.
|
|
86
86
|
*/
|
|
87
|
-
orderBy?: ListServerPrivateNetworksRequestOrderBy;
|
|
87
|
+
orderBy?: ListServerPrivateNetworksRequestOrderBy | null;
|
|
88
88
|
/**
|
|
89
89
|
* Page number for the returned Private Networks.
|
|
90
90
|
*/
|
|
91
|
-
page?: number;
|
|
91
|
+
page?: number | null;
|
|
92
92
|
/**
|
|
93
93
|
* Maximum number of Private Networks per page.
|
|
94
94
|
*/
|
|
95
|
-
pageSize?: number;
|
|
95
|
+
pageSize?: number | null;
|
|
96
96
|
/**
|
|
97
97
|
* Filter Private Networks by server UUID.
|
|
98
98
|
*/
|
|
99
|
-
serverId?: string;
|
|
99
|
+
serverId?: string | null;
|
|
100
100
|
/**
|
|
101
101
|
* Filter Private Networks by Private Network UUID.
|
|
102
102
|
*/
|
|
103
|
-
privateNetworkId?: string;
|
|
103
|
+
privateNetworkId?: string | null;
|
|
104
104
|
/**
|
|
105
105
|
* Filter Private Networks by organization UUID.
|
|
106
106
|
*/
|
|
107
|
-
organizationId?: string;
|
|
107
|
+
organizationId?: string | null;
|
|
108
108
|
/**
|
|
109
109
|
* Filter Private Networks by project UUID.
|
|
110
110
|
*/
|
|
111
|
-
projectId?: string;
|
|
111
|
+
projectId?: string | null;
|
|
112
112
|
/**
|
|
113
113
|
* Filter Private Networks by IPAM IP UUIDs.
|
|
114
114
|
*/
|
|
115
|
-
ipamIpIds?: string[];
|
|
115
|
+
ipamIpIds?: string[] | null;
|
|
116
116
|
};
|
|
117
117
|
export type PrivateNetworkApiSetServerPrivateNetworksRequest = {
|
|
118
118
|
/**
|
|
119
119
|
* Zone to target. If none is passed will use default zone from the config.
|
|
120
120
|
*/
|
|
121
|
-
zone?: Zone;
|
|
121
|
+
zone?: Zone | null;
|
|
122
122
|
/**
|
|
123
123
|
* UUID of the server.
|
|
124
124
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-baremetal",
|
|
3
|
-
"version": "2.20.
|
|
3
|
+
"version": "2.20.2",
|
|
4
4
|
"description": "Scaleway SDK baremetal",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@scaleway/random-name": "6.0.2",
|
|
36
|
-
"@scaleway/sdk-std": "2.9.
|
|
36
|
+
"@scaleway/sdk-std": "2.9.8"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@repo/configs": "^0.1.1",
|
|
40
|
-
"@scaleway/sdk-client": "^2.
|
|
40
|
+
"@scaleway/sdk-client": "^2.19.0"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@scaleway/sdk-client": "^2.
|
|
43
|
+
"@scaleway/sdk-client": "^2.19.0"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"package:check": "pnpm publint",
|