Skip to content

Commit 9d7ed4d

Browse files
app-services-ciwtrocki
authored andcommitted
chore(all): re-generate OpenAPI client(s)
1 parent d96368c commit 9d7ed4d

51 files changed

Lines changed: 295 additions & 52 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

packages/kafka-management-sdk/README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Kafka Service Fleet Manager
44

5-
- API version: 1.1.2
5+
- API version: 1.1.3
66

77
Kafka Service Fleet Manager is a Rest API to manage Kafka instances.
88

@@ -40,7 +40,7 @@ Add this dependency to your project's POM:
4040
<dependency>
4141
<groupId>com.redhat.cloud</groupId>
4242
<artifactId>kafka-management-sdk</artifactId>
43-
<version>1.1.2</version>
43+
<version>1.1.3</version>
4444
<scope>compile</scope>
4545
</dependency>
4646
```
@@ -50,7 +50,7 @@ Add this dependency to your project's POM:
5050
Add this dependency to your project's build file:
5151

5252
```groovy
53-
compile "com.redhat.cloud:kafka-management-sdk:1.1.2"
53+
compile "com.redhat.cloud:kafka-management-sdk:1.1.3"
5454
```
5555

5656
### Others
@@ -63,7 +63,7 @@ mvn clean package
6363

6464
Then manually install the following JARs:
6565

66-
- `target/kafka-management-sdk-1.1.2.jar`
66+
- `target/kafka-management-sdk-1.1.3.jar`
6767
- `target/lib/*.jar`
6868

6969
## Getting Started
@@ -115,6 +115,8 @@ Class | Method | HTTP request | Description
115115
*DefaultApi* | [**deleteKafkaById**](docs/DefaultApi.md#deleteKafkaById) | **DELETE** /api/kafkas_mgmt/v1/kafkas/{id} | Deletes a Kafka request by ID
116116
*DefaultApi* | [**getCloudProviderRegions**](docs/DefaultApi.md#getCloudProviderRegions) | **GET** /api/kafkas_mgmt/v1/cloud_providers/{id}/regions | Returns the list of supported regions of the supported cloud provider
117117
*DefaultApi* | [**getCloudProviders**](docs/DefaultApi.md#getCloudProviders) | **GET** /api/kafkas_mgmt/v1/cloud_providers | Returns the list of supported cloud providers
118+
*DefaultApi* | [**getErrorById**](docs/DefaultApi.md#getErrorById) | **GET** /api/kafkas_mgmt/v1/errors/{id} | Returns the error by id
119+
*DefaultApi* | [**getErrors**](docs/DefaultApi.md#getErrors) | **GET** /api/kafkas_mgmt/v1/errors | Returns the list of possible API errors
118120
*DefaultApi* | [**getKafkaById**](docs/DefaultApi.md#getKafkaById) | **GET** /api/kafkas_mgmt/v1/kafkas/{id} | Returns a Kafka request by ID
119121
*DefaultApi* | [**getKafkas**](docs/DefaultApi.md#getKafkas) | **GET** /api/kafkas_mgmt/v1/kafkas | Returns a list of Kafka requests
120122
*DefaultApi* | [**getMetricsByInstantQuery**](docs/DefaultApi.md#getMetricsByInstantQuery) | **GET** /api/kafkas_mgmt/v1/kafkas/{id}/metrics/query | Returns metrics with instant query by Kafka ID

packages/kafka-management-sdk/api/openapi.yaml

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ openapi: 3.0.0
22
info:
33
description: Kafka Service Fleet Manager is a Rest API to manage Kafka instances.
44
title: Kafka Service Fleet Manager
5-
version: 1.1.2
5+
version: 1.1.3
66
servers:
77
- description: Main (production) server
88
url: https://api.openshift.com
@@ -25,6 +25,39 @@ paths:
2525
description: Version metadata
2626
summary: Returns the version metadata
2727
x-accepts: application/json
28+
/api/kafkas_mgmt/v1/errors/{id}:
29+
get:
30+
operationId: getErrorById
31+
parameters:
32+
- description: The ID of record
33+
explode: false
34+
in: path
35+
name: id
36+
required: true
37+
schema:
38+
type: string
39+
style: simple
40+
responses:
41+
"200":
42+
content:
43+
application/json:
44+
schema:
45+
$ref: '#/components/schemas/Error'
46+
description: Get error by Id
47+
summary: Returns the error by id
48+
x-accepts: application/json
49+
/api/kafkas_mgmt/v1/errors:
50+
get:
51+
operationId: getErrors
52+
responses:
53+
"200":
54+
content:
55+
application/json:
56+
schema:
57+
$ref: '#/components/schemas/ErrorList'
58+
description: List of possible errors
59+
summary: Returns the list of possible API errors
60+
x-accepts: application/json
2861
/api/kafkas_mgmt/v1/status:
2962
get:
3063
operationId: getServiceStatus

packages/kafka-management-sdk/docs/DefaultApi.md

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ Method | HTTP request | Description
88
[**deleteKafkaById**](DefaultApi.md#deleteKafkaById) | **DELETE** /api/kafkas_mgmt/v1/kafkas/{id} | Deletes a Kafka request by ID
99
[**getCloudProviderRegions**](DefaultApi.md#getCloudProviderRegions) | **GET** /api/kafkas_mgmt/v1/cloud_providers/{id}/regions | Returns the list of supported regions of the supported cloud provider
1010
[**getCloudProviders**](DefaultApi.md#getCloudProviders) | **GET** /api/kafkas_mgmt/v1/cloud_providers | Returns the list of supported cloud providers
11+
[**getErrorById**](DefaultApi.md#getErrorById) | **GET** /api/kafkas_mgmt/v1/errors/{id} | Returns the error by id
12+
[**getErrors**](DefaultApi.md#getErrors) | **GET** /api/kafkas_mgmt/v1/errors | Returns the list of possible API errors
1113
[**getKafkaById**](DefaultApi.md#getKafkaById) | **GET** /api/kafkas_mgmt/v1/kafkas/{id} | Returns a Kafka request by ID
1214
[**getKafkas**](DefaultApi.md#getKafkas) | **GET** /api/kafkas_mgmt/v1/kafkas | Returns a list of Kafka requests
1315
[**getMetricsByInstantQuery**](DefaultApi.md#getMetricsByInstantQuery) | **GET** /api/kafkas_mgmt/v1/kafkas/{id}/metrics/query | Returns metrics with instant query by Kafka ID
@@ -319,6 +321,130 @@ Name | Type | Description | Notes
319321
| **500** | Unexpected error occurred | - |
320322

321323

324+
## getErrorById
325+
326+
> Error getErrorById(id)
327+
328+
Returns the error by id
329+
330+
### Example
331+
332+
```java
333+
// Import classes:
334+
import com.openshift.cloud.api.kas.invoker.ApiClient;
335+
import com.openshift.cloud.api.kas.invoker.ApiException;
336+
import com.openshift.cloud.api.kas.invoker.Configuration;
337+
import com.openshift.cloud.api.kas.invoker.models.*;
338+
import com.openshift.cloud.api.kas.DefaultApi;
339+
340+
public class Example {
341+
public static void main(String[] args) {
342+
ApiClient defaultClient = Configuration.getDefaultApiClient();
343+
defaultClient.setBasePath("https://api.openshift.com");
344+
345+
DefaultApi apiInstance = new DefaultApi(defaultClient);
346+
String id = "id_example"; // String | The ID of record
347+
try {
348+
Error result = apiInstance.getErrorById(id);
349+
System.out.println(result);
350+
} catch (ApiException e) {
351+
System.err.println("Exception when calling DefaultApi#getErrorById");
352+
System.err.println("Status code: " + e.getCode());
353+
System.err.println("Reason: " + e.getResponseBody());
354+
System.err.println("Response headers: " + e.getResponseHeaders());
355+
e.printStackTrace();
356+
}
357+
}
358+
}
359+
```
360+
361+
### Parameters
362+
363+
364+
Name | Type | Description | Notes
365+
------------- | ------------- | ------------- | -------------
366+
**id** | **String**| The ID of record |
367+
368+
### Return type
369+
370+
[**Error**](Error.md)
371+
372+
### Authorization
373+
374+
No authorization required
375+
376+
### HTTP request headers
377+
378+
- **Content-Type**: Not defined
379+
- **Accept**: application/json
380+
381+
382+
### HTTP response details
383+
| Status code | Description | Response headers |
384+
|-------------|-------------|------------------|
385+
| **200** | Get error by Id | - |
386+
387+
388+
## getErrors
389+
390+
> ErrorList getErrors()
391+
392+
Returns the list of possible API errors
393+
394+
### Example
395+
396+
```java
397+
// Import classes:
398+
import com.openshift.cloud.api.kas.invoker.ApiClient;
399+
import com.openshift.cloud.api.kas.invoker.ApiException;
400+
import com.openshift.cloud.api.kas.invoker.Configuration;
401+
import com.openshift.cloud.api.kas.invoker.models.*;
402+
import com.openshift.cloud.api.kas.DefaultApi;
403+
404+
public class Example {
405+
public static void main(String[] args) {
406+
ApiClient defaultClient = Configuration.getDefaultApiClient();
407+
defaultClient.setBasePath("https://api.openshift.com");
408+
409+
DefaultApi apiInstance = new DefaultApi(defaultClient);
410+
try {
411+
ErrorList result = apiInstance.getErrors();
412+
System.out.println(result);
413+
} catch (ApiException e) {
414+
System.err.println("Exception when calling DefaultApi#getErrors");
415+
System.err.println("Status code: " + e.getCode());
416+
System.err.println("Reason: " + e.getResponseBody());
417+
System.err.println("Response headers: " + e.getResponseHeaders());
418+
e.printStackTrace();
419+
}
420+
}
421+
}
422+
```
423+
424+
### Parameters
425+
426+
This endpoint does not need any parameter.
427+
428+
### Return type
429+
430+
[**ErrorList**](ErrorList.md)
431+
432+
### Authorization
433+
434+
No authorization required
435+
436+
### HTTP request headers
437+
438+
- **Content-Type**: Not defined
439+
- **Accept**: application/json
440+
441+
442+
### HTTP response details
443+
| Status code | Description | Response headers |
444+
|-------------|-------------|------------------|
445+
| **200** | List of possible errors | - |
446+
447+
322448
## getKafkaById
323449

324450
> KafkaRequest getKafkaById(id)

packages/kafka-management-sdk/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<description>Red Hat Aplicaiton Services Java SDK</description>
99
<url>https://github.com/redhat-developer/app-services-sdk-java</url>
1010

11-
<version>1.1.2</version>
11+
<version>1.1.3</version>
1212
<scm>
1313
<connection>scm:git:git@github.com:openapitools/openapi-generator.git</connection>
1414
<developerConnection>scm:git:git@github.com:openapitools/openapi-generator.git</developerConnection>

packages/kafka-management-sdk/src/main/java/com/openshift/cloud/api/kas/DefaultApi.java

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
import com.openshift.cloud.api.kas.models.CloudProviderList;
1111
import com.openshift.cloud.api.kas.models.CloudRegionList;
1212
import com.openshift.cloud.api.kas.models.Error;
13+
import com.openshift.cloud.api.kas.models.ErrorList;
1314
import com.openshift.cloud.api.kas.models.KafkaRequest;
1415
import com.openshift.cloud.api.kas.models.KafkaRequestList;
1516
import com.openshift.cloud.api.kas.models.KafkaRequestPayload;
@@ -234,6 +235,87 @@ public CloudProviderList getCloudProviders(String page, String size) throws ApiE
234235
GenericType<CloudProviderList> localVarReturnType = new GenericType<CloudProviderList>() {};
235236
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
236237
}
238+
/**
239+
* Returns the error by id
240+
*
241+
* @param id The ID of record (required)
242+
* @return a {@code Error}
243+
* @throws ApiException if fails to make API call
244+
*/
245+
public Error getErrorById(String id) throws ApiException {
246+
Object localVarPostBody = null;
247+
248+
// verify the required parameter 'id' is set
249+
if (id == null) {
250+
throw new ApiException(400, "Missing the required parameter 'id' when calling getErrorById");
251+
}
252+
253+
// create path and map variables
254+
String localVarPath = "/api/kafkas_mgmt/v1/errors/{id}".replaceAll("\\{format\\}","json")
255+
.replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString()));
256+
257+
// query params
258+
List<Pair> localVarQueryParams = new ArrayList<Pair>();
259+
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
260+
Map<String, String> localVarCookieParams = new HashMap<String, String>();
261+
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
262+
263+
264+
265+
266+
267+
final String[] localVarAccepts = {
268+
"application/json"
269+
};
270+
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
271+
272+
final String[] localVarContentTypes = {
273+
274+
};
275+
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
276+
277+
String[] localVarAuthNames = new String[] { };
278+
279+
GenericType<Error> localVarReturnType = new GenericType<Error>() {};
280+
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
281+
}
282+
/**
283+
* Returns the list of possible API errors
284+
*
285+
* @return a {@code ErrorList}
286+
* @throws ApiException if fails to make API call
287+
*/
288+
public ErrorList getErrors() throws ApiException {
289+
Object localVarPostBody = null;
290+
291+
// create path and map variables
292+
String localVarPath = "/api/kafkas_mgmt/v1/errors".replaceAll("\\{format\\}","json");
293+
294+
// query params
295+
List<Pair> localVarQueryParams = new ArrayList<Pair>();
296+
Map<String, String> localVarHeaderParams = new HashMap<String, String>();
297+
Map<String, String> localVarCookieParams = new HashMap<String, String>();
298+
Map<String, Object> localVarFormParams = new HashMap<String, Object>();
299+
300+
301+
302+
303+
304+
final String[] localVarAccepts = {
305+
"application/json"
306+
};
307+
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
308+
309+
final String[] localVarContentTypes = {
310+
311+
};
312+
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
313+
314+
String[] localVarAuthNames = new String[] { };
315+
316+
GenericType<ErrorList> localVarReturnType = new GenericType<ErrorList>() {};
317+
return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
318+
}
237319
/**
238320
* Returns a Kafka request by ID
239321
*

packages/kafka-management-sdk/src/main/java/com/openshift/cloud/api/kas/invoker/ApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public ApiClient() {
7676
this.json.setDateFormat((DateFormat) dateFormat.clone());
7777

7878
// Set default User-Agent.
79-
setUserAgent("OpenAPI-Generator/1.1.2/java");
79+
setUserAgent("OpenAPI-Generator/1.1.3/java");
8080

8181
// Setup authentications (key: authentication name, value: authentication).
8282
authentications = new HashMap<String, Authentication>();

packages/kafka-management-sdk/src/main/java/com/openshift/cloud/api/kas/invoker/ApiException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Kafka Service Fleet Manager
33
* Kafka Service Fleet Manager is a Rest API to manage Kafka instances.
44
*
5-
* The version of the OpenAPI document: 1.1.2
5+
* The version of the OpenAPI document: 1.1.3
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

packages/kafka-management-sdk/src/main/java/com/openshift/cloud/api/kas/invoker/Configuration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Kafka Service Fleet Manager
33
* Kafka Service Fleet Manager is a Rest API to manage Kafka instances.
44
*
5-
* The version of the OpenAPI document: 1.1.2
5+
* The version of the OpenAPI document: 1.1.3
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

packages/kafka-management-sdk/src/main/java/com/openshift/cloud/api/kas/invoker/JavaTimeFormatter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Kafka Service Fleet Manager
33
* Kafka Service Fleet Manager is a Rest API to manage Kafka instances.
44
*
5-
* The version of the OpenAPI document: 1.1.2
5+
* The version of the OpenAPI document: 1.1.3
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

packages/kafka-management-sdk/src/main/java/com/openshift/cloud/api/kas/invoker/Pair.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* Kafka Service Fleet Manager
33
* Kafka Service Fleet Manager is a Rest API to manage Kafka instances.
44
*
5-
* The version of the OpenAPI document: 1.1.2
5+
* The version of the OpenAPI document: 1.1.3
66
*
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

0 commit comments

Comments
 (0)