-
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.
#46: Updated swagger to latest version
- Loading branch information
Showing
35 changed files
with
2,063 additions
and
881 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
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
158 changes: 158 additions & 0 deletions
158
client/src/generated/java/com/influxdb/client/domain/GreaterThreshold.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,158 @@ | ||
/* | ||
* 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 com.influxdb.client.domain.CheckStatusLevel; | ||
import com.influxdb.client.domain.ThresholdBase; | ||
import io.swagger.annotations.ApiModel; | ||
import io.swagger.annotations.ApiModelProperty; | ||
import java.io.IOException; | ||
|
||
/** | ||
* GreaterThreshold | ||
*/ | ||
|
||
public class GreaterThreshold extends Threshold { | ||
/** | ||
* Gets or Sets type | ||
*/ | ||
@JsonAdapter(TypeEnum.Adapter.class) | ||
public enum TypeEnum { | ||
GREATER("greater"); | ||
|
||
private String value; | ||
|
||
TypeEnum(String value) { | ||
this.value = value; | ||
} | ||
|
||
public String getValue() { | ||
return value; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return String.valueOf(value); | ||
} | ||
|
||
public static TypeEnum fromValue(String text) { | ||
for (TypeEnum b : TypeEnum.values()) { | ||
if (String.valueOf(b.value).equals(text)) { | ||
return b; | ||
} | ||
} | ||
return null; | ||
} | ||
|
||
public static class Adapter extends TypeAdapter<TypeEnum> { | ||
@Override | ||
public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException { | ||
jsonWriter.value(enumeration.getValue()); | ||
} | ||
|
||
@Override | ||
public TypeEnum read(final JsonReader jsonReader) throws IOException { | ||
String value = jsonReader.nextString(); | ||
return TypeEnum.fromValue(String.valueOf(value)); | ||
} | ||
} | ||
} | ||
|
||
public static final String SERIALIZED_NAME_TYPE = "type"; | ||
@SerializedName(SERIALIZED_NAME_TYPE) | ||
private TypeEnum type = TypeEnum.GREATER; | ||
|
||
public static final String SERIALIZED_NAME_VALUE = "value"; | ||
@SerializedName(SERIALIZED_NAME_VALUE) | ||
private Float value; | ||
|
||
/** | ||
* Get type | ||
* @return type | ||
**/ | ||
@ApiModelProperty(required = true, value = "") | ||
public TypeEnum getType() { | ||
return type; | ||
} | ||
|
||
public GreaterThreshold value(Float value) { | ||
this.value = value; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get value | ||
* @return value | ||
**/ | ||
@ApiModelProperty(required = true, value = "") | ||
public Float getValue() { | ||
return value; | ||
} | ||
|
||
public void setValue(Float value) { | ||
this.value = value; | ||
} | ||
|
||
|
||
@Override | ||
public boolean equals(java.lang.Object o) { | ||
if (this == o) { | ||
return true; | ||
} | ||
if (o == null || getClass() != o.getClass()) { | ||
return false; | ||
} | ||
GreaterThreshold greaterThreshold = (GreaterThreshold) o; | ||
return Objects.equals(this.type, greaterThreshold.type) && | ||
Objects.equals(this.value, greaterThreshold.value) && | ||
super.equals(o); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(type, value, super.hashCode()); | ||
} | ||
|
||
|
||
@Override | ||
public String toString() { | ||
StringBuilder sb = new StringBuilder(); | ||
sb.append("class GreaterThreshold {\n"); | ||
sb.append(" ").append(toIndentedString(super.toString())).append("\n"); | ||
sb.append(" type: ").append(toIndentedString(type)).append("\n"); | ||
sb.append(" value: ").append(toIndentedString(value)).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 "); | ||
} | ||
|
||
} | ||
|
71 changes: 71 additions & 0 deletions
71
client/src/generated/java/com/influxdb/client/domain/HTTPNotificationRule.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,71 @@ | ||
/* | ||
* 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.influxdb.client.domain.HTTPNotificationRuleBase; | ||
import com.influxdb.client.domain.Label; | ||
import com.influxdb.client.domain.NotificationRuleBase; | ||
import com.influxdb.client.domain.StatusRule; | ||
import com.influxdb.client.domain.TagRule; | ||
import com.influxdb.client.domain.TaskStatusType; | ||
import java.time.OffsetDateTime; | ||
import java.util.List; | ||
|
||
/** | ||
* HTTPNotificationRule | ||
*/ | ||
|
||
public class HTTPNotificationRule extends NotificationRule { | ||
|
||
@Override | ||
public boolean equals(java.lang.Object o) { | ||
if (this == o) { | ||
return true; | ||
} | ||
if (o == null || getClass() != o.getClass()) { | ||
return false; | ||
} | ||
return super.equals(o); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(super.hashCode()); | ||
} | ||
|
||
|
||
@Override | ||
public String toString() { | ||
StringBuilder sb = new StringBuilder(); | ||
sb.append("class HTTPNotificationRule {\n"); | ||
sb.append(" ").append(toIndentedString(super.toString())).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 "); | ||
} | ||
|
||
} | ||
|
Oops, something went wrong.