Skip to content
Closed
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
11 changes: 10 additions & 1 deletion .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103692,6 +103692,7 @@ components:
Filter expression applied to the recommendations when `attributes.filter` is omitted.
When supplied, `attributes.filter` overrides this value, including when empty. If the
resulting filter is empty, it defaults to `*`. Scope, view, and pagination still apply.
example: "@resource_table:aws_ec2_instance"
type: string
type:
$ref: "#/components/schemas/RecommendationsFilterRequestDataType"
Expand All @@ -103717,6 +103718,7 @@ components:
type: array
view:
description: Active view name (for example, `active`, `dismissed`, `open`, `in-progress`, or `completed`).
example: active
type: string
type: object
RecommendationsFilterRequestDataType:
Expand All @@ -103729,24 +103731,31 @@ components:
x-enum-varnames:
- RECOMMENDATIONS_FILTER
RecommendationsFilterRequestScope:
description: Recommendations scope. Defaults to `ccm`; use `experiment` for experimental recommendations or `*` for both.
description: |-
Recommendations scope. Defaults to `ccm`; use `experiment` for experimental recommendations or `*` for both.
An empty value is treated as `ccm`.
enum:
- ccm
- experiment
- "*"
- ""
example: ccm
type: string
x-enum-varnames:
- CCM
- EXPERIMENT
- ALL
- EMPTY
RecommendationsFilterRequestSortItems:
description: A single sort clause applied to the cost recommendations result set.
properties:
expression:
description: Field to sort by (for example, `@potential_daily_savings`).
example: "@potential_daily_savings"
type: string
order:
description: Sort direction, either `ASC` or `DESC`.
example: DESC
type: string
type: object
RecommendationsPageMeta:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ public RecommendationsFilterRequestDataAttributes scope(RecommendationsFilterReq

/**
* Recommendations scope. Defaults to <code>ccm</code>; use <code>experiment</code> for
* experimental recommendations or <code>*</code> for both.
* experimental recommendations or <code>*</code> for both. An empty value is treated as <code>ccm
* </code>.
*
* @return scope
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,23 @@

/**
* Recommendations scope. Defaults to <code>ccm</code>; use <code>experiment</code> for experimental
* recommendations or <code>*</code> for both.
* recommendations or <code>*</code> for both. An empty value is treated as <code>ccm</code>.
*/
@JsonSerialize(
using = RecommendationsFilterRequestScope.RecommendationsFilterRequestScopeSerializer.class)
public class RecommendationsFilterRequestScope extends ModelEnum<String> {

private static final Set<String> allowedValues =
new HashSet<String>(Arrays.asList("ccm", "experiment", "*"));
new HashSet<String>(Arrays.asList("ccm", "experiment", "*", ""));

public static final RecommendationsFilterRequestScope CCM =
new RecommendationsFilterRequestScope("ccm");
public static final RecommendationsFilterRequestScope EXPERIMENT =
new RecommendationsFilterRequestScope("experiment");
public static final RecommendationsFilterRequestScope ALL =
new RecommendationsFilterRequestScope("*");
public static final RecommendationsFilterRequestScope EMPTY =
new RecommendationsFilterRequestScope("");

RecommendationsFilterRequestScope(String value) {
super(value, allowedValues);
Expand Down
Loading