Skip to content

Commit bc6e36b

Browse files
app-services-ciwtrocki
authored andcommitted
chore(all): re-generate OpenAPI client(s)
1 parent 5a4b4a5 commit bc6e36b

3 files changed

Lines changed: 25 additions & 25 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1518,24 +1518,24 @@ components:
15181518
leader:
15191519
id: 1
15201520
properties:
1521-
id:
1522-
description: Uniquie id for the partition
1521+
partition:
1522+
description: The partition id, unique among partitions of the same topic
15231523
type: integer
15241524
replicas:
15251525
description: List of replicas for the partition
15261526
items:
15271527
$ref: '#/components/schemas/Node'
15281528
type: array
15291529
isr:
1530-
description: List isync-replicas for this partition.
1530+
description: List in-sync replicas for this partition.
15311531
items:
15321532
$ref: '#/components/schemas/Node'
15331533
type: array
15341534
leader:
15351535
description: Kafka server / broker.
15361536
type: object
15371537
required:
1538-
- id
1538+
- partition
15391539
type: object
15401540
ConfigEntry:
15411541
description: Key value pair indicating possible configuration options for a

packages/kafka-instance-sdk/docs/Partition.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ Kafka topic partition
88

99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
11-
**id** | **Integer** | Uniquie id for the partition |
11+
**partition** | **Integer** | The partition id, unique among partitions of the same topic |
1212
**replicas** | **List<Object>** | List of replicas for the partition | [optional]
13-
**isr** | **List<Object>** | List isync-replicas for this partition. | [optional]
13+
**isr** | **List<Object>** | List in-sync replicas for this partition. | [optional]
1414
**leader** | **Object** | Kafka server / broker. | [optional]
1515

1616

packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/Partition.java

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,16 @@
3131
*/
3232
@ApiModel(description = "Kafka topic partition")
3333
@JsonPropertyOrder({
34-
Partition.JSON_PROPERTY_ID,
34+
Partition.JSON_PROPERTY_PARTITION,
3535
Partition.JSON_PROPERTY_REPLICAS,
3636
Partition.JSON_PROPERTY_ISR,
3737
Partition.JSON_PROPERTY_LEADER
3838
})
3939
@JsonTypeName("Partition")
4040
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
4141
public class Partition {
42-
public static final String JSON_PROPERTY_ID = "id";
43-
private Integer id;
42+
public static final String JSON_PROPERTY_PARTITION = "partition";
43+
private Integer partition;
4444

4545
public static final String JSON_PROPERTY_REPLICAS = "replicas";
4646
private List<Object> replicas = null;
@@ -52,29 +52,29 @@ public class Partition {
5252
private Object leader;
5353

5454

55-
public Partition id(Integer id) {
55+
public Partition partition(Integer partition) {
5656

57-
this.id = id;
57+
this.partition = partition;
5858
return this;
5959
}
6060

6161
/**
62-
* Uniquie id for the partition
63-
* @return id
62+
* The partition id, unique among partitions of the same topic
63+
* @return partition
6464
**/
65-
@ApiModelProperty(required = true, value = "Uniquie id for the partition")
66-
@JsonProperty(JSON_PROPERTY_ID)
65+
@ApiModelProperty(required = true, value = "The partition id, unique among partitions of the same topic")
66+
@JsonProperty(JSON_PROPERTY_PARTITION)
6767
@JsonInclude(value = JsonInclude.Include.ALWAYS)
6868

69-
public Integer getId() {
70-
return id;
69+
public Integer getPartition() {
70+
return partition;
7171
}
7272

7373

74-
@JsonProperty(JSON_PROPERTY_ID)
74+
@JsonProperty(JSON_PROPERTY_PARTITION)
7575
@JsonInclude(value = JsonInclude.Include.ALWAYS)
76-
public void setId(Integer id) {
77-
this.id = id;
76+
public void setPartition(Integer partition) {
77+
this.partition = partition;
7878
}
7979

8080

@@ -128,11 +128,11 @@ public Partition addIsrItem(Object isrItem) {
128128
}
129129

130130
/**
131-
* List isync-replicas for this partition.
131+
* List in-sync replicas for this partition.
132132
* @return isr
133133
**/
134134
@javax.annotation.Nullable
135-
@ApiModelProperty(value = "List isync-replicas for this partition.")
135+
@ApiModelProperty(value = "List in-sync replicas for this partition.")
136136
@JsonProperty(JSON_PROPERTY_ISR)
137137
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
138138

@@ -184,22 +184,22 @@ public boolean equals(Object o) {
184184
return false;
185185
}
186186
Partition partition = (Partition) o;
187-
return Objects.equals(this.id, partition.id) &&
187+
return Objects.equals(this.partition, partition.partition) &&
188188
Objects.equals(this.replicas, partition.replicas) &&
189189
Objects.equals(this.isr, partition.isr) &&
190190
Objects.equals(this.leader, partition.leader);
191191
}
192192

193193
@Override
194194
public int hashCode() {
195-
return Objects.hash(id, replicas, isr, leader);
195+
return Objects.hash(partition, replicas, isr, leader);
196196
}
197197

198198
@Override
199199
public String toString() {
200200
StringBuilder sb = new StringBuilder();
201201
sb.append("class Partition {\n");
202-
sb.append(" id: ").append(toIndentedString(id)).append("\n");
202+
sb.append(" partition: ").append(toIndentedString(partition)).append("\n");
203203
sb.append(" replicas: ").append(toIndentedString(replicas)).append("\n");
204204
sb.append(" isr: ").append(toIndentedString(isr)).append("\n");
205205
sb.append(" leader: ").append(toIndentedString(leader)).append("\n");

0 commit comments

Comments
 (0)