Skip to content

Commit 10c5510

Browse files
authored
Merge branch 'main' into v1.6322.0
2 parents e84f8a9 + 40b4616 commit 10c5510

File tree

3 files changed

+0
-64
lines changed

3 files changed

+0
-64
lines changed

packages/clients/src/api/vpc/v2/api.gen.ts

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import {
1414
marshalCreateVPCRequest,
1515
marshalDeleteSubnetsRequest,
1616
marshalSetAclRequest,
17-
marshalSetSubnetsRequest,
1817
marshalUpdatePrivateNetworkRequest,
1918
marshalUpdateRouteRequest,
2019
marshalUpdateVPCRequest,
@@ -27,7 +26,6 @@ import {
2726
unmarshalPrivateNetwork,
2827
unmarshalRoute,
2928
unmarshalSetAclResponse,
30-
unmarshalSetSubnetsResponse,
3129
unmarshalVPC,
3230
} from './marshalling.gen'
3331
import type {
@@ -58,8 +56,6 @@ import type {
5856
Route,
5957
SetAclRequest,
6058
SetAclResponse,
61-
SetSubnetsRequest,
62-
SetSubnetsResponse,
6359
UpdatePrivateNetworkRequest,
6460
UpdateRouteRequest,
6561
UpdateVPCRequest,
@@ -361,27 +357,6 @@ export class API extends ParentAPI {
361357
listSubnets = (request: Readonly<ListSubnetsRequest> = {}) =>
362358
enrichForPagination('subnets', this.pageOfListSubnets, request)
363359

364-
/**
365-
* Set a Private Network's subnets. Set subnets for an existing Private
366-
* Network. Note that the method is PUT and not PATCH. Any existing subnets
367-
* will be removed in favor of the new specified set of subnets.
368-
*
369-
* @param request - The request {@link SetSubnetsRequest}
370-
* @returns A Promise of SetSubnetsResponse
371-
*/
372-
setSubnets = (request: Readonly<SetSubnetsRequest>) =>
373-
this.client.fetch<SetSubnetsResponse>(
374-
{
375-
body: JSON.stringify(
376-
marshalSetSubnetsRequest(request, this.client.settings),
377-
),
378-
headers: jsonContentHeaders,
379-
method: 'PUT',
380-
path: `/vpc/v2/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/private-networks/${validatePathParam('privateNetworkId', request.privateNetworkId)}/subnets`,
381-
},
382-
unmarshalSetSubnetsResponse,
383-
)
384-
385360
/**
386361
* Add subnets to a Private Network. Add new subnets to an existing Private
387362
* Network.

packages/clients/src/api/vpc/v2/marshalling.gen.ts

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ import type {
2424
Route,
2525
SetAclRequest,
2626
SetAclResponse,
27-
SetSubnetsRequest,
28-
SetSubnetsResponse,
2927
Subnet,
3028
UpdatePrivateNetworkRequest,
3129
UpdateRouteRequest,
@@ -237,20 +235,6 @@ export const unmarshalSetAclResponse = (data: unknown): SetAclResponse => {
237235
} as SetAclResponse
238236
}
239237

240-
export const unmarshalSetSubnetsResponse = (
241-
data: unknown,
242-
): SetSubnetsResponse => {
243-
if (!isJSONObject(data)) {
244-
throw new TypeError(
245-
`Unmarshalling the type 'SetSubnetsResponse' failed as data isn't a dictionary.`,
246-
)
247-
}
248-
249-
return {
250-
subnets: data.subnets,
251-
} as SetSubnetsResponse
252-
}
253-
254238
export const marshalAddSubnetsRequest = (
255239
request: AddSubnetsRequest,
256240
defaults: DefaultValues,
@@ -322,13 +306,6 @@ export const marshalSetAclRequest = (
322306
rules: request.rules.map(elt => marshalAclRule(elt, defaults)),
323307
})
324308

325-
export const marshalSetSubnetsRequest = (
326-
request: SetSubnetsRequest,
327-
defaults: DefaultValues,
328-
): Record<string, unknown> => ({
329-
subnets: request.subnets,
330-
})
331-
332309
export const marshalUpdatePrivateNetworkRequest = (
333310
request: UpdatePrivateNetworkRequest,
334311
defaults: DefaultValues,

packages/clients/src/api/vpc/v2/types.gen.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -500,22 +500,6 @@ export interface SetAclResponse {
500500
defaultPolicy: Action
501501
}
502502

503-
export type SetSubnetsRequest = {
504-
/**
505-
* Region to target. If none is passed will use default region from the
506-
* config.
507-
*/
508-
region?: ScwRegion
509-
/** Private Network ID. */
510-
privateNetworkId: string
511-
/** Private Network subnets CIDR. */
512-
subnets?: string[]
513-
}
514-
515-
export interface SetSubnetsResponse {
516-
subnets: string[]
517-
}
518-
519503
export type UpdatePrivateNetworkRequest = {
520504
/**
521505
* Region to target. If none is passed will use default region from the

0 commit comments

Comments
 (0)