@scaleway/sdk-baremetal 1.0.3 → 1.0.5
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/api.gen.cjs +21 -11
- package/dist/v1/api.gen.d.ts +11 -5
- package/dist/v1/api.gen.js +22 -12
- package/dist/v1/marshalling.gen.js +1 -1
- package/dist/v3/api.gen.cjs +14 -9
- package/dist/v3/api.gen.d.ts +6 -3
- package/dist/v3/api.gen.js +15 -10
- package/package.json +5 -5
package/dist/v1/api.gen.cjs
CHANGED
|
@@ -7,15 +7,20 @@ const jsonContentHeaders = {
|
|
|
7
7
|
"Content-Type": "application/json; charset=utf-8"
|
|
8
8
|
};
|
|
9
9
|
class API extends sdkClient.API {
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Locality of this API.
|
|
12
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
13
|
+
*/
|
|
14
|
+
static LOCALITY = sdkClient.toApiLocality({
|
|
15
|
+
zones: [
|
|
16
|
+
"fr-par-1",
|
|
17
|
+
"fr-par-2",
|
|
18
|
+
"nl-ams-1",
|
|
19
|
+
"nl-ams-2",
|
|
20
|
+
"pl-waw-2",
|
|
21
|
+
"pl-waw-3"
|
|
22
|
+
]
|
|
23
|
+
});
|
|
19
24
|
pageOfListServers = (request = {}) => this.client.fetch(
|
|
20
25
|
{
|
|
21
26
|
method: "GET",
|
|
@@ -504,8 +509,13 @@ class API extends sdkClient.API {
|
|
|
504
509
|
);
|
|
505
510
|
}
|
|
506
511
|
class PrivateNetworkAPI extends sdkClient.API {
|
|
507
|
-
/**
|
|
508
|
-
|
|
512
|
+
/**
|
|
513
|
+
* Locality of this API.
|
|
514
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
515
|
+
*/
|
|
516
|
+
static LOCALITY = sdkClient.toApiLocality({
|
|
517
|
+
zones: ["fr-par-2"]
|
|
518
|
+
});
|
|
509
519
|
/**
|
|
510
520
|
* Add a server to a Private Network.
|
|
511
521
|
*
|
package/dist/v1/api.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { API as ParentAPI } from '@scaleway/sdk-client';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ApiLocality, WaitForOptions } from '@scaleway/sdk-client';
|
|
3
3
|
import type { AddOptionServerRequest, BMCAccess, CreateServerRequest, DeleteOptionServerRequest, DeleteServerRequest, GetBMCAccessRequest, GetDefaultPartitioningSchemaRequest, GetOSRequest, GetOfferRequest, GetOptionRequest, GetServerMetricsRequest, GetServerMetricsResponse, GetServerRequest, IP, InstallServerRequest, ListOSRequest, ListOSResponse, ListOffersRequest, ListOffersResponse, ListOptionsRequest, ListOptionsResponse, ListServerEventsRequest, ListServerEventsResponse, ListServerPrivateNetworksResponse, ListServersRequest, ListServersResponse, ListSettingsRequest, ListSettingsResponse, MigrateServerToMonthlyOfferRequest, OS, Offer, Option, PrivateNetworkApiAddServerPrivateNetworkRequest, PrivateNetworkApiDeleteServerPrivateNetworkRequest, PrivateNetworkApiListServerPrivateNetworksRequest, PrivateNetworkApiSetServerPrivateNetworksRequest, RebootServerRequest, Schema, Server, ServerPrivateNetwork, SetServerPrivateNetworksResponse, Setting, StartBMCAccessRequest, StartServerRequest, StopBMCAccessRequest, StopServerRequest, UpdateIPRequest, UpdateServerRequest, UpdateSettingRequest, ValidatePartitioningSchemaRequest } from './types.gen';
|
|
4
4
|
/**
|
|
5
5
|
* Elastic Metal API.
|
|
@@ -7,8 +7,11 @@ import type { AddOptionServerRequest, BMCAccess, CreateServerRequest, DeleteOpti
|
|
|
7
7
|
This API allows you to manage your Elastic Metal servers.
|
|
8
8
|
*/
|
|
9
9
|
export declare class API extends ParentAPI {
|
|
10
|
-
/**
|
|
11
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Locality of this API.
|
|
12
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
13
|
+
*/
|
|
14
|
+
static readonly LOCALITY: ApiLocality;
|
|
12
15
|
protected pageOfListServers: (request?: Readonly<ListServersRequest>) => Promise<ListServersResponse>;
|
|
13
16
|
/**
|
|
14
17
|
* List Elastic Metal servers for an Organization. List Elastic Metal servers for a specific Organization.
|
|
@@ -243,8 +246,11 @@ export declare class API extends ParentAPI {
|
|
|
243
246
|
* Elastic Metal - Private Network API.
|
|
244
247
|
*/
|
|
245
248
|
export declare class PrivateNetworkAPI extends ParentAPI {
|
|
246
|
-
/**
|
|
247
|
-
|
|
249
|
+
/**
|
|
250
|
+
* Locality of this API.
|
|
251
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
252
|
+
*/
|
|
253
|
+
static readonly LOCALITY: ApiLocality;
|
|
248
254
|
/**
|
|
249
255
|
* Add a server to a Private Network.
|
|
250
256
|
*
|
package/dist/v1/api.gen.js
CHANGED
|
@@ -1,19 +1,24 @@
|
|
|
1
|
-
import { API as API$1, urlParams, validatePathParam, enrichForPagination, waitForResource } from "@scaleway/sdk-client";
|
|
1
|
+
import { API as API$1, toApiLocality, urlParams, validatePathParam, enrichForPagination, waitForResource } from "@scaleway/sdk-client";
|
|
2
2
|
import { SERVER_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
3
3
|
import { unmarshalListServersResponse, unmarshalServer, marshalCreateServerRequest, marshalUpdateServerRequest, marshalInstallServerRequest, unmarshalGetServerMetricsResponse, marshalRebootServerRequest, marshalStartServerRequest, unmarshalListServerEventsResponse, unmarshalSchema, marshalValidatePartitioningSchemaRequest, marshalStartBMCAccessRequest, unmarshalBMCAccess, marshalUpdateIPRequest, unmarshalIP, marshalAddOptionServerRequest, unmarshalListOffersResponse, unmarshalOffer, unmarshalOption, unmarshalListOptionsResponse, unmarshalListSettingsResponse, marshalUpdateSettingRequest, unmarshalSetting, unmarshalListOSResponse, unmarshalOS, marshalPrivateNetworkApiAddServerPrivateNetworkRequest, unmarshalServerPrivateNetwork, marshalPrivateNetworkApiSetServerPrivateNetworksRequest, unmarshalSetServerPrivateNetworksResponse, unmarshalListServerPrivateNetworksResponse } from "./marshalling.gen.js";
|
|
4
4
|
const jsonContentHeaders = {
|
|
5
5
|
"Content-Type": "application/json; charset=utf-8"
|
|
6
6
|
};
|
|
7
7
|
class API extends API$1 {
|
|
8
|
-
/**
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Locality of this API.
|
|
10
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
11
|
+
*/
|
|
12
|
+
static LOCALITY = toApiLocality({
|
|
13
|
+
zones: [
|
|
14
|
+
"fr-par-1",
|
|
15
|
+
"fr-par-2",
|
|
16
|
+
"nl-ams-1",
|
|
17
|
+
"nl-ams-2",
|
|
18
|
+
"pl-waw-2",
|
|
19
|
+
"pl-waw-3"
|
|
20
|
+
]
|
|
21
|
+
});
|
|
17
22
|
pageOfListServers = (request = {}) => this.client.fetch(
|
|
18
23
|
{
|
|
19
24
|
method: "GET",
|
|
@@ -502,8 +507,13 @@ class API extends API$1 {
|
|
|
502
507
|
);
|
|
503
508
|
}
|
|
504
509
|
class PrivateNetworkAPI extends API$1 {
|
|
505
|
-
/**
|
|
506
|
-
|
|
510
|
+
/**
|
|
511
|
+
* Locality of this API.
|
|
512
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
513
|
+
*/
|
|
514
|
+
static LOCALITY = toApiLocality({
|
|
515
|
+
zones: ["fr-par-2"]
|
|
516
|
+
});
|
|
507
517
|
/**
|
|
508
518
|
* Add a server to a Private Network.
|
|
509
519
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resolveOneOf, isJSONObject, unmarshalArrayOfObject,
|
|
1
|
+
import { resolveOneOf, isJSONObject, unmarshalArrayOfObject, unmarshalDate, unmarshalTimeSeries, unmarshalMoney } from "@scaleway/sdk-client";
|
|
2
2
|
const unmarshalSchemaPartition = (data) => {
|
|
3
3
|
if (!isJSONObject(data)) {
|
|
4
4
|
throw new TypeError(
|
package/dist/v3/api.gen.cjs
CHANGED
|
@@ -6,15 +6,20 @@ const jsonContentHeaders = {
|
|
|
6
6
|
"Content-Type": "application/json; charset=utf-8"
|
|
7
7
|
};
|
|
8
8
|
class PrivateNetworkAPI extends sdkClient.API {
|
|
9
|
-
/**
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Locality of this API.
|
|
11
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
12
|
+
*/
|
|
13
|
+
static LOCALITY = sdkClient.toApiLocality({
|
|
14
|
+
zones: [
|
|
15
|
+
"fr-par-1",
|
|
16
|
+
"fr-par-2",
|
|
17
|
+
"nl-ams-1",
|
|
18
|
+
"nl-ams-2",
|
|
19
|
+
"pl-waw-2",
|
|
20
|
+
"pl-waw-3"
|
|
21
|
+
]
|
|
22
|
+
});
|
|
18
23
|
/**
|
|
19
24
|
* Add a server to a Private Network. Add an Elastic Metal server to a Private Network.
|
|
20
25
|
*
|
package/dist/v3/api.gen.d.ts
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { API as ParentAPI } from '@scaleway/sdk-client';
|
|
2
|
-
import type {
|
|
2
|
+
import type { ApiLocality } from '@scaleway/sdk-client';
|
|
3
3
|
import type { ListServerPrivateNetworksResponse, PrivateNetworkApiAddServerPrivateNetworkRequest, PrivateNetworkApiDeleteServerPrivateNetworkRequest, PrivateNetworkApiListServerPrivateNetworksRequest, PrivateNetworkApiSetServerPrivateNetworksRequest, ServerPrivateNetwork, SetServerPrivateNetworksResponse } from './types.gen';
|
|
4
4
|
/**
|
|
5
5
|
* Elastic Metal - Private Networks API.
|
|
6
6
|
*/
|
|
7
7
|
export declare class PrivateNetworkAPI extends ParentAPI {
|
|
8
|
-
/**
|
|
9
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Locality of this API.
|
|
10
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
11
|
+
*/
|
|
12
|
+
static readonly LOCALITY: ApiLocality;
|
|
10
13
|
/**
|
|
11
14
|
* Add a server to a Private Network. Add an Elastic Metal server to a Private Network.
|
|
12
15
|
*
|
package/dist/v3/api.gen.js
CHANGED
|
@@ -1,18 +1,23 @@
|
|
|
1
|
-
import { API as API$1, validatePathParam, urlParams, enrichForPagination } from "@scaleway/sdk-client";
|
|
1
|
+
import { API as API$1, toApiLocality, validatePathParam, urlParams, enrichForPagination } from "@scaleway/sdk-client";
|
|
2
2
|
import { marshalPrivateNetworkApiAddServerPrivateNetworkRequest, unmarshalServerPrivateNetwork, marshalPrivateNetworkApiSetServerPrivateNetworksRequest, unmarshalSetServerPrivateNetworksResponse, unmarshalListServerPrivateNetworksResponse } from "./marshalling.gen.js";
|
|
3
3
|
const jsonContentHeaders = {
|
|
4
4
|
"Content-Type": "application/json; charset=utf-8"
|
|
5
5
|
};
|
|
6
6
|
class PrivateNetworkAPI extends API$1 {
|
|
7
|
-
/**
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
7
|
+
/**
|
|
8
|
+
* Locality of this API.
|
|
9
|
+
* type ∈ {'zone','region','global','unspecified'}
|
|
10
|
+
*/
|
|
11
|
+
static LOCALITY = toApiLocality({
|
|
12
|
+
zones: [
|
|
13
|
+
"fr-par-1",
|
|
14
|
+
"fr-par-2",
|
|
15
|
+
"nl-ams-1",
|
|
16
|
+
"nl-ams-2",
|
|
17
|
+
"pl-waw-2",
|
|
18
|
+
"pl-waw-3"
|
|
19
|
+
]
|
|
20
|
+
});
|
|
16
21
|
/**
|
|
17
22
|
* Add a server to a Private Network. Add an Elastic Metal server to a Private Network.
|
|
18
23
|
*
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-baremetal",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"description": "Scaleway SDK baremetal",
|
|
5
|
-
"
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
8
8
|
],
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@scaleway/random-name": "5.1.1",
|
|
33
|
-
"@scaleway/sdk-std": "1.0.
|
|
33
|
+
"@scaleway/sdk-std": "1.0.5"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@scaleway/sdk-client": "^1.
|
|
36
|
+
"@scaleway/sdk-client": "^1.3.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@scaleway/sdk-client": "^1.
|
|
39
|
+
"@scaleway/sdk-client": "^1.3.0"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"package:check": "pnpm publint",
|