From c13b0dae95555ba94d4e48aab4c42d003c0627b8 Mon Sep 17 00:00:00 2001 From: cq-bot Date: Mon, 22 Apr 2024 14:25:14 +0000 Subject: [PATCH] fix: Generate CloudQuery Go API Client from `spec.json` --- models.gen.go | 5 ++++- spec.json | 7 +++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/models.gen.go b/models.gen.go index 751d0a8..1b31227 100644 --- a/models.gen.go +++ b/models.gen.go @@ -1679,16 +1679,19 @@ type UsageCurrent struct { // PluginTeam The unique name for the team. PluginTeam TeamName `json:"plugin_team"` - // RemainingRows The estimated number of rows remaining in the plugin's quota for the calendar month at the current price per row. This includes both free and paid rows up to the monthly limit defined for the plugin. + // RemainingRows Deprecated - this field used to contain the estimated remaining rows but now returns 1 to indicate rows are remaining or 0 if there are no more remaining rows. + // Deprecated: RemainingRows *int64 `json:"remaining_rows,omitempty"` // RemainingUsd The remaining USD amount in the plugin's quota for the calendar month. + // Deprecated: RemainingUSD *string `json:"remaining_usd,omitempty"` // Rows The number of rows used by the plugin in the calendar month. Rows int64 `json:"rows"` // Usd The USD amount used by the plugin in the calendar month, rounded to two decimal places. + // Deprecated: USD string `json:"usd"` } diff --git a/spec.json b/spec.json index 3170879..35e67d9 100644 --- a/spec.json +++ b/spec.json @@ -7889,23 +7889,26 @@ "description": "The number of rows used by the plugin in the calendar month." }, "usd": { + "deprecated": true, "type": "string", "example": "43.95", "description": "The USD amount used by the plugin in the calendar month, rounded to two decimal places.", "x-go-name": "USD" }, "remaining_usd": { + "deprecated": true, "type": "string", "example": "56.05", "description": "The remaining USD amount in the plugin's quota for the calendar month.", "x-go-name": "RemainingUSD" }, "remaining_rows": { - "example": 1000000, + "deprecated": true, + "example": 1, "type": "integer", "format": "int64", "minimum": 0, - "description": "The estimated number of rows remaining in the plugin's quota for the calendar month at the current price per row. This includes both free and paid rows up to the monthly limit defined for the plugin." + "description": "Deprecated - this field used to contain the estimated remaining rows but now returns 1 to indicate rows are remaining or 0 if there are no more remaining rows." } } },