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
48 changes: 24 additions & 24 deletions packages/clients/src/api/account/v2/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,69 +7,69 @@ export type ListProjectsRequestOrderBy =
| 'name_asc'
| 'name_desc'

/** List projects response */
/** List projects response. */
export interface ListProjectsResponse {
/** The total number of projects */
/** The total number of projects. */
totalCount: number
/** The paginated returned projects */
/** The paginated returned projects. */
projects: Project[]
}

/** Project */
/** Project. */
export interface Project {
/** The ID of the project */
/** The ID of the project. */
id: string
/** The name of the project */
/** The name of the project. */
name: string
/** The organization ID of the project */
/** The organization ID of the project. */
organizationId: string
/** The creation date of the project */
/** The creation date of the project. */
createdAt?: Date
/** The update date of the project */
/** The update date of the project. */
updatedAt?: Date
/** The description of the project */
/** The description of the project. */
description: string
}

export type CreateProjectRequest = {
/** The name of the project */
/** The name of the project. */
name: string
/** The organization ID of the project */
/** The organization ID of the project. */
organizationId?: string
/** The description of the project */
/** The description of the project. */
description?: string
}

export type ListProjectsRequest = {
/** The organization ID of the project */
/** The organization ID of the project. */
organizationId?: string
/** The name of the project */
/** The name of the project. */
name?: string
/** The page number for the returned projects */
/** The page number for the returned projects. */
page?: number
/** The maximum number of project per page */
/** The maximum number of project per page. */
pageSize?: number
/** The sort order of the returned projects */
/** The sort order of the returned projects. */
orderBy?: ListProjectsRequestOrderBy
/** Filter out by a list of project ID */
/** Filter out by a list of project ID. */
projectIds?: string[]
}

export type GetProjectRequest = {
/** The project ID of the project */
/** The project ID of the project. */
projectId?: string
}

export type DeleteProjectRequest = {
/** The project ID of the project */
/** The project ID of the project. */
projectId?: string
}

export type UpdateProjectRequest = {
/** The project ID of the project */
/** The project ID of the project. */
projectId?: string
/** The name of the project */
/** The name of the project. */
name?: string
/** The description of the project */
/** The description of the project. */
description?: string
}
128 changes: 64 additions & 64 deletions packages/clients/src/api/applesilicon/v1alpha1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,81 +22,81 @@ export type ServerTypeStock =
| 'low_stock'
| 'high_stock'

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

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

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

/** Os */
/** Os. */
export interface OS {
/** The OS unique ID */
/** The OS unique ID. */
id: string
/** The OS name */
/** The OS name. */
name: string
/** The OS name as it should be displayed */
/** The OS name as it should be displayed. */
label: string
/** URL of the image */
/** URL of the image. */
imageUrl: string
/** List of compatible server types */
/** List of compatible server types. */
compatibleServerTypes: string[]
}

/** Server */
/** Server. */
export interface Server {
/** UUID of the server */
/** UUID of the server. */
id: string
/** Type of the server */
/** Type of the server. */
type: string
/** Name of the server */
/** Name of the server. */
name: string
/** Project this server is associated with */
/** Project this server is associated with. */
projectId: string
/** Organization this server is associated with */
/** Organization this server is associated with. */
organizationId: string
/** IPv4 address of the server */
/** IPv4 address of the server. */
ip: string
/** URL of the VNC */
/** URL of the VNC. */
vncUrl: string
/** Current status of the server */
/** Current status of the server. */
status: ServerStatus
/** The date at which the server was created */
/** The date at which the server was created. */
createdAt?: Date
/** The date at which the server was last updated */
/** The date at which the server was last updated. */
updatedAt?: Date
/** The date at which the server was last deleted */
/** The date at which the server was last deleted. */
deletableAt?: Date
/** The zone of the server */
/** The zone of the server. */
zone: Zone
}

