From a6a7aab70df323e80c098da507f5bf55c8932593 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Fri, 12 Sep 2025 12:41:37 +0000 Subject: [PATCH] feat: update generated APIs --- packages_generated/instance/src/v1/api.gen.ts | 14 ++++ .../instance/src/v1/content.gen.ts | 5 +- .../instance/src/v1/index.gen.ts | 1 + .../instance/src/v1/types.gen.ts | 16 ++++- packages_generated/s2s_vpn/src/index.gen.ts | 6 ++ .../s2s_vpn/src/v1alpha1/index.gen.ts | 65 +++++++++++++++++++ 6 files changed, 103 insertions(+), 4 deletions(-) create mode 100644 packages_generated/s2s_vpn/src/index.gen.ts create mode 100644 packages_generated/s2s_vpn/src/v1alpha1/index.gen.ts diff --git a/packages_generated/instance/src/v1/api.gen.ts b/packages_generated/instance/src/v1/api.gen.ts index 5145c3b16..10e5ed16e 100644 --- a/packages_generated/instance/src/v1/api.gen.ts +++ b/packages_generated/instance/src/v1/api.gen.ts @@ -203,6 +203,7 @@ import type { MigrationPlan, PlanBlockMigrationRequest, PrivateNIC, + ReleaseIpToIpamRequest, ServerActionRequest, ServerActionResponse, ServerCompatibleTypes, @@ -1646,4 +1647,17 @@ The endpoint also returns the validation_key, which must be provided to the [Mig method: 'POST', path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/block-migration/check-organization-quotas`, }) + + /** + * Releases the reserved IP without deleting the reservation.. **The IP remains available in IPAM**, which means that it is still reserved by the Organization, and can be reattached to another resource (Instance or other product). + * + * @param request - The request {@link ReleaseIpToIpamRequest} + */ + releaseIpToIpam = (request: Readonly) => + this.client.fetch({ + body: '{}', + headers: jsonContentHeaders, + method: 'POST', + path: `/instance/v1/zones/${validatePathParam('zone', request.zone ?? this.client.settings.defaultZone)}/ips/${validatePathParam('ipId', request.ipId)}/release-to-ipam`, + }) } diff --git a/packages_generated/instance/src/v1/content.gen.ts b/packages_generated/instance/src/v1/content.gen.ts index 5a5e01166..86340a85d 100644 --- a/packages_generated/instance/src/v1/content.gen.ts +++ b/packages_generated/instance/src/v1/content.gen.ts @@ -57,17 +57,18 @@ export const TASK_TRANSIENT_STATUSES: TaskStatus[] = [ /** Lists transient statutes of the enum {@link VolumeServerState}. */ export const VOLUME_SERVER_TRANSIENT_STATUSES: VolumeServerState[] = [ 'snapshotting', - 'fetching', 'resizing', + 'fetching', 'saving', 'hotsyncing', + 'attaching', ] /** Lists transient statutes of the enum {@link VolumeState}. */ export const VOLUME_TRANSIENT_STATUSES: VolumeState[] = [ 'snapshotting', 'fetching', - 'resizing', 'saving', + 'resizing', 'hotsyncing', ] diff --git a/packages_generated/instance/src/v1/index.gen.ts b/packages_generated/instance/src/v1/index.gen.ts index b01887993..98e1b077a 100644 --- a/packages_generated/instance/src/v1/index.gen.ts +++ b/packages_generated/instance/src/v1/index.gen.ts @@ -116,6 +116,7 @@ export type { PlanBlockMigrationRequest, PrivateNIC, PrivateNICState, + ReleaseIpToIpamRequest, SecurityGroup, SecurityGroupPolicy, SecurityGroupRule, diff --git a/packages_generated/instance/src/v1/types.gen.ts b/packages_generated/instance/src/v1/types.gen.ts index 9e6d5c7a9..45f8e4ca8 100644 --- a/packages_generated/instance/src/v1/types.gen.ts +++ b/packages_generated/instance/src/v1/types.gen.ts @@ -108,10 +108,11 @@ export type TaskStatus = 'pending' | 'started' | 'success' | 'failure' | 'retry' export type VolumeServerState = | 'available' | 'snapshotting' - | 'fetching' | 'resizing' + | 'fetching' | 'saving' | 'hotsyncing' + | 'attaching' | 'error' export type VolumeServerVolumeType = @@ -124,8 +125,8 @@ export type VolumeState = | 'available' | 'snapshotting' | 'fetching' - | 'resizing' | 'saving' + | 'resizing' | 'hotsyncing' | 'error' @@ -2447,6 +2448,17 @@ export type PlanBlockMigrationRequest = { snapshotId?: string } +export type ReleaseIpToIpamRequest = { + /** + * Zone to target. If none is passed will use default zone from the config. + */ + zone?: ScwZone + /** + * ID of the IP you want to release from the Instance but retain in IPAM. + */ + ipId: string +} + export type ServerActionRequest = { /** * Zone to target. If none is passed will use default zone from the config. diff --git a/packages_generated/s2s_vpn/src/index.gen.ts b/packages_generated/s2s_vpn/src/index.gen.ts new file mode 100644 index 000000000..b98c2003d --- /dev/null +++ b/packages_generated/s2s_vpn/src/index.gen.ts @@ -0,0 +1,6 @@ +/** + * This file is automatically generated + * PLEASE DO NOT EDIT HERE + */ + +export * as S2sVpnv1alpha1 from './v1alpha1/index.gen' diff --git a/packages_generated/s2s_vpn/src/v1alpha1/index.gen.ts b/packages_generated/s2s_vpn/src/v1alpha1/index.gen.ts new file mode 100644 index 000000000..60026aa42 --- /dev/null +++ b/packages_generated/s2s_vpn/src/v1alpha1/index.gen.ts @@ -0,0 +1,65 @@ +// This file was automatically generated. DO NOT EDIT. +// If you have any remark or suggestion do not hesitate to open an issue. +export { API } from './api.gen' +export * from './content.gen' +export * from './marshalling.gen' +export type { + BgpSession, + BgpSessionStatus, + Connection, + ConnectionCipher, + ConnectionDhGroup, + ConnectionEncryption, + ConnectionInitiationPolicy, + ConnectionIntegrity, + ConnectionStatus, + CreateConnectionRequest, + CreateConnectionRequestBgpConfig, + CreateConnectionRequestInitiationPolicy, + CreateConnectionResponse, + CreateCustomerGatewayRequest, + CreateRoutingPolicyRequest, + CreateVpnGatewayRequest, + CreateVpnGatewayRequestPublicConfig, + CustomerGateway, + DeleteConnectionRequest, + DeleteCustomerGatewayRequest, + DeleteRoutingPolicyRequest, + DeleteVpnGatewayRequest, + DetachRoutingPolicyRequest, + DisableRoutePropagationRequest, + EnableRoutePropagationRequest, + GatewayType, + GetConnectionRequest, + GetCustomerGatewayRequest, + GetRoutingPolicyRequest, + GetVpnGatewayRequest, + ListConnectionsRequest, + ListConnectionsRequestOrderBy, + ListConnectionsResponse, + ListCustomerGatewaysRequest, + ListCustomerGatewaysRequestOrderBy, + ListCustomerGatewaysResponse, + ListRoutingPoliciesRequest, + ListRoutingPoliciesRequestOrderBy, + ListRoutingPoliciesResponse, + ListVpnGatewaysRequest, + ListVpnGatewaysRequestOrderBy, + ListVpnGatewaysResponse, + ListVpnGatewayTypesRequest, + ListVpnGatewayTypesResponse, + RenewConnectionPskRequest, + RenewConnectionPskResponse, + RoutingPolicy, + SetRoutingPolicyRequest, + TunnelStatus, + UpdateConnectionRequest, + UpdateCustomerGatewayRequest, + UpdateRoutingPolicyRequest, + UpdateVpnGatewayRequest, + VpnGateway, + VpnGatewayPrivateConfig, + VpnGatewayPublicConfig, + VpnGatewayStatus, +} from './types.gen' +export * as ValidationRules from './validation-rules.gen'