Skip to content

Commit fd3f6e3

Browse files
committed
feat: update generated APIs
1 parent 72000c0 commit fd3f6e3

File tree

5 files changed

+45
-2
lines changed

5 files changed

+45
-2
lines changed

packages_generated/billing/src/v2beta1/index.gen.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,5 @@ export type {
3030
ListTaxesRequestOrderBy,
3131
ListTaxesResponse,
3232
ListTaxesResponseTax,
33+
RedeemCouponRequest,
3334
} from './types.gen'

packages_generated/instance/src/v1/index.gen.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ export type {
131131
ServerActionRequestVolumeBackupTemplate,
132132
ServerActionResponse,
133133
ServerCompatibleTypes,
134+
ServerFilesystem,
135+
ServerFilesystemState,
134136
ServerIp,
135137
ServerIpIpFamily,
136138
ServerIpProvisioningMode,

packages_generated/interlink/src/v1beta1/api.gen.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import {
1717
marshalAttachVpcRequest,
1818
marshalCreateLinkRequest,
1919
marshalCreateRoutingPolicyRequest,
20+
marshalDetachRoutingPolicyRequest,
2021
marshalUpdateLinkRequest,
2122
marshalUpdateRoutingPolicyRequest,
2223
unmarshalDedicatedConnection,
@@ -447,7 +448,9 @@ export class API extends ParentAPI {
447448
detachRoutingPolicy = (request: Readonly<DetachRoutingPolicyRequest>) =>
448449
this.client.fetch<Link>(
449450
{
450-
body: '{}',
451+
body: JSON.stringify(
452+
marshalDetachRoutingPolicyRequest(request, this.client.settings),
453+
),
451454
headers: jsonContentHeaders,
452455
method: 'POST',
453456
path: `/interlink/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/links/${validatePathParam('linkId', request.linkId)}/detach-routing-policy`,
@@ -499,6 +502,7 @@ export class API extends ParentAPI {
499502
method: 'GET',
500503
path: `/interlink/v1beta1/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/routing-policies`,
501504
urlParams: urlParams(
505+
['ipv6', request.ipv6],
502506
['name', request.name],
503507
['order_by', request.orderBy],
504508
['organization_id', request.organizationId],

packages_generated/interlink/src/v1beta1/marshalling.gen.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import type {
1414
CreateLinkRequest,
1515
CreateRoutingPolicyRequest,
1616
DedicatedConnection,
17+
DetachRoutingPolicyRequest,
1718
Link,
1819
ListDedicatedConnectionsResponse,
1920
ListLinksResponse,
@@ -119,6 +120,8 @@ export const unmarshalLink = (data: unknown): Link => {
119120
projectId: data.project_id,
120121
region: data.region,
121122
routingPolicyId: data.routing_policy_id,
123+
routingPolicyV4Id: data.routing_policy_v4_id,
124+
routingPolicyV6Id: data.routing_policy_v6_id,
122125
scwBgpConfig: data.scw_bgp_config
123126
? unmarshalBgpConfig(data.scw_bgp_config)
124127
: undefined,
@@ -178,6 +181,7 @@ export const unmarshalRoutingPolicy = (data: unknown): RoutingPolicy => {
178181
return {
179182
createdAt: unmarshalDate(data.created_at),
180183
id: data.id,
184+
isIpv6: data.is_ipv6,
181185
name: data.name,
182186
organizationId: data.organization_id,
183187
prefixFilterIn: data.prefix_filter_in,
@@ -302,13 +306,21 @@ export const marshalCreateRoutingPolicyRequest = (
302306
request: CreateRoutingPolicyRequest,
303307
defaults: DefaultValues,
304308
): Record<string, unknown> => ({
309+
is_ipv6: request.isIpv6,
305310
name: request.name,
306311
prefix_filter_in: request.prefixFilterIn,
307312
prefix_filter_out: request.prefixFilterOut,
308313
project_id: request.projectId ?? defaults.defaultProjectId,
309314
tags: request.tags,
310315
})
311316

317+
export const marshalDetachRoutingPolicyRequest = (
318+
request: DetachRoutingPolicyRequest,
319+
defaults: DefaultValues,
320+
): Record<string, unknown> => ({
321+
routing_policy_id: request.routingPolicyId,
322+
})
323+
312324
export const marshalUpdateLinkRequest = (
313325
request: UpdateLinkRequest,
314326
defaults: DefaultValues,

packages_generated/interlink/src/v1beta1/types.gen.ts

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ export interface Link {
197197
*/
198198
vpcId?: string
199199
/**
200-
* ID of the routing policy attached to the link.
200+
* @deprecated Deprecated. Use routing_policy_v4_id or routing_policy_v6_id instead.
201201
*/
202202
routingPolicyId?: string
203203
/**
@@ -236,6 +236,14 @@ export interface Link {
236236
* BGP configuration on peer's side (on-premises or other hosting provider).
237237
*/
238238
peerBgpConfig?: BgpConfig
239+
/**
240+
* ID of the routing policy IPv4 attached to the link.
241+
*/
242+
routingPolicyV4Id?: string
243+
/**
244+
* ID of the routing policy IPv6 attached to the link.
245+
*/
246+
routingPolicyV6Id?: string
239247
/**
240248
* Region of the link.
241249
*/
@@ -345,6 +353,10 @@ export interface RoutingPolicy {
345353
* Last modification date of the routing policy.
346354
*/
347355
updatedAt?: Date
356+
/**
357+
* IP prefixes version of the routing policy.
358+
*/
359+
isIpv6: boolean
348360
/**
349361
* Region of the routing policy.
350362
*/
@@ -449,6 +461,10 @@ export type CreateRoutingPolicyRequest = {
449461
* IP prefix filters to advertise to the peer (ranges of routes to advertise).
450462
*/
451463
prefixFilterOut?: string[]
464+
/**
465+
* IP prefixes version of the routing policy.
466+
*/
467+
isIpv6: boolean
452468
}
453469

454470
export type DeleteLinkRequest = {
@@ -482,6 +498,10 @@ export type DetachRoutingPolicyRequest = {
482498
* ID of the link to detach a routing policy from.
483499
*/
484500
linkId: string
501+
/**
502+
* ID of the routing policy to be detached.
503+
*/
504+
routingPolicyId: string
485505
}
486506

487507
export type DetachVpcRequest = {
@@ -837,6 +857,10 @@ export type ListRoutingPoliciesRequest = {
837857
* Tags to filter for.
838858
*/
839859
tags?: string[]
860+
/**
861+
* Filter for the routing policies based on IP prefixes version.
862+
*/
863+
ipv6?: boolean
840864
}
841865

842866
export interface ListRoutingPoliciesResponse {

0 commit comments

Comments
 (0)