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
22 changes: 19 additions & 3 deletions cost/v1/cost.proto
Original file line number Diff line number Diff line change
Expand Up @@ -1814,6 +1814,10 @@ message GetCostReductionResponse {
}

message GetExportRISPRequest {
message Columns {
repeated string values = 1;
}

// Required. For AWS, "ri" or "sp".
string type = 1;
// Usually the language of the user information is used,
Expand All @@ -1822,13 +1826,26 @@ message GetExportRISPRequest {
string language = 2 [(google.api.field_behavior) = OPTIONAL];
// Required. Include expired
bool includeExpired = 3;
// Optional. Target export month in YYYY-MM format. Defaults to current month if empty.
string month = 4 [(google.api.field_behavior) = OPTIONAL];
// Optional. Columns to include in the CSV output. Empty means all columns.
repeated string columns = 5 [(google.api.field_behavior) = OPTIONAL];
// Optional report names to generate.
// Valid values: ri_summary, sp_summary, ri_usageaccount, sp_usageaccount.
repeated string queries = 6 [(google.api.field_behavior) = OPTIONAL];
// Optional per-query columns map. When set, values override `columns` for the matching query.
map<string, Columns> columnsByQuery = 7;
// Optional. When true, only the invoice-finalization gate is checked and no export email is sent.
bool checkOnly = 8;
}

// Request message for the ExportBillingGroupInvoiceServiceDiscounts rpc.
message GetExportRISPResponse {
// csv direct download link
// expires in 10 minutes
string downloadLink = 1;
// True when the export CSV was sent as an email attachment to configured recipients.
bool emailSent = 2;
}

// Request message for GetUtilization
Expand Down Expand Up @@ -2088,9 +2105,6 @@ message ExportCostFiltersFileRequest {
// Required. Filter Id.
string filterId = 2;

// Required. The channel ids to use for notifications.
repeated string notificationChannelIds = 8;

// Optional. The UTC date to start streaming data from. If not set, the first day of the current month will be used. Format: `yyyymmdd`. The oldest supported date is `20200101`.
string startTime = 3;

Expand All @@ -2107,6 +2121,8 @@ message ExportCostFiltersFileRequest {

// Optional. If set to true, stream will include resource tags.
bool includeTags = 7;
// Optional. List of notification channel IDs to send the export result to.
repeated string notificationChannelIds = 8;
}

// Response message for the ExportCostFiltersFile rpc.
Expand Down
58 changes: 51 additions & 7 deletions openapiv2/apidocs.swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -23991,13 +23991,6 @@
"CostExportCostFiltersFileBody": {
"type": "object",
"properties": {
"notificationChannelIds": {
"type": "array",
"items": {
"type": "string"
},
"description": "Required. The channel ids to use for notifications."
},
"startTime": {
"type": "string",
"description": "Optional. The UTC date to start streaming data from. If not set, the first day of the current month will be used. Format: `yyyymmdd`. The oldest supported date is `20200101`."
Expand All @@ -24017,6 +24010,13 @@
"includeTags": {
"type": "boolean",
"description": "Optional. If set to true, stream will include resource tags."
},
"notificationChannelIds": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional. List of notification channel IDs to send the export result to."
}
},
"description": "Request message for the ExportCostFiltersFile rpc."
Expand Down Expand Up @@ -25806,6 +25806,17 @@
}
}
},
"GetExportRISPRequestColumns": {
"type": "object",
"properties": {
"values": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"GetOnboardingStatusResponseOnboardingStatus": {
"type": "string",
"enum": [
Expand Down Expand Up @@ -42548,6 +42559,35 @@
"includeExpired": {
"type": "boolean",
"title": "Required. Include expired"
},
"month": {
"type": "string",
"description": "Optional. Target export month in YYYY-MM format. Defaults to current month if empty."
},
"columns": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional. Columns to include in the CSV output. Empty means all columns."
},
"queries": {
"type": "array",
"items": {
"type": "string"
},
"description": "Optional report names to generate.\nValid values: ri_summary, sp_summary, ri_usageaccount, sp_usageaccount."
},
"columnsByQuery": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/GetExportRISPRequestColumns"
},
"description": "Optional per-query columns map. When set, values override `columns` for the matching query."
},
"checkOnly": {
"type": "boolean",
"description": "Optional. When true, only the invoice-finalization gate is checked and no export email is sent."
}
}
},
Expand All @@ -42557,6 +42597,10 @@
"downloadLink": {
"type": "string",
"title": "csv direct download link\nexpires in 10 minutes"
},
"emailSent": {
"type": "boolean",
"description": "True when the export CSV was sent as an email attachment to configured recipients."
}
},
"description": "Request message for the ExportBillingGroupInvoiceServiceDiscounts rpc."
Expand Down
Loading