@scaleway/sdk-vpc 2.13.0 → 2.15.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/v2/api.gen.d.ts +18 -18
- package/dist/v2/api.gen.js +17 -17
- package/dist/v2/constants.gen.d.ts +21 -0
- package/dist/v2/constants.gen.js +71 -0
- package/dist/v2/index.gen.d.ts +2 -1
- package/dist/v2/index.gen.js +17 -6
- package/dist/v2/marshalling.gen.d.ts +5 -5
- package/dist/v2/marshalling.gen.js +9 -9
- package/dist/v2/types.gen.d.ts +38 -38
- package/package.json +4 -4
package/dist/v2/api.gen.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { API as ParentAPI } from '@scaleway/sdk-client';
|
|
2
2
|
import type { ApiLocality } from '@scaleway/sdk-client';
|
|
3
|
-
import type {
|
|
3
|
+
import type { AddPrivateNetworkObjectStoragePrivateAccessRequest, AddPrivateNetworkObjectStoragePrivateAccessResponse, CreateIngressRuleRequest, CreatePrivateNetworkRequest, CreateRouteRequest, CreateVPCConnectorRequest, CreateVPCRequest, DeleteIngressRuleRequest, DeletePrivateNetworkObjectStoragePrivateAccessRequest, DeletePrivateNetworkRequest, DeleteRouteRequest, DeleteVPCConnectorRequest, DeleteVPCRequest, DisableObjectStoragePrivateAccessRequest, EnableCustomRoutesPropagationRequest, EnableDHCPRequest, EnableObjectStoragePrivateAccessRequest, EnableRoutingRequest, GetAclRequest, GetAclResponse, GetIngressRuleRequest, GetPrivateNetworkRequest, GetRouteRequest, GetVPCConnectorRequest, GetVPCRequest, IngressRule, ListIngressRulesRequest, ListIngressRulesResponse, ListPrivateNetworksRequest, ListPrivateNetworksResponse, ListSubnetOverlapsRequest, ListSubnetOverlapsResponse, ListSubnetsRequest, ListSubnetsResponse, ListVPCConnectorsRequest, ListVPCConnectorsResponse, ListVPCsRequest, ListVPCsResponse, PrivateNetwork, Route, SetAclRequest, SetAclResponse, SetPrivateNetworksObjectStoragePrivateAccessRequest, SetPrivateNetworksObjectStoragePrivateAccessResponse, UpdateIngressRuleRequest, UpdatePrivateNetworkRequest, UpdateRouteRequest, UpdateVPCConnectorRequest, UpdateVPCRequest, VPC, VPCConnector } from './types.gen.js';
|
|
4
4
|
/**
|
|
5
5
|
* VPC API.
|
|
6
6
|
|
|
@@ -249,37 +249,37 @@ export declare class API extends ParentAPI {
|
|
|
249
249
|
*/
|
|
250
250
|
deleteIngressRule: (request: Readonly<DeleteIngressRuleRequest>) => Promise<void>;
|
|
251
251
|
/**
|
|
252
|
-
* Enable
|
|
252
|
+
* Enable Object Storage private access. Enable Object Storage private access for a VPC.
|
|
253
253
|
*
|
|
254
|
-
* @param request - The request {@link
|
|
254
|
+
* @param request - The request {@link EnableObjectStoragePrivateAccessRequest}
|
|
255
255
|
* @returns A Promise of VPC
|
|
256
256
|
*/
|
|
257
|
-
|
|
257
|
+
enableObjectStoragePrivateAccess: (request: Readonly<EnableObjectStoragePrivateAccessRequest>) => Promise<VPC>;
|
|
258
258
|
/**
|
|
259
|
-
* Disable
|
|
259
|
+
* Disable Object Storage private access. Disable Object Storage private access for a VPC.
|
|
260
260
|
*
|
|
261
|
-
* @param request - The request {@link
|
|
261
|
+
* @param request - The request {@link DisableObjectStoragePrivateAccessRequest}
|
|
262
262
|
* @returns A Promise of VPC
|
|
263
263
|
*/
|
|
264
|
-
|
|
264
|
+
disableObjectStoragePrivateAccess: (request: Readonly<DisableObjectStoragePrivateAccessRequest>) => Promise<VPC>;
|
|
265
265
|
/**
|
|
266
|
-
* Add a Private Network to an
|
|
266
|
+
* Add a Private Network to an Object Storage private access. Add a Private Network to the Object Storage private access to enable Object Storage integration for its resources.
|
|
267
267
|
*
|
|
268
|
-
* @param request - The request {@link
|
|
269
|
-
* @returns A Promise of
|
|
268
|
+
* @param request - The request {@link AddPrivateNetworkObjectStoragePrivateAccessRequest}
|
|
269
|
+
* @returns A Promise of AddPrivateNetworkObjectStoragePrivateAccessResponse
|
|
270
270
|
*/
|
|
271
|
-
|
|
271
|
+
addPrivateNetworkObjectStoragePrivateAccess: (request: Readonly<AddPrivateNetworkObjectStoragePrivateAccessRequest>) => Promise<AddPrivateNetworkObjectStoragePrivateAccessResponse>;
|
|
272
272
|
/**
|
|
273
|
-
* Set
|
|
273
|
+
* Set Object Storage private access Private Networks. Set the Private Networks associated with the Object Storage private access to enable Object Storage integration for their resources.
|
|
274
274
|
*
|
|
275
|
-
* @param request - The request {@link
|
|
276
|
-
* @returns A Promise of
|
|
275
|
+
* @param request - The request {@link SetPrivateNetworksObjectStoragePrivateAccessRequest}
|
|
276
|
+
* @returns A Promise of SetPrivateNetworksObjectStoragePrivateAccessResponse
|
|
277
277
|
*/
|
|
278
|
-
|
|
278
|
+
setPrivateNetworksObjectStoragePrivateAccess: (request: Readonly<SetPrivateNetworksObjectStoragePrivateAccessRequest>) => Promise<SetPrivateNetworksObjectStoragePrivateAccessResponse>;
|
|
279
279
|
/**
|
|
280
|
-
* Remove a Private Network from an
|
|
280
|
+
* Remove a Private Network from an Object Storage private access. Remove a Private Network from the Object Storage private access to disable Object Storage integration for its resources.
|
|
281
281
|
*
|
|
282
|
-
* @param request - The request {@link
|
|
282
|
+
* @param request - The request {@link DeletePrivateNetworkObjectStoragePrivateAccessRequest}
|
|
283
283
|
*/
|
|
284
|
-
|
|
284
|
+
deletePrivateNetworkObjectStoragePrivateAccess: (request: Readonly<DeletePrivateNetworkObjectStoragePrivateAccessRequest>) => Promise<void>;
|
|
285
285
|
}
|
package/dist/v2/api.gen.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { marshalAddPrivateNetworkObjectStoragePrivateAccessRequest, marshalCreateIngressRuleRequest, marshalCreatePrivateNetworkRequest, marshalCreateRouteRequest, marshalCreateVPCConnectorRequest, marshalCreateVPCRequest, marshalSetAclRequest, marshalSetPrivateNetworksObjectStoragePrivateAccessRequest, marshalUpdateIngressRuleRequest, marshalUpdatePrivateNetworkRequest, marshalUpdateRouteRequest, marshalUpdateVPCConnectorRequest, marshalUpdateVPCRequest, unmarshalAddPrivateNetworkObjectStoragePrivateAccessResponse, unmarshalGetAclResponse, unmarshalIngressRule, unmarshalListIngressRulesResponse, unmarshalListPrivateNetworksResponse, unmarshalListSubnetOverlapsResponse, unmarshalListSubnetsResponse, unmarshalListVPCConnectorsResponse, unmarshalListVPCsResponse, unmarshalPrivateNetwork, unmarshalRoute, unmarshalSetAclResponse, unmarshalSetPrivateNetworksObjectStoragePrivateAccessResponse, unmarshalVPC, unmarshalVPCConnector } from "./marshalling.gen.js";
|
|
2
2
|
import { API as API$1, enrichForPagination, toApiLocality, urlParams, validatePathParam } from "@scaleway/sdk-client";
|
|
3
3
|
//#region src/v2/api.gen.ts
|
|
4
4
|
const jsonContentHeaders = { "Content-Type": "application/json; charset=utf-8" };
|
|
@@ -13,7 +13,7 @@ var API = class extends API$1 {
|
|
|
13
13
|
this.pageOfListVPCs = (request = {}) => this.client.fetch({
|
|
14
14
|
method: "GET",
|
|
15
15
|
path: `/vpc/v2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/vpcs`,
|
|
16
|
-
urlParams: urlParams(["is_default", request.isDefault], ["name", request.name], ["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId], ["routing_enabled", request.routingEnabled], ["
|
|
16
|
+
urlParams: urlParams(["is_default", request.isDefault], ["name", request.name], ["object_storage_private_access_enabled", request.objectStoragePrivateAccessEnabled], ["order_by", request.orderBy], ["organization_id", request.organizationId], ["page", request.page], ["page_size", request.pageSize ?? this.client.settings.defaultPageSize], ["project_id", request.projectId], ["routing_enabled", request.routingEnabled], ["tags", request.tags])
|
|
17
17
|
}, unmarshalListVPCsResponse);
|
|
18
18
|
this.listVPCs = (request = {}) => enrichForPagination("vpcs", this.pageOfListVPCs, request);
|
|
19
19
|
this.createVPC = (request) => this.client.fetch({
|
|
@@ -39,7 +39,7 @@ var API = class extends API$1 {
|
|
|
39
39
|
this.pageOfListPrivateNetworks = (request = {}) => this.client.fetch({
|
|
40
40
|
method: "GET",
|
|
41
41
|
path: `/vpc/v2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/private-networks`,
|
|
42
|
-
urlParams: urlParams(["dhcp_enabled", request.dhcpEnabled], ["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], ["
|
|
42
|
+
urlParams: urlParams(["dhcp_enabled", request.dhcpEnabled], ["name", request.name], ["object_storage_private_access_enabled", request.objectStoragePrivateAccessEnabled], ["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], ["tags", request.tags], ["vpc_id", request.vpcId])
|
|
43
43
|
}, unmarshalListPrivateNetworksResponse);
|
|
44
44
|
this.listPrivateNetworks = (request = {}) => enrichForPagination("privateNetworks", this.pageOfListPrivateNetworks, request);
|
|
45
45
|
this.createPrivateNetwork = (request) => this.client.fetch({
|
|
@@ -175,30 +175,30 @@ var API = class extends API$1 {
|
|
|
175
175
|
method: "DELETE",
|
|
176
176
|
path: `/vpc/v2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/ingress-rules/${validatePathParam("ruleId", request.ruleId)}`
|
|
177
177
|
});
|
|
178
|
-
this.
|
|
178
|
+
this.enableObjectStoragePrivateAccess = (request) => this.client.fetch({
|
|
179
179
|
method: "POST",
|
|
180
|
-
path: `/vpc/v2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/
|
|
180
|
+
path: `/vpc/v2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/object-storage-private-access/${validatePathParam("vpcId", request.vpcId)}/enable`,
|
|
181
181
|
urlParams: urlParams(["private_network_ids", request.privateNetworkIds])
|
|
182
182
|
}, unmarshalVPC);
|
|
183
|
-
this.
|
|
183
|
+
this.disableObjectStoragePrivateAccess = (request) => this.client.fetch({
|
|
184
184
|
method: "POST",
|
|
185
|
-
path: `/vpc/v2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/
|
|
185
|
+
path: `/vpc/v2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/object-storage-private-access/${validatePathParam("vpcId", request.vpcId)}/disable`
|
|
186
186
|
}, unmarshalVPC);
|
|
187
|
-
this.
|
|
188
|
-
body: JSON.stringify(
|
|
187
|
+
this.addPrivateNetworkObjectStoragePrivateAccess = (request) => this.client.fetch({
|
|
188
|
+
body: JSON.stringify(marshalAddPrivateNetworkObjectStoragePrivateAccessRequest(request, this.client.settings)),
|
|
189
189
|
headers: jsonContentHeaders,
|
|
190
190
|
method: "POST",
|
|
191
|
-
path: `/vpc/v2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/
|
|
192
|
-
},
|
|
193
|
-
this.
|
|
194
|
-
body: JSON.stringify(
|
|
191
|
+
path: `/vpc/v2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/object-storage-private-access/${validatePathParam("vpcId", request.vpcId)}/private-networks`
|
|
192
|
+
}, unmarshalAddPrivateNetworkObjectStoragePrivateAccessResponse);
|
|
193
|
+
this.setPrivateNetworksObjectStoragePrivateAccess = (request) => this.client.fetch({
|
|
194
|
+
body: JSON.stringify(marshalSetPrivateNetworksObjectStoragePrivateAccessRequest(request, this.client.settings)),
|
|
195
195
|
headers: jsonContentHeaders,
|
|
196
196
|
method: "PUT",
|
|
197
|
-
path: `/vpc/v2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/
|
|
198
|
-
},
|
|
199
|
-
this.
|
|
197
|
+
path: `/vpc/v2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/object-storage-private-access/${validatePathParam("vpcId", request.vpcId)}/private-networks`
|
|
198
|
+
}, unmarshalSetPrivateNetworksObjectStoragePrivateAccessResponse);
|
|
199
|
+
this.deletePrivateNetworkObjectStoragePrivateAccess = (request) => this.client.fetch({
|
|
200
200
|
method: "DELETE",
|
|
201
|
-
path: `/vpc/v2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/
|
|
201
|
+
path: `/vpc/v2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/object-storage-private-access/${validatePathParam("vpcId", request.vpcId)}/private-networks/${validatePathParam("privateNetworkId", request.privateNetworkId)}`
|
|
202
202
|
});
|
|
203
203
|
}
|
|
204
204
|
static {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { AclRuleProtocol, Action, ListIngressRulesRequestOrderBy, ListPrivateNetworksRequestOrderBy, ListSubnetOverlapsRequestOrderBy, ListSubnetsRequestOrderBy, ListVPCConnectorsRequestOrderBy, ListVPCsRequestOrderBy, RouteType, VPCConnectorStatus } from './types.gen.js';
|
|
2
|
+
/** Lists all values of the enum {@link AclRuleProtocol}. */
|
|
3
|
+
export declare const ACL_RULE_PROTOCOLS: AclRuleProtocol[];
|
|
4
|
+
/** Lists all values of the enum {@link Action}. */
|
|
5
|
+
export declare const ACTIONS: Action[];
|
|
6
|
+
/** Lists all values of the enum {@link ListIngressRulesRequestOrderBy}. */
|
|
7
|
+
export declare const LIST_INGRESS_RULES_REQUEST_ORDER_BIES: ListIngressRulesRequestOrderBy[];
|
|
8
|
+
/** Lists all values of the enum {@link ListPrivateNetworksRequestOrderBy}. */
|
|
9
|
+
export declare const LIST_PRIVATE_NETWORKS_REQUEST_ORDER_BIES: ListPrivateNetworksRequestOrderBy[];
|
|
10
|
+
/** Lists all values of the enum {@link ListSubnetOverlapsRequestOrderBy}. */
|
|
11
|
+
export declare const LIST_SUBNET_OVERLAPS_REQUEST_ORDER_BIES: ListSubnetOverlapsRequestOrderBy[];
|
|
12
|
+
/** Lists all values of the enum {@link ListSubnetsRequestOrderBy}. */
|
|
13
|
+
export declare const LIST_SUBNETS_REQUEST_ORDER_BIES: ListSubnetsRequestOrderBy[];
|
|
14
|
+
/** Lists all values of the enum {@link ListVPCConnectorsRequestOrderBy}. */
|
|
15
|
+
export declare const LIST_VPC_CONNECTORS_REQUEST_ORDER_BIES: ListVPCConnectorsRequestOrderBy[];
|
|
16
|
+
/** Lists all values of the enum {@link ListVPCsRequestOrderBy}. */
|
|
17
|
+
export declare const LIST_VP_CS_REQUEST_ORDER_BIES: ListVPCsRequestOrderBy[];
|
|
18
|
+
/** Lists all values of the enum {@link RouteType}. */
|
|
19
|
+
export declare const ROUTE_TYPES: RouteType[];
|
|
20
|
+
/** Lists all values of the enum {@link VPCConnectorStatus}. */
|
|
21
|
+
export declare const VPC_CONNECTOR_STATUSES: VPCConnectorStatus[];
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
//#region src/v2/constants.gen.ts
|
|
2
|
+
/** Lists all values of the enum {@link AclRuleProtocol}. */
|
|
3
|
+
const ACL_RULE_PROTOCOLS = [
|
|
4
|
+
"ANY",
|
|
5
|
+
"TCP",
|
|
6
|
+
"UDP",
|
|
7
|
+
"ICMP"
|
|
8
|
+
];
|
|
9
|
+
/** Lists all values of the enum {@link Action}. */
|
|
10
|
+
const ACTIONS = [
|
|
11
|
+
"unknown_action",
|
|
12
|
+
"accept",
|
|
13
|
+
"drop"
|
|
14
|
+
];
|
|
15
|
+
/** Lists all values of the enum {@link ListIngressRulesRequestOrderBy}. */
|
|
16
|
+
const LIST_INGRESS_RULES_REQUEST_ORDER_BIES = [
|
|
17
|
+
"created_at_asc",
|
|
18
|
+
"created_at_desc",
|
|
19
|
+
"source_asc",
|
|
20
|
+
"source_desc",
|
|
21
|
+
"prefix_len_asc",
|
|
22
|
+
"prefix_len_desc"
|
|
23
|
+
];
|
|
24
|
+
/** Lists all values of the enum {@link ListPrivateNetworksRequestOrderBy}. */
|
|
25
|
+
const LIST_PRIVATE_NETWORKS_REQUEST_ORDER_BIES = [
|
|
26
|
+
"created_at_asc",
|
|
27
|
+
"created_at_desc",
|
|
28
|
+
"name_asc",
|
|
29
|
+
"name_desc"
|
|
30
|
+
];
|
|
31
|
+
/** Lists all values of the enum {@link ListSubnetOverlapsRequestOrderBy}. */
|
|
32
|
+
const LIST_SUBNET_OVERLAPS_REQUEST_ORDER_BIES = [
|
|
33
|
+
"subnet_asc",
|
|
34
|
+
"subnet_desc",
|
|
35
|
+
"target_subnet_asc",
|
|
36
|
+
"target_subnet_desc"
|
|
37
|
+
];
|
|
38
|
+
/** Lists all values of the enum {@link ListSubnetsRequestOrderBy}. */
|
|
39
|
+
const LIST_SUBNETS_REQUEST_ORDER_BIES = ["created_at_asc", "created_at_desc"];
|
|
40
|
+
/** Lists all values of the enum {@link ListVPCConnectorsRequestOrderBy}. */
|
|
41
|
+
const LIST_VPC_CONNECTORS_REQUEST_ORDER_BIES = [
|
|
42
|
+
"created_at_asc",
|
|
43
|
+
"created_at_desc",
|
|
44
|
+
"name_asc",
|
|
45
|
+
"name_desc"
|
|
46
|
+
];
|
|
47
|
+
/** Lists all values of the enum {@link ListVPCsRequestOrderBy}. */
|
|
48
|
+
const LIST_VP_CS_REQUEST_ORDER_BIES = [
|
|
49
|
+
"created_at_asc",
|
|
50
|
+
"created_at_desc",
|
|
51
|
+
"name_asc",
|
|
52
|
+
"name_desc"
|
|
53
|
+
];
|
|
54
|
+
/** Lists all values of the enum {@link RouteType}. */
|
|
55
|
+
const ROUTE_TYPES = [
|
|
56
|
+
"unknown_route_type",
|
|
57
|
+
"subnet",
|
|
58
|
+
"default",
|
|
59
|
+
"custom",
|
|
60
|
+
"interlink",
|
|
61
|
+
"s2s_vpn"
|
|
62
|
+
];
|
|
63
|
+
/** Lists all values of the enum {@link VPCConnectorStatus}. */
|
|
64
|
+
const VPC_CONNECTOR_STATUSES = [
|
|
65
|
+
"unknown_vpc_connector_status",
|
|
66
|
+
"orphan",
|
|
67
|
+
"peered",
|
|
68
|
+
"conflict"
|
|
69
|
+
];
|
|
70
|
+
//#endregion
|
|
71
|
+
export { ACL_RULE_PROTOCOLS, ACTIONS, LIST_INGRESS_RULES_REQUEST_ORDER_BIES, LIST_PRIVATE_NETWORKS_REQUEST_ORDER_BIES, LIST_SUBNETS_REQUEST_ORDER_BIES, LIST_SUBNET_OVERLAPS_REQUEST_ORDER_BIES, LIST_VPC_CONNECTORS_REQUEST_ORDER_BIES, LIST_VP_CS_REQUEST_ORDER_BIES, ROUTE_TYPES, VPC_CONNECTOR_STATUSES };
|
package/dist/v2/index.gen.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { API, } from './api.gen.js';
|
|
2
|
+
export * from './constants.gen.js';
|
|
2
3
|
export * from './marshalling.gen.js';
|
|
3
|
-
export type { AclRule, AclRuleProtocol, Action,
|
|
4
|
+
export type { AclRule, AclRuleProtocol, Action, AddPrivateNetworkObjectStoragePrivateAccessRequest, AddPrivateNetworkObjectStoragePrivateAccessResponse, CreateIngressRuleRequest, CreatePrivateNetworkRequest, CreateRouteRequest, CreateVPCConnectorRequest, CreateVPCRequest, DeleteIngressRuleRequest, DeletePrivateNetworkObjectStoragePrivateAccessRequest, DeletePrivateNetworkRequest, DeleteRouteRequest, DeleteVPCConnectorRequest, DeleteVPCRequest, DisableObjectStoragePrivateAccessRequest, EnableCustomRoutesPropagationRequest, EnableDHCPRequest, EnableObjectStoragePrivateAccessRequest, EnableRoutingRequest, GetAclRequest, GetAclResponse, GetIngressRuleRequest, GetPrivateNetworkRequest, GetRouteRequest, GetVPCConnectorRequest, GetVPCRequest, IngressRule, ListIngressRulesRequest, ListIngressRulesRequestOrderBy, ListIngressRulesResponse, ListPrivateNetworksRequest, ListPrivateNetworksRequestOrderBy, ListPrivateNetworksResponse, ListSubnetOverlapsRequest, ListSubnetOverlapsRequestOrderBy, ListSubnetOverlapsResponse, ListSubnetOverlapsResponseSubnetOverlap, ListSubnetsRequest, ListSubnetsRequestOrderBy, ListSubnetsResponse, ListVPCConnectorsRequest, ListVPCConnectorsRequestOrderBy, ListVPCConnectorsResponse, ListVPCsRequest, ListVPCsRequestOrderBy, ListVPCsResponse, PrivateNetwork, Route, RouteType, SetAclRequest, SetAclResponse, SetPrivateNetworksObjectStoragePrivateAccessRequest, SetPrivateNetworksObjectStoragePrivateAccessResponse, Subnet, UpdateIngressRuleRequest, UpdatePrivateNetworkRequest, UpdateRouteRequest, UpdateVPCConnectorRequest, UpdateVPCRequest, VPC, VPCConnector, VPCConnectorPeerInfo, VPCConnectorStatus, } from './types.gen.js';
|
|
4
5
|
export * as ValidationRules from './validation-rules.gen.js';
|
package/dist/v2/index.gen.js
CHANGED
|
@@ -1,25 +1,36 @@
|
|
|
1
1
|
import { __exportAll } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
-
import {
|
|
2
|
+
import { marshalAddPrivateNetworkObjectStoragePrivateAccessRequest, marshalCreateIngressRuleRequest, marshalCreatePrivateNetworkRequest, marshalCreateRouteRequest, marshalCreateVPCConnectorRequest, marshalCreateVPCRequest, marshalSetAclRequest, marshalSetPrivateNetworksObjectStoragePrivateAccessRequest, marshalUpdateIngressRuleRequest, marshalUpdatePrivateNetworkRequest, marshalUpdateRouteRequest, marshalUpdateVPCConnectorRequest, marshalUpdateVPCRequest, unmarshalAddPrivateNetworkObjectStoragePrivateAccessResponse, unmarshalGetAclResponse, unmarshalIngressRule, unmarshalListIngressRulesResponse, unmarshalListPrivateNetworksResponse, unmarshalListSubnetOverlapsResponse, unmarshalListSubnetsResponse, unmarshalListVPCConnectorsResponse, unmarshalListVPCsResponse, unmarshalPrivateNetwork, unmarshalRoute, unmarshalSetAclResponse, unmarshalSetPrivateNetworksObjectStoragePrivateAccessResponse, unmarshalVPC, unmarshalVPCConnector } from "./marshalling.gen.js";
|
|
3
3
|
import { API } from "./api.gen.js";
|
|
4
|
+
import { ACL_RULE_PROTOCOLS, ACTIONS, LIST_INGRESS_RULES_REQUEST_ORDER_BIES, LIST_PRIVATE_NETWORKS_REQUEST_ORDER_BIES, LIST_SUBNETS_REQUEST_ORDER_BIES, LIST_SUBNET_OVERLAPS_REQUEST_ORDER_BIES, LIST_VPC_CONNECTORS_REQUEST_ORDER_BIES, LIST_VP_CS_REQUEST_ORDER_BIES, ROUTE_TYPES, VPC_CONNECTOR_STATUSES } from "./constants.gen.js";
|
|
4
5
|
import { validation_rules_gen_exports } from "./validation-rules.gen.js";
|
|
5
6
|
//#region src/v2/index.gen.ts
|
|
6
7
|
var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
8
|
+
ACL_RULE_PROTOCOLS: () => ACL_RULE_PROTOCOLS,
|
|
9
|
+
ACTIONS: () => ACTIONS,
|
|
7
10
|
API: () => API,
|
|
11
|
+
LIST_INGRESS_RULES_REQUEST_ORDER_BIES: () => LIST_INGRESS_RULES_REQUEST_ORDER_BIES,
|
|
12
|
+
LIST_PRIVATE_NETWORKS_REQUEST_ORDER_BIES: () => LIST_PRIVATE_NETWORKS_REQUEST_ORDER_BIES,
|
|
13
|
+
LIST_SUBNETS_REQUEST_ORDER_BIES: () => LIST_SUBNETS_REQUEST_ORDER_BIES,
|
|
14
|
+
LIST_SUBNET_OVERLAPS_REQUEST_ORDER_BIES: () => LIST_SUBNET_OVERLAPS_REQUEST_ORDER_BIES,
|
|
15
|
+
LIST_VPC_CONNECTORS_REQUEST_ORDER_BIES: () => LIST_VPC_CONNECTORS_REQUEST_ORDER_BIES,
|
|
16
|
+
LIST_VP_CS_REQUEST_ORDER_BIES: () => LIST_VP_CS_REQUEST_ORDER_BIES,
|
|
17
|
+
ROUTE_TYPES: () => ROUTE_TYPES,
|
|
18
|
+
VPC_CONNECTOR_STATUSES: () => VPC_CONNECTOR_STATUSES,
|
|
8
19
|
ValidationRules: () => validation_rules_gen_exports,
|
|
9
|
-
|
|
20
|
+
marshalAddPrivateNetworkObjectStoragePrivateAccessRequest: () => marshalAddPrivateNetworkObjectStoragePrivateAccessRequest,
|
|
10
21
|
marshalCreateIngressRuleRequest: () => marshalCreateIngressRuleRequest,
|
|
11
22
|
marshalCreatePrivateNetworkRequest: () => marshalCreatePrivateNetworkRequest,
|
|
12
23
|
marshalCreateRouteRequest: () => marshalCreateRouteRequest,
|
|
13
24
|
marshalCreateVPCConnectorRequest: () => marshalCreateVPCConnectorRequest,
|
|
14
25
|
marshalCreateVPCRequest: () => marshalCreateVPCRequest,
|
|
15
26
|
marshalSetAclRequest: () => marshalSetAclRequest,
|
|
16
|
-
|
|
27
|
+
marshalSetPrivateNetworksObjectStoragePrivateAccessRequest: () => marshalSetPrivateNetworksObjectStoragePrivateAccessRequest,
|
|
17
28
|
marshalUpdateIngressRuleRequest: () => marshalUpdateIngressRuleRequest,
|
|
18
29
|
marshalUpdatePrivateNetworkRequest: () => marshalUpdatePrivateNetworkRequest,
|
|
19
30
|
marshalUpdateRouteRequest: () => marshalUpdateRouteRequest,
|
|
20
31
|
marshalUpdateVPCConnectorRequest: () => marshalUpdateVPCConnectorRequest,
|
|
21
32
|
marshalUpdateVPCRequest: () => marshalUpdateVPCRequest,
|
|
22
|
-
|
|
33
|
+
unmarshalAddPrivateNetworkObjectStoragePrivateAccessResponse: () => unmarshalAddPrivateNetworkObjectStoragePrivateAccessResponse,
|
|
23
34
|
unmarshalGetAclResponse: () => unmarshalGetAclResponse,
|
|
24
35
|
unmarshalIngressRule: () => unmarshalIngressRule,
|
|
25
36
|
unmarshalListIngressRulesResponse: () => unmarshalListIngressRulesResponse,
|
|
@@ -31,9 +42,9 @@ var index_gen_exports = /* @__PURE__ */ __exportAll({
|
|
|
31
42
|
unmarshalPrivateNetwork: () => unmarshalPrivateNetwork,
|
|
32
43
|
unmarshalRoute: () => unmarshalRoute,
|
|
33
44
|
unmarshalSetAclResponse: () => unmarshalSetAclResponse,
|
|
34
|
-
|
|
45
|
+
unmarshalSetPrivateNetworksObjectStoragePrivateAccessResponse: () => unmarshalSetPrivateNetworksObjectStoragePrivateAccessResponse,
|
|
35
46
|
unmarshalVPC: () => unmarshalVPC,
|
|
36
47
|
unmarshalVPCConnector: () => unmarshalVPCConnector
|
|
37
48
|
});
|
|
38
49
|
//#endregion
|
|
39
|
-
export { API, validation_rules_gen_exports as ValidationRules, index_gen_exports,
|
|
50
|
+
export { ACL_RULE_PROTOCOLS, ACTIONS, API, LIST_INGRESS_RULES_REQUEST_ORDER_BIES, LIST_PRIVATE_NETWORKS_REQUEST_ORDER_BIES, LIST_SUBNETS_REQUEST_ORDER_BIES, LIST_SUBNET_OVERLAPS_REQUEST_ORDER_BIES, LIST_VPC_CONNECTORS_REQUEST_ORDER_BIES, LIST_VP_CS_REQUEST_ORDER_BIES, ROUTE_TYPES, VPC_CONNECTOR_STATUSES, validation_rules_gen_exports as ValidationRules, index_gen_exports, marshalAddPrivateNetworkObjectStoragePrivateAccessRequest, marshalCreateIngressRuleRequest, marshalCreatePrivateNetworkRequest, marshalCreateRouteRequest, marshalCreateVPCConnectorRequest, marshalCreateVPCRequest, marshalSetAclRequest, marshalSetPrivateNetworksObjectStoragePrivateAccessRequest, marshalUpdateIngressRuleRequest, marshalUpdatePrivateNetworkRequest, marshalUpdateRouteRequest, marshalUpdateVPCConnectorRequest, marshalUpdateVPCRequest, unmarshalAddPrivateNetworkObjectStoragePrivateAccessResponse, unmarshalGetAclResponse, unmarshalIngressRule, unmarshalListIngressRulesResponse, unmarshalListPrivateNetworksResponse, unmarshalListSubnetOverlapsResponse, unmarshalListSubnetsResponse, unmarshalListVPCConnectorsResponse, unmarshalListVPCsResponse, unmarshalPrivateNetwork, unmarshalRoute, unmarshalSetAclResponse, unmarshalSetPrivateNetworksObjectStoragePrivateAccessResponse, unmarshalVPC, unmarshalVPCConnector };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { DefaultValues } from '@scaleway/sdk-client';
|
|
2
|
-
import type { PrivateNetwork, Route, IngressRule, VPCConnector, VPC,
|
|
2
|
+
import type { PrivateNetwork, Route, IngressRule, VPCConnector, VPC, AddPrivateNetworkObjectStoragePrivateAccessResponse, GetAclResponse, ListIngressRulesResponse, ListPrivateNetworksResponse, ListSubnetOverlapsResponse, ListSubnetsResponse, ListVPCConnectorsResponse, ListVPCsResponse, SetAclResponse, SetPrivateNetworksObjectStoragePrivateAccessResponse, AddPrivateNetworkObjectStoragePrivateAccessRequest, CreateIngressRuleRequest, CreatePrivateNetworkRequest, CreateRouteRequest, CreateVPCConnectorRequest, CreateVPCRequest, SetAclRequest, SetPrivateNetworksObjectStoragePrivateAccessRequest, UpdateIngressRuleRequest, UpdatePrivateNetworkRequest, UpdateRouteRequest, UpdateVPCConnectorRequest, UpdateVPCRequest } from './types.gen.js';
|
|
3
3
|
export declare const unmarshalPrivateNetwork: (data: unknown) => PrivateNetwork;
|
|
4
4
|
export declare const unmarshalRoute: (data: unknown) => Route;
|
|
5
5
|
export declare const unmarshalIngressRule: (data: unknown) => IngressRule;
|
|
6
6
|
export declare const unmarshalVPCConnector: (data: unknown) => VPCConnector;
|
|
7
7
|
export declare const unmarshalVPC: (data: unknown) => VPC;
|
|
8
|
-
export declare const
|
|
8
|
+
export declare const unmarshalAddPrivateNetworkObjectStoragePrivateAccessResponse: (data: unknown) => AddPrivateNetworkObjectStoragePrivateAccessResponse;
|
|
9
9
|
export declare const unmarshalGetAclResponse: (data: unknown) => GetAclResponse;
|
|
10
10
|
export declare const unmarshalListIngressRulesResponse: (data: unknown) => ListIngressRulesResponse;
|
|
11
11
|
export declare const unmarshalListPrivateNetworksResponse: (data: unknown) => ListPrivateNetworksResponse;
|
|
@@ -14,15 +14,15 @@ export declare const unmarshalListSubnetsResponse: (data: unknown) => ListSubnet
|
|
|
14
14
|
export declare const unmarshalListVPCConnectorsResponse: (data: unknown) => ListVPCConnectorsResponse;
|
|
15
15
|
export declare const unmarshalListVPCsResponse: (data: unknown) => ListVPCsResponse;
|
|
16
16
|
export declare const unmarshalSetAclResponse: (data: unknown) => SetAclResponse;
|
|
17
|
-
export declare const
|
|
18
|
-
export declare const
|
|
17
|
+
export declare const unmarshalSetPrivateNetworksObjectStoragePrivateAccessResponse: (data: unknown) => SetPrivateNetworksObjectStoragePrivateAccessResponse;
|
|
18
|
+
export declare const marshalAddPrivateNetworkObjectStoragePrivateAccessRequest: (request: AddPrivateNetworkObjectStoragePrivateAccessRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
19
19
|
export declare const marshalCreateIngressRuleRequest: (request: CreateIngressRuleRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
20
20
|
export declare const marshalCreatePrivateNetworkRequest: (request: CreatePrivateNetworkRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
21
21
|
export declare const marshalCreateRouteRequest: (request: CreateRouteRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
22
22
|
export declare const marshalCreateVPCConnectorRequest: (request: CreateVPCConnectorRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
23
23
|
export declare const marshalCreateVPCRequest: (request: CreateVPCRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
24
24
|
export declare const marshalSetAclRequest: (request: SetAclRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
25
|
-
export declare const
|
|
25
|
+
export declare const marshalSetPrivateNetworksObjectStoragePrivateAccessRequest: (request: SetPrivateNetworksObjectStoragePrivateAccessRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
26
26
|
export declare const marshalUpdateIngressRuleRequest: (request: UpdateIngressRuleRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
27
27
|
export declare const marshalUpdatePrivateNetworkRequest: (request: UpdatePrivateNetworkRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
28
28
|
export declare const marshalUpdateRouteRequest: (request: UpdateRouteRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
@@ -20,7 +20,7 @@ const unmarshalPrivateNetwork = (data) => {
|
|
|
20
20
|
createdAt: unmarshalDate(data.created_at),
|
|
21
21
|
defaultRoutePropagationEnabled: data.default_route_propagation_enabled,
|
|
22
22
|
dhcpEnabled: data.dhcp_enabled,
|
|
23
|
-
|
|
23
|
+
hasObjectStoragePrivateAccess: data.has_object_storage_private_access,
|
|
24
24
|
id: data.id,
|
|
25
25
|
name: data.name,
|
|
26
26
|
organizationId: data.organization_id,
|
|
@@ -101,19 +101,19 @@ const unmarshalVPC = (data) => {
|
|
|
101
101
|
id: data.id,
|
|
102
102
|
isDefault: data.is_default,
|
|
103
103
|
name: data.name,
|
|
104
|
+
objectStoragePrivateAccessEnabled: data.object_storage_private_access_enabled,
|
|
104
105
|
organizationId: data.organization_id,
|
|
105
106
|
privateNetworkCount: data.private_network_count,
|
|
106
107
|
projectId: data.project_id,
|
|
107
108
|
region: data.region,
|
|
108
109
|
routingEnabled: data.routing_enabled,
|
|
109
|
-
s3IntegrationEnabled: data.s3_integration_enabled,
|
|
110
110
|
tags: data.tags,
|
|
111
111
|
transitivityEnabled: data.transitivity_enabled,
|
|
112
112
|
updatedAt: unmarshalDate(data.updated_at)
|
|
113
113
|
};
|
|
114
114
|
};
|
|
115
|
-
const
|
|
116
|
-
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type '
|
|
115
|
+
const unmarshalAddPrivateNetworkObjectStoragePrivateAccessResponse = (data) => {
|
|
116
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'AddPrivateNetworkObjectStoragePrivateAccessResponse' failed as data isn't a dictionary.`);
|
|
117
117
|
return {
|
|
118
118
|
privateNetworkIds: data.private_network_ids,
|
|
119
119
|
vpcId: data.vpc_id
|
|
@@ -198,14 +198,14 @@ const unmarshalSetAclResponse = (data) => {
|
|
|
198
198
|
rules: unmarshalArrayOfObject(data.rules, unmarshalAclRule)
|
|
199
199
|
};
|
|
200
200
|
};
|
|
201
|
-
const
|
|
202
|
-
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type '
|
|
201
|
+
const unmarshalSetPrivateNetworksObjectStoragePrivateAccessResponse = (data) => {
|
|
202
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'SetPrivateNetworksObjectStoragePrivateAccessResponse' failed as data isn't a dictionary.`);
|
|
203
203
|
return {
|
|
204
204
|
privateNetworkIds: data.private_network_ids,
|
|
205
205
|
vpcId: data.vpc_id
|
|
206
206
|
};
|
|
207
207
|
};
|
|
208
|
-
const
|
|
208
|
+
const marshalAddPrivateNetworkObjectStoragePrivateAccessRequest = (request, defaults) => ({ private_network_id: request.privateNetworkId });
|
|
209
209
|
const marshalCreateIngressRuleRequest = (request, defaults) => ({
|
|
210
210
|
description: request.description,
|
|
211
211
|
nexthop_private_network_id: request.nexthopPrivateNetworkId,
|
|
@@ -260,7 +260,7 @@ const marshalSetAclRequest = (request, defaults) => ({
|
|
|
260
260
|
is_ipv6: request.isIpv6,
|
|
261
261
|
rules: request.rules.map((elt) => marshalAclRule(elt, defaults))
|
|
262
262
|
});
|
|
263
|
-
const
|
|
263
|
+
const marshalSetPrivateNetworksObjectStoragePrivateAccessRequest = (request, defaults) => ({ private_network_ids: request.privateNetworkIds });
|
|
264
264
|
const marshalUpdateIngressRuleRequest = (request, defaults) => ({
|
|
265
265
|
description: request.description,
|
|
266
266
|
nexthop_private_network_id: request.nexthopPrivateNetworkId,
|
|
@@ -290,4 +290,4 @@ const marshalUpdateVPCRequest = (request, defaults) => ({
|
|
|
290
290
|
tags: request.tags
|
|
291
291
|
});
|
|
292
292
|
//#endregion
|
|
293
|
-
export {
|
|
293
|
+
export { marshalAddPrivateNetworkObjectStoragePrivateAccessRequest, marshalCreateIngressRuleRequest, marshalCreatePrivateNetworkRequest, marshalCreateRouteRequest, marshalCreateVPCConnectorRequest, marshalCreateVPCRequest, marshalSetAclRequest, marshalSetPrivateNetworksObjectStoragePrivateAccessRequest, marshalUpdateIngressRuleRequest, marshalUpdatePrivateNetworkRequest, marshalUpdateRouteRequest, marshalUpdateVPCConnectorRequest, marshalUpdateVPCRequest, unmarshalAddPrivateNetworkObjectStoragePrivateAccessResponse, unmarshalGetAclResponse, unmarshalIngressRule, unmarshalListIngressRulesResponse, unmarshalListPrivateNetworksResponse, unmarshalListSubnetOverlapsResponse, unmarshalListSubnetsResponse, unmarshalListVPCConnectorsResponse, unmarshalListVPCsResponse, unmarshalPrivateNetwork, unmarshalRoute, unmarshalSetAclResponse, unmarshalSetPrivateNetworksObjectStoragePrivateAccessResponse, unmarshalVPC, unmarshalVPCConnector };
|
package/dist/v2/types.gen.d.ts
CHANGED
|
@@ -93,9 +93,9 @@ export interface PrivateNetwork {
|
|
|
93
93
|
*/
|
|
94
94
|
defaultRoutePropagationEnabled: boolean;
|
|
95
95
|
/**
|
|
96
|
-
* Defines whether this Private Network is enabled for
|
|
96
|
+
* Defines whether this Private Network is enabled for Object Storage private access.
|
|
97
97
|
*/
|
|
98
|
-
|
|
98
|
+
hasObjectStoragePrivateAccess: boolean;
|
|
99
99
|
}
|
|
100
100
|
export interface Route {
|
|
101
101
|
/**
|
|
@@ -358,31 +358,31 @@ export interface VPC {
|
|
|
358
358
|
*/
|
|
359
359
|
transitivityEnabled: boolean;
|
|
360
360
|
/**
|
|
361
|
-
* Defines whether the
|
|
361
|
+
* Defines whether the Object Storage private access is enabled for the VPC.
|
|
362
362
|
*/
|
|
363
|
-
|
|
363
|
+
objectStoragePrivateAccessEnabled: boolean;
|
|
364
364
|
}
|
|
365
|
-
export type
|
|
365
|
+
export type AddPrivateNetworkObjectStoragePrivateAccessRequest = {
|
|
366
366
|
/**
|
|
367
367
|
* Region to target. If none is passed will use default region from the config.
|
|
368
368
|
*/
|
|
369
369
|
region?: ScwRegion;
|
|
370
370
|
/**
|
|
371
|
-
* ID of the VPC containing the
|
|
371
|
+
* ID of the VPC containing the Object Storage private access.
|
|
372
372
|
*/
|
|
373
373
|
vpcId: string;
|
|
374
374
|
/**
|
|
375
|
-
* ID of the Private Network to add to the
|
|
375
|
+
* ID of the Private Network to add to the Object Storage private access.
|
|
376
376
|
*/
|
|
377
377
|
privateNetworkId: string;
|
|
378
378
|
};
|
|
379
|
-
export interface
|
|
379
|
+
export interface AddPrivateNetworkObjectStoragePrivateAccessResponse {
|
|
380
380
|
/**
|
|
381
|
-
* ID of the VPC containing the
|
|
381
|
+
* ID of the VPC containing the Object Storage private access.
|
|
382
382
|
*/
|
|
383
383
|
vpcId: string;
|
|
384
384
|
/**
|
|
385
|
-
* IDs of the Private Networks associated with the
|
|
385
|
+
* IDs of the Private Networks associated with the Object Storage private access.
|
|
386
386
|
*/
|
|
387
387
|
privateNetworkIds: string[];
|
|
388
388
|
}
|
|
@@ -538,27 +538,27 @@ export type DeleteIngressRuleRequest = {
|
|
|
538
538
|
*/
|
|
539
539
|
ruleId: string;
|
|
540
540
|
};
|
|
541
|
-
export type
|
|
541
|
+
export type DeletePrivateNetworkObjectStoragePrivateAccessRequest = {
|
|
542
542
|
/**
|
|
543
543
|
* Region to target. If none is passed will use default region from the config.
|
|
544
544
|
*/
|
|
545
545
|
region?: ScwRegion;
|
|
546
546
|
/**
|
|
547
|
-
*
|
|
547
|
+
* ID of the VPC containing the Object Storage private access.
|
|
548
|
+
*/
|
|
549
|
+
vpcId: string;
|
|
550
|
+
/**
|
|
551
|
+
* ID of the Private Network to remove from the Object Storage private access.
|
|
548
552
|
*/
|
|
549
553
|
privateNetworkId: string;
|
|
550
554
|
};
|
|
551
|
-
export type
|
|
555
|
+
export type DeletePrivateNetworkRequest = {
|
|
552
556
|
/**
|
|
553
557
|
* Region to target. If none is passed will use default region from the config.
|
|
554
558
|
*/
|
|
555
559
|
region?: ScwRegion;
|
|
556
560
|
/**
|
|
557
|
-
*
|
|
558
|
-
*/
|
|
559
|
-
vpcId: string;
|
|
560
|
-
/**
|
|
561
|
-
* ID of the Private Network to remove from the S3 Endpoint.
|
|
561
|
+
* Private Network ID.
|
|
562
562
|
*/
|
|
563
563
|
privateNetworkId: string;
|
|
564
564
|
};
|
|
@@ -592,13 +592,13 @@ export type DeleteVPCRequest = {
|
|
|
592
592
|
*/
|
|
593
593
|
vpcId: string;
|
|
594
594
|
};
|
|
595
|
-
export type
|
|
595
|
+
export type DisableObjectStoragePrivateAccessRequest = {
|
|
596
596
|
/**
|
|
597
597
|
* Region to target. If none is passed will use default region from the config.
|
|
598
598
|
*/
|
|
599
599
|
region?: ScwRegion;
|
|
600
600
|
/**
|
|
601
|
-
* ID of the VPC for which to disable
|
|
601
|
+
* ID of the VPC for which to disable Object Storage private access.
|
|
602
602
|
*/
|
|
603
603
|
vpcId: string;
|
|
604
604
|
};
|
|
@@ -622,29 +622,29 @@ export type EnableDHCPRequest = {
|
|
|
622
622
|
*/
|
|
623
623
|
privateNetworkId: string;
|
|
624
624
|
};
|
|
625
|
-
export type
|
|
625
|
+
export type EnableObjectStoragePrivateAccessRequest = {
|
|
626
626
|
/**
|
|
627
627
|
* Region to target. If none is passed will use default region from the config.
|
|
628
628
|
*/
|
|
629
629
|
region?: ScwRegion;
|
|
630
630
|
/**
|
|
631
|
-
* VPC
|
|
631
|
+
* ID of the VPC for which to enable Object Storage private access.
|
|
632
632
|
*/
|
|
633
633
|
vpcId: string;
|
|
634
|
+
/**
|
|
635
|
+
* IDs of the Private Networks for which to enable Object Storage private access.
|
|
636
|
+
*/
|
|
637
|
+
privateNetworkIds?: string[];
|
|
634
638
|
};
|
|
635
|
-
export type
|
|
639
|
+
export type EnableRoutingRequest = {
|
|
636
640
|
/**
|
|
637
641
|
* Region to target. If none is passed will use default region from the config.
|
|
638
642
|
*/
|
|
639
643
|
region?: ScwRegion;
|
|
640
644
|
/**
|
|
641
|
-
*
|
|
645
|
+
* VPC ID.
|
|
642
646
|
*/
|
|
643
647
|
vpcId: string;
|
|
644
|
-
/**
|
|
645
|
-
* IDs of the Private Networks for which to enable S3 integration.
|
|
646
|
-
*/
|
|
647
|
-
privateNetworkIds?: string[];
|
|
648
648
|
};
|
|
649
649
|
export type GetAclRequest = {
|
|
650
650
|
/**
|
|
@@ -810,9 +810,9 @@ export type ListPrivateNetworksRequest = {
|
|
|
810
810
|
*/
|
|
811
811
|
dhcpEnabled?: boolean;
|
|
812
812
|
/**
|
|
813
|
-
* Filter by whether
|
|
813
|
+
* Filter by whether Object Storage private access is enabled. When set, only matching Private Networks will be returned.
|
|
814
814
|
*/
|
|
815
|
-
|
|
815
|
+
objectStoragePrivateAccessEnabled?: boolean;
|
|
816
816
|
};
|
|
817
817
|
export interface ListPrivateNetworksResponse {
|
|
818
818
|
privateNetworks: PrivateNetwork[];
|
|
@@ -974,9 +974,9 @@ export type ListVPCsRequest = {
|
|
|
974
974
|
*/
|
|
975
975
|
routingEnabled?: boolean;
|
|
976
976
|
/**
|
|
977
|
-
* Defines whether to filter only for VPCs with
|
|
977
|
+
* Defines whether to filter only for VPCs with Object Storage private access enabled.
|
|
978
978
|
*/
|
|
979
|
-
|
|
979
|
+
objectStoragePrivateAccessEnabled?: boolean;
|
|
980
980
|
};
|
|
981
981
|
export interface ListVPCsResponse {
|
|
982
982
|
vpcs: VPC[];
|
|
@@ -1008,27 +1008,27 @@ export interface SetAclResponse {
|
|
|
1008
1008
|
rules: AclRule[];
|
|
1009
1009
|
defaultPolicy: Action;
|
|
1010
1010
|
}
|
|
1011
|
-
export type
|
|
1011
|
+
export type SetPrivateNetworksObjectStoragePrivateAccessRequest = {
|
|
1012
1012
|
/**
|
|
1013
1013
|
* Region to target. If none is passed will use default region from the config.
|
|
1014
1014
|
*/
|
|
1015
1015
|
region?: ScwRegion;
|
|
1016
1016
|
/**
|
|
1017
|
-
* ID of the VPC containing the
|
|
1017
|
+
* ID of the VPC containing the Object Storage private access.
|
|
1018
1018
|
*/
|
|
1019
1019
|
vpcId: string;
|
|
1020
1020
|
/**
|
|
1021
|
-
* IDs of the Private Networks to associate with the
|
|
1021
|
+
* IDs of the Private Networks to associate with the Object Storage private access.
|
|
1022
1022
|
*/
|
|
1023
1023
|
privateNetworkIds: string[];
|
|
1024
1024
|
};
|
|
1025
|
-
export interface
|
|
1025
|
+
export interface SetPrivateNetworksObjectStoragePrivateAccessResponse {
|
|
1026
1026
|
/**
|
|
1027
|
-
* ID of the VPC containing the
|
|
1027
|
+
* ID of the VPC containing the Object Storage private access.
|
|
1028
1028
|
*/
|
|
1029
1029
|
vpcId: string;
|
|
1030
1030
|
/**
|
|
1031
|
-
* IDs of the Private Networks associated with the
|
|
1031
|
+
* IDs of the Private Networks associated with the Object Storage private access.
|
|
1032
1032
|
*/
|
|
1033
1033
|
privateNetworkIds: string[];
|
|
1034
1034
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleway/sdk-vpc",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.15.0",
|
|
4
4
|
"description": "Scaleway SDK vpc",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@scaleway/random-name": "6.0.2",
|
|
36
|
-
"@scaleway/sdk-std": "2.
|
|
36
|
+
"@scaleway/sdk-std": "2.7.0"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@
|
|
40
|
-
"@
|
|
39
|
+
"@scaleway/sdk-client": "^2.6.0",
|
|
40
|
+
"@repo/configs": "^0.1.1"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@scaleway/sdk-client": "^2.6.0"
|