Skip to content

Commit 21f60e9

Browse files
fix(openapi): update kafka-mgmt/v1 OpenAPI document (#166)
Co-authored-by: app-services-ci <app-services-ci@users.noreply.github.com>
1 parent 0f9c9bb commit 21f60e9

1 file changed

Lines changed: 26 additions & 1 deletion

File tree

.openapi/kas-fleet-manager.yaml

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1036,9 +1036,16 @@ components:
10361036
type: array
10371037
items:
10381038
type: string
1039+
capacity:
1040+
description: 'Indicates whether there is capacity left per instance type'
1041+
type: array
1042+
items:
1043+
allOf:
1044+
- $ref: "#/components/schemas/RegionCapacityListItem"
10391045
required:
10401046
- enabled
10411047
- supported_instance_types
1048+
- capacity
10421049
ServiceAccount:
10431050
description: 'Service Account created in MAS-SSO for the Kafka Cluster for authentication'
10441051
allOf:
@@ -1079,6 +1086,18 @@ components:
10791086
type: string
10801087
example:
10811088
$ref: "#/components/examples/ServiceAccountRequestExample"
1089+
RegionCapacityListItem:
1090+
description: 'schema for a kafka instance type capacity in region'
1091+
type: object
1092+
properties:
1093+
instance_type:
1094+
description: 'kafka instance type'
1095+
type: string
1096+
max_capacity_reached:
1097+
description: 'flag indicating whether the capacity for the instance type in the region is reached'
1098+
type: boolean
1099+
required:
1100+
- max_capacity_reached
10821101
ServiceAccountListItem:
10831102
description: ''
10841103
allOf:
@@ -1433,7 +1452,13 @@ components:
14331452
id: "us-east-1"
14341453
display_name: "US East, N. Virginia"
14351454
enabled: true
1436-
supported_instance_types: ["standard", "eval"]
1455+
supported_instance_types: ["standard"]
1456+
capacity: [
1457+
{
1458+
instance_type: "standard",
1459+
max_capacity_reached: true
1460+
}
1461+
]
14371462
ServiceAccountRequestExample:
14381463
value:
14391464
name: "my-app-sa"

0 commit comments

Comments
 (0)