Skip to content
Open
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
6 changes: 6 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -125771,6 +125771,12 @@ paths:
name: filter[provider]
schema:
type: string
- description: When `true`, only return metrics for currently enabled accounts. When omitted or `false`, return all metrics present in tag metadata. Metrics not recognized by Cloud Cost Management are always excluded.
example: true
in: query
name: filter[enabled_metrics_only]
schema:
type: boolean
responses:
"200":
content:
Expand Down
4 changes: 4 additions & 0 deletions private/bdd_runner/src/support/scenarios_model_mapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8078,6 +8078,10 @@ export const ScenariosModelMappings: { [key: string]: OperationMapping } = {
type: "string",
format: "",
},
filterEnabledMetricsOnly: {
type: "boolean",
format: "",
},
operationResponseType: "CostMetricsResponse",
},
"CloudCostManagementApi.V2.ListCostTagMetadataMonths": {
Expand Down
14 changes: 14 additions & 0 deletions services/cloud_cost_management/src/v2/CloudCostManagementApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2811,6 +2811,7 @@ export class CloudCostManagementApiRequestFactory extends BaseAPIRequestFactory
public async listCostTagMetadataMetrics(
filterMonth: string,
filterProvider?: string,
filterEnabledMetricsOnly?: boolean,
_options?: Configuration,
): Promise<RequestContext> {
const _config = _options || this.configuration;
Expand Down Expand Up @@ -2866,6 +2867,13 @@ export class CloudCostManagementApiRequestFactory extends BaseAPIRequestFactory
"",
);
}
if (filterEnabledMetricsOnly !== undefined) {
requestContext.setQueryParam(
"filter[enabled_metrics_only]",
serialize(filterEnabledMetricsOnly, TypingInfo, "boolean", ""),
"",
);
}

// Apply auth methods
applySecurityAuthentication(_config, requestContext, [
Expand Down Expand Up @@ -8549,6 +8557,11 @@ export interface CloudCostManagementApiListCostTagMetadataMetricsRequest {
* @type string
*/
filterProvider?: string;
/**
* When `true`, only return metrics for currently enabled accounts. When omitted or `false`, return all metrics present in tag metadata. Metrics not recognized by Cloud Cost Management are always excluded.
* @type boolean
*/
filterEnabledMetricsOnly?: boolean;
}

export interface CloudCostManagementApiListCostTagMetadataMonthsRequest {
Expand Down Expand Up @@ -9808,6 +9821,7 @@ export class CloudCostManagementApi {
this.requestFactory.listCostTagMetadataMetrics(
param.filterMonth,
param.filterProvider,
param.filterEnabledMetricsOnly,
options,
);
return requestContextPromise.then((requestContext) => {
Expand Down
Loading