Skip to content

Commit 994b620

Browse files
chore(all): re-generate OpenAPI client(s) (#176)
Co-authored-by: app-services-ci <app-services-ci@users.noreply.github.com>
1 parent edcc875 commit 994b620

15 files changed

Lines changed: 245 additions & 541 deletions

File tree

packages/connector-management-sdk/pom.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -260,13 +260,13 @@
260260
</dependencies>
261261
<properties>
262262
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
263-
<swagger-annotations-version>1.6.4</swagger-annotations-version>
263+
<swagger-annotations-version>1.5.22</swagger-annotations-version>
264264
<resteasy-version>6.0.0.Final</resteasy-version>
265-
<jackson-version>2.13.1</jackson-version>
266-
<jackson-databind-version>2.13.1</jackson-databind-version>
267-
<jackson-databind-nullable-version>0.2.2</jackson-databind-nullable-version>
265+
<jackson-version>2.10.5</jackson-version>
266+
<jackson-databind-version>2.10.5.1</jackson-databind-version>
267+
<jackson-databind-nullable-version>0.2.1</jackson-databind-nullable-version>
268268
<javax-annotation-version>1.3.2</javax-annotation-version>
269-
<threetenbp-version>2.12.5</threetenbp-version>
269+
<threetenbp-version>2.9.10</threetenbp-version>
270270
<maven-plugin-version>1.0.0</maven-plugin-version>
271271
<junit-version>4.13</junit-version>
272272
</properties>

packages/connector-management-sdk/src/main/java/com/openshift/cloud/api/connector/ApiErrorType.java

Lines changed: 0 additions & 159 deletions
This file was deleted.

packages/kafka-instance-sdk/pom.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -260,13 +260,13 @@
260260
</dependencies>
261261
<properties>
262262
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
263-
<swagger-annotations-version>1.6.4</swagger-annotations-version>
263+
<swagger-annotations-version>1.5.22</swagger-annotations-version>
264264
<resteasy-version>6.0.0.Final</resteasy-version>
265-
<jackson-version>2.13.1</jackson-version>
266-
<jackson-databind-version>2.13.1</jackson-databind-version>
267-
<jackson-databind-nullable-version>0.2.2</jackson-databind-nullable-version>
265+
<jackson-version>2.10.5</jackson-version>
266+
<jackson-databind-version>2.10.5.1</jackson-databind-version>
267+
<jackson-databind-nullable-version>0.2.1</jackson-databind-nullable-version>
268268
<javax-annotation-version>1.3.2</javax-annotation-version>
269-
<threetenbp-version>2.12.5</threetenbp-version>
269+
<threetenbp-version>2.9.10</threetenbp-version>
270270
<maven-plugin-version>1.0.0</maven-plugin-version>
271271
<junit-version>4.13</junit-version>
272272
</properties>

packages/kafka-management-sdk/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ Class | Method | HTTP request | Description
127127
*DefaultApi* | [**getKafkas**](docs/DefaultApi.md#getKafkas) | **GET** /api/kafkas_mgmt/v1/kafkas | Returns a list of Kafka requests
128128
*DefaultApi* | [**getMetricsByInstantQuery**](docs/DefaultApi.md#getMetricsByInstantQuery) | **GET** /api/kafkas_mgmt/v1/kafkas/{id}/metrics/query | Returns metrics with instant query by Kafka ID
129129
*DefaultApi* | [**getMetricsByRangeQuery**](docs/DefaultApi.md#getMetricsByRangeQuery) | **GET** /api/kafkas_mgmt/v1/kafkas/{id}/metrics/query_range | Returns metrics with timeseries range query by Kafka ID
130-
*DefaultApi* | [**getServiceStatus**](docs/DefaultApi.md#getServiceStatus) | **GET** /api/kafkas_mgmt/v1/status | Returns the status of resources, such as whether maximum service capacity has been reached
131130
*DefaultApi* | [**getVersionMetadata**](docs/DefaultApi.md#getVersionMetadata) | **GET** /api/kafkas_mgmt/v1 | Returns the version metadata
132131
*DefaultApi* | [**updateKafkaById**](docs/DefaultApi.md#updateKafkaById) | **PATCH** /api/kafkas_mgmt/v1/kafkas/{id} | Update a Kafka instance by id
133132
*ErrorsApi* | [**getErrorById**](docs/ErrorsApi.md#getErrorById) | **GET** /api/kafkas_mgmt/v1/errors/{id} | Returns the error by id
@@ -164,6 +163,7 @@ Class | Method | HTTP request | Description
164163
- [MetricsRangeQueryListAllOf](docs/MetricsRangeQueryListAllOf.md)
165164
- [ObjectReference](docs/ObjectReference.md)
166165
- [RangeQuery](docs/RangeQuery.md)
166+
- [RegionCapacityListItem](docs/RegionCapacityListItem.md)
167167
- [ServiceAccount](docs/ServiceAccount.md)
168168
- [ServiceAccountAllOf](docs/ServiceAccountAllOf.md)
169169
- [ServiceAccountList](docs/ServiceAccountList.md)

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

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -62,30 +62,7 @@ paths:
6262
tags:
6363
- errors
6464
x-accepts: application/json
65-
/api/kafkas_mgmt/v1/status:
66-
get:
67-
operationId: getServiceStatus
68-
responses:
69-
"200":
70-
content:
71-
application/json:
72-
schema:
73-
$ref: '#/components/schemas/ServiceStatus'
74-
description: Ok
75-
"500":
76-
content:
77-
application/json:
78-
examples:
79-
"500Example":
80-
$ref: '#/components/examples/500Example'
81-
schema:
82-
$ref: '#/components/schemas/Error'
83-
description: Unexpected error occurred
84-
security:
85-
- Bearer: []
86-
summary: Returns the status of resources, such as whether maximum service capacity
87-
has been reached
88-
x-accepts: application/json
65+
/api/kafkas_mgmt/v1/status: {}
8966
/api/kafkas_mgmt/v1/kafkas/{id}:
9067
delete:
9168
operationId: deleteKafkaById
@@ -1160,7 +1137,9 @@ components:
11601137
enabled: true
11611138
supported_instance_types:
11621139
- standard
1163-
- eval
1140+
capacity:
1141+
- instance_type: standard
1142+
max_capacity_reached: true
11641143
ServiceAccountRequestExample:
11651144
value:
11661145
name: my-app-sa
@@ -1643,7 +1622,14 @@ components:
16431622
items:
16441623
type: string
16451624
type: array
1625+
capacity:
1626+
description: Indicates whether there is capacity left per instance type
1627+
items:
1628+
allOf:
1629+
- $ref: '#/components/schemas/RegionCapacityListItem'
1630+
type: array
16461631
required:
1632+
- capacity
16471633
- enabled
16481634
- supported_instance_types
16491635
ServiceAccount:
@@ -1665,6 +1651,19 @@ components:
16651651
required:
16661652
- name
16671653
type: object
1654+
RegionCapacityListItem:
1655+
description: schema for a kafka instance type capacity in region
1656+
properties:
1657+
instance_type:
1658+
description: kafka instance type
1659+
type: string
1660+
max_capacity_reached:
1661+
description: flag indicating whether the capacity for the instance type
1662+
in the region is reached
1663+
type: boolean
1664+
required:
1665+
- max_capacity_reached
1666+
type: object
16681667
ServiceAccountListItem:
16691668
allOf:
16701669
- $ref: '#/components/schemas/ObjectReference'

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
1313
**displayName** | **String** | Name of the region for display purposes, for example &#x60;N. Virginia&#x60;. | [optional]
1414
**enabled** | **Boolean** | Whether the region is enabled for deploying an OSD cluster. |
1515
**supportedInstanceTypes** | **List&lt;String&gt;** | The Kafka instance types supported by this region. |
16+
**capacity** | [**List&lt;RegionCapacityListItem&gt;**](RegionCapacityListItem.md) | Indicates whether there is capacity left per instance type |
1617

1718

1819

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

Lines changed: 0 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ Method | HTTP request | Description
1313
[**getKafkas**](DefaultApi.md#getKafkas) | **GET** /api/kafkas_mgmt/v1/kafkas | Returns a list of Kafka requests
1414
[**getMetricsByInstantQuery**](DefaultApi.md#getMetricsByInstantQuery) | **GET** /api/kafkas_mgmt/v1/kafkas/{id}/metrics/query | Returns metrics with instant query by Kafka ID
1515
[**getMetricsByRangeQuery**](DefaultApi.md#getMetricsByRangeQuery) | **GET** /api/kafkas_mgmt/v1/kafkas/{id}/metrics/query_range | Returns metrics with timeseries range query by Kafka ID
16-
[**getServiceStatus**](DefaultApi.md#getServiceStatus) | **GET** /api/kafkas_mgmt/v1/status | Returns the status of resources, such as whether maximum service capacity has been reached
1716
[**getVersionMetadata**](DefaultApi.md#getVersionMetadata) | **GET** /api/kafkas_mgmt/v1 | Returns the version metadata
1817
[**updateKafkaById**](DefaultApi.md#updateKafkaById) | **PATCH** /api/kafkas_mgmt/v1/kafkas/{id} | Update a Kafka instance by id
1918

@@ -697,72 +696,6 @@ Name | Type | Description | Notes
697696
| **500** | Unexpected error occurred | - |
698697

699698

700-
## getServiceStatus
701-
702-
> ServiceStatus getServiceStatus()
703-
704-
Returns the status of resources, such as whether maximum service capacity has been reached
705-
706-
### Example
707-
708-
```java
709-
// Import classes:
710-
import com.openshift.cloud.api.kas.invoker.ApiClient;
711-
import com.openshift.cloud.api.kas.invoker.ApiException;
712-
import com.openshift.cloud.api.kas.invoker.Configuration;
713-
import com.openshift.cloud.api.kas.invoker.auth.*;
714-
import com.openshift.cloud.api.kas.invoker.models.*;
715-
import com.openshift.cloud.api.kas.DefaultApi;
716-
717-
public class Example {
718-
public static void main(String[] args) {
719-
ApiClient defaultClient = Configuration.getDefaultApiClient();
720-
defaultClient.setBasePath("https://api.openshift.com");
721-
722-
// Configure HTTP bearer authorization: Bearer
723-
HttpBearerAuth Bearer = (HttpBearerAuth) defaultClient.getAuthentication("Bearer");
724-
Bearer.setBearerToken("BEARER TOKEN");
725-
726-
DefaultApi apiInstance = new DefaultApi(defaultClient);
727-
try {
728-
ServiceStatus result = apiInstance.getServiceStatus();
729-
System.out.println(result);
730-
} catch (ApiException e) {
731-
System.err.println("Exception when calling DefaultApi#getServiceStatus");
732-
System.err.println("Status code: " + e.getCode());
733-
System.err.println("Reason: " + e.getResponseBody());
734-
System.err.println("Response headers: " + e.getResponseHeaders());
735-
e.printStackTrace();
736-
}
737-
}
738-
}
739-
```
740-
741-
### Parameters
742-
743-
This endpoint does not need any parameter.
744-
745-
### Return type
746-
747-
[**ServiceStatus**](ServiceStatus.md)
748-
749-
### Authorization
750-
751-
[Bearer](../README.md#Bearer)
752-
753-
### HTTP request headers
754-
755-
- **Content-Type**: Not defined
756-
- **Accept**: application/json
757-
758-
759-
### HTTP response details
760-
| Status code | Description | Response headers |
761-
|-------------|-------------|------------------|
762-
| **200** | Ok | - |
763-
| **500** | Unexpected error occurred | - |
764-
765-
766699
## getVersionMetadata
767700

768701
> VersionMetadata getVersionMetadata()
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
3+
# RegionCapacityListItem
4+
5+
schema for a kafka instance type capacity in region
6+
7+
## Properties
8+
9+
Name | Type | Description | Notes
10+
------------ | ------------- | ------------- | -------------
11+
**instanceType** | **String** | kafka instance type | [optional]
12+
**maxCapacityReached** | **Boolean** | flag indicating whether the capacity for the instance type in the region is reached |
13+
14+
15+

0 commit comments

Comments
 (0)