-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(specs): ingestion docker task input (generated)
algolia/api-clients-automation#3488 Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com> Co-authored-by: Clément Vannicatte <vannicattec@gmail.com>
- Loading branch information
1 parent
80eec16
commit c6c235d
Showing
4 changed files
with
164 additions
and
11 deletions.
There are no files selected for viewing
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
106 changes: 106 additions & 0 deletions
106
algoliasearch/src/main/java/com/algolia/model/ingestion/DockerStreams.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,106 @@ | ||
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost | ||
// - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. | ||
|
||
package com.algolia.model.ingestion; | ||
|
||
import com.fasterxml.jackson.annotation.*; | ||
import com.fasterxml.jackson.databind.annotation.*; | ||
import java.util.ArrayList; | ||
import java.util.List; | ||
import java.util.Objects; | ||
|
||
/** DockerStreams */ | ||
public class DockerStreams { | ||
|
||
@JsonProperty("name") | ||
private String name; | ||
|
||
@JsonProperty("properties") | ||
private List<String> properties; | ||
|
||
@JsonProperty("syncMode") | ||
private DockerStreamsSyncMode syncMode; | ||
|
||
public DockerStreams setName(String name) { | ||
this.name = name; | ||
return this; | ||
} | ||
|
||
/** The name of the stream to fetch the data from (e.g. table name). */ | ||
@javax.annotation.Nonnull | ||
public String getName() { | ||
return name; | ||
} | ||
|
||
public DockerStreams setProperties(List<String> properties) { | ||
this.properties = properties; | ||
return this; | ||
} | ||
|
||
public DockerStreams addProperties(String propertiesItem) { | ||
if (this.properties == null) { | ||
this.properties = new ArrayList<>(); | ||
} | ||
this.properties.add(propertiesItem); | ||
return this; | ||
} | ||
|
||
/** The properties of the stream to select (e.g. column). */ | ||
@javax.annotation.Nullable | ||
public List<String> getProperties() { | ||
return properties; | ||
} | ||
|
||
public DockerStreams setSyncMode(DockerStreamsSyncMode syncMode) { | ||
this.syncMode = syncMode; | ||
return this; | ||
} | ||
|
||
/** Get syncMode */ | ||
@javax.annotation.Nonnull | ||
public DockerStreamsSyncMode getSyncMode() { | ||
return syncMode; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) { | ||
return true; | ||
} | ||
if (o == null || getClass() != o.getClass()) { | ||
return false; | ||
} | ||
DockerStreams dockerStreams = (DockerStreams) o; | ||
return ( | ||
Objects.equals(this.name, dockerStreams.name) && | ||
Objects.equals(this.properties, dockerStreams.properties) && | ||
Objects.equals(this.syncMode, dockerStreams.syncMode) | ||
); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(name, properties, syncMode); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
StringBuilder sb = new StringBuilder(); | ||
sb.append("class DockerStreams {\n"); | ||
sb.append(" name: ").append(toIndentedString(name)).append("\n"); | ||
sb.append(" properties: ").append(toIndentedString(properties)).append("\n"); | ||
sb.append(" syncMode: ").append(toIndentedString(syncMode)).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 "); | ||
} | ||
} |
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
40 changes: 40 additions & 0 deletions
40
algoliasearch/src/main/java/com/algolia/model/ingestion/DockerStreamsSyncMode.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,40 @@ | ||
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost | ||
// - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT. | ||
|
||
package com.algolia.model.ingestion; | ||
|
||
import com.fasterxml.jackson.annotation.*; | ||
import com.fasterxml.jackson.databind.annotation.*; | ||
|
||
/** The strategy to use to fetch the data. */ | ||
public enum DockerStreamsSyncMode { | ||
INCREMENTAL("incremental"), | ||
|
||
FULL_TABLE("fullTable"); | ||
|
||
private final String value; | ||
|
||
DockerStreamsSyncMode(String value) { | ||
this.value = value; | ||
} | ||
|
||
@JsonValue | ||
public String getValue() { | ||
return value; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return String.valueOf(value); | ||
} | ||
|
||
@JsonCreator | ||
public static DockerStreamsSyncMode fromValue(String value) { | ||
for (DockerStreamsSyncMode b : DockerStreamsSyncMode.values()) { | ||
if (b.value.equals(value)) { | ||
return b; | ||
} | ||
} | ||
throw new IllegalArgumentException("Unexpected value '" + value + "'"); | ||
} | ||
} |