/** Server type */
/** Server type. */
export interface ServerType {
/** CPU description */
/** CPU description. */
cpu?: ServerTypeCPU
/** Size of the local disk of the server */
/** Size of the local disk of the server. */
disk?: ServerTypeDisk
/** Name of the type */
/** Name of the type. */
name: string
/** Size of memory available */
/** Size of memory available. */
memory?: ServerTypeMemory
/** Current stock */
/** Current stock. */
stock: ServerTypeStock
/** Minimum duration of the lease in seconds (example. 3.4s). */
minimumLeaseDuration?: string
Expand All @@ -118,105 +118,105 @@ export interface ServerTypeMemory {
}

export type ListServerTypesRequest = {
/** Zone to target. If none is passed will use default zone from the config */
/** Zone to target. If none is passed will use default zone from the config. */
zone?: Zone
}

export type GetServerTypeRequest = {
/** Zone to target. If none is passed will use default zone from the config */
/** Zone to target. If none is passed will use default zone from the config. */
zone?: Zone
/** Server type identifier */
/** Server type identifier. */
serverType: string
}

export type CreateServerRequest = {
/** Zone to target. If none is passed will use default zone from the config */
/** Zone to target. If none is passed will use default zone from the config. */
zone?: Zone
/** Create a server with this given name */
/** Create a server with this given name. */
name?: string
/** Create a server in the given project ID */
/** Create a server in the given project ID. */
projectId?: string
/** Create a server of the given type */
/** Create a server of the given type. */
type: string
}

export type ListServersRequest = {
/** Zone to target. If none is passed will use default zone from the config */
/** Zone to target. If none is passed will use default zone from the config. */
zone?: Zone
/** The sort order of the returned servers */
/** The sort order of the returned servers. */
orderBy?: ListServersRequestOrderBy
/** List only servers of this project ID */
/** List only servers of this project ID. */
projectId?: string
/** List only servers of this organization ID */
/** List only servers of this organization ID. */
organizationId?: string
/** A positive integer to choose the page to return */
/** A 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
* return
* return.
*/
pageSize?: number
}

export type ListOSRequest = {
/** Zone to target. If none is passed will use default zone from the config */
/** 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 */
/** A 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
* return
* return.
*/
pageSize?: number
/** List of compatible server type */
/** List of compatible server type. */
serverType?: string
/**
* Filter os by name (for eg. "11.1" will return "11.1.2" and "11.1" but not
* "12")
* "12").
*/
name?: string
}

export type GetOSRequest = {
/** Zone to target. If none is passed will use default zone from the config */
/** Zone to target. If none is passed will use default zone from the config. */
zone?: Zone
/** UUID of the OS you want to get */
/** UUID of the OS you want to get. */
osId: string
}

export type GetServerRequest = {
/** Zone to target. If none is passed will use default zone from the config */
/** Zone to target. If none is passed will use default zone from the config. */
zone?: Zone
/** UUID of the server you want to get */
/** UUID of the server you want to get. */
serverId: string
}

export type UpdateServerRequest = {
/** Zone to target. If none is passed will use default zone from the config */
/** Zone to target. If none is passed will use default zone from the config. */
zone?: Zone
/** UUID of the server you want to update */
/** UUID of the server you want to update. */
serverId: string
/** Updated name for your server */
/** Updated name for your server. */
name: string
}

export type DeleteServerRequest = {
/** Zone to target. If none is passed will use default zone from the config */
/** Zone to target. If none is passed will use default zone from the config. */
zone?: Zone
/** UUID of the server you want to delete */
/** UUID of the server you want to delete. */
serverId: string
}

export type RebootServerRequest = {
/** Zone to target. If none is passed will use default zone from the config */
/** Zone to target. If none is passed will use default zone from the config. */
zone?: Zone
/** UUID of the server you want to reboot */
/** UUID of the server you want to reboot. */
serverId: string
}

export type ReinstallServerRequest = {
/** Zone to target. If none is passed will use default zone from the config */
/** Zone to target. If none is passed will use default zone from the config. */
zone?: Zone
/** UUID of the server you want to reinstall */
/** UUID of the server you want to reinstall. */
serverId: string
}
Loading