File tree Expand file tree Collapse file tree 3 files changed +22
-2
lines changed
packages/clients/src/api/marketplace/v2 Expand file tree Collapse file tree 3 files changed +22
-2
lines changed Original file line number Diff line number Diff 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 ) ,
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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
125127export 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
135149export type GetLocalImageRequest = {
You can’t perform that action at this time.
0 commit comments