Skip to content

Commit febda92

Browse files
chore(all): re-generate OpenAPI client(s) (#657)
Co-authored-by: app-services-ci <app-services-ci@users.noreply.github.com>
1 parent 8589c74 commit febda92

75 files changed

Lines changed: 1105 additions & 318 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.openapi/registry-instance.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3323,7 +3323,7 @@
33233323
"type": "string"
33243324
},
33253325
"builtOn": {
3326-
"format": "date-time",
3326+
"format": "utc-date",
33273327
"type": "string"
33283328
}
33293329
},
@@ -3493,14 +3493,14 @@
34933493
"type": "string"
34943494
},
34953495
"createdOn": {
3496-
"format": "date-time",
3496+
"format": "utc-date",
34973497
"type": "string"
34983498
},
34993499
"modifiedBy": {
35003500
"type": "string"
35013501
},
35023502
"modifiedOn": {
3503-
"format": "date-time",
3503+
"format": "utc-date",
35043504
"type": "string"
35053505
},
35063506
"id": {
@@ -3608,7 +3608,7 @@
36083608
"type": "string"
36093609
},
36103610
"createdOn": {
3611-
"format": "date-time",
3611+
"format": "utc-date",
36123612
"description": "",
36133613
"type": "string"
36143614
},
@@ -3632,7 +3632,7 @@
36323632
"description": ""
36333633
},
36343634
"modifiedOn": {
3635-
"format": "date-time",
3635+
"format": "utc-date",
36363636
"description": "",
36373637
"type": "string"
36383638
},
@@ -3687,7 +3687,7 @@
36873687
"type": "string"
36883688
},
36893689
"createdOn": {
3690-
"format": "date-time",
3690+
"format": "utc-date",
36913691
"type": "string"
36923692
},
36933693
"type": {
@@ -3780,7 +3780,7 @@
37803780
"type": "string"
37813781
},
37823782
"createdOn": {
3783-
"format": "date-time",
3783+
"format": "utc-date",
37843784
"description": "",
37853785
"type": "string"
37863786
},
@@ -4101,7 +4101,7 @@
41014101
"type": "string"
41024102
},
41034103
"createdOn": {
4104-
"format": "date-time",
4104+
"format": "utc-date",
41054105
"description": "",
41064106
"type": "string"
41074107
},
@@ -4110,7 +4110,7 @@
41104110
"type": "string"
41114111
},
41124112
"modifiedOn": {
4113-
"format": "date-time",
4113+
"format": "utc-date",
41144114
"description": "",
41154115
"type": "string"
41164116
},
@@ -4154,14 +4154,14 @@
41544154
"type": "string"
41554155
},
41564156
"createdOn": {
4157-
"format": "date-time",
4157+
"format": "utc-date",
41584158
"type": "string"
41594159
},
41604160
"modifiedBy": {
41614161
"type": "string"
41624162
},
41634163
"modifiedOn": {
4164-
"format": "date-time",
4164+
"format": "utc-date",
41654165
"type": "string"
41664166
},
41674167
"properties": {

kafkamgmt/apiv1/client/.openapi-generator/FILES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ docs/ErrorListAllOf.md
2828
docs/ErrorsApi.md
2929
docs/FleetshardParameter.md
3030
docs/InstantQuery.md
31+
docs/KafkaPromoteRequest.md
3132
docs/KafkaRequest.md
3233
docs/KafkaRequestAllOf.md
3334
docs/KafkaRequestList.md
@@ -79,6 +80,7 @@ model_error_list.go
7980
model_error_list_all_of.go
8081
model_fleetshard_parameter.go
8182
model_instant_query.go
83+
model_kafka_promote_request.go
8284
model_kafka_request.go
8385
model_kafka_request_all_of.go
8486
model_kafka_request_list.go

kafkamgmt/apiv1/client/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Kafka Management API is a REST API to manage Kafka instances
55
## Overview
66
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.
77

8-
- API version: 1.14.0
8+
- API version: 1.15.0
99
- Package version: 1.0.0
1010
- Build package: org.openapitools.codegen.languages.GoClientCodegen
1111

@@ -89,6 +89,7 @@ Class | Method | HTTP request | Description
8989
*DefaultApi* | [**GetMetricsByInstantQuery**](docs/DefaultApi.md#getmetricsbyinstantquery) | **Get** /api/kafkas_mgmt/v1/kafkas/{id}/metrics/query |
9090
*DefaultApi* | [**GetMetricsByRangeQuery**](docs/DefaultApi.md#getmetricsbyrangequery) | **Get** /api/kafkas_mgmt/v1/kafkas/{id}/metrics/query_range |
9191
*DefaultApi* | [**GetVersionMetadata**](docs/DefaultApi.md#getversionmetadata) | **Get** /api/kafkas_mgmt/v1 |
92+
*DefaultApi* | [**PromoteKafka**](docs/DefaultApi.md#promotekafka) | **Post** /api/kafkas_mgmt/v1/kafkas/{id}/promote |
9293
*DefaultApi* | [**UpdateKafkaById**](docs/DefaultApi.md#updatekafkabyid) | **Patch** /api/kafkas_mgmt/v1/kafkas/{id} |
9394
*EnterpriseDataplaneClustersApi* | [**DeleteEnterpriseClusterById**](docs/EnterpriseDataplaneClustersApi.md#deleteenterpriseclusterbyid) | **Delete** /api/kafkas_mgmt/v1/clusters/{id} |
9495
*EnterpriseDataplaneClustersApi* | [**GetEnterpriseClusterById**](docs/EnterpriseDataplaneClustersApi.md#getenterpriseclusterbyid) | **Get** /api/kafkas_mgmt/v1/clusters/{id} |
@@ -125,6 +126,7 @@ Class | Method | HTTP request | Description
125126
- [ErrorListAllOf](docs/ErrorListAllOf.md)
126127
- [FleetshardParameter](docs/FleetshardParameter.md)
127128
- [InstantQuery](docs/InstantQuery.md)
129+
- [KafkaPromoteRequest](docs/KafkaPromoteRequest.md)
128130
- [KafkaRequest](docs/KafkaRequest.md)
129131
- [KafkaRequestAllOf](docs/KafkaRequestAllOf.md)
130132
- [KafkaRequestList](docs/KafkaRequestList.md)

kafkamgmt/apiv1/client/api/openapi.yaml

Lines changed: 145 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ info:
88
name: Apache 2.0
99
url: https://www.apache.org/licenses/LICENSE-2.0
1010
title: Kafka Management API
11-
version: 1.14.0
11+
version: 1.15.0
1212
servers:
1313
- description: Main (production) server
1414
url: https://api.openshift.com
@@ -285,6 +285,99 @@ paths:
285285
description: Unexpected error occurred
286286
security:
287287
- Bearer: []
288+
/api/kafkas_mgmt/v1/kafkas/{id}/promote:
289+
post:
290+
description: Promote a Kafka instance. Promotion is performed asynchronously.
291+
The `async` query parameter has to be set to `true`. Only kafka instances
292+
with an `eval` billing_model are supported
293+
operationId: promoteKafka
294+
parameters:
295+
- description: The ID of record
296+
explode: false
297+
in: path
298+
name: id
299+
required: true
300+
schema:
301+
type: string
302+
style: simple
303+
- description: Perform the action in an asynchronous manner. False by default.
304+
explode: true
305+
in: query
306+
name: async
307+
required: true
308+
schema:
309+
type: boolean
310+
style: form
311+
requestBody:
312+
content:
313+
application/json:
314+
examples:
315+
KafkaPromoteRequestExample:
316+
$ref: '#/components/examples/KafkaPromoteRequestExample'
317+
schema:
318+
$ref: '#/components/schemas/KafkaPromoteRequest'
319+
description: Kafka promotion request
320+
required: true
321+
responses:
322+
"202":
323+
description: Kafka promotion request accepted
324+
"400":
325+
content:
326+
application/json:
327+
examples:
328+
"400CreationExample":
329+
$ref: '#/components/examples/400CreationExample'
330+
schema:
331+
$ref: '#/components/schemas/Error'
332+
description: Validation errors occurred
333+
"401":
334+
content:
335+
application/json:
336+
examples:
337+
"401Example":
338+
$ref: '#/components/examples/401Example'
339+
schema:
340+
$ref: '#/components/schemas/Error'
341+
description: Auth token is invalid
342+
"403":
343+
content:
344+
application/json:
345+
examples:
346+
"403Example":
347+
$ref: '#/components/examples/403Example'
348+
schema:
349+
$ref: '#/components/schemas/Error'
350+
description: User forbidden either because the user is not authorized to
351+
access the service.
352+
"404":
353+
content:
354+
application/json:
355+
examples:
356+
"404Example":
357+
$ref: '#/components/examples/404Example'
358+
schema:
359+
$ref: '#/components/schemas/Error'
360+
description: The requested resource doesn't exist
361+
"409":
362+
content:
363+
application/json:
364+
examples:
365+
"409NameConflictExample":
366+
$ref: '#/components/examples/409NameConflictExample'
367+
schema:
368+
$ref: '#/components/schemas/Error'
369+
description: A conflict has been detected with the usage of this resource
370+
"500":
371+
content:
372+
application/json:
373+
examples:
374+
"500Example":
375+
$ref: '#/components/examples/500Example'
376+
schema:
377+
$ref: '#/components/schemas/Error'
378+
description: A server error occurred while promoting the Kafka request
379+
security:
380+
- Bearer: []
288381
/api/kafkas_mgmt/v1/kafkas:
289382
get:
290383
description: Returns a list of Kafka requests
@@ -1312,16 +1405,6 @@ paths:
13121405
schema:
13131406
type: boolean
13141407
style: form
1315-
- description: |-
1316-
When provided with value: true - enterprise cluster will be deleted alongside all kafkas present on the cluster.
1317-
When skipped and enterprise cluster has any kafkas associated with it, the request will fail.
1318-
explode: true
1319-
in: query
1320-
name: force
1321-
required: false
1322-
schema:
1323-
type: boolean
1324-
style: form
13251408
- description: ID of the enterprise data plane cluster
13261409
explode: false
13271410
in: path
@@ -1608,6 +1691,11 @@ components:
16081691
failed_reason: a reason the Kafka request creation failed
16091692
instance_type: standard
16101693
reauthentication_enabled: true
1694+
KafkaPromoteRequestExample:
1695+
value:
1696+
desired_kafka_billing_model: marketplace
1697+
desired_marketplace: aws
1698+
desired_billing_cloud_account_id: "123456"
16111699
SupportedKafkaInstanceTypeListExample:
16121700
value:
16131701
id: developer
@@ -2076,12 +2164,7 @@ components:
20762164
type: integer
20772165
total:
20782166
type: integer
2079-
items:
2080-
items:
2081-
$ref: '#/components/schemas/ObjectReference'
2082-
type: array
20832167
required:
2084-
- items
20852168
- kind
20862169
- page
20872170
- size
@@ -2195,6 +2278,32 @@ components:
21952278
required:
21962279
- name
21972280
type: object
2281+
KafkaPromoteRequest:
2282+
example:
2283+
desired_billing_cloud_account_id: desired_billing_cloud_account_id
2284+
desired_marketplace: desired_marketplace
2285+
desired_kafka_billing_model: desired_kafka_billing_model
2286+
properties:
2287+
desired_kafka_billing_model:
2288+
description: 'The desired Kafka billing model to promote the kafka instance
2289+
to. Promotion is performed asynchronously. Accepted values: [''marketplace'',
2290+
''standard'']'
2291+
minLength: 1
2292+
type: string
2293+
desired_marketplace:
2294+
description: 'The desired billing marketplace to promote the kafka instance
2295+
to. Accepted values: [''aws'', ''rhm'']. Only considered when desired_kafka_billing_model
2296+
is ''marketplace'''
2297+
minLength: 1
2298+
type: string
2299+
desired_billing_cloud_account_id:
2300+
description: The desired Kafka billing cloud account ID to promote the kafka
2301+
instance to. Only considered when desired_kafka_billing_model is 'marketplace'
2302+
minLength: 1
2303+
type: string
2304+
required:
2305+
- desired_kafka_billing_model
2306+
type: object
21982307
SupportedKafkaInstanceTypesList:
21992308
allOf:
22002309
- $ref: '#/components/schemas/SupportedKafkaInstanceTypesList_allOf'
@@ -2546,6 +2655,8 @@ components:
25462655
items:
25472656
$ref: '#/components/schemas/Error'
25482657
type: array
2658+
required:
2659+
- items
25492660
type: object
25502661
KafkaRequest_allOf:
25512662
example:
@@ -2645,6 +2756,14 @@ components:
26452756
type: string
26462757
billing_model:
26472758
type: string
2759+
promotion_status:
2760+
description: 'Status of the Kafka request promotion. Possible values: [''promoting'',
2761+
''failed'']. If unset it means no promotion is in progress.'
2762+
type: string
2763+
promotion_details:
2764+
description: Details of the Kafka request promotion. It can be set when
2765+
a Kafka request promotion is in progress or has failed
2766+
type: string
26482767
required:
26492768
- multi_az
26502769
- reauthentication_enabled
@@ -2663,6 +2782,8 @@ components:
26632782
allOf:
26642783
- $ref: '#/components/schemas/KafkaRequest'
26652784
type: array
2785+
required:
2786+
- items
26662787
type: object
26672788
EnterpriseClusterList_allOf:
26682789
example:
@@ -2678,6 +2799,8 @@ components:
26782799
allOf:
26792800
- $ref: '#/components/schemas/EnterpriseCluster'
26802801
type: array
2802+
required:
2803+
- items
26812804
type: object
26822805
EnterpriseCluster_allOf:
26832806
properties:
@@ -2723,6 +2846,8 @@ components:
27232846
allOf:
27242847
- $ref: '#/components/schemas/SupportedKafkaInstanceType'
27252848
type: array
2849+
required:
2850+
- items
27262851
type: object
27272852
CloudProviderList_allOf:
27282853
example:
@@ -2738,6 +2863,8 @@ components:
27382863
allOf:
27392864
- $ref: '#/components/schemas/CloudProvider'
27402865
type: array
2866+
required:
2867+
- items
27412868
type: object
27422869
CloudRegionList_allOf:
27432870
example:
@@ -2753,6 +2880,8 @@ components:
27532880
allOf:
27542881
- $ref: '#/components/schemas/CloudRegion'
27552882
type: array
2883+
required:
2884+
- items
27562885
type: object
27572886
ServiceAccount_allOf:
27582887
example:

0 commit comments

Comments
 (0)