@scaleway/sdk-vpcgw 2.6.0 → 2.7.0
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/index.gen.d.ts +0 -1
- package/dist/index.gen.js +2 -3
- package/dist/v2/api.gen.d.ts +4 -4
- package/dist/v2/api.gen.js +1 -0
- package/dist/v2/index.gen.d.ts +1 -1
- package/dist/v2/marshalling.gen.d.ts +1 -1
- package/dist/v2/metadata.gen.d.ts +66 -66
- package/package.json +13 -14
- package/dist/v1/api.gen.d.ts +0 -343
- package/dist/v1/api.gen.js +0 -229
- package/dist/v1/content.gen.d.ts +0 -5
- package/dist/v1/content.gen.js +0 -16
- package/dist/v1/index.gen.d.ts +0 -4
- package/dist/v1/index.gen.js +0 -42
- package/dist/v1/marshalling.gen.d.ts +0 -32
- package/dist/v1/marshalling.gen.js +0 -331
- package/dist/v1/metadata.gen.d.ts +0 -141
- package/dist/v1/metadata.gen.js +0 -157
- package/dist/v1/types.gen.d.ts +0 -1327
- package/dist/v1/types.gen.js +0 -0
package/dist/v1/api.gen.js
DELETED
|
@@ -1,229 +0,0 @@
|
|
|
1
|
-
import { GATEWAY_NETWORK_TRANSIENT_STATUSES, GATEWAY_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
2
|
-
import { marshalCreateDHCPEntryRequest, marshalCreateDHCPRequest, marshalCreateGatewayNetworkRequest, marshalCreateGatewayRequest, marshalCreateIPRequest, marshalCreatePATRuleRequest, marshalSetDHCPEntriesRequest, marshalSetPATRulesRequest, marshalUpdateDHCPEntryRequest, marshalUpdateDHCPRequest, marshalUpdateGatewayNetworkRequest, marshalUpdateGatewayRequest, marshalUpdateIPRequest, marshalUpdatePATRuleRequest, marshalUpgradeGatewayRequest, unmarshalDHCP, unmarshalDHCPEntry, unmarshalGateway, unmarshalGatewayNetwork, unmarshalIP, unmarshalListDHCPEntriesResponse, unmarshalListDHCPsResponse, unmarshalListGatewayNetworksResponse, unmarshalListGatewayTypesResponse, unmarshalListGatewaysResponse, unmarshalListIPsResponse, unmarshalListPATRulesResponse, unmarshalPATRule, unmarshalSetDHCPEntriesResponse, unmarshalSetPATRulesResponse } 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
|
-
* Public Gateways API.
|
|
8
|
-
|
|
9
|
-
This API allows you to manage your Public Gateways.
|
|
10
|
-
*/
|
|
11
|
-
var API = class extends API$1 {
|
|
12
|
-
constructor(..._args) {
|
|
13
|
-
super(..._args);
|
|
14
|
-
this.pageOfListGateways = (request = {}) => this.client.fetch({
|
|
15
|
-
method: "GET",
|
|
16
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateways`,
|
|
17
|
-
urlParams: urlParams(["name", request.name], ["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], ["status", request.status], ["tags", request.tags], ["type", request.type])
|
|
18
|
-
}, unmarshalListGatewaysResponse);
|
|
19
|
-
this.listGateways = (request = {}) => enrichForPagination("gateways", this.pageOfListGateways, request);
|
|
20
|
-
this.getGateway = (request) => this.client.fetch({
|
|
21
|
-
method: "GET",
|
|
22
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateways/${validatePathParam("gatewayId", request.gatewayId)}`
|
|
23
|
-
}, unmarshalGateway);
|
|
24
|
-
this.waitForGateway = (request, options) => waitForResource(options?.stop ?? ((res) => Promise.resolve(!GATEWAY_TRANSIENT_STATUSES.includes(res.status))), this.getGateway, request, options);
|
|
25
|
-
this.createGateway = (request) => this.client.fetch({
|
|
26
|
-
body: JSON.stringify(marshalCreateGatewayRequest(request, this.client.settings)),
|
|
27
|
-
headers: jsonContentHeaders,
|
|
28
|
-
method: "POST",
|
|
29
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateways`
|
|
30
|
-
}, unmarshalGateway);
|
|
31
|
-
this.updateGateway = (request) => this.client.fetch({
|
|
32
|
-
body: JSON.stringify(marshalUpdateGatewayRequest(request, this.client.settings)),
|
|
33
|
-
headers: jsonContentHeaders,
|
|
34
|
-
method: "PATCH",
|
|
35
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateways/${validatePathParam("gatewayId", request.gatewayId)}`
|
|
36
|
-
}, unmarshalGateway);
|
|
37
|
-
this.deleteGateway = (request) => this.client.fetch({
|
|
38
|
-
method: "DELETE",
|
|
39
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateways/${validatePathParam("gatewayId", request.gatewayId)}`,
|
|
40
|
-
urlParams: urlParams(["cleanup_dhcp", request.cleanupDhcp])
|
|
41
|
-
});
|
|
42
|
-
this.upgradeGateway = (request) => this.client.fetch({
|
|
43
|
-
body: JSON.stringify(marshalUpgradeGatewayRequest(request, this.client.settings)),
|
|
44
|
-
headers: jsonContentHeaders,
|
|
45
|
-
method: "POST",
|
|
46
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateways/${validatePathParam("gatewayId", request.gatewayId)}/upgrade`
|
|
47
|
-
}, unmarshalGateway);
|
|
48
|
-
this.enableIPMobility = (request) => this.client.fetch({
|
|
49
|
-
body: "{}",
|
|
50
|
-
headers: jsonContentHeaders,
|
|
51
|
-
method: "POST",
|
|
52
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateways/${validatePathParam("gatewayId", request.gatewayId)}/enable-ip-mobility`
|
|
53
|
-
});
|
|
54
|
-
this.pageOfListGatewayNetworks = (request = {}) => this.client.fetch({
|
|
55
|
-
method: "GET",
|
|
56
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateway-networks`,
|
|
57
|
-
urlParams: urlParams(["dhcp_id", request.dhcpId], ["enable_masquerade", request.enableMasquerade], ["gateway_id", request.gatewayId], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["private_network_id", request.privateNetworkId], ["status", request.status])
|
|
58
|
-
}, unmarshalListGatewayNetworksResponse);
|
|
59
|
-
this.listGatewayNetworks = (request = {}) => enrichForPagination("gatewayNetworks", this.pageOfListGatewayNetworks, request);
|
|
60
|
-
this.getGatewayNetwork = (request) => this.client.fetch({
|
|
61
|
-
method: "GET",
|
|
62
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateway-networks/${validatePathParam("gatewayNetworkId", request.gatewayNetworkId)}`
|
|
63
|
-
}, unmarshalGatewayNetwork);
|
|
64
|
-
this.waitForGatewayNetwork = (request, options) => waitForResource(options?.stop ?? ((res) => Promise.resolve(!GATEWAY_NETWORK_TRANSIENT_STATUSES.includes(res.status))), this.getGatewayNetwork, request, options);
|
|
65
|
-
this.createGatewayNetwork = (request) => this.client.fetch({
|
|
66
|
-
body: JSON.stringify(marshalCreateGatewayNetworkRequest(request, this.client.settings)),
|
|
67
|
-
headers: jsonContentHeaders,
|
|
68
|
-
method: "POST",
|
|
69
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateway-networks`
|
|
70
|
-
}, unmarshalGatewayNetwork);
|
|
71
|
-
this.updateGatewayNetwork = (request) => this.client.fetch({
|
|
72
|
-
body: JSON.stringify(marshalUpdateGatewayNetworkRequest(request, this.client.settings)),
|
|
73
|
-
headers: jsonContentHeaders,
|
|
74
|
-
method: "PATCH",
|
|
75
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateway-networks/${validatePathParam("gatewayNetworkId", request.gatewayNetworkId)}`
|
|
76
|
-
}, unmarshalGatewayNetwork);
|
|
77
|
-
this.deleteGatewayNetwork = (request) => this.client.fetch({
|
|
78
|
-
method: "DELETE",
|
|
79
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateway-networks/${validatePathParam("gatewayNetworkId", request.gatewayNetworkId)}`,
|
|
80
|
-
urlParams: urlParams(["cleanup_dhcp", request.cleanupDhcp])
|
|
81
|
-
});
|
|
82
|
-
this.pageOfListDHCPs = (request = {}) => this.client.fetch({
|
|
83
|
-
method: "GET",
|
|
84
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/dhcps`,
|
|
85
|
-
urlParams: urlParams(["address", request.address], ["has_address", request.hasAddress], ["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId])
|
|
86
|
-
}, unmarshalListDHCPsResponse);
|
|
87
|
-
this.listDHCPs = (request = {}) => enrichForPagination("dhcps", this.pageOfListDHCPs, request);
|
|
88
|
-
this.getDHCP = (request) => this.client.fetch({
|
|
89
|
-
method: "GET",
|
|
90
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/dhcps/${validatePathParam("dhcpId", request.dhcpId)}`
|
|
91
|
-
}, unmarshalDHCP);
|
|
92
|
-
this.createDHCP = (request) => this.client.fetch({
|
|
93
|
-
body: JSON.stringify(marshalCreateDHCPRequest(request, this.client.settings)),
|
|
94
|
-
headers: jsonContentHeaders,
|
|
95
|
-
method: "POST",
|
|
96
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/dhcps`
|
|
97
|
-
}, unmarshalDHCP);
|
|
98
|
-
this.updateDHCP = (request) => this.client.fetch({
|
|
99
|
-
body: JSON.stringify(marshalUpdateDHCPRequest(request, this.client.settings)),
|
|
100
|
-
headers: jsonContentHeaders,
|
|
101
|
-
method: "PATCH",
|
|
102
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/dhcps/${validatePathParam("dhcpId", request.dhcpId)}`
|
|
103
|
-
}, unmarshalDHCP);
|
|
104
|
-
this.deleteDHCP = (request) => this.client.fetch({
|
|
105
|
-
method: "DELETE",
|
|
106
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/dhcps/${validatePathParam("dhcpId", request.dhcpId)}`
|
|
107
|
-
});
|
|
108
|
-
this.pageOfListDHCPEntries = (request = {}) => this.client.fetch({
|
|
109
|
-
method: "GET",
|
|
110
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/dhcp-entries`,
|
|
111
|
-
urlParams: urlParams(["gateway_network_id", request.gatewayNetworkId], ["hostname", request.hostname], ["ip_address", request.ipAddress], ["mac_address", request.macAddress], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["type", request.type])
|
|
112
|
-
}, unmarshalListDHCPEntriesResponse);
|
|
113
|
-
this.listDHCPEntries = (request = {}) => enrichForPagination("dhcpEntries", this.pageOfListDHCPEntries, request);
|
|
114
|
-
this.getDHCPEntry = (request) => this.client.fetch({
|
|
115
|
-
method: "GET",
|
|
116
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/dhcp-entries/${validatePathParam("dhcpEntryId", request.dhcpEntryId)}`
|
|
117
|
-
}, unmarshalDHCPEntry);
|
|
118
|
-
this.createDHCPEntry = (request) => this.client.fetch({
|
|
119
|
-
body: JSON.stringify(marshalCreateDHCPEntryRequest(request, this.client.settings)),
|
|
120
|
-
headers: jsonContentHeaders,
|
|
121
|
-
method: "POST",
|
|
122
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/dhcp-entries`
|
|
123
|
-
}, unmarshalDHCPEntry);
|
|
124
|
-
this.updateDHCPEntry = (request) => this.client.fetch({
|
|
125
|
-
body: JSON.stringify(marshalUpdateDHCPEntryRequest(request, this.client.settings)),
|
|
126
|
-
headers: jsonContentHeaders,
|
|
127
|
-
method: "PATCH",
|
|
128
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/dhcp-entries/${validatePathParam("dhcpEntryId", request.dhcpEntryId)}`
|
|
129
|
-
}, unmarshalDHCPEntry);
|
|
130
|
-
this.setDHCPEntries = (request) => this.client.fetch({
|
|
131
|
-
body: JSON.stringify(marshalSetDHCPEntriesRequest(request, this.client.settings)),
|
|
132
|
-
headers: jsonContentHeaders,
|
|
133
|
-
method: "PUT",
|
|
134
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/dhcp-entries`
|
|
135
|
-
}, unmarshalSetDHCPEntriesResponse);
|
|
136
|
-
this.deleteDHCPEntry = (request) => this.client.fetch({
|
|
137
|
-
method: "DELETE",
|
|
138
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/dhcp-entries/${validatePathParam("dhcpEntryId", request.dhcpEntryId)}`
|
|
139
|
-
});
|
|
140
|
-
this.pageOfListPATRules = (request = {}) => this.client.fetch({
|
|
141
|
-
method: "GET",
|
|
142
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/pat-rules`,
|
|
143
|
-
urlParams: urlParams(["gateway_id", request.gatewayId], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["private_ip", request.privateIp], ["protocol", request.protocol])
|
|
144
|
-
}, unmarshalListPATRulesResponse);
|
|
145
|
-
this.listPATRules = (request = {}) => enrichForPagination("patRules", this.pageOfListPATRules, request);
|
|
146
|
-
this.getPATRule = (request) => this.client.fetch({
|
|
147
|
-
method: "GET",
|
|
148
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/pat-rules/${validatePathParam("patRuleId", request.patRuleId)}`
|
|
149
|
-
}, unmarshalPATRule);
|
|
150
|
-
this.createPATRule = (request) => this.client.fetch({
|
|
151
|
-
body: JSON.stringify(marshalCreatePATRuleRequest(request, this.client.settings)),
|
|
152
|
-
headers: jsonContentHeaders,
|
|
153
|
-
method: "POST",
|
|
154
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/pat-rules`
|
|
155
|
-
}, unmarshalPATRule);
|
|
156
|
-
this.updatePATRule = (request) => this.client.fetch({
|
|
157
|
-
body: JSON.stringify(marshalUpdatePATRuleRequest(request, this.client.settings)),
|
|
158
|
-
headers: jsonContentHeaders,
|
|
159
|
-
method: "PATCH",
|
|
160
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/pat-rules/${validatePathParam("patRuleId", request.patRuleId)}`
|
|
161
|
-
}, unmarshalPATRule);
|
|
162
|
-
this.setPATRules = (request) => this.client.fetch({
|
|
163
|
-
body: JSON.stringify(marshalSetPATRulesRequest(request, this.client.settings)),
|
|
164
|
-
headers: jsonContentHeaders,
|
|
165
|
-
method: "PUT",
|
|
166
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/pat-rules`
|
|
167
|
-
}, unmarshalSetPATRulesResponse);
|
|
168
|
-
this.deletePATRule = (request) => this.client.fetch({
|
|
169
|
-
method: "DELETE",
|
|
170
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/pat-rules/${validatePathParam("patRuleId", request.patRuleId)}`
|
|
171
|
-
});
|
|
172
|
-
this.listGatewayTypes = (request = {}) => this.client.fetch({
|
|
173
|
-
method: "GET",
|
|
174
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateway-types`
|
|
175
|
-
}, unmarshalListGatewayTypesResponse);
|
|
176
|
-
this.pageOfListIPs = (request = {}) => this.client.fetch({
|
|
177
|
-
method: "GET",
|
|
178
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/ips`,
|
|
179
|
-
urlParams: urlParams(["is_free", request.isFree], ["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId], ["reverse", request.reverse], ["tags", request.tags])
|
|
180
|
-
}, unmarshalListIPsResponse);
|
|
181
|
-
this.listIPs = (request = {}) => enrichForPagination("ips", this.pageOfListIPs, request);
|
|
182
|
-
this.getIP = (request) => this.client.fetch({
|
|
183
|
-
method: "GET",
|
|
184
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/ips/${validatePathParam("ipId", request.ipId)}`
|
|
185
|
-
}, unmarshalIP);
|
|
186
|
-
this.createIP = (request = {}) => this.client.fetch({
|
|
187
|
-
body: JSON.stringify(marshalCreateIPRequest(request, this.client.settings)),
|
|
188
|
-
headers: jsonContentHeaders,
|
|
189
|
-
method: "POST",
|
|
190
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/ips`
|
|
191
|
-
}, unmarshalIP);
|
|
192
|
-
this.updateIP = (request) => this.client.fetch({
|
|
193
|
-
body: JSON.stringify(marshalUpdateIPRequest(request, this.client.settings)),
|
|
194
|
-
headers: jsonContentHeaders,
|
|
195
|
-
method: "PATCH",
|
|
196
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/ips/${validatePathParam("ipId", request.ipId)}`
|
|
197
|
-
}, unmarshalIP);
|
|
198
|
-
this.deleteIP = (request) => this.client.fetch({
|
|
199
|
-
method: "DELETE",
|
|
200
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/ips/${validatePathParam("ipId", request.ipId)}`
|
|
201
|
-
});
|
|
202
|
-
this.refreshSSHKeys = (request) => this.client.fetch({
|
|
203
|
-
body: "{}",
|
|
204
|
-
headers: jsonContentHeaders,
|
|
205
|
-
method: "POST",
|
|
206
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateways/${validatePathParam("gatewayId", request.gatewayId)}/refresh-ssh-keys`
|
|
207
|
-
}, unmarshalGateway);
|
|
208
|
-
this.migrateToV2 = (request) => this.client.fetch({
|
|
209
|
-
body: "{}",
|
|
210
|
-
headers: jsonContentHeaders,
|
|
211
|
-
method: "POST",
|
|
212
|
-
path: `/vpc-gw/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateways/${validatePathParam("gatewayId", request.gatewayId)}/migrate-to-v2`
|
|
213
|
-
});
|
|
214
|
-
}
|
|
215
|
-
static {
|
|
216
|
-
this.LOCALITY = toApiLocality({ zones: [
|
|
217
|
-
"fr-par-1",
|
|
218
|
-
"fr-par-2",
|
|
219
|
-
"nl-ams-1",
|
|
220
|
-
"nl-ams-2",
|
|
221
|
-
"nl-ams-3",
|
|
222
|
-
"pl-waw-1",
|
|
223
|
-
"pl-waw-2",
|
|
224
|
-
"pl-waw-3"
|
|
225
|
-
] });
|
|
226
|
-
}
|
|
227
|
-
};
|
|
228
|
-
//#endregion
|
|
229
|
-
export { API };
|
package/dist/v1/content.gen.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { GatewayNetworkStatus, GatewayStatus } from './types.gen.js';
|
|
2
|
-
/** Lists transient statutes of the enum {@link GatewayNetworkStatus}. */
|
|
3
|
-
export declare const GATEWAY_NETWORK_TRANSIENT_STATUSES: GatewayNetworkStatus[];
|
|
4
|
-
/** Lists transient statutes of the enum {@link GatewayStatus}. */
|
|
5
|
-
export declare const GATEWAY_TRANSIENT_STATUSES: GatewayStatus[];
|
package/dist/v1/content.gen.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
//#region src/v1/content.gen.ts
|
|
2
|
-
/** Lists transient statutes of the enum {@link GatewayNetworkStatus}. */
|
|
3
|
-
const GATEWAY_NETWORK_TRANSIENT_STATUSES = [
|
|
4
|
-
"attaching",
|
|
5
|
-
"configuring",
|
|
6
|
-
"detaching"
|
|
7
|
-
];
|
|
8
|
-
/** Lists transient statutes of the enum {@link GatewayStatus}. */
|
|
9
|
-
const GATEWAY_TRANSIENT_STATUSES = [
|
|
10
|
-
"allocating",
|
|
11
|
-
"configuring",
|
|
12
|
-
"stopping",
|
|
13
|
-
"deleting"
|
|
14
|
-
];
|
|
15
|
-
//#endregion
|
|
16
|
-
export { GATEWAY_NETWORK_TRANSIENT_STATUSES, GATEWAY_TRANSIENT_STATUSES };
|
package/dist/v1/index.gen.d.ts
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export { API, } from './api.gen.js';
|
|
2
|
-
export * from './content.gen.js';
|
|
3
|
-
export * from './marshalling.gen.js';
|
|
4
|
-
export type { CreateDHCPEntryRequest, CreateDHCPRequest, CreateGatewayNetworkRequest, CreateGatewayNetworkRequestIpamConfig, CreateGatewayRequest, CreateIPRequest, CreatePATRuleRequest, DeleteDHCPEntryRequest, DeleteDHCPRequest, DeleteGatewayNetworkRequest, DeleteGatewayRequest, DeleteIPRequest, DeletePATRuleRequest, DHCP, DHCPEntry, DHCPEntryType, EnableIPMobilityRequest, Gateway, GatewayNetwork, GatewayNetworkStatus, GatewayStatus, GatewayType, GetDHCPEntryRequest, GetDHCPRequest, GetGatewayNetworkRequest, GetGatewayRequest, GetIPRequest, GetPATRuleRequest, IP, IpamConfig, ListDHCPEntriesRequest, ListDHCPEntriesRequestOrderBy, ListDHCPEntriesResponse, ListDHCPsRequest, ListDHCPsRequestOrderBy, ListDHCPsResponse, ListGatewayNetworksRequest, ListGatewayNetworksRequestOrderBy, ListGatewayNetworksResponse, ListGatewaysRequest, ListGatewaysRequestOrderBy, ListGatewaysResponse, ListGatewayTypesRequest, ListGatewayTypesResponse, ListIPsRequest, ListIPsRequestOrderBy, ListIPsResponse, ListPATRulesRequest, ListPATRulesRequestOrderBy, ListPATRulesResponse, MigrateToV2Request, PATRule, PATRuleProtocol, RefreshSSHKeysRequest, SetDHCPEntriesRequest, SetDHCPEntriesRequestEntry, SetDHCPEntriesResponse, SetPATRulesRequest, SetPATRulesRequestRule, SetPATRulesResponse, UpdateDHCPEntryRequest, UpdateDHCPRequest, UpdateGatewayNetworkRequest, UpdateGatewayNetworkRequestIpamConfig, UpdateGatewayRequest, UpdateIPRequest, UpdatePATRuleRequest, UpgradeGatewayRequest, } from './types.gen.js';
|
package/dist/v1/index.gen.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import { GATEWAY_NETWORK_TRANSIENT_STATUSES, GATEWAY_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
3
|
-
import { marshalCreateDHCPEntryRequest, marshalCreateDHCPRequest, marshalCreateGatewayNetworkRequest, marshalCreateGatewayRequest, marshalCreateIPRequest, marshalCreatePATRuleRequest, marshalSetDHCPEntriesRequest, marshalSetPATRulesRequest, marshalUpdateDHCPEntryRequest, marshalUpdateDHCPRequest, marshalUpdateGatewayNetworkRequest, marshalUpdateGatewayRequest, marshalUpdateIPRequest, marshalUpdatePATRuleRequest, marshalUpgradeGatewayRequest, unmarshalDHCP, unmarshalDHCPEntry, unmarshalGateway, unmarshalGatewayNetwork, unmarshalIP, unmarshalListDHCPEntriesResponse, unmarshalListDHCPsResponse, unmarshalListGatewayNetworksResponse, unmarshalListGatewayTypesResponse, unmarshalListGatewaysResponse, unmarshalListIPsResponse, unmarshalListPATRulesResponse, unmarshalPATRule, unmarshalSetDHCPEntriesResponse, unmarshalSetPATRulesResponse } from "./marshalling.gen.js";
|
|
4
|
-
import { API } from "./api.gen.js";
|
|
5
|
-
//#region src/v1/index.gen.ts
|
|
6
|
-
var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
7
|
-
API: () => API,
|
|
8
|
-
GATEWAY_NETWORK_TRANSIENT_STATUSES: () => GATEWAY_NETWORK_TRANSIENT_STATUSES,
|
|
9
|
-
GATEWAY_TRANSIENT_STATUSES: () => GATEWAY_TRANSIENT_STATUSES,
|
|
10
|
-
marshalCreateDHCPEntryRequest: () => marshalCreateDHCPEntryRequest,
|
|
11
|
-
marshalCreateDHCPRequest: () => marshalCreateDHCPRequest,
|
|
12
|
-
marshalCreateGatewayNetworkRequest: () => marshalCreateGatewayNetworkRequest,
|
|
13
|
-
marshalCreateGatewayRequest: () => marshalCreateGatewayRequest,
|
|
14
|
-
marshalCreateIPRequest: () => marshalCreateIPRequest,
|
|
15
|
-
marshalCreatePATRuleRequest: () => marshalCreatePATRuleRequest,
|
|
16
|
-
marshalSetDHCPEntriesRequest: () => marshalSetDHCPEntriesRequest,
|
|
17
|
-
marshalSetPATRulesRequest: () => marshalSetPATRulesRequest,
|
|
18
|
-
marshalUpdateDHCPEntryRequest: () => marshalUpdateDHCPEntryRequest,
|
|
19
|
-
marshalUpdateDHCPRequest: () => marshalUpdateDHCPRequest,
|
|
20
|
-
marshalUpdateGatewayNetworkRequest: () => marshalUpdateGatewayNetworkRequest,
|
|
21
|
-
marshalUpdateGatewayRequest: () => marshalUpdateGatewayRequest,
|
|
22
|
-
marshalUpdateIPRequest: () => marshalUpdateIPRequest,
|
|
23
|
-
marshalUpdatePATRuleRequest: () => marshalUpdatePATRuleRequest,
|
|
24
|
-
marshalUpgradeGatewayRequest: () => marshalUpgradeGatewayRequest,
|
|
25
|
-
unmarshalDHCP: () => unmarshalDHCP,
|
|
26
|
-
unmarshalDHCPEntry: () => unmarshalDHCPEntry,
|
|
27
|
-
unmarshalGateway: () => unmarshalGateway,
|
|
28
|
-
unmarshalGatewayNetwork: () => unmarshalGatewayNetwork,
|
|
29
|
-
unmarshalIP: () => unmarshalIP,
|
|
30
|
-
unmarshalListDHCPEntriesResponse: () => unmarshalListDHCPEntriesResponse,
|
|
31
|
-
unmarshalListDHCPsResponse: () => unmarshalListDHCPsResponse,
|
|
32
|
-
unmarshalListGatewayNetworksResponse: () => unmarshalListGatewayNetworksResponse,
|
|
33
|
-
unmarshalListGatewayTypesResponse: () => unmarshalListGatewayTypesResponse,
|
|
34
|
-
unmarshalListGatewaysResponse: () => unmarshalListGatewaysResponse,
|
|
35
|
-
unmarshalListIPsResponse: () => unmarshalListIPsResponse,
|
|
36
|
-
unmarshalListPATRulesResponse: () => unmarshalListPATRulesResponse,
|
|
37
|
-
unmarshalPATRule: () => unmarshalPATRule,
|
|
38
|
-
unmarshalSetDHCPEntriesResponse: () => unmarshalSetDHCPEntriesResponse,
|
|
39
|
-
unmarshalSetPATRulesResponse: () => unmarshalSetPATRulesResponse
|
|
40
|
-
});
|
|
41
|
-
//#endregion
|
|
42
|
-
export { API, GATEWAY_NETWORK_TRANSIENT_STATUSES, GATEWAY_TRANSIENT_STATUSES, index_gen_exports, marshalCreateDHCPEntryRequest, marshalCreateDHCPRequest, marshalCreateGatewayNetworkRequest, marshalCreateGatewayRequest, marshalCreateIPRequest, marshalCreatePATRuleRequest, marshalSetDHCPEntriesRequest, marshalSetPATRulesRequest, marshalUpdateDHCPEntryRequest, marshalUpdateDHCPRequest, marshalUpdateGatewayNetworkRequest, marshalUpdateGatewayRequest, marshalUpdateIPRequest, marshalUpdatePATRuleRequest, marshalUpgradeGatewayRequest, unmarshalDHCP, unmarshalDHCPEntry, unmarshalGateway, unmarshalGatewayNetwork, unmarshalIP, unmarshalListDHCPEntriesResponse, unmarshalListDHCPsResponse, unmarshalListGatewayNetworksResponse, unmarshalListGatewayTypesResponse, unmarshalListGatewaysResponse, unmarshalListIPsResponse, unmarshalListPATRulesResponse, unmarshalPATRule, unmarshalSetDHCPEntriesResponse, unmarshalSetPATRulesResponse };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { DefaultValues } from '@scaleway/sdk-client';
|
|
2
|
-
import type { CreateDHCPEntryRequest, CreateDHCPRequest, CreateGatewayNetworkRequest, CreateGatewayRequest, CreateIPRequest, CreatePATRuleRequest, DHCP, DHCPEntry, Gateway, GatewayNetwork, IP, ListDHCPEntriesResponse, ListDHCPsResponse, ListGatewayNetworksResponse, ListGatewaysResponse, ListGatewayTypesResponse, ListIPsResponse, ListPATRulesResponse, PATRule, SetDHCPEntriesRequest, SetDHCPEntriesResponse, SetPATRulesRequest, SetPATRulesResponse, UpdateDHCPEntryRequest, UpdateDHCPRequest, UpdateGatewayNetworkRequest, UpdateGatewayRequest, UpdateIPRequest, UpdatePATRuleRequest, UpgradeGatewayRequest } from './types.gen.js';
|
|
3
|
-
export declare const unmarshalDHCP: (data: unknown) => DHCP;
|
|
4
|
-
export declare const unmarshalGatewayNetwork: (data: unknown) => GatewayNetwork;
|
|
5
|
-
export declare const unmarshalIP: (data: unknown) => IP;
|
|
6
|
-
export declare const unmarshalDHCPEntry: (data: unknown) => DHCPEntry;
|
|
7
|
-
export declare const unmarshalGateway: (data: unknown) => Gateway;
|
|
8
|
-
export declare const unmarshalPATRule: (data: unknown) => PATRule;
|
|
9
|
-
export declare const unmarshalListDHCPEntriesResponse: (data: unknown) => ListDHCPEntriesResponse;
|
|
10
|
-
export declare const unmarshalListDHCPsResponse: (data: unknown) => ListDHCPsResponse;
|
|
11
|
-
export declare const unmarshalListGatewayNetworksResponse: (data: unknown) => ListGatewayNetworksResponse;
|
|
12
|
-
export declare const unmarshalListGatewayTypesResponse: (data: unknown) => ListGatewayTypesResponse;
|
|
13
|
-
export declare const unmarshalListGatewaysResponse: (data: unknown) => ListGatewaysResponse;
|
|
14
|
-
export declare const unmarshalListIPsResponse: (data: unknown) => ListIPsResponse;
|
|
15
|
-
export declare const unmarshalListPATRulesResponse: (data: unknown) => ListPATRulesResponse;
|
|
16
|
-
export declare const unmarshalSetDHCPEntriesResponse: (data: unknown) => SetDHCPEntriesResponse;
|
|
17
|
-
export declare const unmarshalSetPATRulesResponse: (data: unknown) => SetPATRulesResponse;
|
|
18
|
-
export declare const marshalCreateDHCPRequest: (request: CreateDHCPRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
19
|
-
export declare const marshalCreateDHCPEntryRequest: (request: CreateDHCPEntryRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
20
|
-
export declare const marshalCreateGatewayNetworkRequest: (request: CreateGatewayNetworkRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
21
|
-
export declare const marshalCreateGatewayRequest: (request: CreateGatewayRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
22
|
-
export declare const marshalCreateIPRequest: (request: CreateIPRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
23
|
-
export declare const marshalCreatePATRuleRequest: (request: CreatePATRuleRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
24
|
-
export declare const marshalSetDHCPEntriesRequest: (request: SetDHCPEntriesRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
25
|
-
export declare const marshalSetPATRulesRequest: (request: SetPATRulesRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
26
|
-
export declare const marshalUpdateDHCPEntryRequest: (request: UpdateDHCPEntryRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
27
|
-
export declare const marshalUpdateDHCPRequest: (request: UpdateDHCPRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
28
|
-
export declare const marshalUpdateGatewayNetworkRequest: (request: UpdateGatewayNetworkRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
29
|
-
export declare const marshalUpdateGatewayRequest: (request: UpdateGatewayRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
30
|
-
export declare const marshalUpdateIPRequest: (request: UpdateIPRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
31
|
-
export declare const marshalUpdatePATRuleRequest: (request: UpdatePATRuleRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
32
|
-
export declare const marshalUpgradeGatewayRequest: (request: UpgradeGatewayRequest, defaults: DefaultValues) => Record<string, unknown>;
|