Skip to content

Commit c2a3168

Browse files
app-services-ciwtrocki
authored andcommitted
chore(all): re-generate OpenAPI client(s)
1 parent 9a257ae commit c2a3168

3 files changed

Lines changed: 52 additions & 3 deletions

File tree

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1140,6 +1140,9 @@ components:
11401140
id: us-east-1
11411141
display_name: US East, N. Virginia
11421142
enabled: true
1143+
supported_instance_types:
1144+
- standard
1145+
- eval
11431146
ServiceAccountRequestExample:
11441147
value:
11451148
name: my-app-sa
@@ -1599,8 +1602,14 @@ components:
15991602
default: false
16001603
description: Whether the region is enabled for deploying an OSD cluster.
16011604
type: boolean
1605+
supported_instance_types:
1606+
description: The Kafka instance types supported by this region.
1607+
items:
1608+
type: string
1609+
type: array
16021610
required:
16031611
- enabled
1612+
- supported_instance_types
16041613
ServiceAccount:
16051614
allOf:
16061615
- $ref: '#/components/schemas/ObjectReference'

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ 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 `N. Virginia`. | [optional]
1414
**enabled** | **Boolean** | Whether the region is enabled for deploying an OSD cluster. |
15+
**supportedInstanceTypes** | **List<String>** | The Kafka instance types supported by this region. |
1516

1617

1718

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

Lines changed: 42 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
import com.fasterxml.jackson.annotation.JsonValue;
2323
import io.swagger.annotations.ApiModel;
2424
import io.swagger.annotations.ApiModelProperty;
25+
import java.util.ArrayList;
26+
import java.util.List;
2527
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
2628

2729
/**
@@ -32,7 +34,8 @@
3234
CloudRegion.JSON_PROPERTY_KIND,
3335
CloudRegion.JSON_PROPERTY_ID,
3436
CloudRegion.JSON_PROPERTY_DISPLAY_NAME,
35-
CloudRegion.JSON_PROPERTY_ENABLED
37+
CloudRegion.JSON_PROPERTY_ENABLED,
38+
CloudRegion.JSON_PROPERTY_SUPPORTED_INSTANCE_TYPES
3639
})
3740
@JsonTypeName("CloudRegion")
3841
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
@@ -49,6 +52,9 @@ public class CloudRegion {
4952
public static final String JSON_PROPERTY_ENABLED = "enabled";
5053
private Boolean enabled = false;
5154

55+
public static final String JSON_PROPERTY_SUPPORTED_INSTANCE_TYPES = "supported_instance_types";
56+
private List<String> supportedInstanceTypes = new ArrayList<>();
57+
5258

5359
public CloudRegion kind(String kind) {
5460

@@ -157,6 +163,37 @@ public void setEnabled(Boolean enabled) {
157163
}
158164

159165

166+
public CloudRegion supportedInstanceTypes(List<String> supportedInstanceTypes) {
167+
168+
this.supportedInstanceTypes = supportedInstanceTypes;
169+
return this;
170+
}
171+
172+
public CloudRegion addSupportedInstanceTypesItem(String supportedInstanceTypesItem) {
173+
this.supportedInstanceTypes.add(supportedInstanceTypesItem);
174+
return this;
175+
}
176+
177+
/**
178+
* The Kafka instance types supported by this region.
179+
* @return supportedInstanceTypes
180+
**/
181+
@ApiModelProperty(required = true, value = "The Kafka instance types supported by this region.")
182+
@JsonProperty(JSON_PROPERTY_SUPPORTED_INSTANCE_TYPES)
183+
@JsonInclude(value = JsonInclude.Include.ALWAYS)
184+
185+
public List<String> getSupportedInstanceTypes() {
186+
return supportedInstanceTypes;
187+
}
188+
189+
190+
@JsonProperty(JSON_PROPERTY_SUPPORTED_INSTANCE_TYPES)
191+
@JsonInclude(value = JsonInclude.Include.ALWAYS)
192+
public void setSupportedInstanceTypes(List<String> supportedInstanceTypes) {
193+
this.supportedInstanceTypes = supportedInstanceTypes;
194+
}
195+
196+
160197
@Override
161198
public boolean equals(Object o) {
162199
if (this == o) {
@@ -169,12 +206,13 @@ public boolean equals(Object o) {
169206
return Objects.equals(this.kind, cloudRegion.kind) &&
170207
Objects.equals(this.id, cloudRegion.id) &&
171208
Objects.equals(this.displayName, cloudRegion.displayName) &&
172-
Objects.equals(this.enabled, cloudRegion.enabled);
209+
Objects.equals(this.enabled, cloudRegion.enabled) &&
210+
Objects.equals(this.supportedInstanceTypes, cloudRegion.supportedInstanceTypes);
173211
}
174212

175213
@Override
176214
public int hashCode() {
177-
return Objects.hash(kind, id, displayName, enabled);
215+
return Objects.hash(kind, id, displayName, enabled, supportedInstanceTypes);
178216
}
179217

180218
@Override
@@ -185,6 +223,7 @@ public String toString() {
185223
sb.append(" id: ").append(toIndentedString(id)).append("\n");
186224
sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n");
187225
sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n");
226+
sb.append(" supportedInstanceTypes: ").append(toIndentedString(supportedInstanceTypes)).append("\n");
188227
sb.append("}");
189228
return sb.toString();
190229
}

0 commit comments

Comments
 (0)