Skip to content

Commit 4507052

Browse files
fix(kafka-mgmt/v1): update kafka-mgmt/v1 SDK (#368)
Co-authored-by: app-services-ci <app-services-ci@users.noreply.github.com>
1 parent 4df136a commit 4507052

58 files changed

Lines changed: 425 additions & 65 deletions

Some content is hidden

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

.openapi/kas-fleet-manager.yaml

Lines changed: 44 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ openapi: 3.0.0 # need this as first line to allow some IDEs to know this is an o
22
# All endpoints defined here will be discoverable by all users. If there is a need to keep some endpoints "private", add them to the "managed-services-api-private.yaml" file
33
info:
44
title: Kafka Management API
5-
version: 1.11.0
5+
version: 1.12.0
66
description: Kafka Management API is a REST API to manage Kafka instances
77
license:
88
name: 'Apache 2.0'
@@ -1141,12 +1141,48 @@ components:
11411141
display_name:
11421142
description: 'Human readable name of the supported Kafka instance type'
11431143
type: string
1144+
supported_billing_models:
1145+
description: "A list of available kafka billing models for the instance type. Each kafka billing model item has a unique 'id'"
1146+
type: array
1147+
minItems: 1
1148+
items:
1149+
$ref: '#/components/schemas/SupportedKafkaBillingModel'
11441150
sizes:
1145-
description: ' A list of Kafka instance sizes available for this instance type'
1151+
description: 'A list of Kafka instance sizes available for this instance type'
11461152
type: array
11471153
items:
11481154
allOf:
11491155
- $ref: '#/components/schemas/SupportedKafkaSize'
1156+
required:
1157+
- supported_billing_models
1158+
SupportedKafkaBillingModel:
1159+
description: 'Supported Kafka Billing Model'
1160+
type: object
1161+
properties:
1162+
id:
1163+
description: 'Identifier for the Kafka billing model'
1164+
type: string
1165+
minLength: 1
1166+
ams_resource:
1167+
description: "AMS resource to be used. Accepted values: ['rhosak']"
1168+
type: string
1169+
minLength: 1
1170+
ams_product:
1171+
description: "AMS product to be used. Accepted values: ['RHOSAK', 'RHOSAKTrial', 'RHOSAKEval']"
1172+
type: string
1173+
minLength: 1
1174+
ams_billing_models:
1175+
description: "List of AMS available billing models: Accepted values: ['marketplace', 'marketplace-rhm', 'marketplace-aws']"
1176+
type: array
1177+
minItems: 1
1178+
items:
1179+
type: string
1180+
minLength: 1
1181+
required:
1182+
- id
1183+
- ams_resource
1184+
- ams_product
1185+
- ams_billing_models
11501186
SupportedKafkaSize:
11511187
description: 'Supported Kafka Size'
11521188
type: object
@@ -1738,6 +1774,12 @@ components:
17381774
value:
17391775
id: developer
17401776
display_name: Trial
1777+
supported_billing_models:
1778+
- id: trial
1779+
ams_resource: rhosak
1780+
ams_product: RHOSAKTrial
1781+
ams_billing_models:
1782+
- standard
17411783
sizes:
17421784
[
17431785
{

packages/kafka-management-sdk/README.md

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

33
Kafka Management API
44

5-
- API version: 1.11.0
5+
- API version: 1.12.0
66

77
Kafka Management API 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.11.0</version>
43+
<version>1.12.0</version>
4444
<scope>compile</scope>
4545
</dependency>
4646
```
@@ -56,7 +56,7 @@ Add this dependency to your project's build file:
5656
}
5757
5858
dependencies {
59-
implementation "com.redhat.cloud:kafka-management-sdk:1.11.0"
59+
implementation "com.redhat.cloud:kafka-management-sdk:1.12.0"
6060
}
6161
```
6262

@@ -70,7 +70,7 @@ mvn clean package
7070

7171
Then manually install the following JARs:
7272

73-
- `target/kafka-management-sdk-1.11.0.jar`
73+
- `target/kafka-management-sdk-1.12.0.jar`
7474
- `target/lib/*.jar`
7575

7676
## Getting Started
@@ -175,6 +175,7 @@ Class | Method | HTTP request | Description
175175
- [ServiceAccountRequest](docs/ServiceAccountRequest.md)
176176
- [SsoProvider](docs/SsoProvider.md)
177177
- [SsoProviderAllOf](docs/SsoProviderAllOf.md)
178+
- [SupportedKafkaBillingModel](docs/SupportedKafkaBillingModel.md)
178179
- [SupportedKafkaInstanceType](docs/SupportedKafkaInstanceType.md)
179180
- [SupportedKafkaInstanceTypesList](docs/SupportedKafkaInstanceTypesList.md)
180181
- [SupportedKafkaInstanceTypesListAllOf](docs/SupportedKafkaInstanceTypesListAllOf.md)

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

Lines changed: 48 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ info:
88
name: Apache 2.0
99
url: https://www.apache.org/licenses/LICENSE-2.0
1010
title: Kafka Management API
11-
version: 1.11.0
11+
version: 1.12.0
1212
servers:
1313
- description: Main (production) server
1414
url: https://api.openshift.com
@@ -1270,6 +1270,12 @@ components:
12701270
value:
12711271
id: developer
12721272
display_name: Trial
1273+
supported_billing_models:
1274+
- id: trial
1275+
ams_resource: rhosak
1276+
ams_product: RHOSAKTrial
1277+
ams_billing_models:
1278+
- standard
12731279
sizes:
12741280
- id: x1
12751281
display_name: "1"
@@ -1812,13 +1818,52 @@ components:
18121818
display_name:
18131819
description: Human readable name of the supported Kafka instance type
18141820
type: string
1821+
supported_billing_models:
1822+
description: A list of available kafka billing models for the instance type.
1823+
Each kafka billing model item has a unique 'id'
1824+
items:
1825+
$ref: '#/components/schemas/SupportedKafkaBillingModel'
1826+
minItems: 1
1827+
type: array
18151828
sizes:
1816-
description: ' A list of Kafka instance sizes available for this instance
1817-
type'
1829+
description: A list of Kafka instance sizes available for this instance
1830+
type
18181831
items:
18191832
allOf:
18201833
- $ref: '#/components/schemas/SupportedKafkaSize'
18211834
type: array
1835+
required:
1836+
- supported_billing_models
1837+
type: object
1838+
SupportedKafkaBillingModel:
1839+
description: Supported Kafka Billing Model
1840+
properties:
1841+
id:
1842+
description: Identifier for the Kafka billing model
1843+
minLength: 1
1844+
type: string
1845+
ams_resource:
1846+
description: 'AMS resource to be used. Accepted values: [''rhosak'']'
1847+
minLength: 1
1848+
type: string
1849+
ams_product:
1850+
description: 'AMS product to be used. Accepted values: [''RHOSAK'', ''RHOSAKTrial'',
1851+
''RHOSAKEval'']'
1852+
minLength: 1
1853+
type: string
1854+
ams_billing_models:
1855+
description: 'List of AMS available billing models: Accepted values: [''marketplace'',
1856+
''marketplace-rhm'', ''marketplace-aws'']'
1857+
items:
1858+
minLength: 1
1859+
type: string
1860+
minItems: 1
1861+
type: array
1862+
required:
1863+
- ams_billing_models
1864+
- ams_product
1865+
- ams_resource
1866+
- id
18221867
type: object
18231868
SupportedKafkaSize:
18241869
description: Supported Kafka Size
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
3+
# SupportedKafkaBillingModel
4+
5+
Supported Kafka Billing Model
6+
7+
## Properties
8+
9+
Name | Type | Description | Notes
10+
------------ | ------------- | ------------- | -------------
11+
**id** | **String** | Identifier for the Kafka billing model |
12+
**amsResource** | **String** | AMS resource to be used. Accepted values: [&#39;rhosak&#39;] |
13+
**amsProduct** | **String** | AMS product to be used. Accepted values: [&#39;RHOSAK&#39;, &#39;RHOSAKTrial&#39;, &#39;RHOSAKEval&#39;] |
14+
**amsBillingModels** | **List&lt;String&gt;** | List of AMS available billing models: Accepted values: [&#39;marketplace&#39;, &#39;marketplace-rhm&#39;, &#39;marketplace-aws&#39;] |
15+
16+
17+

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
1111
**id** | **String** | Unique identifier of the Kafka instance type. | [optional]
1212
**displayName** | **String** | Human readable name of the supported Kafka instance type | [optional]
13-
**sizes** | [**List&lt;SupportedKafkaSize&gt;**](SupportedKafkaSize.md) | A list of Kafka instance sizes available for this instance type | [optional]
13+
**supportedBillingModels** | [**List&lt;SupportedKafkaBillingModel&gt;**](SupportedKafkaBillingModel.md) | A list of available kafka billing models for the instance type. Each kafka billing model item has a unique &#39;id&#39; |
14+
**sizes** | [**List&lt;SupportedKafkaSize&gt;**](SupportedKafkaSize.md) | A list of Kafka instance sizes available for this instance type | [optional]
1415

1516

1617

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.11.0/java");
79+
setUserAgent("OpenAPI-Generator/1.12.0/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 Management API
33
* Kafka Management API is a REST API to manage Kafka instances
44
*
5-
* The version of the OpenAPI document: 1.11.0
5+
* The version of the OpenAPI document: 1.12.0
66
* Contact: rhosak-support@redhat.com
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 Management API
33
* Kafka Management API is a REST API to manage Kafka instances
44
*
5-
* The version of the OpenAPI document: 1.11.0
5+
* The version of the OpenAPI document: 1.12.0
66
* Contact: rhosak-support@redhat.com
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 Management API
33
* Kafka Management API is a REST API to manage Kafka instances
44
*
5-
* The version of the OpenAPI document: 1.11.0
5+
* The version of the OpenAPI document: 1.12.0
66
* Contact: rhosak-support@redhat.com
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 Management API
33
* Kafka Management API is a REST API to manage Kafka instances
44
*
5-
* The version of the OpenAPI document: 1.11.0
5+
* The version of the OpenAPI document: 1.12.0
66
* Contact: rhosak-support@redhat.com
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

0 commit comments

Comments
 (0)