@scaleway/sdk-vpcgw 2.8.1 → 2.8.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/LICENSE +191 -0
- package/package.json +8 -7
- package/dist/.vite/license.md +0 -3
- package/dist/_virtual/_rolldown/runtime.js +0 -13
- package/dist/index.gen.d.ts +0 -5
- package/dist/index.gen.js +0 -2
- package/dist/metadata.gen.d.ts +0 -12
- package/dist/metadata.gen.js +0 -13
- package/dist/v2/api.gen.d.ts +0 -233
- package/dist/v2/api.gen.js +0 -175
- package/dist/v2/content.gen.d.ts +0 -5
- package/dist/v2/content.gen.js +0 -16
- package/dist/v2/index.gen.d.ts +0 -4
- package/dist/v2/index.gen.js +0 -36
- package/dist/v2/marshalling.gen.d.ts +0 -26
- package/dist/v2/marshalling.gen.js +0 -191
- package/dist/v2/metadata.gen.d.ts +0 -101
- package/dist/v2/metadata.gen.js +0 -113
- package/dist/v2/types.gen.d.ts +0 -838
- package/dist/v2/types.gen.js +0 -0
package/dist/v2/api.gen.js
DELETED
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
import { GATEWAY_NETWORK_TRANSIENT_STATUSES, GATEWAY_TRANSIENT_STATUSES } from "./content.gen.js";
|
|
2
|
-
import { marshalAddBastionAllowedIPsRequest, marshalCreateGatewayNetworkRequest, marshalCreateGatewayRequest, marshalCreateIPRequest, marshalCreatePatRuleRequest, marshalSetBastionAllowedIPsRequest, marshalSetPatRulesRequest, marshalUpdateGatewayNetworkRequest, marshalUpdateGatewayRequest, marshalUpdateIPRequest, marshalUpdatePatRuleRequest, marshalUpgradeGatewayRequest, unmarshalAddBastionAllowedIPsResponse, unmarshalGateway, unmarshalGatewayNetwork, unmarshalIP, unmarshalListGatewayNetworksResponse, unmarshalListGatewayTypesResponse, unmarshalListGatewaysResponse, unmarshalListIPsResponse, unmarshalListPatRulesResponse, unmarshalPatRule, unmarshalSetBastionAllowedIPsResponse, unmarshalSetPatRulesResponse } from "./marshalling.gen.js";
|
|
3
|
-
import { API as API$1, enrichForPagination, toApiLocality, urlParams, validatePathParam, waitForResource } from "@scaleway/sdk-client";
|
|
4
|
-
//#region src/v2/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/v2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateways`,
|
|
17
|
-
urlParams: urlParams(["include_legacy", request.includeLegacy], ["name", request.name], ["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["private_network_ids", request.privateNetworkIds], ["project_id", request.projectId], ["status", request.status], ["tags", request.tags], ["types", request.types])
|
|
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/v2/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/v2/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/v2/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/v2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateways/${validatePathParam("gatewayId", request.gatewayId)}`,
|
|
40
|
-
urlParams: urlParams(["delete_ip", request.deleteIp])
|
|
41
|
-
}, unmarshalGateway);
|
|
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/v2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateways/${validatePathParam("gatewayId", request.gatewayId)}/upgrade`
|
|
47
|
-
}, unmarshalGateway);
|
|
48
|
-
this.pageOfListGatewayNetworks = (request = {}) => this.client.fetch({
|
|
49
|
-
method: "GET",
|
|
50
|
-
path: `/vpc-gw/v2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateway-networks`,
|
|
51
|
-
urlParams: urlParams(["gateway_ids", request.gatewayIds], ["masquerade_enabled", request.masqueradeEnabled], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["private_network_ids", request.privateNetworkIds], ["status", request.status])
|
|
52
|
-
}, unmarshalListGatewayNetworksResponse);
|
|
53
|
-
this.listGatewayNetworks = (request = {}) => enrichForPagination("gatewayNetworks", this.pageOfListGatewayNetworks, request);
|
|
54
|
-
this.getGatewayNetwork = (request) => this.client.fetch({
|
|
55
|
-
method: "GET",
|
|
56
|
-
path: `/vpc-gw/v2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateway-networks/${validatePathParam("gatewayNetworkId", request.gatewayNetworkId)}`
|
|
57
|
-
}, unmarshalGatewayNetwork);
|
|
58
|
-
this.waitForGatewayNetwork = (request, options) => waitForResource(options?.stop ?? ((res) => Promise.resolve(!GATEWAY_NETWORK_TRANSIENT_STATUSES.includes(res.status))), this.getGatewayNetwork, request, options);
|
|
59
|
-
this.createGatewayNetwork = (request) => this.client.fetch({
|
|
60
|
-
body: JSON.stringify(marshalCreateGatewayNetworkRequest(request, this.client.settings)),
|
|
61
|
-
headers: jsonContentHeaders,
|
|
62
|
-
method: "POST",
|
|
63
|
-
path: `/vpc-gw/v2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateway-networks`
|
|
64
|
-
}, unmarshalGatewayNetwork);
|
|
65
|
-
this.updateGatewayNetwork = (request) => this.client.fetch({
|
|
66
|
-
body: JSON.stringify(marshalUpdateGatewayNetworkRequest(request, this.client.settings)),
|
|
67
|
-
headers: jsonContentHeaders,
|
|
68
|
-
method: "PATCH",
|
|
69
|
-
path: `/vpc-gw/v2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateway-networks/${validatePathParam("gatewayNetworkId", request.gatewayNetworkId)}`
|
|
70
|
-
}, unmarshalGatewayNetwork);
|
|
71
|
-
this.deleteGatewayNetwork = (request) => this.client.fetch({
|
|
72
|
-
method: "DELETE",
|
|
73
|
-
path: `/vpc-gw/v2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateway-networks/${validatePathParam("gatewayNetworkId", request.gatewayNetworkId)}`
|
|
74
|
-
}, unmarshalGatewayNetwork);
|
|
75
|
-
this.pageOfListPatRules = (request = {}) => this.client.fetch({
|
|
76
|
-
method: "GET",
|
|
77
|
-
path: `/vpc-gw/v2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/pat-rules`,
|
|
78
|
-
urlParams: urlParams(["gateway_ids", request.gatewayIds], ["order_by", request.orderBy], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["private_ips", request.privateIps], ["protocol", request.protocol])
|
|
79
|
-
}, unmarshalListPatRulesResponse);
|
|
80
|
-
this.listPatRules = (request = {}) => enrichForPagination("patRules", this.pageOfListPatRules, request);
|
|
81
|
-
this.getPatRule = (request) => this.client.fetch({
|
|
82
|
-
method: "GET",
|
|
83
|
-
path: `/vpc-gw/v2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/pat-rules/${validatePathParam("patRuleId", request.patRuleId)}`
|
|
84
|
-
}, unmarshalPatRule);
|
|
85
|
-
this.createPatRule = (request) => this.client.fetch({
|
|
86
|
-
body: JSON.stringify(marshalCreatePatRuleRequest(request, this.client.settings)),
|
|
87
|
-
headers: jsonContentHeaders,
|
|
88
|
-
method: "POST",
|
|
89
|
-
path: `/vpc-gw/v2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/pat-rules`
|
|
90
|
-
}, unmarshalPatRule);
|
|
91
|
-
this.updatePatRule = (request) => this.client.fetch({
|
|
92
|
-
body: JSON.stringify(marshalUpdatePatRuleRequest(request, this.client.settings)),
|
|
93
|
-
headers: jsonContentHeaders,
|
|
94
|
-
method: "PATCH",
|
|
95
|
-
path: `/vpc-gw/v2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/pat-rules/${validatePathParam("patRuleId", request.patRuleId)}`
|
|
96
|
-
}, unmarshalPatRule);
|
|
97
|
-
this.setPatRules = (request) => this.client.fetch({
|
|
98
|
-
body: JSON.stringify(marshalSetPatRulesRequest(request, this.client.settings)),
|
|
99
|
-
headers: jsonContentHeaders,
|
|
100
|
-
method: "PUT",
|
|
101
|
-
path: `/vpc-gw/v2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/pat-rules`
|
|
102
|
-
}, unmarshalSetPatRulesResponse);
|
|
103
|
-
this.deletePatRule = (request) => this.client.fetch({
|
|
104
|
-
method: "DELETE",
|
|
105
|
-
path: `/vpc-gw/v2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/pat-rules/${validatePathParam("patRuleId", request.patRuleId)}`
|
|
106
|
-
});
|
|
107
|
-
this.listGatewayTypes = (request = {}) => this.client.fetch({
|
|
108
|
-
method: "GET",
|
|
109
|
-
path: `/vpc-gw/v2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateway-types`
|
|
110
|
-
}, unmarshalListGatewayTypesResponse);
|
|
111
|
-
this.pageOfListIPs = (request = {}) => this.client.fetch({
|
|
112
|
-
method: "GET",
|
|
113
|
-
path: `/vpc-gw/v2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/ips`,
|
|
114
|
-
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])
|
|
115
|
-
}, unmarshalListIPsResponse);
|
|
116
|
-
this.listIPs = (request = {}) => enrichForPagination("ips", this.pageOfListIPs, request);
|
|
117
|
-
this.getIP = (request) => this.client.fetch({
|
|
118
|
-
method: "GET",
|
|
119
|
-
path: `/vpc-gw/v2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/ips/${validatePathParam("ipId", request.ipId)}`
|
|
120
|
-
}, unmarshalIP);
|
|
121
|
-
this.createIP = (request = {}) => this.client.fetch({
|
|
122
|
-
body: JSON.stringify(marshalCreateIPRequest(request, this.client.settings)),
|
|
123
|
-
headers: jsonContentHeaders,
|
|
124
|
-
method: "POST",
|
|
125
|
-
path: `/vpc-gw/v2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/ips`
|
|
126
|
-
}, unmarshalIP);
|
|
127
|
-
this.updateIP = (request) => this.client.fetch({
|
|
128
|
-
body: JSON.stringify(marshalUpdateIPRequest(request, this.client.settings)),
|
|
129
|
-
headers: jsonContentHeaders,
|
|
130
|
-
method: "PATCH",
|
|
131
|
-
path: `/vpc-gw/v2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/ips/${validatePathParam("ipId", request.ipId)}`
|
|
132
|
-
}, unmarshalIP);
|
|
133
|
-
this.deleteIP = (request) => this.client.fetch({
|
|
134
|
-
method: "DELETE",
|
|
135
|
-
path: `/vpc-gw/v2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/ips/${validatePathParam("ipId", request.ipId)}`
|
|
136
|
-
});
|
|
137
|
-
this.refreshSSHKeys = (request) => this.client.fetch({
|
|
138
|
-
body: "{}",
|
|
139
|
-
headers: jsonContentHeaders,
|
|
140
|
-
method: "POST",
|
|
141
|
-
path: `/vpc-gw/v2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateways/${validatePathParam("gatewayId", request.gatewayId)}/refresh-ssh-keys`
|
|
142
|
-
}, unmarshalGateway);
|
|
143
|
-
this.addBastionAllowedIPs = (request) => this.client.fetch({
|
|
144
|
-
body: JSON.stringify(marshalAddBastionAllowedIPsRequest(request, this.client.settings)),
|
|
145
|
-
headers: jsonContentHeaders,
|
|
146
|
-
method: "POST",
|
|
147
|
-
path: `/vpc-gw/v2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateways/${validatePathParam("gatewayId", request.gatewayId)}/bastion-allowed-ips`
|
|
148
|
-
}, unmarshalAddBastionAllowedIPsResponse);
|
|
149
|
-
this.setBastionAllowedIPs = (request) => this.client.fetch({
|
|
150
|
-
body: JSON.stringify(marshalSetBastionAllowedIPsRequest(request, this.client.settings)),
|
|
151
|
-
headers: jsonContentHeaders,
|
|
152
|
-
method: "PUT",
|
|
153
|
-
path: `/vpc-gw/v2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateways/${validatePathParam("gatewayId", request.gatewayId)}/bastion-allowed-ips`
|
|
154
|
-
}, unmarshalSetBastionAllowedIPsResponse);
|
|
155
|
-
this.deleteBastionAllowedIPs = (request) => this.client.fetch({
|
|
156
|
-
method: "DELETE",
|
|
157
|
-
path: `/vpc-gw/v2/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/gateways/${validatePathParam("gatewayId", request.gatewayId)}/bastion-allowed-ips/${validatePathParam("ipRange", request.ipRange)}`
|
|
158
|
-
});
|
|
159
|
-
}
|
|
160
|
-
static {
|
|
161
|
-
this.LOCALITY = toApiLocality({ zones: [
|
|
162
|
-
"fr-par-1",
|
|
163
|
-
"fr-par-2",
|
|
164
|
-
"it-mil-1",
|
|
165
|
-
"nl-ams-1",
|
|
166
|
-
"nl-ams-2",
|
|
167
|
-
"nl-ams-3",
|
|
168
|
-
"pl-waw-1",
|
|
169
|
-
"pl-waw-2",
|
|
170
|
-
"pl-waw-3"
|
|
171
|
-
] });
|
|
172
|
-
}
|
|
173
|
-
};
|
|
174
|
-
//#endregion
|
|
175
|
-
export { API };
|
package/dist/v2/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/v2/content.gen.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
//#region src/v2/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/v2/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 { AddBastionAllowedIPsRequest, AddBastionAllowedIPsResponse, CreateGatewayNetworkRequest, CreateGatewayRequest, CreateIPRequest, CreatePatRuleRequest, DeleteBastionAllowedIPsRequest, DeleteGatewayNetworkRequest, DeleteGatewayRequest, DeleteIPRequest, DeletePatRuleRequest, Gateway, GatewayNetwork, GatewayNetworkStatus, GatewayStatus, GatewayType, GetGatewayNetworkRequest, GetGatewayRequest, GetIPRequest, GetPatRuleRequest, IP, ListGatewayNetworksRequest, ListGatewayNetworksRequestOrderBy, ListGatewayNetworksResponse, ListGatewayTypesRequest, ListGatewayTypesResponse, ListGatewaysRequest, ListGatewaysRequestOrderBy, ListGatewaysResponse, ListIPsRequest, ListIPsRequestOrderBy, ListIPsResponse, ListPatRulesRequest, ListPatRulesRequestOrderBy, ListPatRulesResponse, PatRule, PatRuleProtocol, RefreshSSHKeysRequest, SetBastionAllowedIPsRequest, SetBastionAllowedIPsResponse, SetPatRulesRequest, SetPatRulesRequestRule, SetPatRulesResponse, UpdateGatewayNetworkRequest, UpdateGatewayRequest, UpdateIPRequest, UpdatePatRuleRequest, UpgradeGatewayRequest, } from './types.gen.js';
|
package/dist/v2/index.gen.js
DELETED
|
@@ -1,36 +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 { marshalAddBastionAllowedIPsRequest, marshalCreateGatewayNetworkRequest, marshalCreateGatewayRequest, marshalCreateIPRequest, marshalCreatePatRuleRequest, marshalSetBastionAllowedIPsRequest, marshalSetPatRulesRequest, marshalUpdateGatewayNetworkRequest, marshalUpdateGatewayRequest, marshalUpdateIPRequest, marshalUpdatePatRuleRequest, marshalUpgradeGatewayRequest, unmarshalAddBastionAllowedIPsResponse, unmarshalGateway, unmarshalGatewayNetwork, unmarshalIP, unmarshalListGatewayNetworksResponse, unmarshalListGatewayTypesResponse, unmarshalListGatewaysResponse, unmarshalListIPsResponse, unmarshalListPatRulesResponse, unmarshalPatRule, unmarshalSetBastionAllowedIPsResponse, unmarshalSetPatRulesResponse } from "./marshalling.gen.js";
|
|
4
|
-
import { API } from "./api.gen.js";
|
|
5
|
-
//#region src/v2/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
|
-
marshalAddBastionAllowedIPsRequest: () => marshalAddBastionAllowedIPsRequest,
|
|
11
|
-
marshalCreateGatewayNetworkRequest: () => marshalCreateGatewayNetworkRequest,
|
|
12
|
-
marshalCreateGatewayRequest: () => marshalCreateGatewayRequest,
|
|
13
|
-
marshalCreateIPRequest: () => marshalCreateIPRequest,
|
|
14
|
-
marshalCreatePatRuleRequest: () => marshalCreatePatRuleRequest,
|
|
15
|
-
marshalSetBastionAllowedIPsRequest: () => marshalSetBastionAllowedIPsRequest,
|
|
16
|
-
marshalSetPatRulesRequest: () => marshalSetPatRulesRequest,
|
|
17
|
-
marshalUpdateGatewayNetworkRequest: () => marshalUpdateGatewayNetworkRequest,
|
|
18
|
-
marshalUpdateGatewayRequest: () => marshalUpdateGatewayRequest,
|
|
19
|
-
marshalUpdateIPRequest: () => marshalUpdateIPRequest,
|
|
20
|
-
marshalUpdatePatRuleRequest: () => marshalUpdatePatRuleRequest,
|
|
21
|
-
marshalUpgradeGatewayRequest: () => marshalUpgradeGatewayRequest,
|
|
22
|
-
unmarshalAddBastionAllowedIPsResponse: () => unmarshalAddBastionAllowedIPsResponse,
|
|
23
|
-
unmarshalGateway: () => unmarshalGateway,
|
|
24
|
-
unmarshalGatewayNetwork: () => unmarshalGatewayNetwork,
|
|
25
|
-
unmarshalIP: () => unmarshalIP,
|
|
26
|
-
unmarshalListGatewayNetworksResponse: () => unmarshalListGatewayNetworksResponse,
|
|
27
|
-
unmarshalListGatewayTypesResponse: () => unmarshalListGatewayTypesResponse,
|
|
28
|
-
unmarshalListGatewaysResponse: () => unmarshalListGatewaysResponse,
|
|
29
|
-
unmarshalListIPsResponse: () => unmarshalListIPsResponse,
|
|
30
|
-
unmarshalListPatRulesResponse: () => unmarshalListPatRulesResponse,
|
|
31
|
-
unmarshalPatRule: () => unmarshalPatRule,
|
|
32
|
-
unmarshalSetBastionAllowedIPsResponse: () => unmarshalSetBastionAllowedIPsResponse,
|
|
33
|
-
unmarshalSetPatRulesResponse: () => unmarshalSetPatRulesResponse
|
|
34
|
-
});
|
|
35
|
-
//#endregion
|
|
36
|
-
export { API, GATEWAY_NETWORK_TRANSIENT_STATUSES, GATEWAY_TRANSIENT_STATUSES, index_gen_exports, marshalAddBastionAllowedIPsRequest, marshalCreateGatewayNetworkRequest, marshalCreateGatewayRequest, marshalCreateIPRequest, marshalCreatePatRuleRequest, marshalSetBastionAllowedIPsRequest, marshalSetPatRulesRequest, marshalUpdateGatewayNetworkRequest, marshalUpdateGatewayRequest, marshalUpdateIPRequest, marshalUpdatePatRuleRequest, marshalUpgradeGatewayRequest, unmarshalAddBastionAllowedIPsResponse, unmarshalGateway, unmarshalGatewayNetwork, unmarshalIP, unmarshalListGatewayNetworksResponse, unmarshalListGatewayTypesResponse, unmarshalListGatewaysResponse, unmarshalListIPsResponse, unmarshalListPatRulesResponse, unmarshalPatRule, unmarshalSetBastionAllowedIPsResponse, unmarshalSetPatRulesResponse };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { DefaultValues } from '@scaleway/sdk-client';
|
|
2
|
-
import type { GatewayNetwork, IP, Gateway, PatRule, AddBastionAllowedIPsResponse, ListGatewayNetworksResponse, ListGatewayTypesResponse, ListGatewaysResponse, ListIPsResponse, ListPatRulesResponse, SetBastionAllowedIPsResponse, SetPatRulesResponse, AddBastionAllowedIPsRequest, CreateGatewayNetworkRequest, CreateGatewayRequest, CreateIPRequest, CreatePatRuleRequest, SetBastionAllowedIPsRequest, SetPatRulesRequest, UpdateGatewayNetworkRequest, UpdateGatewayRequest, UpdateIPRequest, UpdatePatRuleRequest, UpgradeGatewayRequest } from './types.gen.js';
|
|
3
|
-
export declare const unmarshalGatewayNetwork: (data: unknown) => GatewayNetwork;
|
|
4
|
-
export declare const unmarshalIP: (data: unknown) => IP;
|
|
5
|
-
export declare const unmarshalGateway: (data: unknown) => Gateway;
|
|
6
|
-
export declare const unmarshalPatRule: (data: unknown) => PatRule;
|
|
7
|
-
export declare const unmarshalAddBastionAllowedIPsResponse: (data: unknown) => AddBastionAllowedIPsResponse;
|
|
8
|
-
export declare const unmarshalListGatewayNetworksResponse: (data: unknown) => ListGatewayNetworksResponse;
|
|
9
|
-
export declare const unmarshalListGatewayTypesResponse: (data: unknown) => ListGatewayTypesResponse;
|
|
10
|
-
export declare const unmarshalListGatewaysResponse: (data: unknown) => ListGatewaysResponse;
|
|
11
|
-
export declare const unmarshalListIPsResponse: (data: unknown) => ListIPsResponse;
|
|
12
|
-
export declare const unmarshalListPatRulesResponse: (data: unknown) => ListPatRulesResponse;
|
|
13
|
-
export declare const unmarshalSetBastionAllowedIPsResponse: (data: unknown) => SetBastionAllowedIPsResponse;
|
|
14
|
-
export declare const unmarshalSetPatRulesResponse: (data: unknown) => SetPatRulesResponse;
|
|
15
|
-
export declare const marshalAddBastionAllowedIPsRequest: (request: AddBastionAllowedIPsRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
16
|
-
export declare const marshalCreateGatewayNetworkRequest: (request: CreateGatewayNetworkRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
17
|
-
export declare const marshalCreateGatewayRequest: (request: CreateGatewayRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
18
|
-
export declare const marshalCreateIPRequest: (request: CreateIPRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
19
|
-
export declare const marshalCreatePatRuleRequest: (request: CreatePatRuleRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
20
|
-
export declare const marshalSetBastionAllowedIPsRequest: (request: SetBastionAllowedIPsRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
21
|
-
export declare const marshalSetPatRulesRequest: (request: SetPatRulesRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
22
|
-
export declare const marshalUpdateGatewayNetworkRequest: (request: UpdateGatewayNetworkRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
23
|
-
export declare const marshalUpdateGatewayRequest: (request: UpdateGatewayRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
24
|
-
export declare const marshalUpdateIPRequest: (request: UpdateIPRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
25
|
-
export declare const marshalUpdatePatRuleRequest: (request: UpdatePatRuleRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
26
|
-
export declare const marshalUpgradeGatewayRequest: (request: UpgradeGatewayRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
import { isJSONObject, unmarshalArrayOfObject, unmarshalDate } from "@scaleway/sdk-client";
|
|
2
|
-
import randomName from "@scaleway/random-name";
|
|
3
|
-
//#region src/v2/marshalling.gen.ts
|
|
4
|
-
const unmarshalGatewayNetwork = (data) => {
|
|
5
|
-
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'GatewayNetwork' failed as data isn't a dictionary.`);
|
|
6
|
-
return {
|
|
7
|
-
createdAt: unmarshalDate(data.created_at),
|
|
8
|
-
gatewayId: data.gateway_id,
|
|
9
|
-
id: data.id,
|
|
10
|
-
ipamIpId: data.ipam_ip_id,
|
|
11
|
-
macAddress: data.mac_address,
|
|
12
|
-
masqueradeEnabled: data.masquerade_enabled,
|
|
13
|
-
privateNetworkId: data.private_network_id,
|
|
14
|
-
pushDefaultRoute: data.push_default_route,
|
|
15
|
-
status: data.status,
|
|
16
|
-
updatedAt: unmarshalDate(data.updated_at),
|
|
17
|
-
zone: data.zone
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
const unmarshalIP = (data) => {
|
|
21
|
-
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'IP' failed as data isn't a dictionary.`);
|
|
22
|
-
return {
|
|
23
|
-
address: data.address,
|
|
24
|
-
createdAt: unmarshalDate(data.created_at),
|
|
25
|
-
gatewayId: data.gateway_id,
|
|
26
|
-
id: data.id,
|
|
27
|
-
organizationId: data.organization_id,
|
|
28
|
-
projectId: data.project_id,
|
|
29
|
-
reverse: data.reverse,
|
|
30
|
-
tags: data.tags,
|
|
31
|
-
updatedAt: unmarshalDate(data.updated_at),
|
|
32
|
-
zone: data.zone
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
const unmarshalGateway = (data) => {
|
|
36
|
-
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Gateway' failed as data isn't a dictionary.`);
|
|
37
|
-
return {
|
|
38
|
-
bandwidth: data.bandwidth,
|
|
39
|
-
bastionAllowedIps: data.bastion_allowed_ips,
|
|
40
|
-
bastionEnabled: data.bastion_enabled,
|
|
41
|
-
bastionPort: data.bastion_port,
|
|
42
|
-
canUpgradeTo: data.can_upgrade_to,
|
|
43
|
-
createdAt: unmarshalDate(data.created_at),
|
|
44
|
-
gatewayNetworks: unmarshalArrayOfObject(data.gateway_networks, unmarshalGatewayNetwork),
|
|
45
|
-
id: data.id,
|
|
46
|
-
ipv4: data.ipv4 ? unmarshalIP(data.ipv4) : void 0,
|
|
47
|
-
isLegacy: data.is_legacy,
|
|
48
|
-
name: data.name,
|
|
49
|
-
organizationId: data.organization_id,
|
|
50
|
-
projectId: data.project_id,
|
|
51
|
-
smtpEnabled: data.smtp_enabled,
|
|
52
|
-
status: data.status,
|
|
53
|
-
tags: data.tags,
|
|
54
|
-
type: data.type,
|
|
55
|
-
updatedAt: unmarshalDate(data.updated_at),
|
|
56
|
-
version: data.version,
|
|
57
|
-
zone: data.zone
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
const unmarshalPatRule = (data) => {
|
|
61
|
-
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'PatRule' failed as data isn't a dictionary.`);
|
|
62
|
-
return {
|
|
63
|
-
createdAt: unmarshalDate(data.created_at),
|
|
64
|
-
gatewayId: data.gateway_id,
|
|
65
|
-
id: data.id,
|
|
66
|
-
privateIp: data.private_ip,
|
|
67
|
-
privatePort: data.private_port,
|
|
68
|
-
protocol: data.protocol,
|
|
69
|
-
publicPort: data.public_port,
|
|
70
|
-
updatedAt: unmarshalDate(data.updated_at),
|
|
71
|
-
zone: data.zone
|
|
72
|
-
};
|
|
73
|
-
};
|
|
74
|
-
const unmarshalAddBastionAllowedIPsResponse = (data) => {
|
|
75
|
-
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'AddBastionAllowedIPsResponse' failed as data isn't a dictionary.`);
|
|
76
|
-
return { ipRanges: data.ip_ranges };
|
|
77
|
-
};
|
|
78
|
-
const unmarshalListGatewayNetworksResponse = (data) => {
|
|
79
|
-
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListGatewayNetworksResponse' failed as data isn't a dictionary.`);
|
|
80
|
-
return {
|
|
81
|
-
gatewayNetworks: unmarshalArrayOfObject(data.gateway_networks, unmarshalGatewayNetwork),
|
|
82
|
-
totalCount: data.total_count
|
|
83
|
-
};
|
|
84
|
-
};
|
|
85
|
-
const unmarshalGatewayType = (data) => {
|
|
86
|
-
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'GatewayType' failed as data isn't a dictionary.`);
|
|
87
|
-
return {
|
|
88
|
-
bandwidth: data.bandwidth,
|
|
89
|
-
name: data.name,
|
|
90
|
-
zone: data.zone
|
|
91
|
-
};
|
|
92
|
-
};
|
|
93
|
-
const unmarshalListGatewayTypesResponse = (data) => {
|
|
94
|
-
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListGatewayTypesResponse' failed as data isn't a dictionary.`);
|
|
95
|
-
return { types: unmarshalArrayOfObject(data.types, unmarshalGatewayType) };
|
|
96
|
-
};
|
|
97
|
-
const unmarshalListGatewaysResponse = (data) => {
|
|
98
|
-
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListGatewaysResponse' failed as data isn't a dictionary.`);
|
|
99
|
-
return {
|
|
100
|
-
gateways: unmarshalArrayOfObject(data.gateways, unmarshalGateway),
|
|
101
|
-
totalCount: data.total_count
|
|
102
|
-
};
|
|
103
|
-
};
|
|
104
|
-
const unmarshalListIPsResponse = (data) => {
|
|
105
|
-
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListIPsResponse' failed as data isn't a dictionary.`);
|
|
106
|
-
return {
|
|
107
|
-
ips: unmarshalArrayOfObject(data.ips, unmarshalIP),
|
|
108
|
-
totalCount: data.total_count
|
|
109
|
-
};
|
|
110
|
-
};
|
|
111
|
-
const unmarshalListPatRulesResponse = (data) => {
|
|
112
|
-
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ListPatRulesResponse' failed as data isn't a dictionary.`);
|
|
113
|
-
return {
|
|
114
|
-
patRules: unmarshalArrayOfObject(data.pat_rules, unmarshalPatRule),
|
|
115
|
-
totalCount: data.total_count
|
|
116
|
-
};
|
|
117
|
-
};
|
|
118
|
-
const unmarshalSetBastionAllowedIPsResponse = (data) => {
|
|
119
|
-
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SetBastionAllowedIPsResponse' failed as data isn't a dictionary.`);
|
|
120
|
-
return { ipRanges: data.ip_ranges };
|
|
121
|
-
};
|
|
122
|
-
const unmarshalSetPatRulesResponse = (data) => {
|
|
123
|
-
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SetPatRulesResponse' failed as data isn't a dictionary.`);
|
|
124
|
-
return { patRules: unmarshalArrayOfObject(data.pat_rules, unmarshalPatRule) };
|
|
125
|
-
};
|
|
126
|
-
const marshalAddBastionAllowedIPsRequest = (request, defaults) => ({ ip_range: request.ipRange });
|
|
127
|
-
const marshalCreateGatewayNetworkRequest = (request, defaults) => ({
|
|
128
|
-
enable_masquerade: request.enableMasquerade,
|
|
129
|
-
gateway_id: request.gatewayId,
|
|
130
|
-
ipam_ip_id: request.ipamIpId,
|
|
131
|
-
private_network_id: request.privateNetworkId,
|
|
132
|
-
push_default_route: request.pushDefaultRoute
|
|
133
|
-
});
|
|
134
|
-
const marshalCreateGatewayRequest = (request, defaults) => ({
|
|
135
|
-
bastion_port: request.bastionPort,
|
|
136
|
-
enable_bastion: request.enableBastion,
|
|
137
|
-
enable_smtp: request.enableSmtp,
|
|
138
|
-
ip_id: request.ipId,
|
|
139
|
-
name: request.name || randomName("gw"),
|
|
140
|
-
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
141
|
-
tags: request.tags,
|
|
142
|
-
type: request.type
|
|
143
|
-
});
|
|
144
|
-
const marshalCreateIPRequest = (request, defaults) => ({
|
|
145
|
-
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
146
|
-
tags: request.tags
|
|
147
|
-
});
|
|
148
|
-
const marshalCreatePatRuleRequest = (request, defaults) => ({
|
|
149
|
-
gateway_id: request.gatewayId,
|
|
150
|
-
private_ip: request.privateIp,
|
|
151
|
-
private_port: request.privatePort,
|
|
152
|
-
protocol: request.protocol,
|
|
153
|
-
public_port: request.publicPort
|
|
154
|
-
});
|
|
155
|
-
const marshalSetBastionAllowedIPsRequest = (request, defaults) => ({ ip_ranges: request.ipRanges });
|
|
156
|
-
const marshalSetPatRulesRequestRule = (request, defaults) => ({
|
|
157
|
-
private_ip: request.privateIp,
|
|
158
|
-
private_port: request.privatePort,
|
|
159
|
-
protocol: request.protocol,
|
|
160
|
-
public_port: request.publicPort
|
|
161
|
-
});
|
|
162
|
-
const marshalSetPatRulesRequest = (request, defaults) => ({
|
|
163
|
-
gateway_id: request.gatewayId,
|
|
164
|
-
pat_rules: request.patRules.map((elt) => marshalSetPatRulesRequestRule(elt, defaults))
|
|
165
|
-
});
|
|
166
|
-
const marshalUpdateGatewayNetworkRequest = (request, defaults) => ({
|
|
167
|
-
enable_masquerade: request.enableMasquerade,
|
|
168
|
-
ipam_ip_id: request.ipamIpId,
|
|
169
|
-
push_default_route: request.pushDefaultRoute
|
|
170
|
-
});
|
|
171
|
-
const marshalUpdateGatewayRequest = (request, defaults) => ({
|
|
172
|
-
bastion_port: request.bastionPort,
|
|
173
|
-
enable_bastion: request.enableBastion,
|
|
174
|
-
enable_smtp: request.enableSmtp,
|
|
175
|
-
name: request.name,
|
|
176
|
-
tags: request.tags
|
|
177
|
-
});
|
|
178
|
-
const marshalUpdateIPRequest = (request, defaults) => ({
|
|
179
|
-
gateway_id: request.gatewayId,
|
|
180
|
-
reverse: request.reverse,
|
|
181
|
-
tags: request.tags
|
|
182
|
-
});
|
|
183
|
-
const marshalUpdatePatRuleRequest = (request, defaults) => ({
|
|
184
|
-
private_ip: request.privateIp,
|
|
185
|
-
private_port: request.privatePort,
|
|
186
|
-
protocol: request.protocol,
|
|
187
|
-
public_port: request.publicPort
|
|
188
|
-
});
|
|
189
|
-
const marshalUpgradeGatewayRequest = (request, defaults) => ({ type: request.type });
|
|
190
|
-
//#endregion
|
|
191
|
-
export { marshalAddBastionAllowedIPsRequest, marshalCreateGatewayNetworkRequest, marshalCreateGatewayRequest, marshalCreateIPRequest, marshalCreatePatRuleRequest, marshalSetBastionAllowedIPsRequest, marshalSetPatRulesRequest, marshalUpdateGatewayNetworkRequest, marshalUpdateGatewayRequest, marshalUpdateIPRequest, marshalUpdatePatRuleRequest, marshalUpgradeGatewayRequest, unmarshalAddBastionAllowedIPsResponse, unmarshalGateway, unmarshalGatewayNetwork, unmarshalIP, unmarshalListGatewayNetworksResponse, unmarshalListGatewayTypesResponse, unmarshalListGatewaysResponse, unmarshalListIPsResponse, unmarshalListPatRulesResponse, unmarshalPatRule, unmarshalSetBastionAllowedIPsResponse, unmarshalSetPatRulesResponse };
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
export declare const queriesMetadata: {
|
|
2
|
-
readonly namespace: 'vpcgw';
|
|
3
|
-
readonly version: 'v2';
|
|
4
|
-
readonly folderName: 'vpcgwv2';
|
|
5
|
-
readonly services: readonly [{
|
|
6
|
-
readonly apiClass: 'API';
|
|
7
|
-
readonly methods: readonly [{
|
|
8
|
-
readonly methodName: 'listGateways';
|
|
9
|
-
readonly protoName: 'ListGateways';
|
|
10
|
-
readonly paramsType: 'ListGatewaysRequest';
|
|
11
|
-
readonly returnType: 'ListGatewaysResponse';
|
|
12
|
-
readonly isList: true;
|
|
13
|
-
readonly paginationType: 'offset';
|
|
14
|
-
readonly pageParamKey: 'page';
|
|
15
|
-
readonly listItemType: 'Gateway';
|
|
16
|
-
readonly isPrivate: false;
|
|
17
|
-
readonly description: '"';
|
|
18
|
-
}, {
|
|
19
|
-
readonly methodName: 'getGateway';
|
|
20
|
-
readonly protoName: 'GetGateway';
|
|
21
|
-
readonly paramsType: 'GetGatewayRequest';
|
|
22
|
-
readonly returnType: 'Gateway';
|
|
23
|
-
readonly isList: false;
|
|
24
|
-
readonly paginationType: 'none';
|
|
25
|
-
readonly isPrivate: false;
|
|
26
|
-
readonly description: '"';
|
|
27
|
-
readonly hasWaiter: true;
|
|
28
|
-
}, {
|
|
29
|
-
readonly methodName: 'listGatewayNetworks';
|
|
30
|
-
readonly protoName: 'ListGatewayNetworks';
|
|
31
|
-
readonly paramsType: 'ListGatewayNetworksRequest';
|
|
32
|
-
readonly returnType: 'ListGatewayNetworksResponse';
|
|
33
|
-
readonly isList: true;
|
|
34
|
-
readonly paginationType: 'offset';
|
|
35
|
-
readonly pageParamKey: 'page';
|
|
36
|
-
readonly listItemType: 'GatewayNetwork';
|
|
37
|
-
readonly isPrivate: false;
|
|
38
|
-
readonly description: '"';
|
|
39
|
-
}, {
|
|
40
|
-
readonly methodName: 'getGatewayNetwork';
|
|
41
|
-
readonly protoName: 'GetGatewayNetwork';
|
|
42
|
-
readonly paramsType: 'GetGatewayNetworkRequest';
|
|
43
|
-
readonly returnType: 'GatewayNetwork';
|
|
44
|
-
readonly isList: false;
|
|
45
|
-
readonly paginationType: 'none';
|
|
46
|
-
readonly isPrivate: false;
|
|
47
|
-
readonly description: '"';
|
|
48
|
-
readonly hasWaiter: true;
|
|
49
|
-
}, {
|
|
50
|
-
readonly methodName: 'listPatRules';
|
|
51
|
-
readonly protoName: 'ListPatRules';
|
|
52
|
-
readonly paramsType: 'ListPatRulesRequest';
|
|
53
|
-
readonly returnType: 'ListPatRulesResponse';
|
|
54
|
-
readonly isList: true;
|
|
55
|
-
readonly paginationType: 'offset';
|
|
56
|
-
readonly pageParamKey: 'page';
|
|
57
|
-
readonly listItemType: 'PatRule';
|
|
58
|
-
readonly isPrivate: false;
|
|
59
|
-
readonly description: '"';
|
|
60
|
-
}, {
|
|
61
|
-
readonly methodName: 'getPatRule';
|
|
62
|
-
readonly protoName: 'GetPatRule';
|
|
63
|
-
readonly paramsType: 'GetPatRuleRequest';
|
|
64
|
-
readonly returnType: 'PatRule';
|
|
65
|
-
readonly isList: false;
|
|
66
|
-
readonly paginationType: 'none';
|
|
67
|
-
readonly isPrivate: false;
|
|
68
|
-
readonly description: '"';
|
|
69
|
-
}, {
|
|
70
|
-
readonly methodName: 'listGatewayTypes';
|
|
71
|
-
readonly protoName: 'ListGatewayTypes';
|
|
72
|
-
readonly paramsType: 'ListGatewayTypesRequest';
|
|
73
|
-
readonly returnType: 'ListGatewayTypesResponse';
|
|
74
|
-
readonly isList: false;
|
|
75
|
-
readonly paginationType: 'none';
|
|
76
|
-
readonly isPrivate: false;
|
|
77
|
-
readonly description: '"';
|
|
78
|
-
}, {
|
|
79
|
-
readonly methodName: 'listIPs';
|
|
80
|
-
readonly protoName: 'ListIPs';
|
|
81
|
-
readonly paramsType: 'ListIPsRequest';
|
|
82
|
-
readonly returnType: 'ListIPsResponse';
|
|
83
|
-
readonly isList: true;
|
|
84
|
-
readonly paginationType: 'offset';
|
|
85
|
-
readonly pageParamKey: 'page';
|
|
86
|
-
readonly listItemType: 'IP';
|
|
87
|
-
readonly isPrivate: false;
|
|
88
|
-
readonly description: '"';
|
|
89
|
-
}, {
|
|
90
|
-
readonly methodName: 'getIP';
|
|
91
|
-
readonly protoName: 'GetIP';
|
|
92
|
-
readonly paramsType: 'GetIPRequest';
|
|
93
|
-
readonly returnType: 'IP';
|
|
94
|
-
readonly isList: false;
|
|
95
|
-
readonly paginationType: 'none';
|
|
96
|
-
readonly isPrivate: false;
|
|
97
|
-
readonly description: '"';
|
|
98
|
-
}];
|
|
99
|
-
}];
|
|
100
|
-
};
|
|
101
|
-
export type QueriesMetadata = typeof queriesMetadata;
|