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
1 change: 1 addition & 0 deletions packages/clients/src/api/marketplace/v2/api.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ export class API extends ParentAPI {
'page_size',
request.pageSize ?? this.client.settings.defaultPageSize,
],
['type', request.type ?? 'unknown_type'],
['zone', request.zone ?? this.client.settings.defaultZone],
...Object.entries(
resolveOneOf([
Expand Down
1 change: 1 addition & 0 deletions packages/clients/src/api/marketplace/v2/index.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@ export type {
ListVersionsRequestOrderBy,
ListVersionsResponse,
LocalImage,
LocalImageType,
Version,
} from './types.gen'
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export const unmarshalLocalImage = (data: unknown) => {
compatibleCommercialTypes: data.compatible_commercial_types,
id: data.id,
label: data.label,
type: data.type,
zone: data.zone,
} as LocalImage
}
Expand Down
5 changes: 5 additions & 0 deletions packages/clients/src/api/marketplace/v2/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ export type ListLocalImagesRequestOrderBy = 'created_at_asc' | 'created_at_desc'

export type ListVersionsRequestOrderBy = 'created_at_asc' | 'created_at_desc'

export type LocalImageType = 'unknown_type' | 'instance_local' | 'instance_sbs'

export interface Category {
id: string
name: string
Expand Down Expand Up @@ -80,6 +82,8 @@ export interface LocalImage {
zone: Zone
/** Image label this image belongs to. */
label: string
/** Type of this local image. */
type: LocalImageType
}

/** Version. */
Expand Down Expand Up @@ -150,6 +154,7 @@ export type ListLocalImagesRequest = {
*/
imageLabel?: string
zone?: Zone
type?: LocalImageType
}

export type GetLocalImageRequest = {
Expand Down