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
6 changes: 6 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50704,6 +50704,12 @@ components:
icon:
description: URL of the user's icon.
type: string
last_login_time:
description: The last time the user logged in.
format: date-time
nullable: true
readOnly: true
type: string
mfa_enabled:
description: If user has MFA enabled.
readOnly: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
UserAttributes.JSON_PROPERTY_EMAIL,
UserAttributes.JSON_PROPERTY_HANDLE,
UserAttributes.JSON_PROPERTY_ICON,
UserAttributes.JSON_PROPERTY_LAST_LOGIN_TIME,
UserAttributes.JSON_PROPERTY_MFA_ENABLED,
UserAttributes.JSON_PROPERTY_MODIFIED_AT,
UserAttributes.JSON_PROPERTY_NAME,
Expand Down Expand Up @@ -52,6 +53,9 @@ public class UserAttributes {
public static final String JSON_PROPERTY_ICON = "icon";
private String icon;

public static final String JSON_PROPERTY_LAST_LOGIN_TIME = "last_login_time";
private JsonNullable<OffsetDateTime> lastLoginTime = JsonNullable.<OffsetDateTime>undefined();

public static final String JSON_PROPERTY_MFA_ENABLED = "mfa_enabled";
private Boolean mfaEnabled;

Expand Down Expand Up @@ -178,6 +182,32 @@ public void setIcon(String icon) {
this.icon = icon;
}

/**
* The last time the user logged in.
*
* @return lastLoginTime
*/
@jakarta.annotation.Nullable
@JsonIgnore
public OffsetDateTime getLastLoginTime() {

if (lastLoginTime == null) {
lastLoginTime = JsonNullable.<OffsetDateTime>undefined();
}
return lastLoginTime.orElse(null);
}

@JsonProperty(JSON_PROPERTY_LAST_LOGIN_TIME)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable<OffsetDateTime> getLastLoginTime_JsonNullable() {
return lastLoginTime;
}

@JsonProperty(JSON_PROPERTY_LAST_LOGIN_TIME)
private void setLastLoginTime_JsonNullable(JsonNullable<OffsetDateTime> lastLoginTime) {
this.lastLoginTime = lastLoginTime;
}

/**
* If user has MFA enabled.
*
Expand Down Expand Up @@ -397,6 +427,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.email, userAttributes.email)
&& Objects.equals(this.handle, userAttributes.handle)
&& Objects.equals(this.icon, userAttributes.icon)
&& Objects.equals(this.lastLoginTime, userAttributes.lastLoginTime)
&& Objects.equals(this.mfaEnabled, userAttributes.mfaEnabled)
&& Objects.equals(this.modifiedAt, userAttributes.modifiedAt)
&& Objects.equals(this.name, userAttributes.name)
Expand All @@ -415,6 +446,7 @@ public int hashCode() {
email,
handle,
icon,
lastLoginTime,
mfaEnabled,
modifiedAt,
name,
Expand All @@ -434,6 +466,7 @@ public String toString() {
sb.append(" email: ").append(toIndentedString(email)).append("\n");
sb.append(" handle: ").append(toIndentedString(handle)).append("\n");
sb.append(" icon: ").append(toIndentedString(icon)).append("\n");
sb.append(" lastLoginTime: ").append(toIndentedString(lastLoginTime)).append("\n");
sb.append(" mfaEnabled: ").append(toIndentedString(mfaEnabled)).append("\n");
sb.append(" modifiedAt: ").append(toIndentedString(modifiedAt)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
Expand Down
Loading