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
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export class PublicCatalogAPI extends ParentAPI {
request.pageSize ?? this.client.settings.defaultPageSize,
],
['product_types', request.productTypes],
['status', request.status],
...Object.entries(
resolveOneOf<boolean | ScwRegion | ScwZone | string>([
{ param: 'global', value: request.global },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ export { PublicCatalogAPI } from './api.gen.js'
export * from './marshalling.gen.js'
export type {
ListPublicCatalogProductsRequestProductType,
ListPublicCatalogProductsRequestStatus,
ListPublicCatalogProductsResponse,
PublicCatalogApiListPublicCatalogProductsRequest,
PublicCatalogProduct,
Expand Down
17 changes: 17 additions & 0 deletions packages_generated/product_catalog/src/v2alpha1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,17 @@ export type ListPublicCatalogProductsRequestProductType =
| 'block_storage'
| 'object_storage'

export type ListPublicCatalogProductsRequestStatus =
| 'unknown_status'
| 'public_beta'
| 'preview'
| 'general_availability'
| 'end_of_deployment'
| 'end_of_support'
| 'end_of_sale'
| 'end_of_life'
| 'retired'

export type PublicCatalogProductPropertiesHardwareCPUArch =
| 'unknown_arch'
| 'x64'
Expand All @@ -30,6 +41,8 @@ export type PublicCatalogProductStatus =
| 'end_of_deployment'
| 'end_of_support'
| 'end_of_sale'
| 'end_of_life'
| 'retired'

export type PublicCatalogProductUnitOfMeasureCountableUnit =
| 'unknown_countable_unit'
Expand Down Expand Up @@ -458,4 +471,8 @@ export type PublicCatalogApiListPublicCatalogProductsRequest = {
* One-of ('locality'): at most one of 'global', 'region', 'zone', 'datacenter' could be set.
*/
datacenter?: string
/**
* The lists of filtered product status, if empty only products with status public_beta, general_availability, preview, end_of_deployment, end_of_support, end_of_sale, end_of_life or retired will be returned.
*/
status?: ListPublicCatalogProductsRequestStatus[]
}
Loading