Skip to content

Commit 804b9d7

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit fe40677 of spec repo
1 parent d9ac7ea commit 804b9d7

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50452,6 +50452,12 @@ components:
5045250452
icon:
5045350453
description: URL of the user's icon.
5045450454
type: string
50455+
last_login_time:
50456+
description: Last time the user logged in.
50457+
format: date-time
50458+
nullable: true
50459+
readOnly: true
50460+
type: string
5045550461
mfa_enabled:
5045650462
description: If user has MFA enabled.
5045750463
readOnly: true

src/main/java/com/datadog/api/client/v2/model/UserAttributes.java

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
UserAttributes.JSON_PROPERTY_EMAIL,
2626
UserAttributes.JSON_PROPERTY_HANDLE,
2727
UserAttributes.JSON_PROPERTY_ICON,
28+
UserAttributes.JSON_PROPERTY_LAST_LOGIN_TIME,
2829
UserAttributes.JSON_PROPERTY_MFA_ENABLED,
2930
UserAttributes.JSON_PROPERTY_MODIFIED_AT,
3031
UserAttributes.JSON_PROPERTY_NAME,
@@ -52,6 +53,9 @@ public class UserAttributes {
5253
public static final String JSON_PROPERTY_ICON = "icon";
5354
private String icon;
5455

56+
public static final String JSON_PROPERTY_LAST_LOGIN_TIME = "last_login_time";
57+
private JsonNullable<OffsetDateTime> lastLoginTime = JsonNullable.<OffsetDateTime>undefined();
58+
5559
public static final String JSON_PROPERTY_MFA_ENABLED = "mfa_enabled";
5660
private Boolean mfaEnabled;
5761

@@ -178,6 +182,32 @@ public void setIcon(String icon) {
178182
this.icon = icon;
179183
}
180184

185+
/**
186+
* Last time the user logged in.
187+
*
188+
* @return lastLoginTime
189+
*/
190+
@jakarta.annotation.Nullable
191+
@JsonIgnore
192+
public OffsetDateTime getLastLoginTime() {
193+
194+
if (lastLoginTime == null) {
195+
lastLoginTime = JsonNullable.<OffsetDateTime>undefined();
196+
}
197+
return lastLoginTime.orElse(null);
198+
}
199+
200+
@JsonProperty(JSON_PROPERTY_LAST_LOGIN_TIME)
201+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
202+
public JsonNullable<OffsetDateTime> getLastLoginTime_JsonNullable() {
203+
return lastLoginTime;
204+
}
205+
206+
@JsonProperty(JSON_PROPERTY_LAST_LOGIN_TIME)
207+
private void setLastLoginTime_JsonNullable(JsonNullable<OffsetDateTime> lastLoginTime) {
208+
this.lastLoginTime = lastLoginTime;
209+
}
210+
181211
/**
182212
* If user has MFA enabled.
183213
*
@@ -397,6 +427,7 @@ public boolean equals(Object o) {
397427
&& Objects.equals(this.email, userAttributes.email)
398428
&& Objects.equals(this.handle, userAttributes.handle)
399429
&& Objects.equals(this.icon, userAttributes.icon)
430+
&& Objects.equals(this.lastLoginTime, userAttributes.lastLoginTime)
400431
&& Objects.equals(this.mfaEnabled, userAttributes.mfaEnabled)
401432
&& Objects.equals(this.modifiedAt, userAttributes.modifiedAt)
402433
&& Objects.equals(this.name, userAttributes.name)
@@ -415,6 +446,7 @@ public int hashCode() {
415446
email,
416447
handle,
417448
icon,
449+
lastLoginTime,
418450
mfaEnabled,
419451
modifiedAt,
420452
name,
@@ -434,6 +466,7 @@ public String toString() {
434466
sb.append(" email: ").append(toIndentedString(email)).append("\n");
435467
sb.append(" handle: ").append(toIndentedString(handle)).append("\n");
436468
sb.append(" icon: ").append(toIndentedString(icon)).append("\n");
469+
sb.append(" lastLoginTime: ").append(toIndentedString(lastLoginTime)).append("\n");
437470
sb.append(" mfaEnabled: ").append(toIndentedString(mfaEnabled)).append("\n");
438471
sb.append(" modifiedAt: ").append(toIndentedString(modifiedAt)).append("\n");
439472
sb.append(" name: ").append(toIndentedString(name)).append("\n");

0 commit comments

Comments
 (0)