Skip to content

Commit

Permalink
Merge pull request #81 from aziontech/generated-sdk
Browse files Browse the repository at this point in the history
Auto-generated SDK
  • Loading branch information
PatrickMenoti authored Dec 22, 2023
2 parents 75217c3 + b5b4e9e commit cf8b2bd
Show file tree
Hide file tree
Showing 23 changed files with 82 additions and 115 deletions.
6 changes: 0 additions & 6 deletions storage/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,3 @@ src/main/java/org/openapitools/client/model/ResponseBucket.java
src/main/java/org/openapitools/client/model/StateEnum.java
src/main/java/org/openapitools/client/model/SuccessBucketOperation.java
src/main/java/org/openapitools/client/model/SuccessObjectOperation.java
src/test/java/org/openapitools/client/api/StorageApiTest.java
src/test/java/org/openapitools/client/model/BucketObjectTest.java
src/test/java/org/openapitools/client/model/ObjectResponseDataTest.java
src/test/java/org/openapitools/client/model/PaginatedBucketObjectListTest.java
src/test/java/org/openapitools/client/model/SuccessBucketOperationTest.java
src/test/java/org/openapitools/client/model/SuccessObjectOperationTest.java
2 changes: 1 addition & 1 deletion storage/.openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.1.0
7.2.0
2 changes: 1 addition & 1 deletion storage/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Object Storage
- API version: 1.0.0 (v1)
- Build date: 2023-12-15T14:58:01.416543Z[GMT]
- Build date: 2023-12-22T15:35:58.403741Z[GMT]

REST API OpenAPI documentation for the Object Storage

Expand Down
12 changes: 6 additions & 6 deletions storage/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -266,16 +266,17 @@ paths:
content:
application/octet-stream:
schema:
additionalProperties: {}
description: Unspecified request body
type: object
format: binary
type: string
responses:
"200":
content:
application/json:
schema:
$ref: '#/components/schemas/SuccessObjectOperation'
description: ""
"201":
description: Created
"400":
description: Bad Request
"404":
Expand Down Expand Up @@ -317,9 +318,8 @@ paths:
content:
application/octet-stream:
schema:
additionalProperties: {}
description: Unspecified request body
type: object
format: binary
type: string
responses:
"200":
content:
Expand Down
17 changes: 9 additions & 8 deletions storage/docs/StorageApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ public class Example {

<a id="storageApiBucketsObjectsCreate"></a>
# **storageApiBucketsObjectsCreate**
> SuccessObjectOperation storageApiBucketsObjectsCreate(bucketName, objectKey, requestBody)
> SuccessObjectOperation storageApiBucketsObjectsCreate(bucketName, objectKey, body)
Create new object key

Expand Down Expand Up @@ -275,9 +275,9 @@ public class Example {
StorageApi apiInstance = new StorageApi(defaultClient);
String bucketName = "bucketName_example"; // String |
String objectKey = "objectKey_example"; // String |
Map<String, Object> requestBody = null; // Map<String, Object> |
File body = new File("/path/to/file"); // File |
try {
SuccessObjectOperation result = apiInstance.storageApiBucketsObjectsCreate(bucketName, objectKey, requestBody);
SuccessObjectOperation result = apiInstance.storageApiBucketsObjectsCreate(bucketName, objectKey, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling StorageApi#storageApiBucketsObjectsCreate");
Expand All @@ -296,7 +296,7 @@ public class Example {
|------------- | ------------- | ------------- | -------------|
| **bucketName** | **String**| | |
| **objectKey** | **String**| | |
| **requestBody** | [**Map&lt;String, Object&gt;**](Object.md)| | [optional] |
| **body** | **File**| | [optional] |

### Return type

Expand All @@ -315,6 +315,7 @@ public class Example {
| Status code | Description | Response headers |
|-------------|-------------|------------------|
| **200** | | - |
| **201** | Created | - |
| **400** | Bad Request | - |
| **404** | Not Found | - |
| **406** | Not Acceptable | - |
Expand Down Expand Up @@ -557,7 +558,7 @@ public class Example {

<a id="storageApiBucketsObjectsUpdate"></a>
# **storageApiBucketsObjectsUpdate**
> SuccessObjectOperation storageApiBucketsObjectsUpdate(bucketName, objectKey, requestBody)
> SuccessObjectOperation storageApiBucketsObjectsUpdate(bucketName, objectKey, body)
Update the object key

Expand Down Expand Up @@ -587,9 +588,9 @@ public class Example {
StorageApi apiInstance = new StorageApi(defaultClient);
String bucketName = "bucketName_example"; // String |
String objectKey = "objectKey_example"; // String |
Map<String, Object> requestBody = null; // Map<String, Object> |
File body = new File("/path/to/file"); // File |
try {
SuccessObjectOperation result = apiInstance.storageApiBucketsObjectsUpdate(bucketName, objectKey, requestBody);
SuccessObjectOperation result = apiInstance.storageApiBucketsObjectsUpdate(bucketName, objectKey, body);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling StorageApi#storageApiBucketsObjectsUpdate");
Expand All @@ -608,7 +609,7 @@ public class Example {
|------------- | ------------- | ------------- | -------------|
| **bucketName** | **String**| | |
| **objectKey** | **String**| | |
| **requestBody** | [**Map&lt;String, Object&gt;**](Object.md)| | [optional] |
| **body** | **File**| | [optional] |

### Return type

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
import java.util.*;
import java.util.Map.Entry;
import java.util.concurrent.TimeUnit;
import java.util.function.Supplier;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* <p>ApiException class.</p>
*/
@SuppressWarnings("serial")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-15T14:58:01.416543Z[GMT]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-22T15:35:58.403741Z[GMT]")
public class ApiException extends Exception {
private int code = 0;
private Map<String, List<String>> responseHeaders = null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

package org.openapitools.client;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-15T14:58:01.416543Z[GMT]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-22T15:35:58.403741Z[GMT]")
public class Configuration {
public static final String VERSION = "1.0.0 (v1)";

Expand Down
2 changes: 1 addition & 1 deletion storage/src/main/java/org/openapitools/client/Pair.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

package org.openapitools.client;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-15T14:58:01.416543Z[GMT]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-22T15:35:58.403741Z[GMT]")
public class Pair {
private String name = "";
private String value = "";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import java.util.Collection;
import java.util.Iterator;

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-15T14:58:01.416543Z[GMT]")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-12-22T15:35:58.403741Z[GMT]")
public class StringUtil {
/**
* Check if the given array contains the given value (with case-insensitive comparison).
Expand Down
Loading

0 comments on commit cf8b2bd

Please sign in to comment.