Skip to content

Commit ef438cd

Browse files
authored
feat(marketplace): add label listing and extra information to listLocalImages (#382)
1 parent 77597b6 commit ef438cd

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
lines changed

packages/clients/src/api/marketplace/v2/api.gen.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ export class API extends ParentAPI {
132132
'page_size',
133133
request.pageSize ?? this.client.settings.defaultPageSize,
134134
],
135+
['zone', request.zone ?? this.client.settings.defaultZone],
135136
...Object.entries(
136137
resolveOneOf([
137138
{
@@ -142,6 +143,10 @@ export class API extends ParentAPI {
142143
param: 'version_id',
143144
value: request.versionId,
144145
},
146+
{
147+
param: 'image_label',
148+
value: request.imageLabel,
149+
},
145150
]),
146151
),
147152
),

packages/clients/src/api/marketplace/v2/marshalling.gen.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ export const unmarshalLocalImage = (data: unknown) => {
6161
arch: data.arch,
6262
compatibleCommercialTypes: data.compatible_commercial_types,
6363
id: data.id,
64+
label: data.label,
6465
zone: data.zone,
6566
} as LocalImage
6667
}

packages/clients/src/api/marketplace/v2/types.gen.ts

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ export interface LocalImage {
7272
arch: string
7373
/** Availability Zone where this local image is available */
7474
zone: Zone
75+
/** Image label this image belongs to */
76+
label: string
7577
}
7678

7779
/** Version */
@@ -123,13 +125,25 @@ export type GetVersionRequest = {
123125
}
124126

125127
export type ListLocalImagesRequest = {
126-
/** One-of ('scope'): at most one of 'imageId', 'versionId' could be set. */
128+
/**
129+
* One-of ('scope'): at most one of 'imageId', 'versionId', 'imageLabel' could
130+
* be set.
131+
*/
127132
imageId?: string
128-
/** One-of ('scope'): at most one of 'imageId', 'versionId' could be set. */
133+
/**
134+
* One-of ('scope'): at most one of 'imageId', 'versionId', 'imageLabel' could
135+
* be set.
136+
*/
129137
versionId?: string
130138
pageSize?: number
131139
page?: number
132140
orderBy?: ListLocalImagesRequestOrderBy
141+
/**
142+
* One-of ('scope'): at most one of 'imageId', 'versionId', 'imageLabel' could
143+
* be set.
144+
*/
145+
imageLabel?: string
146+
zone?: Zone
133147
}
134148

135149
export type GetLocalImageRequest = {

0 commit comments

Comments
 (0)