-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update swagger with a delete endpoint (#65)
- Loading branch information
Showing
7 changed files
with
274 additions
and
8 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
144 changes: 144 additions & 0 deletions
144
client/src/generated/java/com/influxdb/client/domain/DeletePredicateRequest.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,144 @@ | ||
/* | ||
* Influx API Service | ||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) | ||
* | ||
* OpenAPI spec version: 0.1.0 | ||
* | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
|
||
package com.influxdb.client.domain; | ||
|
||
import java.util.Objects; | ||
import java.util.Arrays; | ||
import com.google.gson.TypeAdapter; | ||
import com.google.gson.annotations.JsonAdapter; | ||
import com.google.gson.annotations.SerializedName; | ||
import com.google.gson.stream.JsonReader; | ||
import com.google.gson.stream.JsonWriter; | ||
import io.swagger.annotations.ApiModel; | ||
import io.swagger.annotations.ApiModelProperty; | ||
import java.io.IOException; | ||
import java.time.OffsetDateTime; | ||
|
||
/** | ||
* the delete predicate request | ||
*/ | ||
@ApiModel(description = "the delete predicate request") | ||
|
||
public class DeletePredicateRequest { | ||
public static final String SERIALIZED_NAME_START = "start"; | ||
@SerializedName(SERIALIZED_NAME_START) | ||
private OffsetDateTime start; | ||
|
||
public static final String SERIALIZED_NAME_STOP = "stop"; | ||
@SerializedName(SERIALIZED_NAME_STOP) | ||
private OffsetDateTime stop; | ||
|
||
public static final String SERIALIZED_NAME_PREDICATE = "predicate"; | ||
@SerializedName(SERIALIZED_NAME_PREDICATE) | ||
private String predicate; | ||
|
||
public DeletePredicateRequest start(OffsetDateTime start) { | ||
this.start = start; | ||
return this; | ||
} | ||
|
||
/** | ||
* RFC3339Nano. | ||
* @return start | ||
**/ | ||
@ApiModelProperty(required = true, value = "RFC3339Nano.") | ||
public OffsetDateTime getStart() { | ||
return start; | ||
} | ||
|
||
public void setStart(OffsetDateTime start) { | ||
this.start = start; | ||
} | ||
|
||
public DeletePredicateRequest stop(OffsetDateTime stop) { | ||
this.stop = stop; | ||
return this; | ||
} | ||
|
||
/** | ||
* RFC3339Nano. | ||
* @return stop | ||
**/ | ||
@ApiModelProperty(required = true, value = "RFC3339Nano.") | ||
public OffsetDateTime getStop() { | ||
return stop; | ||
} | ||
|
||
public void setStop(OffsetDateTime stop) { | ||
this.stop = stop; | ||
} | ||
|
||
public DeletePredicateRequest predicate(String predicate) { | ||
this.predicate = predicate; | ||
return this; | ||
} | ||
|
||
/** | ||
* sql where like delete statement | ||
* @return predicate | ||
**/ | ||
@ApiModelProperty(example = "tag1=\"value1\" and (tag2=\"value2\" and tag3=\"value3\")", value = "sql where like delete statement") | ||
public String getPredicate() { | ||
return predicate; | ||
} | ||
|
||
public void setPredicate(String predicate) { | ||
this.predicate = predicate; | ||
} | ||
|
||
|
||
@Override | ||
public boolean equals(java.lang.Object o) { | ||
if (this == o) { | ||
return true; | ||
} | ||
if (o == null || getClass() != o.getClass()) { | ||
return false; | ||
} | ||
DeletePredicateRequest deletePredicateRequest = (DeletePredicateRequest) o; | ||
return Objects.equals(this.start, deletePredicateRequest.start) && | ||
Objects.equals(this.stop, deletePredicateRequest.stop) && | ||
Objects.equals(this.predicate, deletePredicateRequest.predicate); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(start, stop, predicate); | ||
} | ||
|
||
|
||
@Override | ||
public String toString() { | ||
StringBuilder sb = new StringBuilder(); | ||
sb.append("class DeletePredicateRequest {\n"); | ||
sb.append(" start: ").append(toIndentedString(start)).append("\n"); | ||
sb.append(" stop: ").append(toIndentedString(stop)).append("\n"); | ||
sb.append(" predicate: ").append(toIndentedString(predicate)).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(java.lang.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
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
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
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
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