-
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.
- Loading branch information
Showing
45 changed files
with
3,993 additions
and
2,628 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
74 changes: 74 additions & 0 deletions
74
client/src/generated/java/com/influxdb/client/domain/AxisScale.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,74 @@ | ||
/* | ||
* 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 io.swagger.annotations.ApiModel; | ||
import com.google.gson.annotations.SerializedName; | ||
|
||
import java.io.IOException; | ||
import com.google.gson.TypeAdapter; | ||
import com.google.gson.annotations.JsonAdapter; | ||
import com.google.gson.stream.JsonReader; | ||
import com.google.gson.stream.JsonWriter; | ||
|
||
/** | ||
* Scale is the axis formatting scale. Supported: \"log\", \"linear\" | ||
*/ | ||
@JsonAdapter(AxisScale.Adapter.class) | ||
public enum AxisScale { | ||
|
||
LOG("log"), | ||
|
||
LINEAR("linear"); | ||
|
||
private String value; | ||
|
||
AxisScale(String value) { | ||
this.value = value; | ||
} | ||
|
||
public String getValue() { | ||
return value; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return String.valueOf(value); | ||
} | ||
|
||
public static AxisScale fromValue(String text) { | ||
for (AxisScale b : AxisScale.values()) { | ||
if (String.valueOf(b.value).equals(text)) { | ||
return b; | ||
} | ||
} | ||
return null; | ||
} | ||
|
||
public static class Adapter extends TypeAdapter<AxisScale> { | ||
@Override | ||
public void write(final JsonWriter jsonWriter, final AxisScale enumeration) throws IOException { | ||
jsonWriter.value(enumeration.getValue()); | ||
} | ||
|
||
@Override | ||
public AxisScale read(final JsonReader jsonReader) throws IOException { | ||
String value = jsonReader.nextString(); | ||
return AxisScale.fromValue(String.valueOf(value)); | ||
} | ||
} | ||
} | ||
|
Oops, something went wrong.