@scaleway/sdk-baremetal 2.7.0 → 2.7.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/LICENSE +191 -0
- package/package.json +9 -8
- package/dist/.vite/license.md +0 -3
- package/dist/_virtual/_rolldown/runtime.js +0 -13
- package/dist/index.gen.d.ts +0 -6
- package/dist/index.gen.js +0 -3
- package/dist/metadata.gen.d.ts +0 -12
- package/dist/metadata.gen.js +0 -13
- package/dist/v1/api.gen.d.ts +0 -292
- package/dist/v1/api.gen.js +0 -214
- package/dist/v1/content.gen.d.ts +0 -7
- package/dist/v1/content.gen.js +0 -17
- package/dist/v1/index.gen.d.ts +0 -5
- package/dist/v1/index.gen.js +0 -49
- package/dist/v1/marshalling.gen.d.ts +0 -35
- package/dist/v1/marshalling.gen.js +0 -500
- package/dist/v1/metadata.gen.d.ts +0 -154
- package/dist/v1/metadata.gen.js +0 -170
- package/dist/v1/types.gen.d.ts +0 -1455
- package/dist/v1/types.gen.js +0 -0
- package/dist/v1/validation-rules.gen.d.ts +0 -112
- package/dist/v1/validation-rules.gen.js +0 -85
- package/dist/v3/api.gen.d.ts +0 -44
- package/dist/v3/api.gen.js +0 -46
- package/dist/v3/content.gen.d.ts +0 -3
- package/dist/v3/content.gen.js +0 -5
- package/dist/v3/index.gen.d.ts +0 -4
- package/dist/v3/index.gen.js +0 -16
- package/dist/v3/marshalling.gen.d.ts +0 -7
- package/dist/v3/marshalling.gen.js +0 -34
- package/dist/v3/metadata.gen.d.ts +0 -21
- package/dist/v3/metadata.gen.js +0 -23
- package/dist/v3/types.gen.d.ts +0 -132
- package/dist/v3/types.gen.js +0 -0
package/dist/v1/api.gen.js
DELETED
|
@@ -1,214 +0,0 @@
|
|
|
1
|
-
import { SERVER_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
2
|
-
import { marshalAddOptionServerRequest, marshalBatchCreateServersRequest, marshalCreateServerRequest, marshalInstallServerRequest, marshalPrivateNetworkApiAddServerPrivateNetworkRequest, marshalPrivateNetworkApiSetServerPrivateNetworksRequest, marshalRebootServerRequest, marshalStartBMCAccessRequest, marshalStartServerRequest, marshalUpdateIPRequest, marshalUpdateServerRequest, marshalUpdateSettingRequest, marshalValidatePartitioningSchemaRequest, unmarshalBMCAccess, unmarshalBatchCreateServersResponse, unmarshalGetServerMetricsResponse, unmarshalIP, unmarshalListOSResponse, unmarshalListOffersResponse, unmarshalListOptionsResponse, unmarshalListServerEventsResponse, unmarshalListServerPrivateNetworksResponse, unmarshalListServersResponse, unmarshalListSettingsResponse, unmarshalOS, unmarshalOffer, unmarshalOption, unmarshalSchema, unmarshalServer, unmarshalServerPrivateNetwork, unmarshalSetServerPrivateNetworksResponse, unmarshalSetting } from "./marshalling.gen.js";
|
|
3
|
-
import { API as API$1, enrichForPagination, toApiLocality, urlParams, validatePathParam, waitForResource } from "@scaleway/sdk-client";
|
|
4
|
-
//#region src/v1/api.gen.ts
|
|
5
|
-
const jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" };
|
|
6
|
-
/**
|
|
7
|
-
* Elastic Metal API.
|
|
8
|
-
|
|
9
|
-
This API allows you to manage your Elastic Metal servers.
|
|
10
|
-
*/
|
|
11
|
-
var API = class extends API$1 {
|
|
12
|
-
constructor(..._args) {
|
|
13
|
-
super(..._args);
|
|
14
|
-
this.pageOfListServers = (request = {}) => this.client.fetch({
|
|
15
|
-
method: "GET",
|
|
16
|
-
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers`,
|
|
17
|
-
urlParams: urlParams(["name", request.name], ["option_id", request.optionId], ["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId], ["status", request.status], ["tags", request.tags])
|
|
18
|
-
}, unmarshalListServersResponse);
|
|
19
|
-
this.listServers = (request = {}) => enrichForPagination("servers", this.pageOfListServers, request);
|
|
20
|
-
this.getServer = (request) => this.client.fetch({
|
|
21
|
-
method: "GET",
|
|
22
|
-
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}`
|
|
23
|
-
}, unmarshalServer);
|
|
24
|
-
this.waitForServer = (request, options) => waitForResource(options?.stop ?? ((res) => Promise.resolve(!SERVER_TRANSIENT_STATUSES.includes(res.status))), this.getServer, request, options);
|
|
25
|
-
this.createServer = (request) => this.client.fetch({
|
|
26
|
-
body: JSON.stringify(marshalCreateServerRequest(request, this.client.settings)),
|
|
27
|
-
headers: jsonContentHeaders,
|
|
28
|
-
method: "POST",
|
|
29
|
-
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers`
|
|
30
|
-
}, unmarshalServer);
|
|
31
|
-
this.batchCreateServers = (request = {}) => this.client.fetch({
|
|
32
|
-
body: JSON.stringify(marshalBatchCreateServersRequest(request, this.client.settings)),
|
|
33
|
-
headers: jsonContentHeaders,
|
|
34
|
-
method: "POST",
|
|
35
|
-
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/batch-create-servers`
|
|
36
|
-
}, unmarshalBatchCreateServersResponse);
|
|
37
|
-
this.updateServer = (request) => this.client.fetch({
|
|
38
|
-
body: JSON.stringify(marshalUpdateServerRequest(request, this.client.settings)),
|
|
39
|
-
headers: jsonContentHeaders,
|
|
40
|
-
method: "PATCH",
|
|
41
|
-
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}`
|
|
42
|
-
}, unmarshalServer);
|
|
43
|
-
this.installServer = async (request) => this.client.fetch({
|
|
44
|
-
body: JSON.stringify(await marshalInstallServerRequest(request, this.client.settings)),
|
|
45
|
-
headers: jsonContentHeaders,
|
|
46
|
-
method: "POST",
|
|
47
|
-
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/install`
|
|
48
|
-
}, unmarshalServer);
|
|
49
|
-
this.getServerMetrics = (request) => this.client.fetch({
|
|
50
|
-
method: "GET",
|
|
51
|
-
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/metrics`
|
|
52
|
-
}, unmarshalGetServerMetricsResponse);
|
|
53
|
-
this.deleteServer = (request) => this.client.fetch({
|
|
54
|
-
method: "DELETE",
|
|
55
|
-
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}`
|
|
56
|
-
}, unmarshalServer);
|
|
57
|
-
this.rebootServer = (request) => this.client.fetch({
|
|
58
|
-
body: JSON.stringify(marshalRebootServerRequest(request, this.client.settings)),
|
|
59
|
-
headers: jsonContentHeaders,
|
|
60
|
-
method: "POST",
|
|
61
|
-
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/reboot`
|
|
62
|
-
}, unmarshalServer);
|
|
63
|
-
this.startServer = (request) => this.client.fetch({
|
|
64
|
-
body: JSON.stringify(marshalStartServerRequest(request, this.client.settings)),
|
|
65
|
-
headers: jsonContentHeaders,
|
|
66
|
-
method: "POST",
|
|
67
|
-
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/start`
|
|
68
|
-
}, unmarshalServer);
|
|
69
|
-
this.stopServer = (request) => this.client.fetch({
|
|
70
|
-
body: "{}",
|
|
71
|
-
headers: jsonContentHeaders,
|
|
72
|
-
method: "POST",
|
|
73
|
-
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/stop`
|
|
74
|
-
}, unmarshalServer);
|
|
75
|
-
this.pageOfListServerEvents = (request) => this.client.fetch({
|
|
76
|
-
method: "GET",
|
|
77
|
-
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/events`,
|
|
78
|
-
urlParams: urlParams(["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
|
|
79
|
-
}, unmarshalListServerEventsResponse);
|
|
80
|
-
this.listServerEvents = (request) => enrichForPagination("events", this.pageOfListServerEvents, request);
|
|
81
|
-
this.getDefaultPartitioningSchema = (request) => this.client.fetch({
|
|
82
|
-
method: "GET",
|
|
83
|
-
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/partitioning-schemas/default`,
|
|
84
|
-
urlParams: urlParams(["offer_id", request.offerId], ["os_id", request.osId])
|
|
85
|
-
}, unmarshalSchema);
|
|
86
|
-
this.validatePartitioningSchema = (request) => this.client.fetch({
|
|
87
|
-
body: JSON.stringify(marshalValidatePartitioningSchemaRequest(request, this.client.settings)),
|
|
88
|
-
headers: jsonContentHeaders,
|
|
89
|
-
method: "POST",
|
|
90
|
-
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/partitioning-schemas/validate`
|
|
91
|
-
});
|
|
92
|
-
this.startBMCAccess = (request) => this.client.fetch({
|
|
93
|
-
body: JSON.stringify(marshalStartBMCAccessRequest(request, this.client.settings)),
|
|
94
|
-
headers: jsonContentHeaders,
|
|
95
|
-
method: "POST",
|
|
96
|
-
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/bmc-access`
|
|
97
|
-
}, unmarshalBMCAccess);
|
|
98
|
-
this.getBMCAccess = (request) => this.client.fetch({
|
|
99
|
-
method: "GET",
|
|
100
|
-
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/bmc-access`
|
|
101
|
-
}, unmarshalBMCAccess);
|
|
102
|
-
this.stopBMCAccess = (request) => this.client.fetch({
|
|
103
|
-
method: "DELETE",
|
|
104
|
-
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/bmc-access`
|
|
105
|
-
});
|
|
106
|
-
this.updateIP = (request) => this.client.fetch({
|
|
107
|
-
body: JSON.stringify(marshalUpdateIPRequest(request, this.client.settings)),
|
|
108
|
-
headers: jsonContentHeaders,
|
|
109
|
-
method: "PATCH",
|
|
110
|
-
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/ips/${validatePathParam("ipId", request.ipId)}`
|
|
111
|
-
}, unmarshalIP);
|
|
112
|
-
this.addOptionServer = (request) => this.client.fetch({
|
|
113
|
-
body: JSON.stringify(marshalAddOptionServerRequest(request, this.client.settings)),
|
|
114
|
-
headers: jsonContentHeaders,
|
|
115
|
-
method: "POST",
|
|
116
|
-
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/options/${validatePathParam("optionId", request.optionId)}`
|
|
117
|
-
}, unmarshalServer);
|
|
118
|
-
this.deleteOptionServer = (request) => this.client.fetch({
|
|
119
|
-
method: "DELETE",
|
|
120
|
-
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/options/${validatePathParam("optionId", request.optionId)}`
|
|
121
|
-
}, unmarshalServer);
|
|
122
|
-
this.migrateServerToMonthlyOffer = (request) => this.client.fetch({
|
|
123
|
-
method: "POST",
|
|
124
|
-
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/migrate-offer-monthly`
|
|
125
|
-
}, unmarshalServer);
|
|
126
|
-
this.pageOfListOffers = (request = {}) => this.client.fetch({
|
|
127
|
-
method: "GET",
|
|
128
|
-
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/offers`,
|
|
129
|
-
urlParams: urlParams(["name", request.name], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["subscription_period", request.subscriptionPeriod])
|
|
130
|
-
}, unmarshalListOffersResponse);
|
|
131
|
-
this.listOffers = (request = {}) => enrichForPagination("offers", this.pageOfListOffers, request);
|
|
132
|
-
this.getOffer = (request) => this.client.fetch({
|
|
133
|
-
method: "GET",
|
|
134
|
-
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/offers/${validatePathParam("offerId", request.offerId)}`
|
|
135
|
-
}, unmarshalOffer);
|
|
136
|
-
this.getOption = (request) => this.client.fetch({
|
|
137
|
-
method: "GET",
|
|
138
|
-
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/options/${validatePathParam("optionId", request.optionId)}`
|
|
139
|
-
}, unmarshalOption);
|
|
140
|
-
this.pageOfListOptions = (request = {}) => this.client.fetch({
|
|
141
|
-
method: "GET",
|
|
142
|
-
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/options`,
|
|
143
|
-
urlParams: urlParams(["name", request.name], ["offer_id", request.offerId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
|
|
144
|
-
}, unmarshalListOptionsResponse);
|
|
145
|
-
this.listOptions = (request = {}) => enrichForPagination("options", this.pageOfListOptions, request);
|
|
146
|
-
this.pageOfListSettings = (request = {}) => this.client.fetch({
|
|
147
|
-
method: "GET",
|
|
148
|
-
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/settings`,
|
|
149
|
-
urlParams: urlParams(["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId ?? this.client.settings.defaultProjectId])
|
|
150
|
-
}, unmarshalListSettingsResponse);
|
|
151
|
-
this.listSettings = (request = {}) => enrichForPagination("settings", this.pageOfListSettings, request);
|
|
152
|
-
this.updateSetting = (request) => this.client.fetch({
|
|
153
|
-
body: JSON.stringify(marshalUpdateSettingRequest(request, this.client.settings)),
|
|
154
|
-
headers: jsonContentHeaders,
|
|
155
|
-
method: "PATCH",
|
|
156
|
-
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/settings/${validatePathParam("settingId", request.settingId)}`
|
|
157
|
-
}, unmarshalSetting);
|
|
158
|
-
this.pageOfListOS = (request = {}) => this.client.fetch({
|
|
159
|
-
method: "GET",
|
|
160
|
-
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/os`,
|
|
161
|
-
urlParams: urlParams(["offer_id", request.offerId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize])
|
|
162
|
-
}, unmarshalListOSResponse);
|
|
163
|
-
this.listOS = (request = {}) => enrichForPagination("os", this.pageOfListOS, request);
|
|
164
|
-
this.getOS = (request) => this.client.fetch({
|
|
165
|
-
method: "GET",
|
|
166
|
-
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/os/${validatePathParam("osId", request.osId)}`
|
|
167
|
-
}, unmarshalOS);
|
|
168
|
-
}
|
|
169
|
-
static {
|
|
170
|
-
this.LOCALITY = toApiLocality({ zones: [
|
|
171
|
-
"fr-par-1",
|
|
172
|
-
"fr-par-2",
|
|
173
|
-
"nl-ams-1",
|
|
174
|
-
"nl-ams-2",
|
|
175
|
-
"pl-waw-2",
|
|
176
|
-
"pl-waw-3"
|
|
177
|
-
] });
|
|
178
|
-
}
|
|
179
|
-
};
|
|
180
|
-
/**
|
|
181
|
-
* Elastic Metal - Private Network API.
|
|
182
|
-
*/
|
|
183
|
-
var PrivateNetworkAPI = class extends API$1 {
|
|
184
|
-
constructor(..._args2) {
|
|
185
|
-
super(..._args2);
|
|
186
|
-
this.addServerPrivateNetwork = (request) => this.client.fetch({
|
|
187
|
-
body: JSON.stringify(marshalPrivateNetworkApiAddServerPrivateNetworkRequest(request, this.client.settings)),
|
|
188
|
-
headers: jsonContentHeaders,
|
|
189
|
-
method: "POST",
|
|
190
|
-
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/private-networks`
|
|
191
|
-
}, unmarshalServerPrivateNetwork);
|
|
192
|
-
this.setServerPrivateNetworks = (request) => this.client.fetch({
|
|
193
|
-
body: JSON.stringify(marshalPrivateNetworkApiSetServerPrivateNetworksRequest(request, this.client.settings)),
|
|
194
|
-
headers: jsonContentHeaders,
|
|
195
|
-
method: "PUT",
|
|
196
|
-
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/private-networks`
|
|
197
|
-
}, unmarshalSetServerPrivateNetworksResponse);
|
|
198
|
-
this.pageOfListServerPrivateNetworks = (request = {}) => this.client.fetch({
|
|
199
|
-
method: "GET",
|
|
200
|
-
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/server-private-networks`,
|
|
201
|
-
urlParams: urlParams(["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["private_network_id", request.privateNetworkId], ["project_id", request.projectId], ["server_id", request.serverId])
|
|
202
|
-
}, unmarshalListServerPrivateNetworksResponse);
|
|
203
|
-
this.listServerPrivateNetworks = (request = {}) => enrichForPagination("serverPrivateNetworks", this.pageOfListServerPrivateNetworks, request);
|
|
204
|
-
this.deleteServerPrivateNetwork = (request) => this.client.fetch({
|
|
205
|
-
method: "DELETE",
|
|
206
|
-
path: `/baremetal/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/private-networks/${validatePathParam("privateNetworkId", request.privateNetworkId)}`
|
|
207
|
-
});
|
|
208
|
-
}
|
|
209
|
-
static {
|
|
210
|
-
this.LOCALITY = toApiLocality({ zones: ["fr-par-2"] });
|
|
211
|
-
}
|
|
212
|
-
};
|
|
213
|
-
//#endregion
|
|
214
|
-
export { API, PrivateNetworkAPI };
|
package/dist/v1/content.gen.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { ServerInstallStatus, ServerPrivateNetworkStatus, ServerStatus } from './types.gen.js';
|
|
2
|
-
/** Lists transient statutes of the enum {@link ServerInstallStatus}. */
|
|
3
|
-
export declare const SERVER_INSTALL_TRANSIENT_STATUSES: ServerInstallStatus[];
|
|
4
|
-
/** Lists transient statutes of the enum {@link ServerPrivateNetworkStatus}. */
|
|
5
|
-
export declare const SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES: ServerPrivateNetworkStatus[];
|
|
6
|
-
/** Lists transient statutes of the enum {@link ServerStatus}. */
|
|
7
|
-
export declare const SERVER_TRANSIENT_STATUSES: ServerStatus[];
|
package/dist/v1/content.gen.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
//#region src/v1/content.gen.ts
|
|
2
|
-
/** Lists transient statutes of the enum {@link ServerInstallStatus}. */
|
|
3
|
-
const SERVER_INSTALL_TRANSIENT_STATUSES = ["to_install", "installing"];
|
|
4
|
-
/** Lists transient statutes of the enum {@link ServerPrivateNetworkStatus}. */
|
|
5
|
-
const SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES = ["attaching", "detaching"];
|
|
6
|
-
/** Lists transient statutes of the enum {@link ServerStatus}. */
|
|
7
|
-
const SERVER_TRANSIENT_STATUSES = [
|
|
8
|
-
"delivering",
|
|
9
|
-
"stopping",
|
|
10
|
-
"starting",
|
|
11
|
-
"deleting",
|
|
12
|
-
"ordered",
|
|
13
|
-
"resetting",
|
|
14
|
-
"migrating"
|
|
15
|
-
];
|
|
16
|
-
//#endregion
|
|
17
|
-
export { SERVER_INSTALL_TRANSIENT_STATUSES, SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES, SERVER_TRANSIENT_STATUSES };
|
package/dist/v1/index.gen.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { API, PrivateNetworkAPI, } from './api.gen.js';
|
|
2
|
-
export * from './content.gen.js';
|
|
3
|
-
export * from './marshalling.gen.js';
|
|
4
|
-
export type { AddOptionServerRequest, BMCAccess, BatchCreateServersRequest, BatchCreateServersRequestServerConfig, BatchCreateServersResponse, CPU, CertificationOption, CreateServerRequest, CreateServerRequestInstall, DeleteOptionServerRequest, DeleteServerRequest, Disk, GPU, GetBMCAccessRequest, GetDefaultPartitioningSchemaRequest, GetOSRequest, GetOfferRequest, GetOptionRequest, GetServerMetricsRequest, GetServerMetricsResponse, GetServerRequest, IP, IPReverseStatus, IPVersion, InstallServerRequest, LicenseOption, ListOSRequest, ListOSResponse, ListOffersRequest, ListOffersResponse, ListOptionsRequest, ListOptionsResponse, ListServerEventsRequest, ListServerEventsRequestOrderBy, ListServerEventsResponse, ListServerPrivateNetworksRequestOrderBy, ListServerPrivateNetworksResponse, ListServersRequest, ListServersRequestOrderBy, ListServersResponse, ListSettingsRequest, ListSettingsRequestOrderBy, ListSettingsResponse, Memory, MemoryEccType, MigrateServerToMonthlyOfferRequest, OS, OSOSField, Offer, OfferOptionOffer, OfferStock, OfferSubscriptionPeriod, Option, PersistentMemory, PrivateNetworkApiAddServerPrivateNetworkRequest, PrivateNetworkApiDeleteServerPrivateNetworkRequest, PrivateNetworkApiListServerPrivateNetworksRequest, PrivateNetworkApiSetServerPrivateNetworksRequest, PrivateNetworkOption, PublicBandwidthOption, RaidController, RebootServerRequest, RemoteAccessOption, Schema, SchemaDisk, SchemaFilesystem, SchemaFilesystemFormat, SchemaPartition, SchemaPartitionLabel, SchemaPool, SchemaPoolType, SchemaRAID, SchemaRAIDLevel, SchemaZFS, Server, ServerBootType, ServerEvent, ServerInstall, ServerInstallStatus, ServerOption, ServerOptionOptionStatus, ServerPingStatus, ServerPrivateNetwork, ServerPrivateNetworkStatus, ServerRescueServer, ServerStatus, SetServerPrivateNetworksResponse, Setting, SettingType, StartBMCAccessRequest, StartServerRequest, StopBMCAccessRequest, StopServerRequest, UpdateIPRequest, UpdateServerRequest, UpdateSettingRequest, ValidatePartitioningSchemaRequest, } from './types.gen.js';
|
|
5
|
-
export * as ValidationRules from './validation-rules.gen.js';
|
package/dist/v1/index.gen.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { SERVER_INSTALL_TRANSIENT_STATUSES, SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES, SERVER_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
3
|
-
import { marshalAddOptionServerRequest, marshalBatchCreateServersRequest, marshalCreateServerRequest, marshalInstallServerRequest, marshalPrivateNetworkApiAddServerPrivateNetworkRequest, marshalPrivateNetworkApiSetServerPrivateNetworksRequest, marshalRebootServerRequest, marshalSchema, marshalStartBMCAccessRequest, marshalStartServerRequest, marshalUpdateIPRequest, marshalUpdateServerRequest, marshalUpdateSettingRequest, marshalValidatePartitioningSchemaRequest, unmarshalBMCAccess, unmarshalBatchCreateServersResponse, unmarshalGetServerMetricsResponse, unmarshalIP, unmarshalListOSResponse, unmarshalListOffersResponse, unmarshalListOptionsResponse, unmarshalListServerEventsResponse, unmarshalListServerPrivateNetworksResponse, unmarshalListServersResponse, unmarshalListSettingsResponse, unmarshalOS, unmarshalOffer, unmarshalOption, unmarshalSchema, unmarshalServer, unmarshalServerPrivateNetwork, unmarshalSetServerPrivateNetworksResponse, unmarshalSetting } from "./marshalling.gen.js";
|
|
4
|
-
import { API, PrivateNetworkAPI } from "./api.gen.js";
|
|
5
|
-
import { validation_rules_gen_exports } from "./validation-rules.gen.js";
|
|
6
|
-
//#region src/v1/index.gen.ts
|
|
7
|
-
var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
8
|
-
API: () => API,
|
|
9
|
-
PrivateNetworkAPI: () => PrivateNetworkAPI,
|
|
10
|
-
SERVER_INSTALL_TRANSIENT_STATUSES: () => SERVER_INSTALL_TRANSIENT_STATUSES,
|
|
11
|
-
SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES: () => SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES,
|
|
12
|
-
SERVER_TRANSIENT_STATUSES: () => SERVER_TRANSIENT_STATUSES,
|
|
13
|
-
ValidationRules: () => validation_rules_gen_exports,
|
|
14
|
-
marshalAddOptionServerRequest: () => marshalAddOptionServerRequest,
|
|
15
|
-
marshalBatchCreateServersRequest: () => marshalBatchCreateServersRequest,
|
|
16
|
-
marshalCreateServerRequest: () => marshalCreateServerRequest,
|
|
17
|
-
marshalInstallServerRequest: () => marshalInstallServerRequest,
|
|
18
|
-
marshalPrivateNetworkApiAddServerPrivateNetworkRequest: () => marshalPrivateNetworkApiAddServerPrivateNetworkRequest,
|
|
19
|
-
marshalPrivateNetworkApiSetServerPrivateNetworksRequest: () => marshalPrivateNetworkApiSetServerPrivateNetworksRequest,
|
|
20
|
-
marshalRebootServerRequest: () => marshalRebootServerRequest,
|
|
21
|
-
marshalSchema: () => marshalSchema,
|
|
22
|
-
marshalStartBMCAccessRequest: () => marshalStartBMCAccessRequest,
|
|
23
|
-
marshalStartServerRequest: () => marshalStartServerRequest,
|
|
24
|
-
marshalUpdateIPRequest: () => marshalUpdateIPRequest,
|
|
25
|
-
marshalUpdateServerRequest: () => marshalUpdateServerRequest,
|
|
26
|
-
marshalUpdateSettingRequest: () => marshalUpdateSettingRequest,
|
|
27
|
-
marshalValidatePartitioningSchemaRequest: () => marshalValidatePartitioningSchemaRequest,
|
|
28
|
-
unmarshalBMCAccess: () => unmarshalBMCAccess,
|
|
29
|
-
unmarshalBatchCreateServersResponse: () => unmarshalBatchCreateServersResponse,
|
|
30
|
-
unmarshalGetServerMetricsResponse: () => unmarshalGetServerMetricsResponse,
|
|
31
|
-
unmarshalIP: () => unmarshalIP,
|
|
32
|
-
unmarshalListOSResponse: () => unmarshalListOSResponse,
|
|
33
|
-
unmarshalListOffersResponse: () => unmarshalListOffersResponse,
|
|
34
|
-
unmarshalListOptionsResponse: () => unmarshalListOptionsResponse,
|
|
35
|
-
unmarshalListServerEventsResponse: () => unmarshalListServerEventsResponse,
|
|
36
|
-
unmarshalListServerPrivateNetworksResponse: () => unmarshalListServerPrivateNetworksResponse,
|
|
37
|
-
unmarshalListServersResponse: () => unmarshalListServersResponse,
|
|
38
|
-
unmarshalListSettingsResponse: () => unmarshalListSettingsResponse,
|
|
39
|
-
unmarshalOS: () => unmarshalOS,
|
|
40
|
-
unmarshalOffer: () => unmarshalOffer,
|
|
41
|
-
unmarshalOption: () => unmarshalOption,
|
|
42
|
-
unmarshalSchema: () => unmarshalSchema,
|
|
43
|
-
unmarshalServer: () => unmarshalServer,
|
|
44
|
-
unmarshalServerPrivateNetwork: () => unmarshalServerPrivateNetwork,
|
|
45
|
-
unmarshalSetServerPrivateNetworksResponse: () => unmarshalSetServerPrivateNetworksResponse,
|
|
46
|
-
unmarshalSetting: () => unmarshalSetting
|
|
47
|
-
});
|
|
48
|
-
//#endregion
|
|
49
|
-
export { API, PrivateNetworkAPI, SERVER_INSTALL_TRANSIENT_STATUSES, SERVER_PRIVATE_NETWORK_TRANSIENT_STATUSES, SERVER_TRANSIENT_STATUSES, validation_rules_gen_exports as ValidationRules, index_gen_exports, marshalAddOptionServerRequest, marshalBatchCreateServersRequest, marshalCreateServerRequest, marshalInstallServerRequest, marshalPrivateNetworkApiAddServerPrivateNetworkRequest, marshalPrivateNetworkApiSetServerPrivateNetworksRequest, marshalRebootServerRequest, marshalSchema, marshalStartBMCAccessRequest, marshalStartServerRequest, marshalUpdateIPRequest, marshalUpdateServerRequest, marshalUpdateSettingRequest, marshalValidatePartitioningSchemaRequest, unmarshalBMCAccess, unmarshalBatchCreateServersResponse, unmarshalGetServerMetricsResponse, unmarshalIP, unmarshalListOSResponse, unmarshalListOffersResponse, unmarshalListOptionsResponse, unmarshalListServerEventsResponse, unmarshalListServerPrivateNetworksResponse, unmarshalListServersResponse, unmarshalListSettingsResponse, unmarshalOS, unmarshalOffer, unmarshalOption, unmarshalSchema, unmarshalServer, unmarshalServerPrivateNetwork, unmarshalSetServerPrivateNetworksResponse, unmarshalSetting };
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { DefaultValues } from '@scaleway/sdk-client';
|
|
2
|
-
import type { Schema, IP, Server, OS, Offer, Option, ServerPrivateNetwork, Setting, BMCAccess, BatchCreateServersResponse, GetServerMetricsResponse, ListOSResponse, ListOffersResponse, ListOptionsResponse, ListServerEventsResponse, ListServerPrivateNetworksResponse, ListServersResponse, ListSettingsResponse, SetServerPrivateNetworksResponse, CreateServerRequest, AddOptionServerRequest, BatchCreateServersRequest, InstallServerRequest, PrivateNetworkApiAddServerPrivateNetworkRequest, PrivateNetworkApiSetServerPrivateNetworksRequest, RebootServerRequest, StartBMCAccessRequest, StartServerRequest, UpdateIPRequest, UpdateServerRequest, UpdateSettingRequest, ValidatePartitioningSchemaRequest } from './types.gen.js';
|
|
3
|
-
export declare const unmarshalSchema: (data: unknown) => Schema;
|
|
4
|
-
export declare const unmarshalIP: (data: unknown) => IP;
|
|
5
|
-
export declare const unmarshalServer: (data: unknown) => Server;
|
|
6
|
-
export declare const unmarshalOS: (data: unknown) => OS;
|
|
7
|
-
export declare const unmarshalOffer: (data: unknown) => Offer;
|
|
8
|
-
export declare const unmarshalOption: (data: unknown) => Option;
|
|
9
|
-
export declare const unmarshalServerPrivateNetwork: (data: unknown) => ServerPrivateNetwork;
|
|
10
|
-
export declare const unmarshalSetting: (data: unknown) => Setting;
|
|
11
|
-
export declare const unmarshalBMCAccess: (data: unknown) => BMCAccess;
|
|
12
|
-
export declare const unmarshalBatchCreateServersResponse: (data: unknown) => BatchCreateServersResponse;
|
|
13
|
-
export declare const unmarshalGetServerMetricsResponse: (data: unknown) => GetServerMetricsResponse;
|
|
14
|
-
export declare const unmarshalListOSResponse: (data: unknown) => ListOSResponse;
|
|
15
|
-
export declare const unmarshalListOffersResponse: (data: unknown) => ListOffersResponse;
|
|
16
|
-
export declare const unmarshalListOptionsResponse: (data: unknown) => ListOptionsResponse;
|
|
17
|
-
export declare const unmarshalListServerEventsResponse: (data: unknown) => ListServerEventsResponse;
|
|
18
|
-
export declare const unmarshalListServerPrivateNetworksResponse: (data: unknown) => ListServerPrivateNetworksResponse;
|
|
19
|
-
export declare const unmarshalListServersResponse: (data: unknown) => ListServersResponse;
|
|
20
|
-
export declare const unmarshalListSettingsResponse: (data: unknown) => ListSettingsResponse;
|
|
21
|
-
export declare const unmarshalSetServerPrivateNetworksResponse: (data: unknown) => SetServerPrivateNetworksResponse;
|
|
22
|
-
export declare const marshalSchema: (request: Schema, defaults: DefaultValues) => Record<string, unknown>;
|
|
23
|
-
export declare const marshalCreateServerRequest: (request: CreateServerRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
24
|
-
export declare const marshalAddOptionServerRequest: (request: AddOptionServerRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
25
|
-
export declare const marshalBatchCreateServersRequest: (request: BatchCreateServersRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
26
|
-
export declare const marshalInstallServerRequest: (request: InstallServerRequest, defaults: DefaultValues) => Promise<Record<string, unknown>>;
|
|
27
|
-
export declare const marshalPrivateNetworkApiAddServerPrivateNetworkRequest: (request: PrivateNetworkApiAddServerPrivateNetworkRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
28
|
-
export declare const marshalPrivateNetworkApiSetServerPrivateNetworksRequest: (request: PrivateNetworkApiSetServerPrivateNetworksRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
29
|
-
export declare const marshalRebootServerRequest: (request: RebootServerRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
30
|
-
export declare const marshalStartBMCAccessRequest: (request: StartBMCAccessRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
31
|
-
export declare const marshalStartServerRequest: (request: StartServerRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
32
|
-
export declare const marshalUpdateIPRequest: (request: UpdateIPRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
33
|
-
export declare const marshalUpdateServerRequest: (request: UpdateServerRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
34
|
-
export declare const marshalUpdateSettingRequest: (request: UpdateSettingRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
35
|
-
export declare const marshalValidatePartitioningSchemaRequest: (request: ValidatePartitioningSchemaRequest, defaults: DefaultValues) => Record<string, unknown>;
|