diff --git a/services/stackitmarketplace/api_default.go b/services/stackitmarketplace/api_default.go index 4e3b04b01..36df22382 100644 --- a/services/stackitmarketplace/api_default.go +++ b/services/stackitmarketplace/api_default.go @@ -522,6 +522,7 @@ type ApiListCatalogProductsRequest struct { cursor *string limit *float32 locale *string + filter *string } // A pagination cursor that represents a position in the dataset. If given, results will be returned from the item after the cursor. If not given, results will be returned from the beginning. @@ -545,6 +546,13 @@ func (r ApiListCatalogProductsRequest) Locale(locale string) ApiListCatalogProdu return r } +// Filter the products based on attributes. E.g `deliveryMethod eq \"SAAS\"`. The supported attributes are `deliveryMethod`, `priceType`, `category`, `vendorId`, `vendorName`, and `name`. The supported operators are `eq`. Filters can be joined with `and` or `or`. + +func (r ApiListCatalogProductsRequest) Filter(filter string) ApiListCatalogProductsRequest { + r.filter = &filter + return r +} + func (r ApiListCatalogProductsRequest) Execute() (*ListCatalogProductsResponse, error) { var ( localVarHTTPMethod = http.MethodGet @@ -573,6 +581,9 @@ func (r ApiListCatalogProductsRequest) Execute() (*ListCatalogProductsResponse, if r.locale != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "locale", r.locale, "") } + if r.filter != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "filter", r.filter, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{}