Skip to content

Commit 79f536d

Browse files
chore(openapi): update kafka-mgmt/v1 OpenAPI document (#56)
Co-authored-by: app-services-ci <app-services-ci@users.noreply.github.com>
1 parent 9b952de commit 79f536d

1 file changed

Lines changed: 33 additions & 49 deletions

File tree

.openapi/kas-fleet-manager.yaml

Lines changed: 33 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ openapi: 3.0.0 # need this as first line to allow some IDEs to know this is an o
22
# All endpoints defined here will be discoverable by all users. If there is a need to keep some endpoints "private", add them to the "managed-services-api-private.yaml" file
33
info:
44
title: Kafka Service Fleet Manager
5-
version: 1.1.1
6-
description: Kafka Service Fleet Manager is a Rest API to manage Kakfa instances and connectors.
5+
version: 1.1.2
6+
description: Kafka Service Fleet Manager is a Rest API to manage Kafka instances.
77
servers:
88
- url: https://api.openshift.com
99
description: Main (production) server
@@ -88,7 +88,7 @@ paths:
8888
examples:
8989
404Example:
9090
$ref: '#/components/examples/404Example'
91-
description: No Kakfa request with specified ID exists
91+
description: No Kafka request with specified ID exists
9292
"500":
9393
content:
9494
application/json:
@@ -100,7 +100,7 @@ paths:
100100
description: Unexpected error occurred
101101
security:
102102
- Bearer: []
103-
summary: Returns a Kakfa request by ID
103+
summary: Returns a Kafka request by ID
104104
delete:
105105
operationId: deleteKafkaById
106106
parameters:
@@ -154,7 +154,7 @@ paths:
154154
examples:
155155
404DeleteExample:
156156
$ref: '#/components/examples/404DeleteExample'
157-
description: No Kakfa request with specified ID exists
157+
description: No Kafka request with specified ID exists
158158
"500":
159159
content:
160160
application/json:
@@ -164,7 +164,7 @@ paths:
164164
500DeleteExample:
165165
$ref: '#/components/examples/500DeleteExample'
166166
description: Unexpected error occurred
167-
summary: Deletes a Kakfa request by ID
167+
summary: Deletes a Kafka request by ID
168168
security:
169169
- Bearer: []
170170
parameters:
@@ -229,6 +229,8 @@ paths:
229229
$ref: '#/components/examples/403Example'
230230
403MaxAllowedInstanceReachedExample:
231231
$ref: '#/components/examples/403MaxAllowedInstanceReachedExample'
232+
403TermsNotAcceptedExample:
233+
$ref: '#/components/examples/403TermsNotAcceptedExample'
232234
description: User forbidden either because the user is not authorized to access the service or because the maximum number of instances that can be created by this user has been reached.
233235
"404":
234236
content:
@@ -259,7 +261,7 @@ paths:
259261
description: An unexpected error occurred while creating the Kafka request
260262
security:
261263
- Bearer: []
262-
summary: Creates a Kakfa request
264+
summary: Creates a Kafka request
263265
get:
264266
summary: Returns a list of Kafka requests
265267
operationId: getKafkas
@@ -593,7 +595,7 @@ paths:
593595
#
594596
/api/kafkas_mgmt/v1/kafkas/{id}/metrics/query_range:
595597
get:
596-
summary: Returns metrics with timeseries range query by Kakfa ID
598+
summary: Returns metrics with timeseries range query by Kafka ID
597599
operationId: getMetricsByRangeQuery
598600
security:
599601
- Bearer: []
@@ -629,7 +631,7 @@ paths:
629631
- $ref: "#/components/parameters/filters"
630632
/api/kafkas_mgmt/v1/kafkas/{id}/metrics/query:
631633
get:
632-
summary: Returns metrics with instant query by Kakfa ID
634+
summary: Returns metrics with instant query by Kafka ID
633635
operationId: getMetricsByInstantQuery
634636
security:
635637
- Bearer: []
@@ -717,20 +719,20 @@ components:
717719
- type: object
718720
properties:
719721
status:
722+
description: "Values: [accepted, preparing, provisioning, ready, failed, deprovision, deleting] "
720723
type: string
721724
cloud_provider:
725+
description: "Name of Cloud used to deploy. For example AWS"
722726
type: string
723727
multi_az:
724728
type: boolean
725729
region:
730+
description: "Values will be regions of specific cloud provider. For example: us-east-1 for AWS"
726731
type: string
727732
owner:
728733
type: string
729734
name:
730735
type: string
731-
bootstrapServerHost:
732-
type: string
733-
deprecated: true
734736
bootstrap_server_host:
735737
type: string
736738
created_at:
@@ -788,13 +790,13 @@ components:
788790
type: object
789791
properties:
790792
kafkas:
791-
description: The Kakfa resource api status
793+
description: The Kafka resource api status
792794
type: object
793795
required:
794796
- max_capacity_reached
795797
properties:
796798
max_capacity_reached:
797-
description: Indicates whether we have reached Kakfa maximum capacity
799+
description: Indicates whether we have reached Kafka maximum capacity
798800
type: boolean
799801
KafkaRequestPayload:
800802
description: Schema for the request body sent to /kafkas POST
@@ -901,14 +903,8 @@ components:
901903
description:
902904
description: ''
903905
type: string
904-
clientID:
905-
type: string
906-
deprecated: true
907906
client_id:
908907
type: string
909-
clientSecret:
910-
type: string
911-
deprecated: true
912908
client_secret:
913909
type: string
914910
owner:
@@ -941,10 +937,6 @@ components:
941937
id:
942938
description: 'server generated unique id of the service account'
943939
type: string
944-
clientID:
945-
description: 'client id of the service account'
946-
type: string
947-
deprecated: true
948940
client_id:
949941
description: 'client id of the service account'
950942
type: string
@@ -1012,17 +1004,9 @@ components:
10121004
values:
10131005
type: object
10141006
properties:
1015-
Timestamp:
1016-
type: integer
1017-
format: int64
1018-
deprecated: true
10191007
timestamp:
10201008
type: integer
10211009
format: int64
1022-
Value:
1023-
type: number
1024-
format: double
1025-
deprecated: true
10261010
value:
10271011
type: number
10281012
format: double
@@ -1053,17 +1037,9 @@ components:
10531037
type: object
10541038
additionalProperties:
10551039
type: string
1056-
Timestamp:
1057-
type: integer
1058-
format: int64
1059-
deprecated: true
10601040
timestamp:
10611041
type: integer
10621042
format: int64
1063-
Value:
1064-
type: number
1065-
format: double
1066-
deprecated: true
10671043
value:
10681044
type: number
10691045
format: double
@@ -1110,7 +1086,7 @@ components:
11101086
filters:
11111087
name: filters
11121088
in: query
1113-
description: List of metrics to fetch. Fetch all metrics when empty. List entries are Kakfa internal metric names.
1089+
description: List of metrics to fetch. Fetch all metrics when empty. List entries are Kafka internal metric names.
11141090
schema:
11151091
type: array
11161092
items:
@@ -1141,13 +1117,13 @@ components:
11411117
Specifies the order by criteria. The syntax of this parameter is
11421118
similar to the syntax of the `order by` clause of an SQL statement.
11431119
Each query can be ordered by any of the `kafkaRequests` fields.
1144-
For example, to return all Kakfa instances ordered by their name, use the following syntax:
1120+
For example, to return all Kafka instances ordered by their name, use the following syntax:
11451121
11461122
```sql
11471123
name asc
11481124
```
11491125
1150-
To return all Kakfa instances ordered by their name _and_ created date, use the following syntax:
1126+
To return all Kafka instances ordered by their name _and_ created date, use the following syntax:
11511127
11521128
```sql
11531129
name asc, created_at asc
@@ -1175,19 +1151,19 @@ components:
11751151
11761152
Examples:
11771153
1178-
To return a Kakfa instance with the name `my-kafka` and the region `aws`, use the following syntax:
1154+
To return a Kafka instance with the name `my-kafka` and the region `aws`, use the following syntax:
11791155
11801156
```
11811157
name = my-kafka and cloud_provider = aws
11821158
```[p-]
11831159
1184-
To return a Kakfa instance with a name that starts with `my`, use the following syntax:
1160+
To return a Kafka instance with a name that starts with `my`, use the following syntax:
11851161
11861162
```
11871163
name like my%25
11881164
```
11891165
1190-
If the parameter isn't provided, or if the value is empty, then all the Kakfa instances
1166+
If the parameter isn't provided, or if the value is empty, then all the Kafka instances
11911167
that the user has permission to see are returned.
11921168
11931169
Note. If the query is invalid, an error is returned.
@@ -1246,7 +1222,7 @@ components:
12461222
bootstrap_server_host: "serviceapi-1isy6rq3jki8q0otmjqfd3ocfrg.apps.mk-bttg0jn170hp.x5u8.s1.devshift.org"
12471223
created_at: "2020-10-05T12:51:24.053142Z"
12481224
updated_at: "2020-10-05T12:56:36.362208Z"
1249-
failed_reason: "a reason the Kakfa request creation failed"
1225+
failed_reason: "a reason the Kafka request creation failed"
12501226
CloudProviderExample:
12511227
value:
12521228
kind: "CloudProvider"
@@ -1338,7 +1314,7 @@ components:
13381314
kind: "Error"
13391315
href: "/api/kafkas_mgmt/v1/errors/23"
13401316
code: "KAFKAS-MGMT-23"
1341-
reason: "Failed to parse search query: Unable to list Kakfa requests for api_kafka_service: KAFKAS-MGMT-23: Failed to parse search query: Unsupported column name for search: 'id'. Supported column names are: region, name, cloud_provider, name, status. Query invalid: id = 123"
1317+
reason: "Failed to parse search query: Unable to list Kafka requests for api_kafka_service: KAFKAS-MGMT-23: Failed to parse search query: Unsupported column name for search: 'id'. Supported column names are: region, name, cloud_provider, name, status. Query invalid: id = 123"
13421318
operation_id: "1lWDGuybIrEnxrAem724gqkkiDv"
13431319
404Example:
13441320
value:
@@ -1379,6 +1355,14 @@ components:
13791355
code: "KAFKAS-MGMT-5"
13801356
reason: "User 'foo-bar' has reached a maximum number of 6 allowed instances."
13811357
operation_id: "1lY3UiEkxnXBpVPeI2oNejd3XB"
1358+
403TermsNotAcceptedExample:
1359+
value:
1360+
id: "12"
1361+
kind: "Error"
1362+
href: "/api/kafkas_mgmt/v1/errors/12"
1363+
code: "KAFKAS-MGMT-12"
1364+
reason: "Required terms have not been accepted"
1365+
operation_id: "kXCzWPeI2oXBpVPeI2LvF9jMQY"
13821366
409NameConflictExample:
13831367
value:
13841368
id: "36"
@@ -1405,4 +1389,4 @@ components:
14051389
for cluster id: 1g5d88q0lrcdv4g7alb7slfgnj3dhbsj%!(EXTRA *errors.Error=identifier
14061390
is '404', code is 'CLUSTERS-MGMT-404' and operation identifier is '1g5or50viu07oealuehrkc26dgftj1ac':
14071391
Cluster '1g5d88q0lrcdv4g7alb7slfgnj3dhbsj' not found)"
1408-
operation_id: "1iYTsWry6nsqb2sNmFj5bXpD7Ca"
1392+
operation_id: "1iYTsWry6nsqb2sNmFj5bXpD7Ca"

0 commit comments

Comments
 (0)