Skip to content

Commit

Permalink
feat: update generated APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
scaleway-bot committed Feb 6, 2025
1 parent d68d48c commit 835b4bb
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 14 deletions.
8 changes: 6 additions & 2 deletions packages/clients/src/api/ipam/v1/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
urlParams,
validatePathParam,
} from '../../../bridge'
import type { Region } from '../../../bridge'
import type { Region as ScwRegion } from '../../../bridge'
import {
marshalAttachIPRequest,
marshalBookIPRequest,
Expand Down Expand Up @@ -44,7 +44,11 @@ const jsonContentHeaders = {
*/
export class API extends ParentAPI {
/** Lists the available regions of the API. */
public static readonly LOCALITIES: Region[] = ['fr-par', 'nl-ams', 'pl-waw']
public static readonly LOCALITIES: ScwRegion[] = [
'fr-par',
'nl-ams',
'pl-waw',
]

/**
* Reserve a new IP. Reserve a new IP from the specified source. Currently IPs
Expand Down
26 changes: 14 additions & 12 deletions packages/clients/src/api/ipam/v1/types.gen.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// This file was automatically generated. DO NOT EDIT.
// If you have any remark or suggestion do not hesitate to open an issue.
import type { Region, Zone } from '../../../bridge'
import type { Region as ScwRegion, Zone as ScwZone } from '../../../bridge'

export type ListIPsRequestOrderBy =
| 'created_at_desc'
Expand Down Expand Up @@ -30,6 +30,8 @@ export type ResourceType =
| 'mgdb_instance'
| 'apple_silicon_server'
| 'apple_silicon_private_nic'
| 'serverless_container'
| 'serverless_function'

export interface Resource {
/** Type of resource the IP is attached to. */
Expand Down Expand Up @@ -108,17 +110,17 @@ export interface IP {
/** Array of reverses associated with the IP. */
reverses: Reverse[]
/** Region of the IP. */
region: Region
region: ScwRegion
/** Zone of the IP, if zonal. */
zone?: Zone
zone?: ScwZone
}

export type AttachIPRequest = {
/**
* Region to target. If none is passed will use default region from the
* config.
*/
region?: Region
region?: ScwRegion
/** IP ID. */
ipId: string
/** Custom resource to be attached to the IP. */
Expand All @@ -130,7 +132,7 @@ export type BookIPRequest = {
* Region to target. If none is passed will use default region from the
* config.
*/
region?: Region
region?: ScwRegion
/**
* When creating an IP in a Private Network, the Project must match the
* Private Network's Project.
Expand Down Expand Up @@ -165,7 +167,7 @@ export type DetachIPRequest = {
* Region to target. If none is passed will use default region from the
* config.
*/
region?: Region
region?: ScwRegion
/** IP ID. */
ipId: string
/** Custom resource currently attached to the IP. */
Expand All @@ -177,7 +179,7 @@ export type GetIPRequest = {
* Region to target. If none is passed will use default region from the
* config.
*/
region?: Region
region?: ScwRegion
/** IP ID. */
ipId: string
}
Expand All @@ -187,7 +189,7 @@ export type ListIPsRequest = {
* Region to target. If none is passed will use default region from the
* config.
*/
region?: Region
region?: ScwRegion
/** Sort order of the returned IPs. */
orderBy?: ListIPsRequestOrderBy
/** Page number to return, from the paginated results. */
Expand Down Expand Up @@ -281,7 +283,7 @@ export type MoveIPRequest = {
* Region to target. If none is passed will use default region from the
* config.
*/
region?: Region
region?: ScwRegion
/** IP ID. */
ipId: string
/** Custom resource currently attached to the IP. */
Expand All @@ -295,7 +297,7 @@ export type ReleaseIPRequest = {
* Region to target. If none is passed will use default region from the
* config.
*/
region?: Region
region?: ScwRegion
/** IP ID. */
ipId: string
}
Expand All @@ -305,7 +307,7 @@ export type ReleaseIPSetRequest = {
* Region to target. If none is passed will use default region from the
* config.
*/
region?: Region
region?: ScwRegion
ipIds?: string[]
}

Expand All @@ -314,7 +316,7 @@ export type UpdateIPRequest = {
* Region to target. If none is passed will use default region from the
* config.
*/
region?: Region
region?: ScwRegion
/** IP ID. */
ipId: string
/** Tags for the IP. */
Expand Down

0 comments on commit 835b4bb

Please sign in to comment.