Skip to content

Commit daf485d

Browse files
chore(all): re-generate OpenAPI client(s) (#104)
Co-authored-by: app-services-ci <app-services-ci@users.noreply.github.com>
1 parent 106196b commit daf485d

7 files changed

Lines changed: 98 additions & 26 deletions

File tree

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

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -664,12 +664,12 @@ components:
664664
ServiceStatus:
665665
description: Schema for the service status response body
666666
example:
667-
max_eval_instances_reached: true
667+
max_instances_reached: true
668668
properties:
669-
max_eval_instances_reached:
670-
description: Boolean property indicating if the maximum number of Trial
671-
instances have been reached, therefore creation of more eval instances
672-
should not be allowed.
669+
max_instances_reached:
670+
description: Boolean property indicating if the maximum number of total
671+
instances have been reached, therefore creation of more instances should
672+
not be allowed.
673673
type: boolean
674674
title: Root Type for ServiceStatus
675675
type: object
@@ -695,6 +695,7 @@ components:
695695
id: "42"
696696
name: my-registry
697697
registryUrl: https://registry.apps.example.com/t/5213600b-afc9-487e-8cc3-339f4248d706
698+
browserUrl: https://registry-ui.apps.example.com/t/5213600b-afc9-487e-8cc3-339f4248d706
698699
status:
699700
status: PROVISIONING
700701
lastUpdated: 2021-05-04T12:34:56Z
@@ -707,6 +708,8 @@ components:
707708
$ref: '#/components/schemas/RegistryStatusValue'
708709
registryUrl:
709710
type: string
711+
browserUrl:
712+
type: string
710713
name:
711714
description: User-defined Registry name. Does not have to be unique.
712715
type: string
@@ -751,7 +754,8 @@ components:
751754
name: sample-registry
752755
status: ready
753756
owner: some_id
754-
registryUrl: https://somehost:433
757+
registryUrl: https://somehost:433/t/12345
758+
browserUrl: https://someuihost:443/registries/12345
755759
properties:
756760
items:
757761
items:

packages/registry-management-sdk/docs/Registry.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Name | Type | Description | Notes
1212
**href** | **String** | | [optional]
1313
**status** | **RegistryStatusValue** | |
1414
**registryUrl** | **String** | | [optional]
15+
**browserUrl** | **String** | | [optional]
1516
**name** | **String** | User-defined Registry name. Does not have to be unique. | [optional]
1617
**registryDeploymentId** | **Integer** | Identifier of a multi-tenant deployment, where this Service Registry instance resides. | [optional]
1718
**owner** | **String** | Registry instance owner | [optional]

packages/registry-management-sdk/docs/RootTypeForRegistry.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
1111
**id** | **String** | |
1212
**status** | **RegistryStatusValue** | |
1313
**registryUrl** | **String** | | [optional]
14+
**browserUrl** | **String** | | [optional]
1415
**name** | **String** | User-defined Registry name. Does not have to be unique. | [optional]
1516
**registryDeploymentId** | **Integer** | Identifier of a multi-tenant deployment, where this Service Registry instance resides. | [optional]
1617
**owner** | **String** | Registry instance owner | [optional]

packages/registry-management-sdk/docs/ServiceStatus.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Schema for the service status response body
88

99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
11-
**maxEvalInstancesReached** | **Boolean** | Boolean property indicating if the maximum number of Trial instances have been reached, therefore creation of more eval instances should not be allowed. | [optional]
11+
**maxInstancesReached** | **Boolean** | Boolean property indicating if the maximum number of total instances have been reached, therefore creation of more instances should not be allowed. | [optional]
1212

1313

1414

packages/registry-management-sdk/src/main/java/com/openshift/cloud/api/srs/models/Registry.java

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
Registry.JSON_PROPERTY_HREF,
3939
Registry.JSON_PROPERTY_STATUS,
4040
Registry.JSON_PROPERTY_REGISTRY_URL,
41+
Registry.JSON_PROPERTY_BROWSER_URL,
4142
Registry.JSON_PROPERTY_NAME,
4243
Registry.JSON_PROPERTY_REGISTRY_DEPLOYMENT_ID,
4344
Registry.JSON_PROPERTY_OWNER,
@@ -64,6 +65,9 @@ public class Registry {
6465
public static final String JSON_PROPERTY_REGISTRY_URL = "registryUrl";
6566
private String registryUrl;
6667

68+
public static final String JSON_PROPERTY_BROWSER_URL = "browserUrl";
69+
private String browserUrl;
70+
6771
public static final String JSON_PROPERTY_NAME = "name";
6872
private String name;
6973

@@ -219,6 +223,33 @@ public void setRegistryUrl(String registryUrl) {
219223
}
220224

221225

226+
public Registry browserUrl(String browserUrl) {
227+
228+
this.browserUrl = browserUrl;
229+
return this;
230+
}
231+
232+
/**
233+
* Get browserUrl
234+
* @return browserUrl
235+
**/
236+
@javax.annotation.Nullable
237+
@ApiModelProperty(value = "")
238+
@JsonProperty(JSON_PROPERTY_BROWSER_URL)
239+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
240+
241+
public String getBrowserUrl() {
242+
return browserUrl;
243+
}
244+
245+
246+
@JsonProperty(JSON_PROPERTY_BROWSER_URL)
247+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
248+
public void setBrowserUrl(String browserUrl) {
249+
this.browserUrl = browserUrl;
250+
}
251+
252+
222253
public Registry name(String name) {
223254

224255
this.name = name;
@@ -419,6 +450,7 @@ public boolean equals(Object o) {
419450
Objects.equals(this.href, registry.href) &&
420451
Objects.equals(this.status, registry.status) &&
421452
Objects.equals(this.registryUrl, registry.registryUrl) &&
453+
Objects.equals(this.browserUrl, registry.browserUrl) &&
422454
Objects.equals(this.name, registry.name) &&
423455
Objects.equals(this.registryDeploymentId, registry.registryDeploymentId) &&
424456
Objects.equals(this.owner, registry.owner) &&
@@ -430,7 +462,7 @@ public boolean equals(Object o) {
430462

431463
@Override
432464
public int hashCode() {
433-
return Objects.hash(id, kind, href, status, registryUrl, name, registryDeploymentId, owner, description, createdAt, updatedAt, instanceType);
465+
return Objects.hash(id, kind, href, status, registryUrl, browserUrl, name, registryDeploymentId, owner, description, createdAt, updatedAt, instanceType);
434466
}
435467

436468
@Override
@@ -442,6 +474,7 @@ public String toString() {
442474
sb.append(" href: ").append(toIndentedString(href)).append("\n");
443475
sb.append(" status: ").append(toIndentedString(status)).append("\n");
444476
sb.append(" registryUrl: ").append(toIndentedString(registryUrl)).append("\n");
477+
sb.append(" browserUrl: ").append(toIndentedString(browserUrl)).append("\n");
445478
sb.append(" name: ").append(toIndentedString(name)).append("\n");
446479
sb.append(" registryDeploymentId: ").append(toIndentedString(registryDeploymentId)).append("\n");
447480
sb.append(" owner: ").append(toIndentedString(owner)).append("\n");

packages/registry-management-sdk/src/main/java/com/openshift/cloud/api/srs/models/RootTypeForRegistry.java

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
RootTypeForRegistry.JSON_PROPERTY_ID,
3636
RootTypeForRegistry.JSON_PROPERTY_STATUS,
3737
RootTypeForRegistry.JSON_PROPERTY_REGISTRY_URL,
38+
RootTypeForRegistry.JSON_PROPERTY_BROWSER_URL,
3839
RootTypeForRegistry.JSON_PROPERTY_NAME,
3940
RootTypeForRegistry.JSON_PROPERTY_REGISTRY_DEPLOYMENT_ID,
4041
RootTypeForRegistry.JSON_PROPERTY_OWNER,
@@ -55,6 +56,9 @@ public class RootTypeForRegistry {
5556
public static final String JSON_PROPERTY_REGISTRY_URL = "registryUrl";
5657
private String registryUrl;
5758

59+
public static final String JSON_PROPERTY_BROWSER_URL = "browserUrl";
60+
private String browserUrl;
61+
5862
public static final String JSON_PROPERTY_NAME = "name";
5963
private String name;
6064

@@ -156,6 +160,33 @@ public void setRegistryUrl(String registryUrl) {
156160
}
157161

158162

163+
public RootTypeForRegistry browserUrl(String browserUrl) {
164+
165+
this.browserUrl = browserUrl;
166+
return this;
167+
}
168+
169+
/**
170+
* Get browserUrl
171+
* @return browserUrl
172+
**/
173+
@javax.annotation.Nullable
174+
@ApiModelProperty(value = "")
175+
@JsonProperty(JSON_PROPERTY_BROWSER_URL)
176+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
177+
178+
public String getBrowserUrl() {
179+
return browserUrl;
180+
}
181+
182+
183+
@JsonProperty(JSON_PROPERTY_BROWSER_URL)
184+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
185+
public void setBrowserUrl(String browserUrl) {
186+
this.browserUrl = browserUrl;
187+
}
188+
189+
159190
public RootTypeForRegistry name(String name) {
160191

161192
this.name = name;
@@ -354,6 +385,7 @@ public boolean equals(Object o) {
354385
return Objects.equals(this.id, rootTypeForRegistry.id) &&
355386
Objects.equals(this.status, rootTypeForRegistry.status) &&
356387
Objects.equals(this.registryUrl, rootTypeForRegistry.registryUrl) &&
388+
Objects.equals(this.browserUrl, rootTypeForRegistry.browserUrl) &&
357389
Objects.equals(this.name, rootTypeForRegistry.name) &&
358390
Objects.equals(this.registryDeploymentId, rootTypeForRegistry.registryDeploymentId) &&
359391
Objects.equals(this.owner, rootTypeForRegistry.owner) &&
@@ -365,7 +397,7 @@ public boolean equals(Object o) {
365397

366398
@Override
367399
public int hashCode() {
368-
return Objects.hash(id, status, registryUrl, name, registryDeploymentId, owner, description, createdAt, updatedAt, instanceType);
400+
return Objects.hash(id, status, registryUrl, browserUrl, name, registryDeploymentId, owner, description, createdAt, updatedAt, instanceType);
369401
}
370402

371403
@Override
@@ -375,6 +407,7 @@ public String toString() {
375407
sb.append(" id: ").append(toIndentedString(id)).append("\n");
376408
sb.append(" status: ").append(toIndentedString(status)).append("\n");
377409
sb.append(" registryUrl: ").append(toIndentedString(registryUrl)).append("\n");
410+
sb.append(" browserUrl: ").append(toIndentedString(browserUrl)).append("\n");
378411
sb.append(" name: ").append(toIndentedString(name)).append("\n");
379412
sb.append(" registryDeploymentId: ").append(toIndentedString(registryDeploymentId)).append("\n");
380413
sb.append(" owner: ").append(toIndentedString(owner)).append("\n");

packages/registry-management-sdk/src/main/java/com/openshift/cloud/api/srs/models/ServiceStatus.java

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -29,39 +29,39 @@
2929
*/
3030
@ApiModel(description = "Schema for the service status response body")
3131
@JsonPropertyOrder({
32-
ServiceStatus.JSON_PROPERTY_MAX_EVAL_INSTANCES_REACHED
32+
ServiceStatus.JSON_PROPERTY_MAX_INSTANCES_REACHED
3333
})
3434
@JsonTypeName("ServiceStatus")
3535
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
3636
public class ServiceStatus {
37-
public static final String JSON_PROPERTY_MAX_EVAL_INSTANCES_REACHED = "max_eval_instances_reached";
38-
private Boolean maxEvalInstancesReached;
37+
public static final String JSON_PROPERTY_MAX_INSTANCES_REACHED = "max_instances_reached";
38+
private Boolean maxInstancesReached;
3939

4040

41-
public ServiceStatus maxEvalInstancesReached(Boolean maxEvalInstancesReached) {
41+
public ServiceStatus maxInstancesReached(Boolean maxInstancesReached) {
4242

43-
this.maxEvalInstancesReached = maxEvalInstancesReached;
43+
this.maxInstancesReached = maxInstancesReached;
4444
return this;
4545
}
4646

4747
/**
48-
* Boolean property indicating if the maximum number of Trial instances have been reached, therefore creation of more eval instances should not be allowed.
49-
* @return maxEvalInstancesReached
48+
* Boolean property indicating if the maximum number of total instances have been reached, therefore creation of more instances should not be allowed.
49+
* @return maxInstancesReached
5050
**/
5151
@javax.annotation.Nullable
52-
@ApiModelProperty(value = "Boolean property indicating if the maximum number of Trial instances have been reached, therefore creation of more eval instances should not be allowed.")
53-
@JsonProperty(JSON_PROPERTY_MAX_EVAL_INSTANCES_REACHED)
52+
@ApiModelProperty(value = "Boolean property indicating if the maximum number of total instances have been reached, therefore creation of more instances should not be allowed.")
53+
@JsonProperty(JSON_PROPERTY_MAX_INSTANCES_REACHED)
5454
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
5555

56-
public Boolean getMaxEvalInstancesReached() {
57-
return maxEvalInstancesReached;
56+
public Boolean getMaxInstancesReached() {
57+
return maxInstancesReached;
5858
}
5959

6060

61-
@JsonProperty(JSON_PROPERTY_MAX_EVAL_INSTANCES_REACHED)
61+
@JsonProperty(JSON_PROPERTY_MAX_INSTANCES_REACHED)
6262
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
63-
public void setMaxEvalInstancesReached(Boolean maxEvalInstancesReached) {
64-
this.maxEvalInstancesReached = maxEvalInstancesReached;
63+
public void setMaxInstancesReached(Boolean maxInstancesReached) {
64+
this.maxInstancesReached = maxInstancesReached;
6565
}
6666

6767

@@ -74,19 +74,19 @@ public boolean equals(Object o) {
7474
return false;
7575
}
7676
ServiceStatus serviceStatus = (ServiceStatus) o;
77-
return Objects.equals(this.maxEvalInstancesReached, serviceStatus.maxEvalInstancesReached);
77+
return Objects.equals(this.maxInstancesReached, serviceStatus.maxInstancesReached);
7878
}
7979

8080
@Override
8181
public int hashCode() {
82-
return Objects.hash(maxEvalInstancesReached);
82+
return Objects.hash(maxInstancesReached);
8383
}
8484

8585
@Override
8686
public String toString() {
8787
StringBuilder sb = new StringBuilder();
8888
sb.append("class ServiceStatus {\n");
89-
sb.append(" maxEvalInstancesReached: ").append(toIndentedString(maxEvalInstancesReached)).append("\n");
89+
sb.append(" maxInstancesReached: ").append(toIndentedString(maxInstancesReached)).append("\n");
9090
sb.append("}");
9191
return sb.toString();
9292
}

0 commit comments

Comments
 (0)