Skip to content

Commit f50211a

Browse files
fix(kafka-mgmt/v1): update kafka-mgmt/v1 SDK (#363)
Co-authored-by: app-services-ci <app-services-ci@users.noreply.github.com>
1 parent 441ddaf commit f50211a

6 files changed

Lines changed: 94 additions & 20 deletions

File tree

.openapi/kas-fleet-manager.yaml

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,22 +1066,25 @@ components:
10661066
- $ref: "#/components/schemas/KafkaRequest"
10671067
VersionMetadata:
10681068
allOf:
1069-
- $ref: "#/components/schemas/ObjectReference"
1070-
- type: object
1071-
example:
1072-
kind: "APIVersion"
1073-
id: "v1"
1074-
href: "/api/kafkas_mgmt/v1"
1075-
collections:
1076-
- id: "kafkas"
1077-
href: "/api/kafkas_mgmt/v1/kafkas"
1078-
kind: "KafkaList"
1079-
properties:
1080-
collections:
1081-
type: array
1082-
items:
1083-
allOf:
1084-
- $ref: "#/components/schemas/ObjectReference"
1069+
- $ref: "#/components/schemas/ObjectReference"
1070+
- type: object
1071+
example:
1072+
kind: "APIVersion"
1073+
id: "v1"
1074+
href: "/api/kafkas_mgmt/v1"
1075+
server_version: "24a263e8631d713b3104c1a70c143644ab91de6f"
1076+
collections:
1077+
- id: "kafkas"
1078+
href: "/api/kafkas_mgmt/v1/kafkas"
1079+
kind: "KafkaList"
1080+
properties:
1081+
server_version:
1082+
type: string
1083+
collections:
1084+
type: array
1085+
items:
1086+
allOf:
1087+
- $ref: "#/components/schemas/ObjectReference"
10851088
KafkaRequestPayload:
10861089
description: Schema for the request body sent to /kafkas POST
10871090
required:
@@ -1966,4 +1969,4 @@ components:
19661969
for cluster id: 1g5d88q0lrcdv4g7alb7slfgnj3dhbsj%!(EXTRA *errors.Error=identifier
19671970
is '404', code is 'CLUSTERS-MGMT-404' and operation identifier is '1g5or50viu07oealuehrkc26dgftj1ac':
19681971
Cluster '1g5d88q0lrcdv4g7alb7slfgnj3dhbsj' not found)"
1969-
operation_id: "1iYTsWry6nsqb2sNmFj5bXpD7Ca"
1972+
operation_id: "1iYTsWry6nsqb2sNmFj5bXpD7Ca"

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2139,11 +2139,14 @@ components:
21392139
kind: APIVersion
21402140
id: v1
21412141
href: /api/kafkas_mgmt/v1
2142+
server_version: 24a263e8631d713b3104c1a70c143644ab91de6f
21422143
collections:
21432144
- id: kafkas
21442145
href: /api/kafkas_mgmt/v1/kafkas
21452146
kind: KafkaList
21462147
properties:
2148+
server_version:
2149+
type: string
21472150
collections:
21482151
items:
21492152
allOf:

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
1010
**id** | **String** | |
1111
**kind** | **String** | |
1212
**href** | **String** | |
13+
**serverVersion** | **String** | | [optional]
1314
**collections** | [**List&lt;ObjectReference&gt;**](ObjectReference.md) | | [optional]
1415

1516

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
Name | Type | Description | Notes
99
------------ | ------------- | ------------- | -------------
10+
**serverVersion** | **String** | | [optional]
1011
**collections** | [**List&lt;ObjectReference&gt;**](ObjectReference.md) | | [optional]
1112

1213

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

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
VersionMetadata.JSON_PROPERTY_ID,
3737
VersionMetadata.JSON_PROPERTY_KIND,
3838
VersionMetadata.JSON_PROPERTY_HREF,
39+
VersionMetadata.JSON_PROPERTY_SERVER_VERSION,
3940
VersionMetadata.JSON_PROPERTY_COLLECTIONS
4041
})
4142
@JsonTypeName("VersionMetadata")
@@ -50,6 +51,9 @@ public class VersionMetadata {
5051
public static final String JSON_PROPERTY_HREF = "href";
5152
private String href;
5253

54+
public static final String JSON_PROPERTY_SERVER_VERSION = "server_version";
55+
private String serverVersion;
56+
5357
public static final String JSON_PROPERTY_COLLECTIONS = "collections";
5458
private List<ObjectReference> collections = null;
5559

@@ -137,6 +141,33 @@ public void setHref(String href) {
137141
}
138142

139143

144+
public VersionMetadata serverVersion(String serverVersion) {
145+
146+
this.serverVersion = serverVersion;
147+
return this;
148+
}
149+
150+
/**
151+
* Get serverVersion
152+
* @return serverVersion
153+
**/
154+
@javax.annotation.Nullable
155+
@ApiModelProperty(value = "")
156+
@JsonProperty(JSON_PROPERTY_SERVER_VERSION)
157+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
158+
159+
public String getServerVersion() {
160+
return serverVersion;
161+
}
162+
163+
164+
@JsonProperty(JSON_PROPERTY_SERVER_VERSION)
165+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
166+
public void setServerVersion(String serverVersion) {
167+
this.serverVersion = serverVersion;
168+
}
169+
170+
140171
public VersionMetadata collections(List<ObjectReference> collections) {
141172

142173
this.collections = collections;
@@ -184,12 +215,13 @@ public boolean equals(Object o) {
184215
return Objects.equals(this.id, versionMetadata.id) &&
185216
Objects.equals(this.kind, versionMetadata.kind) &&
186217
Objects.equals(this.href, versionMetadata.href) &&
218+
Objects.equals(this.serverVersion, versionMetadata.serverVersion) &&
187219
Objects.equals(this.collections, versionMetadata.collections);
188220
}
189221

190222
@Override
191223
public int hashCode() {
192-
return Objects.hash(id, kind, href, collections);
224+
return Objects.hash(id, kind, href, serverVersion, collections);
193225
}
194226

195227
@Override
@@ -199,6 +231,7 @@ public String toString() {
199231
sb.append(" id: ").append(toIndentedString(id)).append("\n");
200232
sb.append(" kind: ").append(toIndentedString(kind)).append("\n");
201233
sb.append(" href: ").append(toIndentedString(href)).append("\n");
234+
sb.append(" serverVersion: ").append(toIndentedString(serverVersion)).append("\n");
202235
sb.append(" collections: ").append(toIndentedString(collections)).append("\n");
203236
sb.append("}");
204237
return sb.toString();

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

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,48 @@
3232
* VersionMetadataAllOf
3333
*/
3434
@JsonPropertyOrder({
35+
VersionMetadataAllOf.JSON_PROPERTY_SERVER_VERSION,
3536
VersionMetadataAllOf.JSON_PROPERTY_COLLECTIONS
3637
})
3738
@JsonTypeName("VersionMetadata_allOf")
3839
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
3940
public class VersionMetadataAllOf {
41+
public static final String JSON_PROPERTY_SERVER_VERSION = "server_version";
42+
private String serverVersion;
43+
4044
public static final String JSON_PROPERTY_COLLECTIONS = "collections";
4145
private List<ObjectReference> collections = null;
4246

4347
public VersionMetadataAllOf() {
4448
}
4549

50+
public VersionMetadataAllOf serverVersion(String serverVersion) {
51+
52+
this.serverVersion = serverVersion;
53+
return this;
54+
}
55+
56+
/**
57+
* Get serverVersion
58+
* @return serverVersion
59+
**/
60+
@javax.annotation.Nullable
61+
@ApiModelProperty(value = "")
62+
@JsonProperty(JSON_PROPERTY_SERVER_VERSION)
63+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
64+
65+
public String getServerVersion() {
66+
return serverVersion;
67+
}
68+
69+
70+
@JsonProperty(JSON_PROPERTY_SERVER_VERSION)
71+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
72+
public void setServerVersion(String serverVersion) {
73+
this.serverVersion = serverVersion;
74+
}
75+
76+
4677
public VersionMetadataAllOf collections(List<ObjectReference> collections) {
4778

4879
this.collections = collections;
@@ -87,18 +118,20 @@ public boolean equals(Object o) {
87118
return false;
88119
}
89120
VersionMetadataAllOf versionMetadataAllOf = (VersionMetadataAllOf) o;
90-
return Objects.equals(this.collections, versionMetadataAllOf.collections);
121+
return Objects.equals(this.serverVersion, versionMetadataAllOf.serverVersion) &&
122+
Objects.equals(this.collections, versionMetadataAllOf.collections);
91123
}
92124

93125
@Override
94126
public int hashCode() {
95-
return Objects.hash(collections);
127+
return Objects.hash(serverVersion, collections);
96128
}
97129

98130
@Override
99131
public String toString() {
100132
StringBuilder sb = new StringBuilder();
101133
sb.append("class VersionMetadataAllOf {\n");
134+
sb.append(" serverVersion: ").append(toIndentedString(serverVersion)).append("\n");
102135
sb.append(" collections: ").append(toIndentedString(collections)).append("\n");
103136
sb.append("}");
104137
return sb.toString();

0 commit comments

Comments
 (0)