From 94e57d1abf0464a97e8737d2b01d055be2eacc76 Mon Sep 17 00:00:00 2001 From: cq-bot Date: Wed, 7 Aug 2024 13:49:08 +0000 Subject: [PATCH] fix: Generate CloudQuery Go API Client from `spec.json` --- models.gen.go | 3 +++ spec.json | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/models.gen.go b/models.gen.go index 2fb7172..aa05f6a 100644 --- a/models.gen.go +++ b/models.gen.go @@ -306,6 +306,9 @@ type APIKey struct { // Key API key. Will be shown only in the response when creating the key. Key *string `json:"key,omitempty"` + // LastAccessAt Timestamp at which API key was last used - accurate to the day only. + LastAccessAt *time.Time `json:"last_access_at,omitempty"` + // Name Name of the API key Name APIKeyName `json:"name"` diff --git a/spec.json b/spec.json index 62a8860..71d2e5f 100644 --- a/spec.json +++ b/spec.json @@ -8280,6 +8280,12 @@ "format" : "date-time", "type" : "string" }, + "last_access_at" : { + "description" : "Timestamp at which API key was last used - accurate to the day only.", + "example" : "2017-07-14T16:53:42Z", + "format" : "date-time", + "type" : "string" + }, "expired" : { "description" : "Whether the API key has expired or not", "example" : false,