diff --git a/CHANGELOG.md b/CHANGELOG.md index 3756520c243..d994179a750 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### API 1. [#139](https://github.com/influxdata/influxdb-client-java/pull/148): Changed default port from 9999 to 8086 +1. [#153](https://github.com/influxdata/influxdb-client-java/pull/153): Removed labels in Organization API, removed Pkg* domains, added "after" to FindOption ### Bug Fixes 1. [#151](https://github.com/influxdata/influxdb-client-java/pull/151): Fixed closing OkHttp3 response body diff --git a/client/src/generated/java/com/influxdb/client/domain/Pkg.java b/client/src/generated/java/com/influxdb/client/domain/Pkg.java deleted file mode 100644 index 930e2f9a33b..00000000000 --- a/client/src/generated/java/com/influxdb/client/domain/Pkg.java +++ /dev/null @@ -1,204 +0,0 @@ -/* - * 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.PkgMeta; -import com.influxdb.client.domain.PkgSpec; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -/** - * Pkg - */ - -public class Pkg { - public static final String SERIALIZED_NAME_API_VERSION = "apiVersion"; - @SerializedName(SERIALIZED_NAME_API_VERSION) - private String apiVersion; - - /** - * Gets or Sets kind - */ - @JsonAdapter(KindEnum.Adapter.class) - public enum KindEnum { - PACKAGE("package"); - - private String value; - - KindEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static KindEnum fromValue(String text) { - for (KindEnum b : KindEnum.values()) { - if (String.valueOf(b.value).equals(text)) { - return b; - } - } - return null; - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final KindEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public KindEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return KindEnum.fromValue(String.valueOf(value)); - } - } - } - - public static final String SERIALIZED_NAME_KIND = "kind"; - @SerializedName(SERIALIZED_NAME_KIND) - private KindEnum kind = KindEnum.PACKAGE; - - public static final String SERIALIZED_NAME_META = "meta"; - @SerializedName(SERIALIZED_NAME_META) - private PkgMeta meta = null; - - public static final String SERIALIZED_NAME_SPEC = "spec"; - @SerializedName(SERIALIZED_NAME_SPEC) - private PkgSpec spec = null; - - public Pkg apiVersion(String apiVersion) { - this.apiVersion = apiVersion; - return this; - } - - /** - * Get apiVersion - * @return apiVersion - **/ - @ApiModelProperty(value = "") - public String getApiVersion() { - return apiVersion; - } - - public void setApiVersion(String apiVersion) { - this.apiVersion = apiVersion; - } - - /** - * Get kind - * @return kind - **/ - @ApiModelProperty(value = "") - public KindEnum getKind() { - return kind; - } - - public Pkg meta(PkgMeta meta) { - this.meta = meta; - return this; - } - - /** - * Get meta - * @return meta - **/ - @ApiModelProperty(value = "") - public PkgMeta getMeta() { - return meta; - } - - public void setMeta(PkgMeta meta) { - this.meta = meta; - } - - public Pkg spec(PkgSpec spec) { - this.spec = spec; - return this; - } - - /** - * Get spec - * @return spec - **/ - @ApiModelProperty(value = "") - public PkgSpec getSpec() { - return spec; - } - - public void setSpec(PkgSpec spec) { - this.spec = spec; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - Pkg pkg = (Pkg) o; - return Objects.equals(this.apiVersion, pkg.apiVersion) && - Objects.equals(this.kind, pkg.kind) && - Objects.equals(this.meta, pkg.meta) && - Objects.equals(this.spec, pkg.spec); - } - - @Override - public int hashCode() { - return Objects.hash(apiVersion, kind, meta, spec); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class Pkg {\n"); - sb.append(" apiVersion: ").append(toIndentedString(apiVersion)).append("\n"); - sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); - sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); - sb.append(" spec: ").append(toIndentedString(spec)).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 "); - } - -} - diff --git a/client/src/generated/java/com/influxdb/client/domain/PkgApply.java b/client/src/generated/java/com/influxdb/client/domain/PkgApply.java deleted file mode 100644 index 12ac52b06e1..00000000000 --- a/client/src/generated/java/com/influxdb/client/domain/PkgApply.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * 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.Pkg; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -/** - * PkgApply - */ - -public class PkgApply { - public static final String SERIALIZED_NAME_APPLY = "apply"; - @SerializedName(SERIALIZED_NAME_APPLY) - private Boolean apply; - - public static final String SERIALIZED_NAME_PACKAGE = "package"; - @SerializedName(SERIALIZED_NAME_PACKAGE) - private Pkg _package = null; - - public PkgApply apply(Boolean apply) { - this.apply = apply; - return this; - } - - /** - * Get apply - * @return apply - **/ - @ApiModelProperty(value = "") - public Boolean getApply() { - return apply; - } - - public void setApply(Boolean apply) { - this.apply = apply; - } - - public PkgApply _package(Pkg _package) { - this._package = _package; - return this; - } - - /** - * Get _package - * @return _package - **/ - @ApiModelProperty(value = "") - public Pkg getPackage() { - return _package; - } - - public void setPackage(Pkg _package) { - this._package = _package; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PkgApply pkgApply = (PkgApply) o; - return Objects.equals(this.apply, pkgApply.apply) && - Objects.equals(this._package, pkgApply._package); - } - - @Override - public int hashCode() { - return Objects.hash(apply, _package); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PkgApply {\n"); - sb.append(" apply: ").append(toIndentedString(apply)).append("\n"); - sb.append(" _package: ").append(toIndentedString(_package)).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 "); - } - -} - diff --git a/client/src/generated/java/com/influxdb/client/domain/PkgChart.java b/client/src/generated/java/com/influxdb/client/domain/PkgChart.java deleted file mode 100644 index d276aab364b..00000000000 --- a/client/src/generated/java/com/influxdb/client/domain/PkgChart.java +++ /dev/null @@ -1,262 +0,0 @@ -/* - * 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.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -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.ViewProperties; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.List; - -/** - * PkgChart - */ - -public class PkgChart { - public static final String SERIALIZED_NAME_X_POS = "xPos"; - @SerializedName(SERIALIZED_NAME_X_POS) - private Integer xPos; - - public static final String SERIALIZED_NAME_Y_POS = "yPos"; - @SerializedName(SERIALIZED_NAME_Y_POS) - private Integer yPos; - - public static final String SERIALIZED_NAME_HEIGHT = "height"; - @SerializedName(SERIALIZED_NAME_HEIGHT) - private Integer height; - - public static final String SERIALIZED_NAME_WIDTH = "width"; - @SerializedName(SERIALIZED_NAME_WIDTH) - private Integer width; - - public static final String SERIALIZED_NAME_PROPERTIES = "properties"; - @SerializedName(SERIALIZED_NAME_PROPERTIES) - @JsonAdapter(PkgChartPropertiesAdapter.class) - private ViewProperties properties = null; - - public PkgChart xPos(Integer xPos) { - this.xPos = xPos; - return this; - } - - /** - * Get xPos - * @return xPos - **/ - @ApiModelProperty(value = "") - public Integer getXPos() { - return xPos; - } - - public void setXPos(Integer xPos) { - this.xPos = xPos; - } - - public PkgChart yPos(Integer yPos) { - this.yPos = yPos; - return this; - } - - /** - * Get yPos - * @return yPos - **/ - @ApiModelProperty(value = "") - public Integer getYPos() { - return yPos; - } - - public void setYPos(Integer yPos) { - this.yPos = yPos; - } - - public PkgChart height(Integer height) { - this.height = height; - return this; - } - - /** - * Get height - * @return height - **/ - @ApiModelProperty(value = "") - public Integer getHeight() { - return height; - } - - public void setHeight(Integer height) { - this.height = height; - } - - public PkgChart width(Integer width) { - this.width = width; - return this; - } - - /** - * Get width - * @return width - **/ - @ApiModelProperty(value = "") - public Integer getWidth() { - return width; - } - - public void setWidth(Integer width) { - this.width = width; - } - - public PkgChart properties(ViewProperties properties) { - this.properties = properties; - return this; - } - - /** - * Get properties - * @return properties - **/ - @ApiModelProperty(value = "") - public ViewProperties getProperties() { - return properties; - } - - public void setProperties(ViewProperties properties) { - this.properties = properties; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PkgChart pkgChart = (PkgChart) o; - return Objects.equals(this.xPos, pkgChart.xPos) && - Objects.equals(this.yPos, pkgChart.yPos) && - Objects.equals(this.height, pkgChart.height) && - Objects.equals(this.width, pkgChart.width) && - Objects.equals(this.properties, pkgChart.properties); - } - - @Override - public int hashCode() { - return Objects.hash(xPos, yPos, height, width, properties); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PkgChart {\n"); - sb.append(" xPos: ").append(toIndentedString(xPos)).append("\n"); - sb.append(" yPos: ").append(toIndentedString(yPos)).append("\n"); - sb.append(" height: ").append(toIndentedString(height)).append("\n"); - sb.append(" width: ").append(toIndentedString(width)).append("\n"); - sb.append(" properties: ").append(toIndentedString(properties)).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 "); - } - - public class PkgChartPropertiesAdapter implements JsonDeserializer, JsonSerializer { - - public PkgChartPropertiesAdapter() { - } - - @Override - public Object deserialize(final JsonElement json, final Type typeOfT, final JsonDeserializationContext context) throws JsonParseException { - - List discriminator = Arrays.asList("timeFormat", "type", "shape"); - - JsonObject jsonObject = json.getAsJsonObject(); - - String[] types = discriminator.stream().map(jsonObject::get).filter(Objects::nonNull).map(JsonElement::getAsString).toArray(String[]::new); - - return deserialize(types, jsonObject, context); - } - - @Override - public JsonElement serialize(Object object, Type typeOfSrc, JsonSerializationContext context) { - - return context.serialize(object); - } - - private Object deserialize(final String[] types, final JsonElement json, final JsonDeserializationContext context) { - - if (Arrays.equals(new String[]{ "LinePlusSingleStatProperties", "line-plus-single-stat", "chronograf-v2" }, types)) { - return context.deserialize(json, LinePlusSingleStatProperties.class); - } - if (Arrays.equals(new String[]{ "XYViewProperties", "xy", "chronograf-v2" }, types)) { - return context.deserialize(json, XYViewProperties.class); - } - if (Arrays.equals(new String[]{ "single-stat", "chronograf-v2" }, types)) { - return context.deserialize(json, SingleStatViewProperties.class); - } - if (Arrays.equals(new String[]{ "histogram", "chronograf-v2" }, types)) { - return context.deserialize(json, HistogramViewProperties.class); - } - if (Arrays.equals(new String[]{ "gauge", "chronograf-v2" }, types)) { - return context.deserialize(json, GaugeViewProperties.class); - } - if (Arrays.equals(new String[]{ "table", "chronograf-v2" }, types)) { - return context.deserialize(json, TableViewProperties.class); - } - if (Arrays.equals(new String[]{ "markdown", "chronograf-v2" }, types)) { - return context.deserialize(json, MarkdownViewProperties.class); - } - if (Arrays.equals(new String[]{ "check", "chronograf-v2" }, types)) { - return context.deserialize(json, CheckViewProperties.class); - } - if (Arrays.equals(new String[]{ "ScatterViewProperties", "scatter", "chronograf-v2" }, types)) { - return context.deserialize(json, ScatterViewProperties.class); - } - if (Arrays.equals(new String[]{ "HeatmapViewProperties", "heatmap", "chronograf-v2" }, types)) { - return context.deserialize(json, HeatmapViewProperties.class); - } - - return context.deserialize(json, Object.class); - } - } -} - diff --git a/client/src/generated/java/com/influxdb/client/domain/PkgCreate.java b/client/src/generated/java/com/influxdb/client/domain/PkgCreate.java deleted file mode 100644 index 275ebc0d592..00000000000 --- a/client/src/generated/java/com/influxdb/client/domain/PkgCreate.java +++ /dev/null @@ -1,167 +0,0 @@ -/* - * 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.PkgCreateResources; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; - -/** - * PkgCreate - */ - -public class PkgCreate { - public static final String SERIALIZED_NAME_PKG_NAME = "pkgName"; - @SerializedName(SERIALIZED_NAME_PKG_NAME) - private String pkgName; - - public static final String SERIALIZED_NAME_PKG_DESCRIPTION = "pkgDescription"; - @SerializedName(SERIALIZED_NAME_PKG_DESCRIPTION) - private String pkgDescription; - - public static final String SERIALIZED_NAME_PKG_VERSION = "pkgVersion"; - @SerializedName(SERIALIZED_NAME_PKG_VERSION) - private String pkgVersion; - - public static final String SERIALIZED_NAME_RESOURCES = "resources"; - @SerializedName(SERIALIZED_NAME_RESOURCES) - private PkgCreateResources resources = null; - - public PkgCreate pkgName(String pkgName) { - this.pkgName = pkgName; - return this; - } - - /** - * Get pkgName - * @return pkgName - **/ - @ApiModelProperty(value = "") - public String getPkgName() { - return pkgName; - } - - public void setPkgName(String pkgName) { - this.pkgName = pkgName; - } - - public PkgCreate pkgDescription(String pkgDescription) { - this.pkgDescription = pkgDescription; - return this; - } - - /** - * Get pkgDescription - * @return pkgDescription - **/ - @ApiModelProperty(value = "") - public String getPkgDescription() { - return pkgDescription; - } - - public void setPkgDescription(String pkgDescription) { - this.pkgDescription = pkgDescription; - } - - public PkgCreate pkgVersion(String pkgVersion) { - this.pkgVersion = pkgVersion; - return this; - } - - /** - * Get pkgVersion - * @return pkgVersion - **/ - @ApiModelProperty(value = "") - public String getPkgVersion() { - return pkgVersion; - } - - public void setPkgVersion(String pkgVersion) { - this.pkgVersion = pkgVersion; - } - - public PkgCreate resources(PkgCreateResources resources) { - this.resources = resources; - return this; - } - - /** - * Get resources - * @return resources - **/ - @ApiModelProperty(value = "") - public PkgCreateResources getResources() { - return resources; - } - - public void setResources(PkgCreateResources resources) { - this.resources = resources; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PkgCreate pkgCreate = (PkgCreate) o; - return Objects.equals(this.pkgName, pkgCreate.pkgName) && - Objects.equals(this.pkgDescription, pkgCreate.pkgDescription) && - Objects.equals(this.pkgVersion, pkgCreate.pkgVersion) && - Objects.equals(this.resources, pkgCreate.resources); - } - - @Override - public int hashCode() { - return Objects.hash(pkgName, pkgDescription, pkgVersion, resources); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PkgCreate {\n"); - sb.append(" pkgName: ").append(toIndentedString(pkgName)).append("\n"); - sb.append(" pkgDescription: ").append(toIndentedString(pkgDescription)).append("\n"); - sb.append(" pkgVersion: ").append(toIndentedString(pkgVersion)).append("\n"); - sb.append(" resources: ").append(toIndentedString(resources)).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 "); - } - -} - diff --git a/client/src/generated/java/com/influxdb/client/domain/PkgCreateResources.java b/client/src/generated/java/com/influxdb/client/domain/PkgCreateResources.java deleted file mode 100644 index b0951f40e92..00000000000 --- a/client/src/generated/java/com/influxdb/client/domain/PkgCreateResources.java +++ /dev/null @@ -1,193 +0,0 @@ -/* - * 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; - -/** - * PkgCreateResources - */ - -public class PkgCreateResources { - public static final String SERIALIZED_NAME_ID = "id"; - @SerializedName(SERIALIZED_NAME_ID) - private String id; - - /** - * Gets or Sets kind - */ - @JsonAdapter(KindEnum.Adapter.class) - public enum KindEnum { - BUCKET("bucket"), - - DASHBOARD("dashboard"), - - LABEL("label"), - - VARIABLE("variable"); - - private String value; - - KindEnum(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static KindEnum fromValue(String text) { - for (KindEnum b : KindEnum.values()) { - if (String.valueOf(b.value).equals(text)) { - return b; - } - } - return null; - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final KindEnum enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public KindEnum read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return KindEnum.fromValue(String.valueOf(value)); - } - } - } - - public static final String SERIALIZED_NAME_KIND = "kind"; - @SerializedName(SERIALIZED_NAME_KIND) - private KindEnum kind; - - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public PkgCreateResources id(String id) { - this.id = id; - return this; - } - - /** - * Get id - * @return id - **/ - @ApiModelProperty(required = true, value = "") - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public PkgCreateResources kind(KindEnum kind) { - this.kind = kind; - return this; - } - - /** - * Get kind - * @return kind - **/ - @ApiModelProperty(required = true, value = "") - public KindEnum getKind() { - return kind; - } - - public void setKind(KindEnum kind) { - this.kind = kind; - } - - public PkgCreateResources name(String name) { - this.name = name; - return this; - } - - /** - * Get name - * @return name - **/ - @ApiModelProperty(value = "") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PkgCreateResources pkgCreateResources = (PkgCreateResources) o; - return Objects.equals(this.id, pkgCreateResources.id) && - Objects.equals(this.kind, pkgCreateResources.kind) && - Objects.equals(this.name, pkgCreateResources.name); - } - - @Override - public int hashCode() { - return Objects.hash(id, kind, name); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PkgCreateResources {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).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 "); - } - -} - diff --git a/client/src/generated/java/com/influxdb/client/domain/PkgMeta.java b/client/src/generated/java/com/influxdb/client/domain/PkgMeta.java deleted file mode 100644 index c950b81c4c5..00000000000 --- a/client/src/generated/java/com/influxdb/client/domain/PkgMeta.java +++ /dev/null @@ -1,142 +0,0 @@ -/* - * 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; - -/** - * PkgMeta - */ - -public class PkgMeta { - public static final String SERIALIZED_NAME_DESCRIPTION = "description"; - @SerializedName(SERIALIZED_NAME_DESCRIPTION) - private String description; - - public static final String SERIALIZED_NAME_PKG_NAME = "pkgName"; - @SerializedName(SERIALIZED_NAME_PKG_NAME) - private String pkgName; - - public static final String SERIALIZED_NAME_PKG_VERSION = "pkgVersion"; - @SerializedName(SERIALIZED_NAME_PKG_VERSION) - private String pkgVersion; - - public PkgMeta description(String description) { - this.description = description; - return this; - } - - /** - * Get description - * @return description - **/ - @ApiModelProperty(value = "") - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public PkgMeta pkgName(String pkgName) { - this.pkgName = pkgName; - return this; - } - - /** - * Get pkgName - * @return pkgName - **/ - @ApiModelProperty(value = "") - public String getPkgName() { - return pkgName; - } - - public void setPkgName(String pkgName) { - this.pkgName = pkgName; - } - - public PkgMeta pkgVersion(String pkgVersion) { - this.pkgVersion = pkgVersion; - return this; - } - - /** - * Get pkgVersion - * @return pkgVersion - **/ - @ApiModelProperty(value = "") - public String getPkgVersion() { - return pkgVersion; - } - - public void setPkgVersion(String pkgVersion) { - this.pkgVersion = pkgVersion; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PkgMeta pkgMeta = (PkgMeta) o; - return Objects.equals(this.description, pkgMeta.description) && - Objects.equals(this.pkgName, pkgMeta.pkgName) && - Objects.equals(this.pkgVersion, pkgMeta.pkgVersion); - } - - @Override - public int hashCode() { - return Objects.hash(description, pkgName, pkgVersion); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PkgMeta {\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" pkgName: ").append(toIndentedString(pkgName)).append("\n"); - sb.append(" pkgVersion: ").append(toIndentedString(pkgVersion)).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 "); - } - -} - diff --git a/client/src/generated/java/com/influxdb/client/domain/PkgSpec.java b/client/src/generated/java/com/influxdb/client/domain/PkgSpec.java deleted file mode 100644 index a3eedecf9e8..00000000000 --- a/client/src/generated/java/com/influxdb/client/domain/PkgSpec.java +++ /dev/null @@ -1,104 +0,0 @@ -/* - * 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.util.ArrayList; -import java.util.List; - -/** - * PkgSpec - */ - -public class PkgSpec { - public static final String SERIALIZED_NAME_RESOURCES = "resources"; - @SerializedName(SERIALIZED_NAME_RESOURCES) - private List resources = new ArrayList<>(); - - public PkgSpec resources(List resources) { - this.resources = resources; - return this; - } - - public PkgSpec addResourcesItem(Object resourcesItem) { - if (this.resources == null) { - this.resources = new ArrayList<>(); - } - this.resources.add(resourcesItem); - return this; - } - - /** - * Get resources - * @return resources - **/ - @ApiModelProperty(value = "") - public List getResources() { - return resources; - } - - public void setResources(List resources) { - this.resources = resources; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PkgSpec pkgSpec = (PkgSpec) o; - return Objects.equals(this.resources, pkgSpec.resources); - } - - @Override - public int hashCode() { - return Objects.hash(resources); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PkgSpec {\n"); - sb.append(" resources: ").append(toIndentedString(resources)).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 "); - } - -} - diff --git a/client/src/generated/java/com/influxdb/client/domain/PkgSummary.java b/client/src/generated/java/com/influxdb/client/domain/PkgSummary.java deleted file mode 100644 index d892fede209..00000000000 --- a/client/src/generated/java/com/influxdb/client/domain/PkgSummary.java +++ /dev/null @@ -1,155 +0,0 @@ -/* - * 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.PkgSummaryDiff; -import com.influxdb.client.domain.PkgSummaryErrors; -import com.influxdb.client.domain.PkgSummarySummary; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -/** - * PkgSummary - */ - -public class PkgSummary { - public static final String SERIALIZED_NAME_SUMMARY = "summary"; - @SerializedName(SERIALIZED_NAME_SUMMARY) - private PkgSummarySummary summary = null; - - public static final String SERIALIZED_NAME_DIFF = "diff"; - @SerializedName(SERIALIZED_NAME_DIFF) - private PkgSummaryDiff diff = null; - - public static final String SERIALIZED_NAME_ERRORS = "errors"; - @SerializedName(SERIALIZED_NAME_ERRORS) - private List errors = new ArrayList<>(); - - public PkgSummary summary(PkgSummarySummary summary) { - this.summary = summary; - return this; - } - - /** - * Get summary - * @return summary - **/ - @ApiModelProperty(value = "") - public PkgSummarySummary getSummary() { - return summary; - } - - public void setSummary(PkgSummarySummary summary) { - this.summary = summary; - } - - public PkgSummary diff(PkgSummaryDiff diff) { - this.diff = diff; - return this; - } - - /** - * Get diff - * @return diff - **/ - @ApiModelProperty(value = "") - public PkgSummaryDiff getDiff() { - return diff; - } - - public void setDiff(PkgSummaryDiff diff) { - this.diff = diff; - } - - public PkgSummary errors(List errors) { - this.errors = errors; - return this; - } - - public PkgSummary addErrorsItem(PkgSummaryErrors errorsItem) { - if (this.errors == null) { - this.errors = new ArrayList<>(); - } - this.errors.add(errorsItem); - return this; - } - - /** - * Get errors - * @return errors - **/ - @ApiModelProperty(value = "") - public List getErrors() { - return errors; - } - - public void setErrors(List errors) { - this.errors = errors; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PkgSummary pkgSummary = (PkgSummary) o; - return Objects.equals(this.summary, pkgSummary.summary) && - Objects.equals(this.diff, pkgSummary.diff) && - Objects.equals(this.errors, pkgSummary.errors); - } - - @Override - public int hashCode() { - return Objects.hash(summary, diff, errors); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PkgSummary {\n"); - sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); - sb.append(" diff: ").append(toIndentedString(diff)).append("\n"); - sb.append(" errors: ").append(toIndentedString(errors)).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 "); - } - -} - diff --git a/client/src/generated/java/com/influxdb/client/domain/PkgSummaryDiff.java b/client/src/generated/java/com/influxdb/client/domain/PkgSummaryDiff.java deleted file mode 100644 index 78de16b29f4..00000000000 --- a/client/src/generated/java/com/influxdb/client/domain/PkgSummaryDiff.java +++ /dev/null @@ -1,237 +0,0 @@ -/* - * 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.PkgSummaryDiffBuckets; -import com.influxdb.client.domain.PkgSummaryDiffDashboards; -import com.influxdb.client.domain.PkgSummaryDiffLabelMappings; -import com.influxdb.client.domain.PkgSummaryDiffLabels; -import com.influxdb.client.domain.PkgSummaryDiffVariables; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -/** - * PkgSummaryDiff - */ - -public class PkgSummaryDiff { - public static final String SERIALIZED_NAME_BUCKETS = "buckets"; - @SerializedName(SERIALIZED_NAME_BUCKETS) - private List buckets = new ArrayList<>(); - - public static final String SERIALIZED_NAME_DASHBOARDS = "dashboards"; - @SerializedName(SERIALIZED_NAME_DASHBOARDS) - private List dashboards = new ArrayList<>(); - - public static final String SERIALIZED_NAME_LABELS = "labels"; - @SerializedName(SERIALIZED_NAME_LABELS) - private List labels = new ArrayList<>(); - - public static final String SERIALIZED_NAME_LABEL_MAPPINGS = "labelMappings"; - @SerializedName(SERIALIZED_NAME_LABEL_MAPPINGS) - private List labelMappings = new ArrayList<>(); - - public static final String SERIALIZED_NAME_VARIABLES = "variables"; - @SerializedName(SERIALIZED_NAME_VARIABLES) - private List variables = new ArrayList<>(); - - public PkgSummaryDiff buckets(List buckets) { - this.buckets = buckets; - return this; - } - - public PkgSummaryDiff addBucketsItem(PkgSummaryDiffBuckets bucketsItem) { - if (this.buckets == null) { - this.buckets = new ArrayList<>(); - } - this.buckets.add(bucketsItem); - return this; - } - - /** - * Get buckets - * @return buckets - **/ - @ApiModelProperty(value = "") - public List getBuckets() { - return buckets; - } - - public void setBuckets(List buckets) { - this.buckets = buckets; - } - - public PkgSummaryDiff dashboards(List dashboards) { - this.dashboards = dashboards; - return this; - } - - public PkgSummaryDiff addDashboardsItem(PkgSummaryDiffDashboards dashboardsItem) { - if (this.dashboards == null) { - this.dashboards = new ArrayList<>(); - } - this.dashboards.add(dashboardsItem); - return this; - } - - /** - * Get dashboards - * @return dashboards - **/ - @ApiModelProperty(value = "") - public List getDashboards() { - return dashboards; - } - - public void setDashboards(List dashboards) { - this.dashboards = dashboards; - } - - public PkgSummaryDiff labels(List labels) { - this.labels = labels; - return this; - } - - public PkgSummaryDiff addLabelsItem(PkgSummaryDiffLabels labelsItem) { - if (this.labels == null) { - this.labels = new ArrayList<>(); - } - this.labels.add(labelsItem); - return this; - } - - /** - * Get labels - * @return labels - **/ - @ApiModelProperty(value = "") - public List getLabels() { - return labels; - } - - public void setLabels(List labels) { - this.labels = labels; - } - - public PkgSummaryDiff labelMappings(List labelMappings) { - this.labelMappings = labelMappings; - return this; - } - - public PkgSummaryDiff addLabelMappingsItem(PkgSummaryDiffLabelMappings labelMappingsItem) { - if (this.labelMappings == null) { - this.labelMappings = new ArrayList<>(); - } - this.labelMappings.add(labelMappingsItem); - return this; - } - - /** - * Get labelMappings - * @return labelMappings - **/ - @ApiModelProperty(value = "") - public List getLabelMappings() { - return labelMappings; - } - - public void setLabelMappings(List labelMappings) { - this.labelMappings = labelMappings; - } - - public PkgSummaryDiff variables(List variables) { - this.variables = variables; - return this; - } - - public PkgSummaryDiff addVariablesItem(PkgSummaryDiffVariables variablesItem) { - if (this.variables == null) { - this.variables = new ArrayList<>(); - } - this.variables.add(variablesItem); - return this; - } - - /** - * Get variables - * @return variables - **/ - @ApiModelProperty(value = "") - public List getVariables() { - return variables; - } - - public void setVariables(List variables) { - this.variables = variables; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PkgSummaryDiff pkgSummaryDiff = (PkgSummaryDiff) o; - return Objects.equals(this.buckets, pkgSummaryDiff.buckets) && - Objects.equals(this.dashboards, pkgSummaryDiff.dashboards) && - Objects.equals(this.labels, pkgSummaryDiff.labels) && - Objects.equals(this.labelMappings, pkgSummaryDiff.labelMappings) && - Objects.equals(this.variables, pkgSummaryDiff.variables); - } - - @Override - public int hashCode() { - return Objects.hash(buckets, dashboards, labels, labelMappings, variables); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PkgSummaryDiff {\n"); - sb.append(" buckets: ").append(toIndentedString(buckets)).append("\n"); - sb.append(" dashboards: ").append(toIndentedString(dashboards)).append("\n"); - sb.append(" labels: ").append(toIndentedString(labels)).append("\n"); - sb.append(" labelMappings: ").append(toIndentedString(labelMappings)).append("\n"); - sb.append(" variables: ").append(toIndentedString(variables)).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 "); - } - -} - diff --git a/client/src/generated/java/com/influxdb/client/domain/PkgSummaryDiffBuckets.java b/client/src/generated/java/com/influxdb/client/domain/PkgSummaryDiffBuckets.java deleted file mode 100644 index d172fe48a40..00000000000 --- a/client/src/generated/java/com/influxdb/client/domain/PkgSummaryDiffBuckets.java +++ /dev/null @@ -1,214 +0,0 @@ -/* - * 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; - -/** - * PkgSummaryDiffBuckets - */ - -public class PkgSummaryDiffBuckets { - public static final String SERIALIZED_NAME_ID = "id"; - @SerializedName(SERIALIZED_NAME_ID) - private String id; - - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public static final String SERIALIZED_NAME_OLD_DESCRIPTION = "oldDescription"; - @SerializedName(SERIALIZED_NAME_OLD_DESCRIPTION) - private String oldDescription; - - public static final String SERIALIZED_NAME_NEW_DESCRIPTION = "newDescription"; - @SerializedName(SERIALIZED_NAME_NEW_DESCRIPTION) - private String newDescription; - - public static final String SERIALIZED_NAME_OLD_R_P = "oldRP"; - @SerializedName(SERIALIZED_NAME_OLD_R_P) - private String oldRP; - - public static final String SERIALIZED_NAME_NEW_R_P = "newRP"; - @SerializedName(SERIALIZED_NAME_NEW_R_P) - private String newRP; - - public PkgSummaryDiffBuckets id(String id) { - this.id = id; - return this; - } - - /** - * Get id - * @return id - **/ - @ApiModelProperty(value = "") - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public PkgSummaryDiffBuckets name(String name) { - this.name = name; - return this; - } - - /** - * Get name - * @return name - **/ - @ApiModelProperty(value = "") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public PkgSummaryDiffBuckets oldDescription(String oldDescription) { - this.oldDescription = oldDescription; - return this; - } - - /** - * Get oldDescription - * @return oldDescription - **/ - @ApiModelProperty(value = "") - public String getOldDescription() { - return oldDescription; - } - - public void setOldDescription(String oldDescription) { - this.oldDescription = oldDescription; - } - - public PkgSummaryDiffBuckets newDescription(String newDescription) { - this.newDescription = newDescription; - return this; - } - - /** - * Get newDescription - * @return newDescription - **/ - @ApiModelProperty(value = "") - public String getNewDescription() { - return newDescription; - } - - public void setNewDescription(String newDescription) { - this.newDescription = newDescription; - } - - public PkgSummaryDiffBuckets oldRP(String oldRP) { - this.oldRP = oldRP; - return this; - } - - /** - * Get oldRP - * @return oldRP - **/ - @ApiModelProperty(value = "") - public String getOldRP() { - return oldRP; - } - - public void setOldRP(String oldRP) { - this.oldRP = oldRP; - } - - public PkgSummaryDiffBuckets newRP(String newRP) { - this.newRP = newRP; - return this; - } - - /** - * Get newRP - * @return newRP - **/ - @ApiModelProperty(value = "") - public String getNewRP() { - return newRP; - } - - public void setNewRP(String newRP) { - this.newRP = newRP; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PkgSummaryDiffBuckets pkgSummaryDiffBuckets = (PkgSummaryDiffBuckets) o; - return Objects.equals(this.id, pkgSummaryDiffBuckets.id) && - Objects.equals(this.name, pkgSummaryDiffBuckets.name) && - Objects.equals(this.oldDescription, pkgSummaryDiffBuckets.oldDescription) && - Objects.equals(this.newDescription, pkgSummaryDiffBuckets.newDescription) && - Objects.equals(this.oldRP, pkgSummaryDiffBuckets.oldRP) && - Objects.equals(this.newRP, pkgSummaryDiffBuckets.newRP); - } - - @Override - public int hashCode() { - return Objects.hash(id, name, oldDescription, newDescription, oldRP, newRP); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PkgSummaryDiffBuckets {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" oldDescription: ").append(toIndentedString(oldDescription)).append("\n"); - sb.append(" newDescription: ").append(toIndentedString(newDescription)).append("\n"); - sb.append(" oldRP: ").append(toIndentedString(oldRP)).append("\n"); - sb.append(" newRP: ").append(toIndentedString(newRP)).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 "); - } - -} - diff --git a/client/src/generated/java/com/influxdb/client/domain/PkgSummaryDiffDashboards.java b/client/src/generated/java/com/influxdb/client/domain/PkgSummaryDiffDashboards.java deleted file mode 100644 index 5ab419a55d9..00000000000 --- a/client/src/generated/java/com/influxdb/client/domain/PkgSummaryDiffDashboards.java +++ /dev/null @@ -1,153 +0,0 @@ -/* - * 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.PkgChart; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -/** - * PkgSummaryDiffDashboards - */ - -public class PkgSummaryDiffDashboards { - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public static final String SERIALIZED_NAME_DESCRIPTION = "description"; - @SerializedName(SERIALIZED_NAME_DESCRIPTION) - private String description; - - public static final String SERIALIZED_NAME_CHARTS = "charts"; - @SerializedName(SERIALIZED_NAME_CHARTS) - private List charts = new ArrayList<>(); - - public PkgSummaryDiffDashboards name(String name) { - this.name = name; - return this; - } - - /** - * Get name - * @return name - **/ - @ApiModelProperty(value = "") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public PkgSummaryDiffDashboards description(String description) { - this.description = description; - return this; - } - - /** - * Get description - * @return description - **/ - @ApiModelProperty(value = "") - public String getDescription() { - return description; - } - - public void setDescription(String description) { - this.description = description; - } - - public PkgSummaryDiffDashboards charts(List charts) { - this.charts = charts; - return this; - } - - public PkgSummaryDiffDashboards addChartsItem(PkgChart chartsItem) { - if (this.charts == null) { - this.charts = new ArrayList<>(); - } - this.charts.add(chartsItem); - return this; - } - - /** - * Get charts - * @return charts - **/ - @ApiModelProperty(value = "") - public List getCharts() { - return charts; - } - - public void setCharts(List charts) { - this.charts = charts; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PkgSummaryDiffDashboards pkgSummaryDiffDashboards = (PkgSummaryDiffDashboards) o; - return Objects.equals(this.name, pkgSummaryDiffDashboards.name) && - Objects.equals(this.description, pkgSummaryDiffDashboards.description) && - Objects.equals(this.charts, pkgSummaryDiffDashboards.charts); - } - - @Override - public int hashCode() { - return Objects.hash(name, description, charts); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PkgSummaryDiffDashboards {\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" description: ").append(toIndentedString(description)).append("\n"); - sb.append(" charts: ").append(toIndentedString(charts)).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 "); - } - -} - diff --git a/client/src/generated/java/com/influxdb/client/domain/PkgSummaryDiffLabelMappings.java b/client/src/generated/java/com/influxdb/client/domain/PkgSummaryDiffLabelMappings.java deleted file mode 100644 index 047298837fd..00000000000 --- a/client/src/generated/java/com/influxdb/client/domain/PkgSummaryDiffLabelMappings.java +++ /dev/null @@ -1,214 +0,0 @@ -/* - * 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; - -/** - * PkgSummaryDiffLabelMappings - */ - -public class PkgSummaryDiffLabelMappings { - public static final String SERIALIZED_NAME_IS_NEW = "isNew"; - @SerializedName(SERIALIZED_NAME_IS_NEW) - private Boolean isNew; - - public static final String SERIALIZED_NAME_RESOURCE_TYPE = "resourceType"; - @SerializedName(SERIALIZED_NAME_RESOURCE_TYPE) - private String resourceType; - - public static final String SERIALIZED_NAME_RESOURCE_I_D = "resourceID"; - @SerializedName(SERIALIZED_NAME_RESOURCE_I_D) - private String resourceID; - - public static final String SERIALIZED_NAME_RESOURCE_NAME = "resourceName"; - @SerializedName(SERIALIZED_NAME_RESOURCE_NAME) - private String resourceName; - - public static final String SERIALIZED_NAME_LABEL_I_D = "labelID"; - @SerializedName(SERIALIZED_NAME_LABEL_I_D) - private String labelID; - - public static final String SERIALIZED_NAME_LABEL_NAME = "labelName"; - @SerializedName(SERIALIZED_NAME_LABEL_NAME) - private String labelName; - - public PkgSummaryDiffLabelMappings isNew(Boolean isNew) { - this.isNew = isNew; - return this; - } - - /** - * Get isNew - * @return isNew - **/ - @ApiModelProperty(value = "") - public Boolean getIsNew() { - return isNew; - } - - public void setIsNew(Boolean isNew) { - this.isNew = isNew; - } - - public PkgSummaryDiffLabelMappings resourceType(String resourceType) { - this.resourceType = resourceType; - return this; - } - - /** - * Get resourceType - * @return resourceType - **/ - @ApiModelProperty(value = "") - public String getResourceType() { - return resourceType; - } - - public void setResourceType(String resourceType) { - this.resourceType = resourceType; - } - - public PkgSummaryDiffLabelMappings resourceID(String resourceID) { - this.resourceID = resourceID; - return this; - } - - /** - * Get resourceID - * @return resourceID - **/ - @ApiModelProperty(value = "") - public String getResourceID() { - return resourceID; - } - - public void setResourceID(String resourceID) { - this.resourceID = resourceID; - } - - public PkgSummaryDiffLabelMappings resourceName(String resourceName) { - this.resourceName = resourceName; - return this; - } - - /** - * Get resourceName - * @return resourceName - **/ - @ApiModelProperty(value = "") - public String getResourceName() { - return resourceName; - } - - public void setResourceName(String resourceName) { - this.resourceName = resourceName; - } - - public PkgSummaryDiffLabelMappings labelID(String labelID) { - this.labelID = labelID; - return this; - } - - /** - * Get labelID - * @return labelID - **/ - @ApiModelProperty(value = "") - public String getLabelID() { - return labelID; - } - - public void setLabelID(String labelID) { - this.labelID = labelID; - } - - public PkgSummaryDiffLabelMappings labelName(String labelName) { - this.labelName = labelName; - return this; - } - - /** - * Get labelName - * @return labelName - **/ - @ApiModelProperty(value = "") - public String getLabelName() { - return labelName; - } - - public void setLabelName(String labelName) { - this.labelName = labelName; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PkgSummaryDiffLabelMappings pkgSummaryDiffLabelMappings = (PkgSummaryDiffLabelMappings) o; - return Objects.equals(this.isNew, pkgSummaryDiffLabelMappings.isNew) && - Objects.equals(this.resourceType, pkgSummaryDiffLabelMappings.resourceType) && - Objects.equals(this.resourceID, pkgSummaryDiffLabelMappings.resourceID) && - Objects.equals(this.resourceName, pkgSummaryDiffLabelMappings.resourceName) && - Objects.equals(this.labelID, pkgSummaryDiffLabelMappings.labelID) && - Objects.equals(this.labelName, pkgSummaryDiffLabelMappings.labelName); - } - - @Override - public int hashCode() { - return Objects.hash(isNew, resourceType, resourceID, resourceName, labelID, labelName); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PkgSummaryDiffLabelMappings {\n"); - sb.append(" isNew: ").append(toIndentedString(isNew)).append("\n"); - sb.append(" resourceType: ").append(toIndentedString(resourceType)).append("\n"); - sb.append(" resourceID: ").append(toIndentedString(resourceID)).append("\n"); - sb.append(" resourceName: ").append(toIndentedString(resourceName)).append("\n"); - sb.append(" labelID: ").append(toIndentedString(labelID)).append("\n"); - sb.append(" labelName: ").append(toIndentedString(labelName)).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 "); - } - -} - diff --git a/client/src/generated/java/com/influxdb/client/domain/PkgSummaryDiffLabels.java b/client/src/generated/java/com/influxdb/client/domain/PkgSummaryDiffLabels.java deleted file mode 100644 index 37a5ada0f04..00000000000 --- a/client/src/generated/java/com/influxdb/client/domain/PkgSummaryDiffLabels.java +++ /dev/null @@ -1,214 +0,0 @@ -/* - * 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; - -/** - * PkgSummaryDiffLabels - */ - -public class PkgSummaryDiffLabels { - public static final String SERIALIZED_NAME_ID = "id"; - @SerializedName(SERIALIZED_NAME_ID) - private String id; - - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public static final String SERIALIZED_NAME_OLD_DESCRIPTION = "oldDescription"; - @SerializedName(SERIALIZED_NAME_OLD_DESCRIPTION) - private String oldDescription; - - public static final String SERIALIZED_NAME_NEW_DESCRIPTION = "newDescription"; - @SerializedName(SERIALIZED_NAME_NEW_DESCRIPTION) - private String newDescription; - - public static final String SERIALIZED_NAME_OLD_COLOR = "oldColor"; - @SerializedName(SERIALIZED_NAME_OLD_COLOR) - private String oldColor; - - public static final String SERIALIZED_NAME_NEW_COLOR = "newColor"; - @SerializedName(SERIALIZED_NAME_NEW_COLOR) - private String newColor; - - public PkgSummaryDiffLabels id(String id) { - this.id = id; - return this; - } - - /** - * Get id - * @return id - **/ - @ApiModelProperty(value = "") - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public PkgSummaryDiffLabels name(String name) { - this.name = name; - return this; - } - - /** - * Get name - * @return name - **/ - @ApiModelProperty(value = "") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public PkgSummaryDiffLabels oldDescription(String oldDescription) { - this.oldDescription = oldDescription; - return this; - } - - /** - * Get oldDescription - * @return oldDescription - **/ - @ApiModelProperty(value = "") - public String getOldDescription() { - return oldDescription; - } - - public void setOldDescription(String oldDescription) { - this.oldDescription = oldDescription; - } - - public PkgSummaryDiffLabels newDescription(String newDescription) { - this.newDescription = newDescription; - return this; - } - - /** - * Get newDescription - * @return newDescription - **/ - @ApiModelProperty(value = "") - public String getNewDescription() { - return newDescription; - } - - public void setNewDescription(String newDescription) { - this.newDescription = newDescription; - } - - public PkgSummaryDiffLabels oldColor(String oldColor) { - this.oldColor = oldColor; - return this; - } - - /** - * Get oldColor - * @return oldColor - **/ - @ApiModelProperty(value = "") - public String getOldColor() { - return oldColor; - } - - public void setOldColor(String oldColor) { - this.oldColor = oldColor; - } - - public PkgSummaryDiffLabels newColor(String newColor) { - this.newColor = newColor; - return this; - } - - /** - * Get newColor - * @return newColor - **/ - @ApiModelProperty(value = "") - public String getNewColor() { - return newColor; - } - - public void setNewColor(String newColor) { - this.newColor = newColor; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PkgSummaryDiffLabels pkgSummaryDiffLabels = (PkgSummaryDiffLabels) o; - return Objects.equals(this.id, pkgSummaryDiffLabels.id) && - Objects.equals(this.name, pkgSummaryDiffLabels.name) && - Objects.equals(this.oldDescription, pkgSummaryDiffLabels.oldDescription) && - Objects.equals(this.newDescription, pkgSummaryDiffLabels.newDescription) && - Objects.equals(this.oldColor, pkgSummaryDiffLabels.oldColor) && - Objects.equals(this.newColor, pkgSummaryDiffLabels.newColor); - } - - @Override - public int hashCode() { - return Objects.hash(id, name, oldDescription, newDescription, oldColor, newColor); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PkgSummaryDiffLabels {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" oldDescription: ").append(toIndentedString(oldDescription)).append("\n"); - sb.append(" newDescription: ").append(toIndentedString(newDescription)).append("\n"); - sb.append(" oldColor: ").append(toIndentedString(oldColor)).append("\n"); - sb.append(" newColor: ").append(toIndentedString(newColor)).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 "); - } - -} - diff --git a/client/src/generated/java/com/influxdb/client/domain/PkgSummaryDiffVariables.java b/client/src/generated/java/com/influxdb/client/domain/PkgSummaryDiffVariables.java deleted file mode 100644 index db12f7193e3..00000000000 --- a/client/src/generated/java/com/influxdb/client/domain/PkgSummaryDiffVariables.java +++ /dev/null @@ -1,304 +0,0 @@ -/* - * 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.JsonArray; -import com.google.gson.JsonDeserializationContext; -import com.google.gson.JsonDeserializer; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.JsonSerializationContext; -import com.google.gson.JsonSerializer; -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.VariableProperties; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.lang.reflect.Type; -import java.util.ArrayList; -import java.util.List; - -/** - * PkgSummaryDiffVariables - */ - -public class PkgSummaryDiffVariables { - public static final String SERIALIZED_NAME_ID = "id"; - @SerializedName(SERIALIZED_NAME_ID) - private String id; - - public static final String SERIALIZED_NAME_NAME = "name"; - @SerializedName(SERIALIZED_NAME_NAME) - private String name; - - public static final String SERIALIZED_NAME_OLD_DESCRIPTION = "oldDescription"; - @SerializedName(SERIALIZED_NAME_OLD_DESCRIPTION) - private String oldDescription; - - public static final String SERIALIZED_NAME_NEW_DESCRIPTION = "newDescription"; - @SerializedName(SERIALIZED_NAME_NEW_DESCRIPTION) - private String newDescription; - - public static final String SERIALIZED_NAME_OLD_ARGS = "oldArgs"; - @SerializedName(SERIALIZED_NAME_OLD_ARGS) - @JsonAdapter(PkgSummary_diff_variablesOldArgsAdapter.class) - private VariableProperties oldArgs = null; - - public static final String SERIALIZED_NAME_NEW_ARGS = "newArgs"; - @SerializedName(SERIALIZED_NAME_NEW_ARGS) - @JsonAdapter(PkgSummary_diff_variablesNewArgsAdapter.class) - private VariableProperties newArgs = null; - - public PkgSummaryDiffVariables id(String id) { - this.id = id; - return this; - } - - /** - * Get id - * @return id - **/ - @ApiModelProperty(value = "") - public String getId() { - return id; - } - - public void setId(String id) { - this.id = id; - } - - public PkgSummaryDiffVariables name(String name) { - this.name = name; - return this; - } - - /** - * Get name - * @return name - **/ - @ApiModelProperty(value = "") - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public PkgSummaryDiffVariables oldDescription(String oldDescription) { - this.oldDescription = oldDescription; - return this; - } - - /** - * Get oldDescription - * @return oldDescription - **/ - @ApiModelProperty(value = "") - public String getOldDescription() { - return oldDescription; - } - - public void setOldDescription(String oldDescription) { - this.oldDescription = oldDescription; - } - - public PkgSummaryDiffVariables newDescription(String newDescription) { - this.newDescription = newDescription; - return this; - } - - /** - * Get newDescription - * @return newDescription - **/ - @ApiModelProperty(value = "") - public String getNewDescription() { - return newDescription; - } - - public void setNewDescription(String newDescription) { - this.newDescription = newDescription; - } - - public PkgSummaryDiffVariables oldArgs(VariableProperties oldArgs) { - this.oldArgs = oldArgs; - return this; - } - - /** - * Get oldArgs - * @return oldArgs - **/ - @ApiModelProperty(value = "") - public VariableProperties getOldArgs() { - return oldArgs; - } - - public void setOldArgs(VariableProperties oldArgs) { - this.oldArgs = oldArgs; - } - - public PkgSummaryDiffVariables newArgs(VariableProperties newArgs) { - this.newArgs = newArgs; - return this; - } - - /** - * Get newArgs - * @return newArgs - **/ - @ApiModelProperty(value = "") - public VariableProperties getNewArgs() { - return newArgs; - } - - public void setNewArgs(VariableProperties newArgs) { - this.newArgs = newArgs; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PkgSummaryDiffVariables pkgSummaryDiffVariables = (PkgSummaryDiffVariables) o; - return Objects.equals(this.id, pkgSummaryDiffVariables.id) && - Objects.equals(this.name, pkgSummaryDiffVariables.name) && - Objects.equals(this.oldDescription, pkgSummaryDiffVariables.oldDescription) && - Objects.equals(this.newDescription, pkgSummaryDiffVariables.newDescription) && - Objects.equals(this.oldArgs, pkgSummaryDiffVariables.oldArgs) && - Objects.equals(this.newArgs, pkgSummaryDiffVariables.newArgs); - } - - @Override - public int hashCode() { - return Objects.hash(id, name, oldDescription, newDescription, oldArgs, newArgs); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PkgSummaryDiffVariables {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" oldDescription: ").append(toIndentedString(oldDescription)).append("\n"); - sb.append(" newDescription: ").append(toIndentedString(newDescription)).append("\n"); - sb.append(" oldArgs: ").append(toIndentedString(oldArgs)).append("\n"); - sb.append(" newArgs: ").append(toIndentedString(newArgs)).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 "); - } - - public class PkgSummary_diff_variablesOldArgsAdapter implements JsonDeserializer, JsonSerializer { - - public PkgSummary_diff_variablesOldArgsAdapter() { - } - - @Override - public Object deserialize(final JsonElement json, final Type typeOfT, final JsonDeserializationContext context) throws JsonParseException { - - List discriminator = Arrays.asList("type"); - - JsonObject jsonObject = json.getAsJsonObject(); - - String[] types = discriminator.stream().map(jsonObject::get).filter(Objects::nonNull).map(JsonElement::getAsString).toArray(String[]::new); - - return deserialize(types, jsonObject, context); - } - - @Override - public JsonElement serialize(Object object, Type typeOfSrc, JsonSerializationContext context) { - - return context.serialize(object); - } - - private Object deserialize(final String[] types, final JsonElement json, final JsonDeserializationContext context) { - - if (Arrays.equals(new String[]{ "query" }, types)) { - return context.deserialize(json, QueryVariableProperties.class); - } - if (Arrays.equals(new String[]{ "constant" }, types)) { - return context.deserialize(json, ConstantVariableProperties.class); - } - if (Arrays.equals(new String[]{ "map" }, types)) { - return context.deserialize(json, MapVariableProperties.class); - } - - return context.deserialize(json, Object.class); - } - } - public class PkgSummary_diff_variablesNewArgsAdapter implements JsonDeserializer, JsonSerializer { - - public PkgSummary_diff_variablesNewArgsAdapter() { - } - - @Override - public Object deserialize(final JsonElement json, final Type typeOfT, final JsonDeserializationContext context) throws JsonParseException { - - List discriminator = Arrays.asList("type"); - - JsonObject jsonObject = json.getAsJsonObject(); - - String[] types = discriminator.stream().map(jsonObject::get).filter(Objects::nonNull).map(JsonElement::getAsString).toArray(String[]::new); - - return deserialize(types, jsonObject, context); - } - - @Override - public JsonElement serialize(Object object, Type typeOfSrc, JsonSerializationContext context) { - - return context.serialize(object); - } - - private Object deserialize(final String[] types, final JsonElement json, final JsonDeserializationContext context) { - - if (Arrays.equals(new String[]{ "query" }, types)) { - return context.deserialize(json, QueryVariableProperties.class); - } - if (Arrays.equals(new String[]{ "constant" }, types)) { - return context.deserialize(json, ConstantVariableProperties.class); - } - if (Arrays.equals(new String[]{ "map" }, types)) { - return context.deserialize(json, MapVariableProperties.class); - } - - return context.deserialize(json, Object.class); - } - } -} - diff --git a/client/src/generated/java/com/influxdb/client/domain/PkgSummaryErrors.java b/client/src/generated/java/com/influxdb/client/domain/PkgSummaryErrors.java deleted file mode 100644 index f636535297a..00000000000 --- a/client/src/generated/java/com/influxdb/client/domain/PkgSummaryErrors.java +++ /dev/null @@ -1,184 +0,0 @@ -/* - * 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.util.ArrayList; -import java.util.List; - -/** - * PkgSummaryErrors - */ - -public class PkgSummaryErrors { - public static final String SERIALIZED_NAME_KIND = "kind"; - @SerializedName(SERIALIZED_NAME_KIND) - private String kind; - - public static final String SERIALIZED_NAME_REASON = "reason"; - @SerializedName(SERIALIZED_NAME_REASON) - private String reason; - - public static final String SERIALIZED_NAME_FIELDS = "fields"; - @SerializedName(SERIALIZED_NAME_FIELDS) - private List fields = new ArrayList<>(); - - public static final String SERIALIZED_NAME_INDEXES = "indexes"; - @SerializedName(SERIALIZED_NAME_INDEXES) - private List indexes = new ArrayList<>(); - - public PkgSummaryErrors kind(String kind) { - this.kind = kind; - return this; - } - - /** - * Get kind - * @return kind - **/ - @ApiModelProperty(value = "") - public String getKind() { - return kind; - } - - public void setKind(String kind) { - this.kind = kind; - } - - public PkgSummaryErrors reason(String reason) { - this.reason = reason; - return this; - } - - /** - * Get reason - * @return reason - **/ - @ApiModelProperty(value = "") - public String getReason() { - return reason; - } - - public void setReason(String reason) { - this.reason = reason; - } - - public PkgSummaryErrors fields(List fields) { - this.fields = fields; - return this; - } - - public PkgSummaryErrors addFieldsItem(String fieldsItem) { - if (this.fields == null) { - this.fields = new ArrayList<>(); - } - this.fields.add(fieldsItem); - return this; - } - - /** - * Get fields - * @return fields - **/ - @ApiModelProperty(value = "") - public List getFields() { - return fields; - } - - public void setFields(List fields) { - this.fields = fields; - } - - public PkgSummaryErrors indexes(List indexes) { - this.indexes = indexes; - return this; - } - - public PkgSummaryErrors addIndexesItem(Integer indexesItem) { - if (this.indexes == null) { - this.indexes = new ArrayList<>(); - } - this.indexes.add(indexesItem); - return this; - } - - /** - * Get indexes - * @return indexes - **/ - @ApiModelProperty(value = "") - public List getIndexes() { - return indexes; - } - - public void setIndexes(List indexes) { - this.indexes = indexes; - } - - - @Override - public boolean equals(java.lang.Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - PkgSummaryErrors pkgSummaryErrors = (PkgSummaryErrors) o; - return Objects.equals(this.kind, pkgSummaryErrors.kind) && - Objects.equals(this.reason, pkgSummaryErrors.reason) && - Objects.equals(this.fields, pkgSummaryErrors.fields) && - Objects.equals(this.indexes, pkgSummaryErrors.indexes); - } - - @Override - public int hashCode() { - return Objects.hash(kind, reason, fields, indexes); - } - - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class PkgSummaryErrors {\n"); - sb.append(" kind: ").append(toIndentedString(kind)).append("\n"); - sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); - sb.append(" fields: ").append(toIndentedString(fields)).append("\n"); - sb.append(" indexes: ").append(toIndentedString(indexes)).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 "); - } - -} - diff --git a/client/src/generated/java/com/influxdb/client/domain/PkgSummarySummary.java b/client/src/generated/java/com/influxdb/client/domain/PkgSummarySummary.java deleted file mode 100644 index 7c58c390fa2..00000000000 --- a/client/src/generated/java/com/influxdb/client/domain/PkgSummarySummary.java +++ /dev/null @@ -1,237 +0,0 @@ -/* - * 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.Bucket; -import com.influxdb.client.domain.Label; -import com.influxdb.client.domain.PkgSummarySummaryDashboards; -import com.influxdb.client.domain.PkgSummarySummaryLabelMappings; -import com.influxdb.client.domain.Variable; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.io.IOException; -import java.util.ArrayList; -import java.util.List; - -/** - * PkgSummarySummary - */ - -public class PkgSummarySummary { - public static final String SERIALIZED_NAME_BUCKETS = "buckets"; - @SerializedName(SERIALIZED_NAME_BUCKETS) - private List buckets = new ArrayList<>(); - - public static final String SERIALIZED_NAME_LABELS = "labels"; - @SerializedName(SERIALIZED_NAME_LABELS) - private List