Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated swagger to latest version #58

Merged
merged 1 commit into from
Sep 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## 1.1.0 [unreleased]

### API
1. [#58](https://github.com/influxdata/influxdb-client-java/pull/58): Updated swagger to latest version

### Bugs
1. [#57](https://github.com/influxdata/influxdb-client-java/pull/57): LabelsApi: orgID parameter has to be pass as second argument

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![CircleCI](https://circleci.com/gh/influxdata/influxdb-client-java.svg?style=svg)](https://circleci.com/gh/influxdata/influxdb-client-java)
[![codecov](https://codecov.io/gh/influxdata/influxdb-client-java/branch/master/graph/badge.svg)](https://codecov.io/gh/influxdata/influxdb-client-java)
[![License](https://img.shields.io/github/license/influxdata/influxdb-client-java.svg)](https://github.com/influxdata/influxdb-client-java/blob/master/LICENSE)
[![Maven Version](https://img.shields.io/nexus/s/https/repo1.maven.org/maven2/com.influxdb/influxdb-client-java.svg)](https://repo1.maven.org/maven2/com/influxdb/)
[![Maven Central](https://img.shields.io/maven-central/v/com.influxdb/influxdb-client)](https://repo1.maven.org/maven2/com/influxdb/)
[![GitHub issues](https://img.shields.io/github/issues-raw/influxdata/influxdb-client-java.svg)](https://github.com/influxdata/influxdb-client-java/issues)
[![GitHub pull requests](https://img.shields.io/github/issues-pr-raw/influxdata/influxdb-client-java.svg)](https://github.com/influxdata/influxdb-client-java/pulls)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException {

public static final String SERIALIZED_NAME_TIME_SINCE = "timeSince";
@SerializedName(SERIALIZED_NAME_TIME_SINCE)
private Integer timeSince;
private String timeSince;

public static final String SERIALIZED_NAME_STALE_TIME = "staleTime";
@SerializedName(SERIALIZED_NAME_STALE_TIME)
private String staleTime;

public static final String SERIALIZED_NAME_REPORT_ZERO = "reportZero";
@SerializedName(SERIALIZED_NAME_REPORT_ZERO)
Expand All @@ -107,24 +111,42 @@ public TypeEnum getType() {
return type;
}

public DeadmanCheck timeSince(Integer timeSince) {
public DeadmanCheck timeSince(String timeSince) {
this.timeSince = timeSince;
return this;
}

/**
* seconds before deadman triggers
* string duration before deadman triggers
* @return timeSince
**/
@ApiModelProperty(value = "seconds before deadman triggers")
public Integer getTimeSince() {
@ApiModelProperty(value = "string duration before deadman triggers")
public String getTimeSince() {
return timeSince;
}

public void setTimeSince(Integer timeSince) {
public void setTimeSince(String timeSince) {
this.timeSince = timeSince;
}

public DeadmanCheck staleTime(String staleTime) {
this.staleTime = staleTime;
return this;
}

/**
* string duration for time that a series is considered stale and should not trigger deadman
* @return staleTime
**/
@ApiModelProperty(value = "string duration for time that a series is considered stale and should not trigger deadman")
public String getStaleTime() {
return staleTime;
}

public void setStaleTime(String staleTime) {
this.staleTime = staleTime;
}

public DeadmanCheck reportZero(Boolean reportZero) {
this.reportZero = reportZero;
return this;
Expand Down Expand Up @@ -173,14 +195,15 @@ public boolean equals(java.lang.Object o) {
DeadmanCheck deadmanCheck = (DeadmanCheck) o;
return Objects.equals(this.type, deadmanCheck.type) &&
Objects.equals(this.timeSince, deadmanCheck.timeSince) &&
Objects.equals(this.staleTime, deadmanCheck.staleTime) &&
Objects.equals(this.reportZero, deadmanCheck.reportZero) &&
Objects.equals(this.level, deadmanCheck.level) &&
super.equals(o);
}

@Override
public int hashCode() {
return Objects.hash(type, timeSince, reportZero, level, super.hashCode());
return Objects.hash(type, timeSince, staleTime, reportZero, level, super.hashCode());
}


Expand All @@ -191,6 +214,7 @@ public String toString() {
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" timeSince: ").append(toIndentedString(timeSince)).append("\n");
sb.append(" staleTime: ").append(toIndentedString(staleTime)).append("\n");
sb.append(" reportZero: ").append(toIndentedString(reportZero)).append("\n");
sb.append(" level: ").append(toIndentedString(level)).append("\n");
sb.append("}");
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
/*
* 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;

/**
* Rendered flux that backs the check or notification.
*/
@ApiModel(description = "Rendered flux that backs the check or notification.")

public class FluxResponse {
public static final String SERIALIZED_NAME_FLUX = "flux";
@SerializedName(SERIALIZED_NAME_FLUX)
private String flux;

public FluxResponse flux(String flux) {
this.flux = flux;
return this;
}

/**
* Get flux
* @return flux
**/
@ApiModelProperty(value = "")
public String getFlux() {
return flux;
}

public void setFlux(String flux) {
this.flux = flux;
}


@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
FluxResponse fluxResponse = (FluxResponse) o;
return Objects.equals(this.flux, fluxResponse.flux);
}

@Override
public int hashCode() {
return Objects.hash(flux);
}


@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class FluxResponse {\n");
sb.append(" flux: ").append(toIndentedString(flux)).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 ");
}

}

Loading