Skip to content

Commit db707c2

Browse files
fix(kafka-mgmt/v1): update kafka-mgmt/v1 SDK (#377)
Co-authored-by: app-services-ci <app-services-ci@users.noreply.github.com>
1 parent 43217b5 commit db707c2

6 files changed

Lines changed: 51 additions & 16 deletions

File tree

.errors/errors_kafka_mgmt.json

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"kind": "ErrorList",
33
"page": 1,
4-
"size": 43,
5-
"total": 43,
4+
"size": 47,
5+
"total": 47,
66
"items": [
77
{
88
"reason": "Forbidden to perform this action",
@@ -207,6 +207,34 @@
207207
"href": "/api/kafkas_mgmt/v1/errors/43",
208208
"code": "KAFKAS-MGMT-43"
209209
},
210+
{
211+
"reason": "Enterprise cluster ID is already used",
212+
"id": "44",
213+
"kind": "Error",
214+
"href": "/api/kafkas_mgmt/v1/errors/44",
215+
"code": "KAFKAS-MGMT-44"
216+
},
217+
{
218+
"reason": "Enterprise cluster ID is invalid",
219+
"id": "45",
220+
"kind": "Error",
221+
"href": "/api/kafkas_mgmt/v1/errors/45",
222+
"code": "KAFKAS-MGMT-45"
223+
},
224+
{
225+
"reason": "Enterprise external cluster ID is invalid",
226+
"id": "46",
227+
"kind": "Error",
228+
"href": "/api/kafkas_mgmt/v1/errors/46",
229+
"code": "KAFKAS-MGMT-46"
230+
},
231+
{
232+
"reason": "Dns name is invalid",
233+
"id": "47",
234+
"kind": "Error",
235+
"href": "/api/kafkas_mgmt/v1/errors/47",
236+
"code": "KAFKAS-MGMT-47"
237+
},
210238
{
211239
"reason": "Synchronous action is not supported, use async=true parameter",
212240
"id": "103",

.openapi/kas-fleet-manager.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -915,10 +915,7 @@ paths:
915915
content:
916916
application/json:
917917
schema:
918-
$ref: '#/components/schemas/KafkaRequest' # change me
919-
examples:
920-
KafkaRequestPostResponseExample:
921-
$ref: '#/components/examples/KafkaRequestExample' # change me
918+
$ref: '#/components/schemas/EnterpriseCluster'
922919
description: Enterprise cluster registered
923920
"400":
924921
content:

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1217,11 +1217,8 @@ paths:
12171217
"200":
12181218
content:
12191219
application/json:
1220-
examples:
1221-
KafkaRequestPostResponseExample:
1222-
$ref: '#/components/examples/KafkaRequestExample'
12231220
schema:
1224-
$ref: '#/components/schemas/KafkaRequest'
1221+
$ref: '#/components/schemas/EnterpriseCluster'
12251222
description: Enterprise cluster registered
12261223
"400":
12271224
content:

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ No authorization required
854854

855855
## registerEnterpriseOsdCluster
856856

857-
> KafkaRequest registerEnterpriseOsdCluster(enterpriseOsdClusterPayload)
857+
> EnterpriseCluster registerEnterpriseOsdCluster(enterpriseOsdClusterPayload)
858858
859859

860860

@@ -883,7 +883,7 @@ public class Example {
883883
DefaultApi apiInstance = new DefaultApi(defaultClient);
884884
EnterpriseOsdClusterPayload enterpriseOsdClusterPayload = new EnterpriseOsdClusterPayload(); // EnterpriseOsdClusterPayload | Enterprise OSD cluster details
885885
try {
886-
KafkaRequest result = apiInstance.registerEnterpriseOsdCluster(enterpriseOsdClusterPayload);
886+
EnterpriseCluster result = apiInstance.registerEnterpriseOsdCluster(enterpriseOsdClusterPayload);
887887
System.out.println(result);
888888
} catch (ApiException e) {
889889
System.err.println("Exception when calling DefaultApi#registerEnterpriseOsdCluster");
@@ -905,7 +905,7 @@ Name | Type | Description | Notes
905905

906906
### Return type
907907

908-
[**KafkaRequest**](KafkaRequest.md)
908+
[**EnterpriseCluster**](EnterpriseCluster.md)
909909

910910
### Authorization
911911

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,18 @@ public enum ApiErrorType {
9595
/** Billing account id missing or invalid*/
9696
ERROR_43("KAFKAS-MGMT-43"),
9797

98+
/** Enterprise cluster ID is already used*/
99+
ERROR_44("KAFKAS-MGMT-44"),
100+
101+
/** Enterprise cluster ID is invalid*/
102+
ERROR_45("KAFKAS-MGMT-45"),
103+
104+
/** Enterprise external cluster ID is invalid*/
105+
ERROR_46("KAFKAS-MGMT-46"),
106+
107+
/** Dns name is invalid*/
108+
ERROR_47("KAFKAS-MGMT-47"),
109+
98110
/** Synchronous action is not supported, use async=true parameter*/
99111
ERROR_103("KAFKAS-MGMT-103"),
100112

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
import com.openshift.cloud.api.kas.models.CloudProviderList;
1111
import com.openshift.cloud.api.kas.models.CloudRegionList;
12+
import com.openshift.cloud.api.kas.models.EnterpriseCluster;
1213
import com.openshift.cloud.api.kas.models.EnterpriseOsdClusterPayload;
1314
import com.openshift.cloud.api.kas.models.Error;
1415
import com.openshift.cloud.api.kas.models.KafkaRequest;
@@ -566,10 +567,10 @@ public VersionMetadata getVersionMetadata() throws ApiException {
566567
*
567568
* Register enterprise OSD cluster
568569
* @param enterpriseOsdClusterPayload Enterprise OSD cluster details (required)
569-
* @return a {@code KafkaRequest}
570+
* @return a {@code EnterpriseCluster}
570571
* @throws ApiException if fails to make API call
571572
*/
572-
public KafkaRequest registerEnterpriseOsdCluster(EnterpriseOsdClusterPayload enterpriseOsdClusterPayload) throws ApiException {
573+
public EnterpriseCluster registerEnterpriseOsdCluster(EnterpriseOsdClusterPayload enterpriseOsdClusterPayload) throws ApiException {
573574
Object localVarPostBody = enterpriseOsdClusterPayload;
574575

575576
// verify the required parameter 'enterpriseOsdClusterPayload' is set
@@ -602,7 +603,7 @@ public KafkaRequest registerEnterpriseOsdCluster(EnterpriseOsdClusterPayload ent
602603

603604
String[] localVarAuthNames = new String[] { "Bearer" };
604605

605-
GenericType<KafkaRequest> localVarReturnType = new GenericType<KafkaRequest>() {};
606+
GenericType<EnterpriseCluster> localVarReturnType = new GenericType<EnterpriseCluster>() {};
606607
return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
607608
}
608609
/**

0 commit comments

Comments
 (0)