1212import com .fasterxml .jackson .annotation .JsonInclude ;
1313import com .fasterxml .jackson .annotation .JsonProperty ;
1414import com .fasterxml .jackson .annotation .JsonPropertyOrder ;
15+ import java .time .OffsetDateTime ;
1516import java .util .HashMap ;
1617import java .util .Map ;
1718import java .util .Objects ;
19+ import org .openapitools .jackson .nullable .JsonNullable ;
1820
1921/** Attributes of a partial API key. */
2022@ JsonPropertyOrder ({
2123 PartialAPIKeyAttributes .JSON_PROPERTY_CATEGORY ,
2224 PartialAPIKeyAttributes .JSON_PROPERTY_CREATED_AT ,
25+ PartialAPIKeyAttributes .JSON_PROPERTY_DATE_LAST_USED ,
2326 PartialAPIKeyAttributes .JSON_PROPERTY_LAST4 ,
2427 PartialAPIKeyAttributes .JSON_PROPERTY_MODIFIED_AT ,
2528 PartialAPIKeyAttributes .JSON_PROPERTY_NAME ,
@@ -35,6 +38,9 @@ public class PartialAPIKeyAttributes {
3538 public static final String JSON_PROPERTY_CREATED_AT = "created_at" ;
3639 private String createdAt ;
3740
41+ public static final String JSON_PROPERTY_DATE_LAST_USED = "date_last_used" ;
42+ private JsonNullable <OffsetDateTime > dateLastUsed = JsonNullable .<OffsetDateTime >undefined ();
43+
3844 public static final String JSON_PROPERTY_LAST4 = "last4" ;
3945 private String last4 ;
4046
@@ -81,6 +87,32 @@ public String getCreatedAt() {
8187 return createdAt ;
8288 }
8389
90+ /**
91+ * Date the API Key was last used.
92+ *
93+ * @return dateLastUsed
94+ */
95+ @ jakarta .annotation .Nullable
96+ @ JsonIgnore
97+ public OffsetDateTime getDateLastUsed () {
98+
99+ if (dateLastUsed == null ) {
100+ dateLastUsed = JsonNullable .<OffsetDateTime >undefined ();
101+ }
102+ return dateLastUsed .orElse (null );
103+ }
104+
105+ @ JsonProperty (JSON_PROPERTY_DATE_LAST_USED )
106+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
107+ public JsonNullable <OffsetDateTime > getDateLastUsed_JsonNullable () {
108+ return dateLastUsed ;
109+ }
110+
111+ @ JsonProperty (JSON_PROPERTY_DATE_LAST_USED )
112+ private void setDateLastUsed_JsonNullable (JsonNullable <OffsetDateTime > dateLastUsed ) {
113+ this .dateLastUsed = dateLastUsed ;
114+ }
115+
84116 /**
85117 * The last four characters of the API key.
86118 *
@@ -205,6 +237,7 @@ public boolean equals(Object o) {
205237 PartialAPIKeyAttributes partialApiKeyAttributes = (PartialAPIKeyAttributes ) o ;
206238 return Objects .equals (this .category , partialApiKeyAttributes .category )
207239 && Objects .equals (this .createdAt , partialApiKeyAttributes .createdAt )
240+ && Objects .equals (this .dateLastUsed , partialApiKeyAttributes .dateLastUsed )
208241 && Objects .equals (this .last4 , partialApiKeyAttributes .last4 )
209242 && Objects .equals (this .modifiedAt , partialApiKeyAttributes .modifiedAt )
210243 && Objects .equals (this .name , partialApiKeyAttributes .name )
@@ -218,6 +251,7 @@ public int hashCode() {
218251 return Objects .hash (
219252 category ,
220253 createdAt ,
254+ dateLastUsed ,
221255 last4 ,
222256 modifiedAt ,
223257 name ,
@@ -231,6 +265,7 @@ public String toString() {
231265 sb .append ("class PartialAPIKeyAttributes {\n " );
232266 sb .append (" category: " ).append (toIndentedString (category )).append ("\n " );
233267 sb .append (" createdAt: " ).append (toIndentedString (createdAt )).append ("\n " );
268+ sb .append (" dateLastUsed: " ).append (toIndentedString (dateLastUsed )).append ("\n " );
234269 sb .append (" last4: " ).append (toIndentedString (last4 )).append ("\n " );
235270 sb .append (" modifiedAt: " ).append (toIndentedString (modifiedAt )).append ("\n " );
236271 sb .append (" name: " ).append (toIndentedString (name )).append ("\n " );
0 commit comments