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

[SDK release] Generated SDK code based on data-link 0.4.0 API changes #17

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# databox

Static OpenAPI document of Push API resource
- API version: 0.3.15-sdk.5
- Build date: 2024-07-10T07:53:22.529213Z[Etc/UTC]
- API version: 0.4.0
- Build date: 2024-07-11T07:21:07.277524Z[Etc/UTC]
- Generator version: 7.6.0

Push API resources Open API documentation
Expand Down Expand Up @@ -41,7 +41,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>org.databox</groupId>
<artifactId>databox</artifactId>
<version>0.1.2</version>
<version>2.6.0</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -57,7 +57,7 @@ Add this dependency to your project's build file:
}

dependencies {
implementation "org.databox:databox:0.1.2"
implementation "org.databox:databox:2.6.0"
}
```

Expand All @@ -71,7 +71,7 @@ mvn clean package

Then manually install the following JARs:

* `target/databox-0.1.2.jar`
* `target/databox-2.6.0.jar`
* `target/lib/*.jar`

## Getting Started
Expand Down
10 changes: 5 additions & 5 deletions src/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# databox

Static OpenAPI document of Push API resource
- API version: 0.3.15-sdk.5
- Build date: 2024-07-10T07:53:22.529213Z[Etc/UTC]
- API version: 0.4.0
- Build date: 2024-07-11T07:21:07.277524Z[Etc/UTC]
- Generator version: 7.6.0

Push API resources Open API documentation
Expand Down Expand Up @@ -41,7 +41,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>org.databox</groupId>
<artifactId>databox</artifactId>
<version>0.1.2</version>
<version>2.6.0</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -57,7 +57,7 @@ Add this dependency to your project's build file:
}

dependencies {
implementation "org.databox:databox:0.1.2"
implementation "org.databox:databox:2.6.0"
}
```

Expand All @@ -71,7 +71,7 @@ mvn clean package

Then manually install the following JARs:

* `target/databox-0.1.2.jar`
* `target/databox-2.6.0.jar`
* `target/lib/*.jar`

## Getting Started
Expand Down
50 changes: 25 additions & 25 deletions src/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ openapi: 3.0.3
info:
description: Push API resources Open API documentation
title: Static OpenAPI document of Push API resource
version: 0.3.15-sdk.5
version: 0.4.0
servers:
- description: Dev mode server description
url: https://push.databox.com
security:
- basicAuth: []
paths:
/data:
delete:
/metrickeys:
get:
responses:
"200":
description: OK
Expand All @@ -21,37 +21,25 @@ paths:
content:
application/json:
schema:
items:
$ref: '#/components/schemas/PushData'
type: array
type: object
application/vnd.databox.v2+json:
schema:
items:
$ref: '#/components/schemas/PushData'
type: array
type: object
responses:
"200":
description: OK
x-content-type: application/json
x-accepts:
- application/json
/data/{metricKey}:
delete:
parameters:
- explode: false
in: path
name: metricKey
required: true
schema:
type: string
style: simple
/ping:
get:
responses:
"200":
description: OK
x-accepts:
- application/json
/metrickeys:
get:
/data:
delete:
responses:
"200":
description: OK
Expand All @@ -62,18 +50,30 @@ paths:
content:
application/json:
schema:
type: object
items:
$ref: '#/components/schemas/PushData'
type: array
application/vnd.databox.v2+json:
schema:
type: object
items:
$ref: '#/components/schemas/PushData'
type: array
responses:
"200":
description: OK
x-content-type: application/json
x-accepts:
- application/json
/ping:
get:
/data/{metricKey}:
delete:
parameters:
- explode: false
in: path
name: metricKey
required: true
schema:
type: string
style: simple
responses:
"200":
description: OK
Expand Down
2 changes: 1 addition & 1 deletion src/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apply plugin: 'java'
apply plugin: 'com.diffplug.spotless'

group = 'org.databox'
version = '0.1.2'
version = '2.6.0'

buildscript {
repositories {
Expand Down
2 changes: 1 addition & 1 deletion src/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
settings(
organization := "org.databox",
name := "databox",
version := "0.1.2",
version := "2.6.0",
scalaVersion := "2.11.4",
scalacOptions ++= Seq("-feature"),
javacOptions in compile ++= Seq("-Xlint:deprecation"),
Expand Down
2 changes: 1 addition & 1 deletion src/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>databox</artifactId>
<packaging>jar</packaging>
<name>databox</name>
<version>0.1.2</version>
<version>2.6.0</version>
<url>https://github.com/databox/databox-java</url>
<description>SDK Client for using Databox Push API feature</description>
<scm>
Expand Down
2 changes: 1 addition & 1 deletion src/src/main/java/org/databox/ApiCallback.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Static OpenAPI document of Push API resource
* Push API resources Open API documentation
*
* The version of the OpenAPI document: 0.3.15-sdk.5
* The version of the OpenAPI document: 0.4.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
4 changes: 2 additions & 2 deletions src/src/main/java/org/databox/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Static OpenAPI document of Push API resource
* Push API resources Open API documentation
*
* The version of the OpenAPI document: 0.3.15-sdk.5
* The version of the OpenAPI document: 0.4.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down Expand Up @@ -141,7 +141,7 @@ private void init() {
json = new JSON();

// Set default User-Agent.
setUserAgent("OpenAPI-Generator/0.1.2/java");
setUserAgent("OpenAPI-Generator/2.6.0/java");

authentications = new HashMap<String, Authentication>();
}
Expand Down
4 changes: 2 additions & 2 deletions src/src/main/java/org/databox/ApiException.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Static OpenAPI document of Push API resource
* Push API resources Open API documentation
*
* The version of the OpenAPI document: 0.3.15-sdk.5
* The version of the OpenAPI document: 0.4.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand All @@ -21,7 +21,7 @@
* <p>ApiException class.</p>
*/
@SuppressWarnings("serial")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-10T07:53:22.529213Z[Etc/UTC]", comments = "Generator version: 7.6.0")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-11T07:21:07.277524Z[Etc/UTC]", comments = "Generator version: 7.6.0")
public class ApiException extends Exception {
private static final long serialVersionUID = 1L;

Expand Down
2 changes: 1 addition & 1 deletion src/src/main/java/org/databox/ApiResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Static OpenAPI document of Push API resource
* Push API resources Open API documentation
*
* The version of the OpenAPI document: 0.3.15-sdk.5
* The version of the OpenAPI document: 0.4.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
6 changes: 3 additions & 3 deletions src/src/main/java/org/databox/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Static OpenAPI document of Push API resource
* Push API resources Open API documentation
*
* The version of the OpenAPI document: 0.3.15-sdk.5
* The version of the OpenAPI document: 0.4.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand All @@ -13,9 +13,9 @@

package org.databox;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-10T07:53:22.529213Z[Etc/UTC]", comments = "Generator version: 7.6.0")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-11T07:21:07.277524Z[Etc/UTC]", comments = "Generator version: 7.6.0")
public class Configuration {
public static final String VERSION = "0.1.2";
public static final String VERSION = "2.6.0";

private static ApiClient defaultApiClient = new ApiClient();

Expand Down
2 changes: 1 addition & 1 deletion src/src/main/java/org/databox/GzipRequestInterceptor.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Static OpenAPI document of Push API resource
* Push API resources Open API documentation
*
* The version of the OpenAPI document: 0.3.15-sdk.5
* The version of the OpenAPI document: 0.4.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/src/main/java/org/databox/JSON.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Static OpenAPI document of Push API resource
* Push API resources Open API documentation
*
* The version of the OpenAPI document: 0.3.15-sdk.5
* The version of the OpenAPI document: 0.4.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
4 changes: 2 additions & 2 deletions src/src/main/java/org/databox/Pair.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Static OpenAPI document of Push API resource
* Push API resources Open API documentation
*
* The version of the OpenAPI document: 0.3.15-sdk.5
* The version of the OpenAPI document: 0.4.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand All @@ -13,7 +13,7 @@

package org.databox;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-10T07:53:22.529213Z[Etc/UTC]", comments = "Generator version: 7.6.0")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-11T07:21:07.277524Z[Etc/UTC]", comments = "Generator version: 7.6.0")
public class Pair {
private String name = "";
private String value = "";
Expand Down
2 changes: 1 addition & 1 deletion src/src/main/java/org/databox/ProgressRequestBody.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Static OpenAPI document of Push API resource
* Push API resources Open API documentation
*
* The version of the OpenAPI document: 0.3.15-sdk.5
* The version of the OpenAPI document: 0.4.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/src/main/java/org/databox/ProgressResponseBody.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Static OpenAPI document of Push API resource
* Push API resources Open API documentation
*
* The version of the OpenAPI document: 0.3.15-sdk.5
* The version of the OpenAPI document: 0.4.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/src/main/java/org/databox/ServerConfiguration.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Representing a Server configuration.
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-10T07:53:22.529213Z[Etc/UTC]", comments = "Generator version: 7.6.0")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-11T07:21:07.277524Z[Etc/UTC]", comments = "Generator version: 7.6.0")
public class ServerConfiguration {
public String URL;
public String description;
Expand Down
2 changes: 1 addition & 1 deletion src/src/main/java/org/databox/ServerVariable.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/**
* Representing a Server Variable for server URL template substitution.
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-10T07:53:22.529213Z[Etc/UTC]", comments = "Generator version: 7.6.0")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-11T07:21:07.277524Z[Etc/UTC]", comments = "Generator version: 7.6.0")
public class ServerVariable {
public String description;
public String defaultValue;
Expand Down
4 changes: 2 additions & 2 deletions src/src/main/java/org/databox/StringUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Static OpenAPI document of Push API resource
* Push API resources Open API documentation
*
* The version of the OpenAPI document: 0.3.15-sdk.5
* The version of the OpenAPI document: 0.4.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand All @@ -16,7 +16,7 @@
import java.util.Collection;
import java.util.Iterator;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-10T07:53:22.529213Z[Etc/UTC]", comments = "Generator version: 7.6.0")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-11T07:21:07.277524Z[Etc/UTC]", comments = "Generator version: 7.6.0")
public class StringUtil {
/**
* Check if the given array contains the given value (with case-insensitive comparison).
Expand Down
2 changes: 1 addition & 1 deletion src/src/main/java/org/databox/api/DefaultApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Static OpenAPI document of Push API resource
* Push API resources Open API documentation
*
* The version of the OpenAPI document: 0.3.15-sdk.5
* The version of the OpenAPI document: 0.4.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
4 changes: 2 additions & 2 deletions src/src/main/java/org/databox/auth/ApiKeyAuth.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Static OpenAPI document of Push API resource
* Push API resources Open API documentation
*
* The version of the OpenAPI document: 0.3.15-sdk.5
* The version of the OpenAPI document: 0.4.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand All @@ -20,7 +20,7 @@
import java.util.Map;
import java.util.List;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-10T07:53:22.529213Z[Etc/UTC]", comments = "Generator version: 7.6.0")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-11T07:21:07.277524Z[Etc/UTC]", comments = "Generator version: 7.6.0")
public class ApiKeyAuth implements Authentication {
private final String location;
private final String paramName;
Expand Down
Loading