-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Co-authored-by: Clément Vannicatte <vannicattec@gmail.com>
- Loading branch information
1 parent
c7fbbab
commit 1555786
Showing
16 changed files
with
1,142 additions
and
6 deletions.
There are no files selected for viewing
77 changes: 77 additions & 0 deletions
77
...lgoliasearch-client-java-2/algoliasearch-core/com/algolia/model/AppendSourceResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
package com.algolia.model; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import io.swagger.annotations.ApiModelProperty; | ||
import java.time.OffsetDateTime; | ||
import java.util.Objects; | ||
|
||
/** AppendSourceResponse */ | ||
public class AppendSourceResponse { | ||
|
||
public static final String SERIALIZED_NAME_CREATED_AT = "createdAt"; | ||
|
||
@SerializedName(SERIALIZED_NAME_CREATED_AT) | ||
private OffsetDateTime createdAt; | ||
|
||
public AppendSourceResponse createdAt(OffsetDateTime createdAt) { | ||
this.createdAt = createdAt; | ||
return this; | ||
} | ||
|
||
/** | ||
* Date of creation (ISO-8601 format). | ||
* | ||
* @return createdAt | ||
*/ | ||
@javax.annotation.Nonnull | ||
@ApiModelProperty( | ||
required = true, | ||
value = "Date of creation (ISO-8601 format)." | ||
) | ||
public OffsetDateTime getCreatedAt() { | ||
return createdAt; | ||
} | ||
|
||
public void setCreatedAt(OffsetDateTime createdAt) { | ||
this.createdAt = createdAt; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) { | ||
return true; | ||
} | ||
if (o == null || getClass() != o.getClass()) { | ||
return false; | ||
} | ||
AppendSourceResponse appendSourceResponse = (AppendSourceResponse) o; | ||
return Objects.equals(this.createdAt, appendSourceResponse.createdAt); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(createdAt); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
StringBuilder sb = new StringBuilder(); | ||
sb.append("class AppendSourceResponse {\n"); | ||
sb | ||
.append(" createdAt: ") | ||
.append(toIndentedString(createdAt)) | ||
.append("\n"); | ||
sb.append("}"); | ||
return sb.toString(); | ||
} | ||
|
||
/** | ||
* Convert the given object to string with each line indented by 4 spaces (except the first line). | ||
*/ | ||
private String toIndentedString(Object o) { | ||
if (o == null) { | ||
return "null"; | ||
} | ||
return o.toString().replace("\n", "\n "); | ||
} | ||
} |
77 changes: 77 additions & 0 deletions
77
...lgoliasearch-client-java-2/algoliasearch-core/com/algolia/model/DeleteSourceResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
package com.algolia.model; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import io.swagger.annotations.ApiModelProperty; | ||
import java.time.OffsetDateTime; | ||
import java.util.Objects; | ||
|
||
/** DeleteSourceResponse */ | ||
public class DeleteSourceResponse { | ||
|
||
public static final String SERIALIZED_NAME_DELETED_AT = "deletedAt"; | ||
|
||
@SerializedName(SERIALIZED_NAME_DELETED_AT) | ||
private OffsetDateTime deletedAt; | ||
|
||
public DeleteSourceResponse deletedAt(OffsetDateTime deletedAt) { | ||
this.deletedAt = deletedAt; | ||
return this; | ||
} | ||
|
||
/** | ||
* Date of deletion (ISO-8601 format). | ||
* | ||
* @return deletedAt | ||
*/ | ||
@javax.annotation.Nonnull | ||
@ApiModelProperty( | ||
required = true, | ||
value = "Date of deletion (ISO-8601 format)." | ||
) | ||
public OffsetDateTime getDeletedAt() { | ||
return deletedAt; | ||
} | ||
|
||
public void setDeletedAt(OffsetDateTime deletedAt) { | ||
this.deletedAt = deletedAt; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) { | ||
return true; | ||
} | ||
if (o == null || getClass() != o.getClass()) { | ||
return false; | ||
} | ||
DeleteSourceResponse deleteSourceResponse = (DeleteSourceResponse) o; | ||
return Objects.equals(this.deletedAt, deleteSourceResponse.deletedAt); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(deletedAt); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
StringBuilder sb = new StringBuilder(); | ||
sb.append("class DeleteSourceResponse {\n"); | ||
sb | ||
.append(" deletedAt: ") | ||
.append(toIndentedString(deletedAt)) | ||
.append("\n"); | ||
sb.append("}"); | ||
return sb.toString(); | ||
} | ||
|
||
/** | ||
* Convert the given object to string with each line indented by 4 spaces (except the first line). | ||
*/ | ||
private String toIndentedString(Object o) { | ||
if (o == null) { | ||
return "null"; | ||
} | ||
return o.toString().replace("\n", "\n "); | ||
} | ||
} |
77 changes: 77 additions & 0 deletions
77
...goliasearch-client-java-2/algoliasearch-core/com/algolia/model/ReplaceSourceResponse.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
package com.algolia.model; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import io.swagger.annotations.ApiModelProperty; | ||
import java.time.OffsetDateTime; | ||
import java.util.Objects; | ||
|
||
/** ReplaceSourceResponse */ | ||
public class ReplaceSourceResponse { | ||
|
||
public static final String SERIALIZED_NAME_UPDATED_AT = "updatedAt"; | ||
|
||
@SerializedName(SERIALIZED_NAME_UPDATED_AT) | ||
private OffsetDateTime updatedAt; | ||
|
||
public ReplaceSourceResponse updatedAt(OffsetDateTime updatedAt) { | ||
this.updatedAt = updatedAt; | ||
return this; | ||
} | ||
|
||
/** | ||
* Date of last update (ISO-8601 format). | ||
* | ||
* @return updatedAt | ||
*/ | ||
@javax.annotation.Nonnull | ||
@ApiModelProperty( | ||
required = true, | ||
value = "Date of last update (ISO-8601 format)." | ||
) | ||
public OffsetDateTime getUpdatedAt() { | ||
return updatedAt; | ||
} | ||
|
||
public void setUpdatedAt(OffsetDateTime updatedAt) { | ||
this.updatedAt = updatedAt; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) { | ||
return true; | ||
} | ||
if (o == null || getClass() != o.getClass()) { | ||
return false; | ||
} | ||
ReplaceSourceResponse replaceSourceResponse = (ReplaceSourceResponse) o; | ||
return Objects.equals(this.updatedAt, replaceSourceResponse.updatedAt); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(updatedAt); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
StringBuilder sb = new StringBuilder(); | ||
sb.append("class ReplaceSourceResponse {\n"); | ||
sb | ||
.append(" updatedAt: ") | ||
.append(toIndentedString(updatedAt)) | ||
.append("\n"); | ||
sb.append("}"); | ||
return sb.toString(); | ||
} | ||
|
||
/** | ||
* Convert the given object to string with each line indented by 4 spaces (except the first line). | ||
*/ | ||
private String toIndentedString(Object o) { | ||
if (o == null) { | ||
return "null"; | ||
} | ||
return o.toString().replace("\n", "\n "); | ||
} | ||
} |
108 changes: 108 additions & 0 deletions
108
clients/algoliasearch-client-java-2/algoliasearch-core/com/algolia/model/Source.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
package com.algolia.model; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import io.swagger.annotations.ApiModel; | ||
import io.swagger.annotations.ApiModelProperty; | ||
import java.util.Objects; | ||
|
||
/** The source. */ | ||
@ApiModel(description = "The source.") | ||
public class Source { | ||
|
||
public static final String SERIALIZED_NAME_SOURCE = "source"; | ||
|
||
@SerializedName(SERIALIZED_NAME_SOURCE) | ||
private String source; | ||
|
||
public static final String SERIALIZED_NAME_DESCRIPTION = "description"; | ||
|
||
@SerializedName(SERIALIZED_NAME_DESCRIPTION) | ||
private String description; | ||
|
||
public Source source(String source) { | ||
this.source = source; | ||
return this; | ||
} | ||
|
||
/** | ||
* The IP range of the source. | ||
* | ||
* @return source | ||
*/ | ||
@javax.annotation.Nonnull | ||
@ApiModelProperty( | ||
example = "10.0.0.1/32", | ||
required = true, | ||
value = "The IP range of the source." | ||
) | ||
public String getSource() { | ||
return source; | ||
} | ||
|
||
public void setSource(String source) { | ||
this.source = source; | ||
} | ||
|
||
public Source description(String description) { | ||
this.description = description; | ||
return this; | ||
} | ||
|
||
/** | ||
* The description of the source. | ||
* | ||
* @return description | ||
*/ | ||
@javax.annotation.Nullable | ||
@ApiModelProperty(value = "The description of the source.") | ||
public String getDescription() { | ||
return description; | ||
} | ||
|
||
public void setDescription(String description) { | ||
this.description = description; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) { | ||
return true; | ||
} | ||
if (o == null || getClass() != o.getClass()) { | ||
return false; | ||
} | ||
Source source = (Source) o; | ||
return ( | ||
Objects.equals(this.source, source.source) && | ||
Objects.equals(this.description, source.description) | ||
); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(source, description); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
StringBuilder sb = new StringBuilder(); | ||
sb.append("class Source {\n"); | ||
sb.append(" source: ").append(toIndentedString(source)).append("\n"); | ||
sb | ||
.append(" description: ") | ||
.append(toIndentedString(description)) | ||
.append("\n"); | ||
sb.append("}"); | ||
return sb.toString(); | ||
} | ||
|
||
/** | ||
* Convert the given object to string with each line indented by 4 spaces (except the first line). | ||
*/ | ||
private String toIndentedString(Object o) { | ||
if (o == null) { | ||
return "null"; | ||
} | ||
return o.toString().replace("\n", "\n "); | ||
} | ||
} |
Oops, something went wrong.