Skip to content

Commit 5a72ea1

Browse files
chore(all): re-generate OpenAPI client(s) (#257)
Co-authored-by: app-services-ci <app-services-ci@users.noreply.github.com>
1 parent 85a71f7 commit 5a72ea1

17 files changed

Lines changed: 746 additions & 99 deletions

File tree

packages/connector-management-sdk/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
<plugin>
138138
<groupId>org.apache.maven.plugins</groupId>
139139
<artifactId>maven-compiler-plugin</artifactId>
140-
<version>3.10.1</version>
140+
<version>3.9.0</version>
141141
<configuration>
142142
<source>1.8</source>
143143
<target>1.8</target>
@@ -146,7 +146,7 @@
146146
<plugin>
147147
<groupId>org.apache.maven.plugins</groupId>
148148
<artifactId>maven-javadoc-plugin</artifactId>
149-
<version>3.3.2</version>
149+
<version>3.3.1</version>
150150
<configuration>
151151
<doclint>none</doclint>
152152
<source>1.8</source>
@@ -175,7 +175,7 @@
175175
<plugin>
176176
<groupId>org.sonatype.plugins</groupId>
177177
<artifactId>nexus-staging-maven-plugin</artifactId>
178-
<version>1.6.12</version>
178+
<version>1.6.8</version>
179179
<extensions>true</extensions>
180180
<configuration>
181181
<serverId>ossrh</serverId>
@@ -260,7 +260,7 @@
260260
</dependencies>
261261
<properties>
262262
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
263-
<swagger-annotations-version>1.6.6</swagger-annotations-version>
263+
<swagger-annotations-version>1.5.22</swagger-annotations-version>
264264
<resteasy-version>5.0.1.Final</resteasy-version>
265265
<jackson-version>2.10.5</jackson-version>
266266
<jackson-databind-version>2.10.5.1</jackson-databind-version>

packages/kafka-instance-sdk/pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
<plugin>
138138
<groupId>org.apache.maven.plugins</groupId>
139139
<artifactId>maven-compiler-plugin</artifactId>
140-
<version>3.10.1</version>
140+
<version>3.9.0</version>
141141
<configuration>
142142
<source>1.8</source>
143143
<target>1.8</target>
@@ -146,7 +146,7 @@
146146
<plugin>
147147
<groupId>org.apache.maven.plugins</groupId>
148148
<artifactId>maven-javadoc-plugin</artifactId>
149-
<version>3.3.2</version>
149+
<version>3.3.1</version>
150150
<configuration>
151151
<doclint>none</doclint>
152152
<source>1.8</source>
@@ -175,7 +175,7 @@
175175
<plugin>
176176
<groupId>org.sonatype.plugins</groupId>
177177
<artifactId>nexus-staging-maven-plugin</artifactId>
178-
<version>1.6.12</version>
178+
<version>1.6.8</version>
179179
<extensions>true</extensions>
180180
<configuration>
181181
<serverId>ossrh</serverId>
@@ -255,7 +255,7 @@
255255
</dependencies>
256256
<properties>
257257
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
258-
<swagger-annotations-version>1.6.6</swagger-annotations-version>
258+
<swagger-annotations-version>1.5.22</swagger-annotations-version>
259259
<resteasy-version>5.0.1.Final</resteasy-version>
260260
<jackson-version>2.10.5</jackson-version>
261261
<jackson-databind-version>2.10.5.1</jackson-databind-version>

packages/kafka-management-sdk/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ Class | Method | HTTP request | Description
135135
*SecurityApi* | [**deleteServiceAccountById**](docs/SecurityApi.md#deleteServiceAccountById) | **DELETE** /api/kafkas_mgmt/v1/service_accounts/{id} | Deletes a service account by ID
136136
*SecurityApi* | [**getServiceAccountById**](docs/SecurityApi.md#getServiceAccountById) | **GET** /api/kafkas_mgmt/v1/service_accounts/{id} | Returned service account by ID
137137
*SecurityApi* | [**getServiceAccounts**](docs/SecurityApi.md#getServiceAccounts) | **GET** /api/kafkas_mgmt/v1/service_accounts | Returns a list of service accounts
138+
*SecurityApi* | [**getSsoProviders**](docs/SecurityApi.md#getSsoProviders) | **GET** /api/kafkas_mgmt/v1/sso_providers | Return sso provider info
138139
*SecurityApi* | [**resetServiceAccountCreds**](docs/SecurityApi.md#resetServiceAccountCreds) | **POST** /api/kafkas_mgmt/v1/service_accounts/{id}/reset_credentials | Resets the credentials for a service account by ID
139140

140141

@@ -172,6 +173,8 @@ Class | Method | HTTP request | Description
172173
- [ServiceAccountListItem](docs/ServiceAccountListItem.md)
173174
- [ServiceAccountListItemAllOf](docs/ServiceAccountListItemAllOf.md)
174175
- [ServiceAccountRequest](docs/ServiceAccountRequest.md)
176+
- [SsoProvider](docs/SsoProvider.md)
177+
- [SsoProviderAllOf](docs/SsoProviderAllOf.md)
175178
- [Values](docs/Values.md)
176179
- [VersionMetadata](docs/VersionMetadata.md)
177180
- [VersionMetadataAllOf](docs/VersionMetadataAllOf.md)

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

Lines changed: 61 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -620,19 +620,6 @@ paths:
620620
schema:
621621
type: string
622622
style: form
623-
- description: The Kafka instance type to filter the results by
624-
examples:
625-
eval_instance_type:
626-
value: eval
627-
standard_instance_type:
628-
value: standard
629-
explode: true
630-
in: query
631-
name: instance_type
632-
required: false
633-
schema:
634-
type: string
635-
style: form
636623
responses:
637624
"200":
638625
content:
@@ -904,6 +891,40 @@ paths:
904891
tags:
905892
- security
906893
x-accepts: application/json
894+
/api/kafkas_mgmt/v1/sso_providers:
895+
get:
896+
operationId: getSsoProviders
897+
responses:
898+
"200":
899+
content:
900+
application/json:
901+
schema:
902+
$ref: '#/components/schemas/SsoProvider'
903+
description: Returned list of supported cloud providers
904+
"401":
905+
content:
906+
application/json:
907+
examples:
908+
"401Example":
909+
$ref: '#/components/examples/401Example'
910+
schema:
911+
$ref: '#/components/schemas/Error'
912+
description: Auth token is invalid
913+
"500":
914+
content:
915+
application/json:
916+
examples:
917+
"500Example":
918+
$ref: '#/components/examples/500Example'
919+
schema:
920+
$ref: '#/components/schemas/Error'
921+
description: Unexpected error occurred
922+
security:
923+
- Bearer: []
924+
summary: Return sso provider info
925+
tags:
926+
- security
927+
x-accepts: application/json
907928
/api/kafkas_mgmt/v1/kafkas/{id}/metrics/query_range:
908929
get:
909930
operationId: getMetricsByRangeQuery
@@ -1179,6 +1200,14 @@ components:
11791200
owner: test-user
11801201
created_by: test-user
11811202
created_at: 2021-04-07T16:24:01+05:30
1203+
SsoProviderExample:
1204+
value:
1205+
kind: SsoProvider
1206+
href: /api/kafkas_mgmt/v1/sso_providers
1207+
base_url: https://identity.api.redhat.com
1208+
jwks: https://identity.api.openshift.com/auth/realms/rhoas/protocol/openid-connect/certs
1209+
token_url: https://identity.api.openshift.com/auth/realms/rhoas/protocol/openid-connect/token
1210+
valid_issuer: https://identity.api.openshift.com/auth/realms/rhoas
11821211
ServiceAccountByIdExample:
11831212
value:
11841213
id: "1"
@@ -1493,20 +1522,6 @@ components:
14931522
schema:
14941523
type: string
14951524
style: form
1496-
instance_type:
1497-
description: The Kafka instance type to filter the results by
1498-
examples:
1499-
eval_instance_type:
1500-
value: eval
1501-
standard_instance_type:
1502-
value: standard
1503-
explode: true
1504-
in: query
1505-
name: instance_type
1506-
required: false
1507-
schema:
1508-
type: string
1509-
style: form
15101525
schemas:
15111526
ObjectReference:
15121527
properties:
@@ -1638,11 +1653,6 @@ components:
16381653
default: false
16391654
description: Whether the region is enabled for deploying an OSD cluster.
16401655
type: boolean
1641-
supported_instance_types:
1642-
description: The Kafka instance types supported by this region.
1643-
items:
1644-
type: string
1645-
type: array
16461656
capacity:
16471657
description: Indicates whether there is capacity left per instance type
16481658
items:
@@ -1692,6 +1702,11 @@ components:
16921702
ServiceAccountList:
16931703
allOf:
16941704
- $ref: '#/components/schemas/ServiceAccountList_allOf'
1705+
SsoProvider:
1706+
allOf:
1707+
- $ref: '#/components/schemas/ObjectReference'
1708+
- $ref: '#/components/schemas/SsoProvider_allOf'
1709+
description: SSO Provider
16951710
MetricsRangeQueryList:
16961711
allOf:
16971712
- $ref: '#/components/schemas/MetricsRangeQueryList_allOf'
@@ -1932,6 +1947,20 @@ components:
19321947
- items
19331948
- kind
19341949
type: object
1950+
SsoProvider_allOf:
1951+
example:
1952+
$ref: '#/components/examples/SsoProviderExample'
1953+
properties:
1954+
base_url:
1955+
description: base url
1956+
type: string
1957+
token_url:
1958+
type: string
1959+
jwks:
1960+
type: string
1961+
valid_issuer:
1962+
type: string
1963+
type: object
19351964
MetricsRangeQueryList_allOf:
19361965
example:
19371966
kind: MetricsRangeQueryList

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ Name | Type | Description | Notes
1212
**id** | **String** | Unique identifier of the object. | [optional]
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. |
15-
**supportedInstanceTypes** | **List&lt;String&gt;** | The Kafka instance types supported by this region. |
1615
**capacity** | [**List&lt;RegionCapacityListItem&gt;**](RegionCapacityListItem.md) | Indicates whether there is capacity left per instance type |
1716

1817

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ Name | Type | Description | Notes
246246

247247
## getCloudProviderRegions
248248

249-
> CloudRegionList getCloudProviderRegions(id, page, size, instanceType)
249+
> CloudRegionList getCloudProviderRegions(id, page, size)
250250
251251
Returns the list of supported regions of the supported cloud provider
252252

@@ -274,9 +274,8 @@ public class Example {
274274
String id = "id_example"; // String | The ID of record
275275
String page = "1"; // String | Page index
276276
String size = "100"; // String | Number of items in each page
277-
String instanceType = "eval"; // String | The Kafka instance type to filter the results by
278277
try {
279-
CloudRegionList result = apiInstance.getCloudProviderRegions(id, page, size, instanceType);
278+
CloudRegionList result = apiInstance.getCloudProviderRegions(id, page, size);
280279
System.out.println(result);
281280
} catch (ApiException e) {
282281
System.err.println("Exception when calling DefaultApi#getCloudProviderRegions");
@@ -297,7 +296,6 @@ Name | Type | Description | Notes
297296
**id** | **String**| The ID of record |
298297
**page** | **String**| Page index | [optional]
299298
**size** | **String**| Number of items in each page | [optional]
300-
**instanceType** | **String**| The Kafka instance type to filter the results by | [optional]
301299

302300
### Return type
303301

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

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Method | HTTP request | Description
88
[**deleteServiceAccountById**](SecurityApi.md#deleteServiceAccountById) | **DELETE** /api/kafkas_mgmt/v1/service_accounts/{id} | Deletes a service account by ID
99
[**getServiceAccountById**](SecurityApi.md#getServiceAccountById) | **GET** /api/kafkas_mgmt/v1/service_accounts/{id} | Returned service account by ID
1010
[**getServiceAccounts**](SecurityApi.md#getServiceAccounts) | **GET** /api/kafkas_mgmt/v1/service_accounts | Returns a list of service accounts
11+
[**getSsoProviders**](SecurityApi.md#getSsoProviders) | **GET** /api/kafkas_mgmt/v1/sso_providers | Return sso provider info
1112
[**resetServiceAccountCreds**](SecurityApi.md#resetServiceAccountCreds) | **POST** /api/kafkas_mgmt/v1/service_accounts/{id}/reset_credentials | Resets the credentials for a service account by ID
1213

1314

@@ -297,6 +298,73 @@ Name | Type | Description | Notes
297298
| **500** | Unexpected error occurred | - |
298299

299300

301+
## getSsoProviders
302+
303+
> SsoProvider getSsoProviders()
304+
305+
Return sso provider info
306+
307+
### Example
308+
309+
```java
310+
// Import classes:
311+
import com.openshift.cloud.api.kas.invoker.ApiClient;
312+
import com.openshift.cloud.api.kas.invoker.ApiException;
313+
import com.openshift.cloud.api.kas.invoker.Configuration;
314+
import com.openshift.cloud.api.kas.invoker.auth.*;
315+
import com.openshift.cloud.api.kas.invoker.models.*;
316+
import com.openshift.cloud.api.kas.SecurityApi;
317+
318+
public class Example {
319+
public static void main(String[] args) {
320+
ApiClient defaultClient = Configuration.getDefaultApiClient();
321+
defaultClient.setBasePath("https://api.openshift.com");
322+
323+
// Configure HTTP bearer authorization: Bearer
324+
HttpBearerAuth Bearer = (HttpBearerAuth) defaultClient.getAuthentication("Bearer");
325+
Bearer.setBearerToken("BEARER TOKEN");
326+
327+
SecurityApi apiInstance = new SecurityApi(defaultClient);
328+
try {
329+
SsoProvider result = apiInstance.getSsoProviders();
330+
System.out.println(result);
331+
} catch (ApiException e) {
332+
System.err.println("Exception when calling SecurityApi#getSsoProviders");
333+
System.err.println("Status code: " + e.getCode());
334+
System.err.println("Reason: " + e.getResponseBody());
335+
System.err.println("Response headers: " + e.getResponseHeaders());
336+
e.printStackTrace();
337+
}
338+
}
339+
}
340+
```
341+
342+
### Parameters
343+
344+
This endpoint does not need any parameter.
345+
346+
### Return type
347+
348+
[**SsoProvider**](SsoProvider.md)
349+
350+
### Authorization
351+
352+
[Bearer](../README.md#Bearer)
353+
354+
### HTTP request headers
355+
356+
- **Content-Type**: Not defined
357+
- **Accept**: application/json
358+
359+
360+
### HTTP response details
361+
| Status code | Description | Response headers |
362+
|-------------|-------------|------------------|
363+
| **200** | Returned list of supported cloud providers | - |
364+
| **401** | Auth token is invalid | - |
365+
| **500** | Unexpected error occurred | - |
366+
367+
300368
## resetServiceAccountCreds
301369

302370
> ServiceAccount resetServiceAccountCreds(id)
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
3+
# SsoProvider
4+
5+
SSO Provider
6+
7+
## Properties
8+
9+
Name | Type | Description | Notes
10+
------------ | ------------- | ------------- | -------------
11+
**id** | **String** | | [optional]
12+
**kind** | **String** | | [optional]
13+
**href** | **String** | | [optional]
14+
**baseUrl** | **String** | base url | [optional]
15+
**tokenUrl** | **String** | | [optional]
16+
**jwks** | **String** | | [optional]
17+
**validIssuer** | **String** | | [optional]
18+
19+
20+
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
3+
# SsoProviderAllOf
4+
5+
6+
## Properties
7+
8+
Name | Type | Description | Notes
9+
------------ | ------------- | ------------- | -------------
10+
**baseUrl** | **String** | base url | [optional]
11+
**tokenUrl** | **String** | | [optional]
12+
**jwks** | **String** | | [optional]
13+
**validIssuer** | **String** | | [optional]
14+
15+
16+

0 commit comments

Comments
 (0)