Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 28 additions & 12 deletions packages/clients/src/api/applesilicon/v1alpha1/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ const jsonContentHeaders = {
/**
* Apple silicon.
*
* Scaleway Apple silicon M1 as-a-Service is built using the latest generation
* of Apple Mac mini hardware (fifth generation).
* Scaleway Apple silicon as-a-Service is built using the latest generation of
* Apple Mac mini hardware (fifth generation).
*
* These dedicated Mac mini M1s are designed for developing, building, testing,
* and signing applications for Apple devices, including iPhones, iPads, Mac
Expand All @@ -69,7 +69,9 @@ export class API extends ParentAPI {
public static readonly LOCALITIES: Zone[] = ['fr-par-3']

/**
* List all server types technical details.
* List all technical details about Apple silicon server types available in
* the specified zone. Since there is only one Availability Zone for Apple
* silicon servers, the targeted value is `fr-par-3`.
*
* @param request - The request {@link ListServerTypesRequest}
* @returns A Promise of ListServerTypesResponse
Expand Down Expand Up @@ -105,7 +107,8 @@ export class API extends ParentAPI {
)

/**
* Create a server.
* Create a new server in the targeted zone, specifying its configuration
* including name and type.
*
* @param request - The request {@link CreateServerRequest}
* @returns A Promise of Server
Expand Down Expand Up @@ -149,7 +152,9 @@ export class API extends ParentAPI {
)

/**
* List all servers.
* List all servers in the specified zone. By default, returned servers in the
* list are ordered by creation date in ascending order, though this can be
* modified via the `order_by` field.
*
* @param request - The request {@link ListServersRequest}
* @returns A Promise of ListServersResponse
Expand Down Expand Up @@ -179,7 +184,8 @@ export class API extends ParentAPI {
)

/**
* List all Operating System (OS).
* List all Operating System (OS). The response will include the total number
* of OS as well as their associated IDs, names and labels.
*
* @param request - The request {@link ListOSRequest}
* @returns A Promise of ListOSResponse
Expand All @@ -188,7 +194,8 @@ export class API extends ParentAPI {
enrichForPagination('os', this.pageOfListOS, request)

/**
* Get an Operating System (OS).
* Get an Operating System (OS). The response will include the OS's unique ID
* as well as its name and label.
*
* @param request - The request {@link GetOSRequest}
* @returns A Promise of OS
Expand All @@ -206,7 +213,9 @@ export class API extends ParentAPI {
)

/**
* Get a server.
* Retrieve information about an existing Apple silicon server, specified by
* its server ID. Its full details, including name, status and IP address, are
* returned in the response object.
*
* @param request - The request {@link GetServerRequest}
* @returns A Promise of Server
Expand Down Expand Up @@ -244,7 +253,8 @@ export class API extends ParentAPI {
)

/**
* Update a server.
* Update the parameters of an existing Apple silicon server, specified by its
* server ID.
*
* @param request - The request {@link UpdateServerRequest}
* @returns A Promise of Server
Expand All @@ -266,7 +276,10 @@ export class API extends ParentAPI {
)

/**
* Delete a server.
* Delete an existing Apple silicon server, specified by its server ID.
* Deleting a server is permanent, and cannot be undone. Note that the minimum
* allocation period for Apple silicon-as-a-service is 24 hours, meaning you
* cannot delete your server prior to that.
*
* @param request - The request {@link DeleteServerRequest}
*/
Expand All @@ -280,7 +293,7 @@ export class API extends ParentAPI {
})

/**
* Reboot a server.
* Reboot an existing Apple silicon server, specified by its server ID.
*
* @param request - The request {@link RebootServerRequest}
* @returns A Promise of Server
Expand All @@ -300,7 +313,10 @@ export class API extends ParentAPI {
)

/**
* Reinstall a server.
* Reinstall an existing Apple silicon server (specified by its server ID)
* from a new image (OS). All the data on the disk is deleted and all
* configuration is reset to the defailt configuration values of the image
* (OS).
*
* @param request - The request {@link ReinstallServerRequest}
* @returns A Promise of Server
Expand Down
42 changes: 21 additions & 21 deletions packages/clients/src/api/applesilicon/v1alpha1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,33 +24,33 @@ export type ServerTypeStock =

/** List os response. */
export interface ListOSResponse {
/** Total number of os. */
/** Total number of OS. */
totalCount: number
/** List of OS. */
os: OS[]
}

/** List server types response. */
export interface ListServerTypesResponse {
/** The available server types. */
/** Available server types. */
serverTypes: ServerType[]
}

/** List servers response. */
export interface ListServersResponse {
/** The total number of servers. */
/** Total number of servers. */
totalCount: number
/** The paginated returned servers. */
/** Paginated returned servers. */
servers: Server[]
}

/** Os. */
export interface OS {
/** The OS unique ID. */
/** Unique ID of the OS. */
id: string
/** The OS name. */
/** OS name. */
name: string
/** The OS name as it should be displayed. */
/** OS name as it should be displayed. */
label: string
/** URL of the image. */
imageUrl: string
Expand All @@ -76,13 +76,13 @@ export interface Server {
vncUrl: string
/** Current status of the server. */
status: ServerStatus
/** The date at which the server was created. */
/** Date on which the server was created. */
createdAt?: Date
/** The date at which the server was last updated. */
/** Date on which the server was last updated. */
updatedAt?: Date
/** The date at which the server was last deleted. */
/** Date on which the server was last deleted. */
deletableAt?: Date
/** The zone of the server. */
/** Zone of the server. */
zone: Zone
}

Expand Down Expand Up @@ -143,16 +143,16 @@ export type CreateServerRequest = {
export type ListServersRequest = {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: Zone
/** The sort order of the returned servers. */
/** Sort order of the returned servers. */
orderBy?: ListServersRequestOrderBy
/** List only servers of this project ID. */
/** Only list servers of this project ID. */
projectId?: string
/** List only servers of this organization ID. */
/** Only list servers of this Organization ID. */
organizationId?: string
/** A positive integer to choose the page to return. */
/** Positive integer to choose the page to return. */
page?: number
/**
* A positive integer lower or equal to 100 to select the number of items to
* Positive integer lower or equal to 100 to select the number of items to
* return.
*/
pageSize?: number
Expand All @@ -161,18 +161,18 @@ export type ListServersRequest = {
export type ListOSRequest = {
/** Zone to target. If none is passed will use default zone from the config. */
zone?: Zone
/** A positive integer to choose the page to return. */
/** Positive integer to choose the page to return. */
page?: number
/**
* A positive integer lower or equal to 100 to select the number of items to
* Positive integer lower or equal to 100 to select the number of items to
* return.
*/
pageSize?: number
/** List of compatible server type. */
/** List of compatible server types. */
serverType?: string
/**
* Filter os by name (for eg. "11.1" will return "11.1.2" and "11.1" but not
* "12").
* Filter OS by name (note that "11.1" will return "11.1.2" and "11.1" but not
* "12")).
*/
name?: string
}
Expand Down