Synchronizing API and documentation updates

This commit is contained in:
gitnexbot
2023-02-17 00:10:42 +00:00
parent 4d72ede8c6
commit 7f48abe7b7
2 changed files with 33 additions and 1 deletions
@@ -15,6 +15,7 @@ package org.gitnex.tea4j.v2.models;
import com.google.gson.annotations.SerializedName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.Date;
import java.util.Objects;
/** CreateUserOption create user options */
@@ -22,6 +23,9 @@ import java.util.Objects;
public class CreateUserOption implements Serializable {
private static final long serialVersionUID = 1L;
@SerializedName("created_at")
private Date createdAt = null;
@SerializedName("email")
private String email = null;
@@ -52,6 +56,30 @@ public class CreateUserOption implements Serializable {
@SerializedName("visibility")
private String visibility = null;
public CreateUserOption createdAt(Date createdAt) {
this.createdAt = createdAt;
return this;
}
/**
* For explicitly setting the user creation timestamp. Useful when users are migrated from other
* systems. When omitted, the user's creation timestamp will be set to \"now\".
*
* @return createdAt
*/
@Schema(
description =
"For explicitly setting the user creation timestamp. Useful when users are migrated from"
+ " other systems. When omitted, the user's creation timestamp will be set to"
+ " \"now\".")
public Date getCreatedAt() {
return createdAt;
}
public void setCreatedAt(Date createdAt) {
this.createdAt = createdAt;
}
public CreateUserOption email(String email) {
this.email = email;
return this;
@@ -251,7 +279,8 @@ public class CreateUserOption implements Serializable {
return false;
}
CreateUserOption createUserOption = (CreateUserOption) o;
return Objects.equals(this.email, createUserOption.email)
return Objects.equals(this.createdAt, createUserOption.createdAt)
&& Objects.equals(this.email, createUserOption.email)
&& Objects.equals(this.fullName, createUserOption.fullName)
&& Objects.equals(this.loginName, createUserOption.loginName)
&& Objects.equals(this.mustChangePassword, createUserOption.mustChangePassword)
@@ -266,6 +295,7 @@ public class CreateUserOption implements Serializable {
@Override
public int hashCode() {
return Objects.hash(
createdAt,
email,
fullName,
loginName,
@@ -283,6 +313,7 @@ public class CreateUserOption implements Serializable {
StringBuilder sb = new StringBuilder();
sb.append("class CreateUserOption {\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" email: ").append(toIndentedString(email)).append("\n");
sb.append(" fullName: ").append(toIndentedString(fullName)).append("\n");
sb.append(" loginName: ").append(toIndentedString(loginName)).append("\n");