From 643551940dad737ef0d5b852a1a268dca43b5b17 Mon Sep 17 00:00:00 2001 From: Red Hat Application Services CI <84090353+app-services-ci@users.noreply.github.com> Date: Tue, 8 Mar 2022 17:44:08 +0000 Subject: [PATCH] chore(all): re-generate OpenAPI client(s) (#230) Co-authored-by: app-services-ci --- packages/connector-management-sdk/pom.xml | 6 +- packages/kafka-instance-sdk/README.md | 51 +- packages/kafka-instance-sdk/api/openapi.yaml | 1779 +++++++++-------- .../docs/AclBindingListPage.md | 6 +- .../docs/AclBindingOrderKey.md | 21 + packages/kafka-instance-sdk/docs/AclsApi.md | 87 +- .../kafka-instance-sdk/docs/ConfigEntry.md | 4 +- packages/kafka-instance-sdk/docs/Consumer.md | 6 +- .../kafka-instance-sdk/docs/ConsumerGroup.md | 16 +- .../docs/ConsumerGroupDescriptionOrderKey.md | 17 + .../docs/ConsumerGroupList.md | 8 +- .../docs/ConsumerGroupMetrics.md | 15 + .../docs/ConsumerGroupOrderKey.md | 11 + .../ConsumerGroupResetOffsetParameters.md | 15 +- .../docs/ConsumerGroupResetOffsetResult.md | 6 +- .../ConsumerGroupResetOffsetResultItem.md | 2 +- .../docs/ConsumerGroupState.md | 21 + packages/kafka-instance-sdk/docs/Error.md | 1 - packages/kafka-instance-sdk/docs/GroupsApi.md | 82 +- packages/kafka-instance-sdk/docs/Node.md | 14 + .../kafka-instance-sdk/docs/OffsetType.md | 17 + packages/kafka-instance-sdk/docs/Partition.md | 6 +- .../kafka-instance-sdk/docs/SortDirection.md | 13 + packages/kafka-instance-sdk/docs/Topic.md | 3 +- .../kafka-instance-sdk/docs/TopicOrderKey.md | 17 + .../kafka-instance-sdk/docs/TopicSettings.md | 6 +- packages/kafka-instance-sdk/docs/TopicsApi.md | 93 +- .../kafka-instance-sdk/docs/TopicsList.md | 8 +- packages/kafka-instance-sdk/pom.xml | 6 +- .../openshift/cloud/api/kas/auth/AclsApi.java | 43 +- .../cloud/api/kas/auth/GroupsApi.java | 37 +- .../cloud/api/kas/auth/TopicsApi.java | 50 +- .../cloud/api/kas/auth/invoker/ApiClient.java | 4 +- .../api/kas/auth/invoker/ApiException.java | 2 +- .../api/kas/auth/invoker/Configuration.java | 2 +- .../kas/auth/invoker/JavaTimeFormatter.java | 2 +- .../cloud/api/kas/auth/invoker/Pair.java | 2 +- .../kas/auth/invoker/RFC3339DateFormat.java | 2 +- .../api/kas/auth/invoker/StringUtil.java | 2 +- .../api/kas/auth/invoker/auth/ApiKeyAuth.java | 2 +- .../kas/auth/invoker/auth/Authentication.java | 2 +- .../kas/auth/invoker/auth/HttpBasicAuth.java | 2 +- .../kas/auth/invoker/auth/HttpBearerAuth.java | 2 +- .../api/kas/auth/invoker/auth/OAuth.java | 2 +- .../api/kas/auth/invoker/auth/OAuthFlow.java | 2 +- .../cloud/api/kas/auth/models/AclBinding.java | 2 +- .../kas/auth/models/AclBindingListPage.java | 88 +- .../kas/auth/models/AclBindingOrderKey.java | 67 + .../api/kas/auth/models/AclOperation.java | 2 +- .../kas/auth/models/AclOperationFilter.java | 2 +- .../api/kas/auth/models/AclPatternType.java | 2 +- .../kas/auth/models/AclPatternTypeFilter.java | 2 +- .../kas/auth/models/AclPermissionType.java | 2 +- .../auth/models/AclPermissionTypeFilter.java | 2 +- .../api/kas/auth/models/AclResourceType.java | 2 +- .../auth/models/AclResourceTypeFilter.java | 2 +- .../api/kas/auth/models/ConfigEntry.java | 18 +- .../cloud/api/kas/auth/models/Consumer.java | 27 +- .../api/kas/auth/models/ConsumerGroup.java | 94 +- .../ConsumerGroupDescriptionOrderKey.java | 63 + .../kas/auth/models/ConsumerGroupList.java | 52 +- .../kas/auth/models/ConsumerGroupMetrics.java | 174 ++ .../auth/models/ConsumerGroupOrderKey.java | 57 + .../ConsumerGroupResetOffsetParameters.java | 110 +- .../ConsumerGroupResetOffsetResult.java | 88 +- .../ConsumerGroupResetOffsetResultItem.java | 10 +- ...onsumerGroupResetOffsetResultItemList.java | 119 -- .../kas/auth/models/ConsumerGroupState.java | 67 + .../cloud/api/kas/auth/models/Error.java | 41 +- .../api/kas/auth/models/NewTopicInput.java | 4 +- .../models/{AclBindingList.java => Node.java} | 58 +- .../cloud/api/kas/auth/models/OffsetType.java | 63 + .../cloud/api/kas/auth/models/Partition.java | 70 +- .../api/kas/auth/models/ResultListPage.java | 175 -- .../api/kas/auth/models/SortDirection.java | 59 + .../cloud/api/kas/auth/models/Topic.java | 89 +- .../api/kas/auth/models/TopicOrderKey.java | 63 + .../api/kas/auth/models/TopicSettings.java | 22 +- .../cloud/api/kas/auth/models/TopicsList.java | 149 +- .../kas/auth/models/TopicsToResetOffset.java | 2 +- .../api/kas/auth/models/UpdateTopicInput.java | 153 -- packages/kafka-management-sdk/pom.xml | 6 +- packages/registry-management-sdk/pom.xml | 6 +- packages/service-accounts-sdk/pom.xml | 6 +- 84 files changed, 2419 insertions(+), 2094 deletions(-) create mode 100644 packages/kafka-instance-sdk/docs/AclBindingOrderKey.md create mode 100644 packages/kafka-instance-sdk/docs/ConsumerGroupDescriptionOrderKey.md create mode 100644 packages/kafka-instance-sdk/docs/ConsumerGroupMetrics.md create mode 100644 packages/kafka-instance-sdk/docs/ConsumerGroupOrderKey.md create mode 100644 packages/kafka-instance-sdk/docs/ConsumerGroupState.md create mode 100644 packages/kafka-instance-sdk/docs/Node.md create mode 100644 packages/kafka-instance-sdk/docs/OffsetType.md create mode 100644 packages/kafka-instance-sdk/docs/SortDirection.md create mode 100644 packages/kafka-instance-sdk/docs/TopicOrderKey.md create mode 100644 packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclBindingOrderKey.java create mode 100644 packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ConsumerGroupDescriptionOrderKey.java create mode 100644 packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ConsumerGroupMetrics.java create mode 100644 packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ConsumerGroupOrderKey.java delete mode 100644 packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ConsumerGroupResetOffsetResultItemList.java create mode 100644 packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ConsumerGroupState.java rename packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/{AclBindingList.java => Node.java} (60%) create mode 100644 packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/OffsetType.java delete mode 100644 packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ResultListPage.java create mode 100644 packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/SortDirection.java create mode 100644 packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/TopicOrderKey.java delete mode 100644 packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/UpdateTopicInput.java diff --git a/packages/connector-management-sdk/pom.xml b/packages/connector-management-sdk/pom.xml index 5838214c..556d2234 100644 --- a/packages/connector-management-sdk/pom.xml +++ b/packages/connector-management-sdk/pom.xml @@ -137,7 +137,7 @@ org.apache.maven.plugins maven-compiler-plugin - 3.10.0 + 3.9.0 1.8 1.8 @@ -146,7 +146,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.3.2 + 3.3.1 none 1.8 @@ -175,7 +175,7 @@ org.sonatype.plugins nexus-staging-maven-plugin - 1.6.12 + 1.6.8 true ossrh diff --git a/packages/kafka-instance-sdk/README.md b/packages/kafka-instance-sdk/README.md index c14f3c69..c7e47421 100644 --- a/packages/kafka-instance-sdk/README.md +++ b/packages/kafka-instance-sdk/README.md @@ -2,7 +2,7 @@ Kafka Admin REST API -- API version: 0.3.0 +- API version: 0.7.1-SNAPSHOT An API to provide REST endpoints for query Kafka for admin operations @@ -40,7 +40,7 @@ Add this dependency to your project's POM: com.redhat.cloud kafka-instance-sdk - 0.3.0 + 0.7.1-SNAPSHOT compile ``` @@ -56,7 +56,7 @@ Add this dependency to your project's build file: } dependencies { - implementation "com.redhat.cloud:kafka-instance-sdk:0.3.0" + implementation "com.redhat.cloud:kafka-instance-sdk:0.7.1-SNAPSHOT" } ``` @@ -70,7 +70,7 @@ mvn clean package Then manually install the following JARs: -- `target/kafka-instance-sdk-0.3.0.jar` +- `target/kafka-instance-sdk-0.7.1-SNAPSHOT.jar` - `target/lib/*.jar` ## Getting Started @@ -88,7 +88,7 @@ public class AclsApiExample { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/rest"); + defaultClient.setBasePath("http://localhost"); // Configure OAuth2 access token for authorization: Bearer OAuth Bearer = (OAuth) defaultClient.getAuthentication("Bearer"); @@ -112,30 +112,30 @@ public class AclsApiExample { ## Documentation for API Endpoints -All URIs are relative to */rest* +All URIs are relative to *http://localhost* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*AclsApi* | [**createAcl**](docs/AclsApi.md#createAcl) | **POST** /acls | Create ACL binding -*AclsApi* | [**deleteAcls**](docs/AclsApi.md#deleteAcls) | **DELETE** /acls | Delete ACL bindings -*AclsApi* | [**getAclResourceOperations**](docs/AclsApi.md#getAclResourceOperations) | **GET** /acls/resource-operations | Retrieve allowed ACL resources and operations -*AclsApi* | [**getAcls**](docs/AclsApi.md#getAcls) | **GET** /acls | List ACL bindings -*GroupsApi* | [**deleteConsumerGroupById**](docs/GroupsApi.md#deleteConsumerGroupById) | **DELETE** /consumer-groups/{consumerGroupId} | Delete a consumer group. -*GroupsApi* | [**getConsumerGroupById**](docs/GroupsApi.md#getConsumerGroupById) | **GET** /consumer-groups/{consumerGroupId} | Get a single consumer group by its unique ID. -*GroupsApi* | [**getConsumerGroups**](docs/GroupsApi.md#getConsumerGroups) | **GET** /consumer-groups | List of consumer groups in the Kafka instance. -*GroupsApi* | [**resetConsumerGroupOffset**](docs/GroupsApi.md#resetConsumerGroupOffset) | **POST** /consumer-groups/{consumerGroupId}/reset-offset | Reset the offset for a consumer group. -*TopicsApi* | [**createTopic**](docs/TopicsApi.md#createTopic) | **POST** /topics | Creates a new topic -*TopicsApi* | [**deleteTopic**](docs/TopicsApi.md#deleteTopic) | **DELETE** /topics/{topicName} | Deletes a topic -*TopicsApi* | [**getTopic**](docs/TopicsApi.md#getTopic) | **GET** /topics/{topicName} | Retrieves the topic with the specified name. -*TopicsApi* | [**getTopics**](docs/TopicsApi.md#getTopics) | **GET** /topics | List of topics -*TopicsApi* | [**updateTopic**](docs/TopicsApi.md#updateTopic) | **PATCH** /topics/{topicName} | Updates the topic with the specified name. +*AclsApi* | [**createAcl**](docs/AclsApi.md#createAcl) | **POST** /rest/acls | Create ACL binding +*AclsApi* | [**deleteAcls**](docs/AclsApi.md#deleteAcls) | **DELETE** /rest/acls | Delete ACL bindings +*AclsApi* | [**getAclResourceOperations**](docs/AclsApi.md#getAclResourceOperations) | **GET** /rest/acls/resource-operations | Retrieve allowed ACL resources and operations +*AclsApi* | [**getAcls**](docs/AclsApi.md#getAcls) | **GET** /rest/acls | List ACL bindings +*GroupsApi* | [**deleteConsumerGroupById**](docs/GroupsApi.md#deleteConsumerGroupById) | **DELETE** /rest/consumer-groups/{consumerGroupId} | Delete a consumer group. +*GroupsApi* | [**getConsumerGroupById**](docs/GroupsApi.md#getConsumerGroupById) | **GET** /rest/consumer-groups/{consumerGroupId} | Get a single consumer group by its unique ID. +*GroupsApi* | [**getConsumerGroups**](docs/GroupsApi.md#getConsumerGroups) | **GET** /rest/consumer-groups | List of consumer groups in the Kafka instance. +*GroupsApi* | [**resetConsumerGroupOffset**](docs/GroupsApi.md#resetConsumerGroupOffset) | **POST** /rest/consumer-groups/{consumerGroupId}/reset-offset | Reset the offset for a consumer group. +*TopicsApi* | [**createTopic**](docs/TopicsApi.md#createTopic) | **POST** /rest/topics | Creates a new topic +*TopicsApi* | [**deleteTopic**](docs/TopicsApi.md#deleteTopic) | **DELETE** /rest/topics/{topicName} | Deletes a topic +*TopicsApi* | [**getTopic**](docs/TopicsApi.md#getTopic) | **GET** /rest/topics/{topicName} | Retrieves a single topic +*TopicsApi* | [**getTopics**](docs/TopicsApi.md#getTopics) | **GET** /rest/topics | Retrieves a list of topics +*TopicsApi* | [**updateTopic**](docs/TopicsApi.md#updateTopic) | **PATCH** /rest/topics/{topicName} | Updates a single topic ## Documentation for Models - [AclBinding](docs/AclBinding.md) - - [AclBindingList](docs/AclBindingList.md) - [AclBindingListPage](docs/AclBindingListPage.md) + - [AclBindingOrderKey](docs/AclBindingOrderKey.md) - [AclOperation](docs/AclOperation.md) - [AclOperationFilter](docs/AclOperationFilter.md) - [AclPatternType](docs/AclPatternType.md) @@ -147,20 +147,25 @@ Class | Method | HTTP request | Description - [ConfigEntry](docs/ConfigEntry.md) - [Consumer](docs/Consumer.md) - [ConsumerGroup](docs/ConsumerGroup.md) + - [ConsumerGroupDescriptionOrderKey](docs/ConsumerGroupDescriptionOrderKey.md) - [ConsumerGroupList](docs/ConsumerGroupList.md) + - [ConsumerGroupMetrics](docs/ConsumerGroupMetrics.md) + - [ConsumerGroupOrderKey](docs/ConsumerGroupOrderKey.md) - [ConsumerGroupResetOffsetParameters](docs/ConsumerGroupResetOffsetParameters.md) - [ConsumerGroupResetOffsetResult](docs/ConsumerGroupResetOffsetResult.md) - [ConsumerGroupResetOffsetResultItem](docs/ConsumerGroupResetOffsetResultItem.md) - - [ConsumerGroupResetOffsetResultItemList](docs/ConsumerGroupResetOffsetResultItemList.md) + - [ConsumerGroupState](docs/ConsumerGroupState.md) - [Error](docs/Error.md) - [NewTopicInput](docs/NewTopicInput.md) + - [Node](docs/Node.md) + - [OffsetType](docs/OffsetType.md) - [Partition](docs/Partition.md) - - [ResultListPage](docs/ResultListPage.md) + - [SortDirection](docs/SortDirection.md) - [Topic](docs/Topic.md) + - [TopicOrderKey](docs/TopicOrderKey.md) - [TopicSettings](docs/TopicSettings.md) - [TopicsList](docs/TopicsList.md) - [TopicsToResetOffset](docs/TopicsToResetOffset.md) - - [UpdateTopicInput](docs/UpdateTopicInput.md) ## Documentation for Authorization diff --git a/packages/kafka-instance-sdk/api/openapi.yaml b/packages/kafka-instance-sdk/api/openapi.yaml index 227b39bc..27c7d13d 100644 --- a/packages/kafka-instance-sdk/api/openapi.yaml +++ b/packages/kafka-instance-sdk/api/openapi.yaml @@ -5,10 +5,10 @@ info: name: Apache 2.0 url: https://www.apache.org/licenses/LICENSE-2.0 title: Kafka Admin REST API - version: 0.3.0 + version: 0.7.1-SNAPSHOT servers: - description: Kafka Admin REST API - url: /rest + url: / security: - Bearer: [] tags: @@ -19,7 +19,7 @@ tags: - description: Access Control Management (ACLs) name: acls paths: - /topics: + /rest/topics: get: description: Returns a list of all of the available topics, or the list of topics that meet the request query parameters. The topics returned are limited to @@ -27,12 +27,14 @@ paths: operationId: getTopics parameters: - deprecated: true - description: Maximum number of topics to return + description: Maximum number of records to return explode: true in: query name: limit required: false schema: + format: int32 + minimum: 1 type: integer style: form - description: Filter to apply when returning the list of topics @@ -43,25 +45,23 @@ paths: schema: type: string style: form - - description: The page when returning the limit of requested topics. + - description: Page number explode: true in: query name: page required: false schema: format: int32 + minimum: 1 type: integer style: form - - description: Order of the items sorting. Ascending order is used as default. + - description: Order items are sorted explode: true in: query name: order required: false schema: - enum: - - asc - - desc - type: string + $ref: '#/components/schemas/SortDirection' style: form - description: Order key to sort the topics by. explode: true @@ -69,27 +69,25 @@ paths: name: orderKey required: false schema: - enum: - - name - - partitions - - retention.ms - - retention.bytes - type: string + allOf: + - $ref: '#/components/schemas/TopicOrderKey' + - {} style: form responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/TopicsList' - description: List of topics matching the request query parameters. The topics - returned are limited to those records the requestor is authorized to view. "400": content: application/json: + examples: + badrequest: + summary: Invalid query parameter + value: + code: 400 + error_message: Invalid parameter value schema: $ref: '#/components/schemas/Error' - description: Unable to retrieve topics. + description: |- + The client request was invalid. One or more request parameters or the request + body was rejected. Additional information may be found in the response. "401": content: application/json: @@ -108,7 +106,14 @@ paths: schema: $ref: '#/components/schemas/Error' description: Kafka service unavailable - summary: List of topics + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/TopicsList' + description: List of topics matching the request query parameters. The topics + returned are limited to those records the requestor is authorized to view. + summary: Retrieves a list of topics tags: - topics x-accepts: application/json @@ -119,34 +124,27 @@ paths: content: application/json: examples: - NewTopicInput: - value: - name: my-topic - settings: - numPartitions: 3 - replicationFactor: 4 - config: - - key: min.insync.replicas - value: "1" - - key: max.message.bytes - value: "1050000" + NewTopicExample: + $ref: '#/components/examples/NewTopicExample' schema: $ref: '#/components/schemas/NewTopicInput' description: Topic to create. required: true responses: - "201": - content: - application/json: - schema: - $ref: '#/components/schemas/Topic' - description: Topic created successfully. "400": content: application/json: + examples: + badrequest: + summary: Invalid query parameter + value: + code: 400 + error_message: Invalid parameter value schema: $ref: '#/components/schemas/Error' - description: The client request was invalid + description: |- + The client request was invalid. One or more request parameters or the request + body was rejected. Additional information may be found in the response. "401": content: application/json: @@ -171,17 +169,23 @@ paths: schema: $ref: '#/components/schemas/Error' description: Kafka service unavailable + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/Topic' + description: Topic created successfully. summary: Creates a new topic tags: - topics x-contentType: application/json x-accepts: application/json - /topics/{topicName}: + /rest/topics/{topicName}: delete: description: Deletes the topic with the specified name. operationId: deleteTopic parameters: - - description: The topic name to delete. + - description: Name of the topic to delete explode: false in: path name: topicName @@ -190,7 +194,7 @@ paths: type: string style: simple responses: - "200": + "204": description: Topic deleted successfully. "401": content: @@ -198,12 +202,18 @@ paths: schema: $ref: '#/components/schemas/Error' description: Request authentication missing or invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: User is not authorized to access requested resource "404": content: application/json: schema: $ref: '#/components/schemas/Error' - description: Topic not found. + description: The requested resource could not be found. "500": content: application/json: @@ -216,7 +226,7 @@ paths: schema: $ref: '#/components/schemas/Error' description: Kafka service unavailable - summary: Deletes a topic + summary: Deletes a topic tags: - topics x-accepts: application/json @@ -224,7 +234,7 @@ paths: description: Topic operationId: getTopic parameters: - - description: The topic name to retrieve. + - description: Name of the topic to describe explode: false in: path name: topicName @@ -233,24 +243,24 @@ paths: type: string style: simple responses: - "200": + "401": content: application/json: schema: - $ref: '#/components/schemas/Topic' - description: Kafka topic details. - "401": + $ref: '#/components/schemas/Error' + description: Request authentication missing or invalid + "403": content: application/json: schema: $ref: '#/components/schemas/Error' - description: Request authentication missing or invalid + description: User is not authorized to access requested resource "404": content: application/json: schema: $ref: '#/components/schemas/Error' - description: Topic not found. + description: The requested resource could not be found. "500": content: application/json: @@ -263,15 +273,21 @@ paths: schema: $ref: '#/components/schemas/Error' description: Kafka service unavailable - summary: Retrieves the topic with the specified name. + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Topic' + description: Kafka topic details + summary: Retrieves a single topic tags: - topics x-accepts: application/json patch: - description: updates the topic with the new data. + description: Update the configuration settings for a topic. operationId: updateTopic parameters: - - description: The topic name which is its unique id. + - description: Name of the topic to update explode: false in: path name: topicName @@ -283,66 +299,23 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/UpdateTopicInput' + $ref: '#/components/schemas/TopicSettings' required: true responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/Topic' - description: Topic updated successfully. "400": content: application/json: + examples: + badrequest: + summary: Invalid query parameter + value: + code: 400 + error_message: Invalid parameter value schema: $ref: '#/components/schemas/Error' - description: The client request was invalid - "401": - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: Request authentication missing or invalid - "404": - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: Topic not found. - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: Internal server error - "503": - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: Kafka service unavailable - summary: Updates the topic with the specified name. - tags: - - topics - x-contentType: application/json - x-accepts: application/json - /consumer-groups/{consumerGroupId}: - delete: - description: Delete a consumer group, along with its consumers. - operationId: deleteConsumerGroupById - parameters: - - description: The unique ID of the cobsumer group. - explode: false - in: path - name: consumerGroupId - required: true - schema: - type: string - style: simple - responses: - "204": - description: The consumer group was deleted successfully. + description: |- + The client request was invalid. One or more request parameters or the request + body was rejected. Additional information may be found in the response. "401": content: application/json: @@ -354,19 +327,13 @@ paths: application/json: schema: $ref: '#/components/schemas/Error' - description: Forbidden to delete this consumer group. + description: User is not authorized to access requested resource "404": content: application/json: schema: $ref: '#/components/schemas/Error' - description: The consumer group does not exist. - "423": - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: User cannot delete consumer group with active members. + description: The requested resource could not be found. "500": content: application/json: @@ -379,129 +346,18 @@ paths: schema: $ref: '#/components/schemas/Error' description: Kafka service unavailable - summary: Delete a consumer group. - tags: - - groups - x-accepts: application/json - get: - operationId: getConsumerGroupById - parameters: - - description: The unique ID of the consumer group - explode: false - in: path - name: consumerGroupId - required: true - schema: - type: string - style: simple - - description: Order of the items sorting. Ascending order is used as default. - explode: true - in: query - name: order - required: false - schema: - enum: - - asc - - desc - type: string - style: form - - description: Order key to sort the topics by. - explode: true - in: query - name: orderKey - required: false - schema: - enum: - - offset - - endOffset - - lag - - partition - type: string - style: form - - description: Value of partition to include. Value -1 means filter is not active. - explode: true - in: query - name: partitionFilter - required: false - schema: - type: integer - style: form - - description: Filter consumer groups for a specific topic - examples: - Consumer group: - value: - groupId: consumer_group_1 - consumers: - - groupId: consumer_group_1 - topic: topic-1 - partition: 0 - memberId: consumer_group_member1 - offset: 5 - lag: 0 - logEndOffset: 5 - - groupId: consumer_group_1 - topic: topic-1 - partition: 1 - memberId: consumer_group_member2 - offset: 3 - lag: 0 - logEndOffset: 3 - - groupId: consumer_group_1 - topic: topic-1 - partition: 2 - memberId: consumer_group_member3 - offset: 6 - lag: 1 - logEndOffset: 5 - explode: true - in: query - name: topic - required: false - schema: - type: string - style: form - responses: "200": content: application/json: schema: - $ref: '#/components/schemas/ConsumerGroup' - description: Consumer group details. - "401": - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: Request authentication missing or invalid - "403": - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: User is forbidden this view this consumer group. - "404": - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: Consumer group not found. - "500": - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: Internal server error - "503": - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: Kafka service unavailable - summary: Get a single consumer group by its unique ID. + $ref: '#/components/schemas/Topic' + description: Topic updated successfully. + summary: Updates a single topic tags: - - groups + - topics + x-contentType: application/json x-accepts: application/json - /consumer-groups: + /rest/consumer-groups: get: description: Returns a list of all consumer groups for a particular Kafka instance. The consumer groups returned are limited to those records the requestor is @@ -509,24 +365,27 @@ paths: operationId: getConsumerGroups parameters: - deprecated: true - description: Maximum number of consumer groups to return + description: Maximum number of records to return explode: true in: query name: limit required: false schema: + format: int32 + minimum: 1 type: integer style: form - - description: The page when returning the list of consumer groups + - description: Page number explode: true in: query name: page required: false schema: + format: int32 + minimum: 1 type: integer style: form - - description: Return consumer groups where the topic name contains with this - value + - description: Return consumer groups where the topic name contains this value explode: true in: query name: topic @@ -534,7 +393,7 @@ paths: schema: type: string style: form - - description: Return the consumer groups where the ID contains with this value + - description: Return the consumer groups where the ID contains this value explode: true in: query name: group-id-filter @@ -542,28 +401,22 @@ paths: schema: type: string style: form - - description: Order of the consumer groups sorting. Ascending order is used - as default. + - description: Order items are sorted explode: true in: query name: order required: false schema: - enum: - - asc - - desc - type: string + $ref: '#/components/schemas/SortDirection' style: form - - description: Order key to sort the items by. Only the value 'name' is currently - applicable. - explode: true + - explode: true in: query name: orderKey required: false schema: - enum: - - name - type: string + allOf: + - $ref: '#/components/schemas/ConsumerGroupOrderKey' + - {} style: form responses: "200": @@ -607,10 +460,17 @@ paths: "400": content: application/json: + examples: + badrequest: + summary: Invalid query parameter + value: + code: 400 + error_message: Invalid parameter value schema: $ref: '#/components/schemas/Error' - description: The server cannot or will not process the request due to something - that is perceived to be a client error such as malformed request syntax. + description: |- + The client request was invalid. One or more request parameters or the request + body was rejected. Additional information may be found in the response. "401": content: application/json: @@ -633,13 +493,12 @@ paths: tags: - groups x-accepts: application/json - summary: API endpoints for consumer groups under a Kafka topic - /consumer-groups/{consumerGroupId}/reset-offset: - post: - description: Reset the offset for a particular consumer group. - operationId: resetConsumerGroupOffset + /rest/consumer-groups/{consumerGroupId}: + delete: + description: Delete a consumer group, along with its consumers. + operationId: deleteConsumerGroupById parameters: - - description: The ID of the consumer group. + - description: Consumer group identifier explode: false in: path name: consumerGroupId @@ -647,30 +506,9 @@ paths: schema: type: string style: simple - requestBody: - content: - application/json: - examples: - ConsumerGroupOffsetResetExample: - value: - topics: - - topic: my-topic - partitions: - - 0 - offset: absolute - value: "4" - schema: - $ref: '#/components/schemas/ConsumerGroupResetOffsetParameters' - required: true responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/ConsumerGroupResetOffsetResult' - description: The consumer group offsets have been reset. - "400": - description: The consumer group to reset the offset does have active consumers. + "204": + description: The consumer group was deleted successfully. "401": content: application/json: @@ -682,13 +520,19 @@ paths: application/json: schema: $ref: '#/components/schemas/Error' - description: Forbidden to delete this consumer group. + description: User is not authorized to access requested resource "404": content: application/json: schema: $ref: '#/components/schemas/Error' - description: Specified topic or its partition does not exist. + description: The requested resource could not be found. + "423": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: User cannot delete consumer group with active members. "500": content: application/json: @@ -701,29 +545,195 @@ paths: schema: $ref: '#/components/schemas/Error' description: Kafka service unavailable - summary: Reset the offset for a consumer group. + summary: Delete a consumer group. tags: - groups - x-contentType: application/json x-accepts: application/json - /acls: - delete: - description: Deletes ACL bindings that match the query parameters. - operationId: deleteAcls + get: + operationId: getConsumerGroupById parameters: - - description: ACL Resource Type Filter - examples: - anything: - summary: Match any ACL binding resource type - value: ANY - group: - summary: Match ACL bindings for consumer groups - value: GROUP - topic: - summary: Match ACL bindings for topics - value: GROUP - cluster: - summary: Match ACL bindings for the cluster + - description: Consumer group identifier + explode: false + in: path + name: consumerGroupId + required: true + schema: + type: string + style: simple + - description: Order items are sorted + explode: true + in: query + name: order + required: false + schema: + $ref: '#/components/schemas/SortDirection' + style: form + - explode: true + in: query + name: orderKey + required: false + schema: + allOf: + - $ref: '#/components/schemas/ConsumerGroupDescriptionOrderKey' + - {} + style: form + - description: Value of partition to include. Value -1 means filter is not active. + explode: true + in: query + name: partitionFilter + required: false + schema: + format: int32 + type: integer + style: form + - description: Filter consumer groups for a specific topic + explode: true + in: query + name: topic + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + examples: + ConsumerGroupExample: + $ref: '#/components/examples/ConsumerGroupExample' + schema: + $ref: '#/components/schemas/ConsumerGroup' + description: Consumer group details. + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Request authentication missing or invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: User is not authorized to access requested resource + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: The requested resource could not be found. + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Internal server error + "503": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Kafka service unavailable + summary: Get a single consumer group by its unique ID. + tags: + - groups + x-accepts: application/json + /rest/consumer-groups/{consumerGroupId}/reset-offset: + post: + description: Reset the offset for a particular consumer group. + operationId: resetConsumerGroupOffset + parameters: + - description: Consumer group identifier + explode: false + in: path + name: consumerGroupId + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + examples: + ConsumerGroupOffsetResetExample: + $ref: '#/components/examples/ConsumerGroupOffsetResetExample' + schema: + $ref: '#/components/schemas/ConsumerGroupResetOffsetParameters' + required: true + responses: + "400": + content: + application/json: + examples: + badrequest: + summary: Invalid query parameter + value: + code: 400 + error_message: Invalid parameter value + schema: + $ref: '#/components/schemas/Error' + description: |- + The client request was invalid. One or more request parameters or the request + body was rejected. Additional information may be found in the response. + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Request authentication missing or invalid + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: User is not authorized to access requested resource + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: The requested resource could not be found. + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Internal server error + "503": + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: Kafka service unavailable + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ConsumerGroupResetOffsetResult' + description: The consumer group offsets have been reset. + summary: Reset the offset for a consumer group. + tags: + - groups + x-contentType: application/json + x-accepts: application/json + /rest/acls: + delete: + description: Deletes ACL bindings that match the query parameters. + operationId: deleteAcls + parameters: + - description: ACL Resource Type Filter + examples: + anything: + summary: Match any ACL binding resource type + value: ANY + group: + summary: Match ACL bindings for consumer groups + value: GROUP + topic: + summary: Match ACL bindings for topics + value: TOPIC + cluster: + summary: Match ACL bindings for the cluster value: CLUSTER transactional_id: summary: Match ACL bindings for transactional IDs @@ -733,7 +743,9 @@ paths: name: resourceType required: false schema: - $ref: '#/components/schemas/AclResourceTypeFilter' + allOf: + - $ref: '#/components/schemas/AclResourceTypeFilter' + - {} style: form - description: ACL Resource Name Filter explode: true @@ -759,11 +771,12 @@ paths: name: patternType required: false schema: - $ref: '#/components/schemas/AclPatternTypeFilter' + allOf: + - $ref: '#/components/schemas/AclPatternTypeFilter' + - {} style: form - description: |- - ACL Principal Filter. Either a specific user or the wildcard user `User:*` - may be provided. + ACL Principal Filter. Either a specific user or the wildcard user `User:*` may be provided. - When fetching by a specific user, the results will also include ACL bindings that apply to all users. - When deleting, ACL bindings to be delete must match the provided `principal` exactly. examples: @@ -778,11 +791,11 @@ paths: name: principal required: false schema: - $ref: '#/components/schemas/AclPrincipal' + default: "" + type: string style: form - - description: |- - ACL Operation Filter. The ACL binding operation provided should be valid - for the resource type in the request, if not `ANY`. + - description: ACL Operation Filter. The ACL binding operation provided should + be valid for the resource type in the request, if not `ANY`. examples: anything: summary: Match any ACL binding operation @@ -792,7 +805,9 @@ paths: name: operation required: false schema: - $ref: '#/components/schemas/AclOperationFilter' + allOf: + - $ref: '#/components/schemas/AclOperationFilter' + - {} style: form - description: ACL Permission Type Filter examples: @@ -810,22 +825,25 @@ paths: name: permission required: false schema: - $ref: '#/components/schemas/AclPermissionTypeFilter' + allOf: + - $ref: '#/components/schemas/AclPermissionTypeFilter' + - {} style: form responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/AclBindingListPage' - description: List of all ACL bindings matching the query parameters that - were deleted. "400": content: application/json: + examples: + badrequest: + summary: Invalid query parameter + value: + code: 400 + error_message: Invalid parameter value schema: $ref: '#/components/schemas/Error' - description: The client request was invalid + description: |- + The client request was invalid. One or more request parameters or the request + body was rejected. Additional information may be found in the response. "401": content: application/json: @@ -850,13 +868,20 @@ paths: schema: $ref: '#/components/schemas/Error' description: Kafka service unavailable + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AclBindingListPage' + description: List of all ACL bindings matching the query parameters that + were deleted. summary: Delete ACL bindings tags: - acls x-accepts: application/json get: description: Returns a list of all of the available ACL bindings, or the list - of bindings that meet the users URL Query Parameters. If no parameters are + of bindings that meet the user's URL query parameters. If no parameters are specified, all ACL bindings known to the system will be returned (with paging). operationId: getAcls parameters: @@ -870,7 +895,7 @@ paths: value: GROUP topic: summary: Match ACL bindings for topics - value: GROUP + value: TOPIC cluster: summary: Match ACL bindings for the cluster value: CLUSTER @@ -882,7 +907,9 @@ paths: name: resourceType required: false schema: - $ref: '#/components/schemas/AclResourceTypeFilter' + allOf: + - $ref: '#/components/schemas/AclResourceTypeFilter' + - {} style: form - description: ACL Resource Name Filter explode: true @@ -908,11 +935,12 @@ paths: name: patternType required: false schema: - $ref: '#/components/schemas/AclPatternTypeFilter' + allOf: + - $ref: '#/components/schemas/AclPatternTypeFilter' + - {} style: form - description: |- - ACL Principal Filter. Either a specific user or the wildcard user `User:*` - may be provided. + ACL Principal Filter. Either a specific user or the wildcard user `User:*` may be provided. - When fetching by a specific user, the results will also include ACL bindings that apply to all users. - When deleting, ACL bindings to be delete must match the provided `principal` exactly. examples: @@ -927,11 +955,11 @@ paths: name: principal required: false schema: - $ref: '#/components/schemas/AclPrincipal' + default: "" + type: string style: form - - description: |- - ACL Operation Filter. The ACL binding operation provided should be valid - for the resource type in the request, if not `ANY`. + - description: ACL Operation Filter. The ACL binding operation provided should + be valid for the resource type in the request, if not `ANY`. examples: anything: summary: Match any ACL binding operation @@ -941,7 +969,9 @@ paths: name: operation required: false schema: - $ref: '#/components/schemas/AclOperationFilter' + allOf: + - $ref: '#/components/schemas/AclOperationFilter' + - {} style: form - description: ACL Permission Type Filter examples: @@ -959,69 +989,62 @@ paths: name: permission required: false schema: - $ref: '#/components/schemas/AclPermissionTypeFilter' + allOf: + - $ref: '#/components/schemas/AclPermissionTypeFilter' + - {} style: form - - description: Page number for result lists + - description: Page number explode: true in: query name: page required: false schema: - default: 1 + format: int32 minimum: 1 - type: number + type: integer style: form - - description: Page size for result lists + - description: Number of records per page explode: true in: query name: size required: false schema: - default: 10 + format: int32 minimum: 1 - type: number + type: integer style: form - - description: Order of the ACL binding sorting. + - description: Order items are sorted explode: true in: query name: order required: false schema: - default: desc - enum: - - asc - - desc - type: string + $ref: '#/components/schemas/SortDirection' style: form - - description: Order key to sort the items by. - explode: true + - explode: true in: query name: orderKey required: false schema: - default: permission - enum: - - resourceType - - resourceName - - patternType - - principal - - operation - - permission - type: string + allOf: + - $ref: '#/components/schemas/AclBindingOrderKey' + - {} style: form responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/AclBindingListPage' - description: List of ACL bindings matching the query parameters. "400": content: application/json: + examples: + badrequest: + summary: Invalid query parameter + value: + code: 400 + error_message: Invalid parameter value schema: $ref: '#/components/schemas/Error' - description: The client request was invalid + description: |- + The client request was invalid. One or more request parameters or the request + body was rejected. Additional information may be found in the response. "401": content: application/json: @@ -1046,6 +1069,12 @@ paths: schema: $ref: '#/components/schemas/Error' description: Kafka service unavailable + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AclBindingListPage' + description: List of ACL bindings matching the query parameters. summary: List ACL bindings tags: - acls @@ -1066,9 +1095,17 @@ paths: "400": content: application/json: + examples: + badrequest: + summary: Invalid query parameter + value: + code: 400 + error_message: Invalid parameter value schema: $ref: '#/components/schemas/Error' - description: The client request was invalid + description: |- + The client request was invalid. One or more request parameters or the request + body was rejected. Additional information may be found in the response. "401": content: application/json: @@ -1098,7 +1135,7 @@ paths: - acls x-contentType: application/json x-accepts: application/json - /acls/resource-operations: + /rest/acls/resource-operations: get: description: Retrieve the resources and associated operations that may have ACLs configured. @@ -1133,12 +1170,6 @@ paths: schema: $ref: '#/components/schemas/Error' description: Request authentication missing or invalid - "403": - content: - application/json: - schema: - $ref: '#/components/schemas/Error' - description: User is not authorized to access requested resource "500": content: application/json: @@ -1149,145 +1180,75 @@ paths: tags: - acls x-accepts: application/json - /: {} components: - parameters: - AclResourceTypeFilter: - description: ACL Resource Type Filter - examples: - anything: - summary: Match any ACL binding resource type - value: ANY - group: - summary: Match ACL bindings for consumer groups - value: GROUP - topic: - summary: Match ACL bindings for topics - value: GROUP - cluster: - summary: Match ACL bindings for the cluster - value: CLUSTER - transactional_id: - summary: Match ACL bindings for transactional IDs - value: TRANSACTIONAL_ID - explode: true - in: query - name: resourceType - required: false - schema: - $ref: '#/components/schemas/AclResourceTypeFilter' - style: form - AclResourceName: - description: ACL Resource Name Filter - explode: true - in: query - name: resourceName - required: false - schema: - type: string - style: form - AclPatternTypeFilter: - description: ACL Pattern Type Filter - examples: - anything: - summary: Match any ACL binding pattern type - value: ANY - literal: - summary: Match a literal resource name or `*` - value: LITERAL - prefixed: - summary: Match a prefixed resource name - value: PREFIXED - explode: true - in: query - name: patternType - required: false - schema: - $ref: '#/components/schemas/AclPatternTypeFilter' - style: form - AclPrincipal: - description: |- - ACL Principal Filter. Either a specific user or the wildcard user `User:*` - may be provided. - - When fetching by a specific user, the results will also include ACL bindings that apply to all users. - - When deleting, ACL bindings to be delete must match the provided `principal` exactly. - examples: - wildcard: - summary: Match ACL entries that apply to all users - value: User:* - specific: - summary: Match ACL entries for a specific user - value: User:admin-5a1-0c1 - explode: true - in: query - name: principal - required: false - schema: - $ref: '#/components/schemas/AclPrincipal' - style: form - AclOperationFilter: - description: |- - ACL Operation Filter. The ACL binding operation provided should be valid - for the resource type in the request, if not `ANY`. - examples: - anything: - summary: Match any ACL binding operation - value: ANY - explode: true - in: query - name: operation - required: false - schema: - $ref: '#/components/schemas/AclOperationFilter' - style: form - AclPermissionTypeFilter: - description: ACL Permission Type Filter - examples: - anything: - summary: Match any ACL binding permission type - value: ANY - allow: - summary: Match only ACL bindings allowing access - value: ALLOW - deny: - summary: Match only ACL bindings denying access - value: DENY - explode: true - in: query - name: permission - required: false - schema: - $ref: '#/components/schemas/AclPermissionTypeFilter' - style: form - PageNumber: - description: Page number for result lists - explode: true - in: query - name: page - required: false - schema: - default: 1 - minimum: 1 - type: number - style: form - PageSize: - description: Page size for result lists - explode: true - in: query - name: size - required: false - schema: - default: 10 - minimum: 1 - type: number - style: form + examples: + NewTopicExample: + description: Sample new topic with 3 partitions + value: + name: my-topic + settings: + numPartitions: 3 + config: + - key: min.insync.replicas + value: "1" + - key: max.message.bytes + value: "1050000" + ConsumerGroupExample: + description: Sample consumer group with 3 partitions and 3 active consumers + value: + groupId: consumer_group_1 + state: STABLE + consumers: + - groupId: consumer_group_1 + topic: topic-1 + partition: 0 + offset: 5 + logEndOffset: 5 + lag: 0 + memberId: consumer_group_member1 + - groupId: consumer_group_1 + topic: topic-1 + partition: 1 + offset: 3 + logEndOffset: 3 + lag: 0 + memberId: consumer_group_member2 + - groupId: consumer_group_1 + topic: topic-1 + partition: 2 + offset: 5 + logEndOffset: 6 + lag: 1 + memberId: consumer_group_member3 + metrics: + laggingPartitions: 0 + activeConsumers: 3 + unassignedPartitions: 0 + ConsumerGroupOffsetResetExample: + description: Sample request to reset partition `0` of topic `my-topic` to offset + `4` + value: + offset: absolute + value: "4" + topics: + - topic: my-topic + partitions: + - 0 responses: BadRequest: content: application/json: + examples: + badrequest: + summary: Invalid query parameter + value: + code: 400 + error_message: Invalid parameter value schema: $ref: '#/components/schemas/Error' - description: The client request was invalid + description: |- + The client request was invalid. One or more request parameters or the request + body was rejected. Additional information may be found in the response. NotAuthorized: content: application/json: @@ -1300,13 +1261,19 @@ components: schema: $ref: '#/components/schemas/Error' description: User is not authorized to access requested resource - Conflict: + NotFound: content: application/json: schema: $ref: '#/components/schemas/Error' - description: The resource already exists. - ServerError: + description: The requested resource could not be found. + Conflict: + content: + application/json: + schema: + $ref: '#/components/schemas/Error' + description: The resource already exists. + ServerError: content: application/json: schema: @@ -1333,6 +1300,8 @@ components: resourceType: $ref: '#/components/schemas/AclResourceType' resourceName: + nullable: false + pattern: \S type: string patternType: $ref: '#/components/schemas/AclPatternType' @@ -1342,7 +1311,7 @@ components: to specify all users with value `User:*`. example: User:user-123-abc nullable: false - pattern: ^User:(\*|[a-zA-Z0-9_@.-]+)$ + pattern: \S title: ACL Principal type: string operation: @@ -1358,55 +1327,57 @@ components: - resourceType title: ACL Binding type: object - AclBindingList: + AclBindingListPage: + description: A page of ACL binding entries + example: + total: 0 + size: 6 + page: 1 + items: + - resourceType: TOPIC + resourceName: '*' + patternType: LITERAL + principal: User:user123 + operation: READ + permission: ALLOW + - resourceType: TOPIC + resourceName: '*' + patternType: LITERAL + principal: User:user123 + operation: READ + permission: ALLOW properties: items: items: $ref: '#/components/schemas/AclBinding' + nullable: false type: array - type: object - AclBindingListPage: - allOf: - - $ref: '#/components/schemas/AclBindingList' - - $ref: '#/components/schemas/ResultListPage' - description: A page of ACL binding entries + total: + description: Total number of entries in the full result set + format: int32 + nullable: false + type: integer + size: + description: Number of entries per page (returned for fetch requests) + format: int32 + type: integer + page: + description: Current page number (returned for fetch requests) + format: int32 + type: integer + required: + - items + - total title: ACL Binding List Page type: object - AclResourceType: - enum: - - GROUP - - TOPIC - - CLUSTER - - TRANSACTIONAL_ID - nullable: false - title: ACL Resource Type - type: string - AclResourceTypeFilter: - default: ANY - enum: - - ANY - - GROUP - - TOPIC - - CLUSTER - - TRANSACTIONAL_ID - title: ACL Resource Type Filter - type: string - AclPatternType: - enum: - - LITERAL - - PREFIXED - nullable: false - title: ACL Pattern Type - type: string - AclPatternTypeFilter: - default: ANY - description: Use value 'MATCH' to perform pattern matching. + AclBindingOrderKey: enum: - - LITERAL - - PREFIXED - - ANY - - MATCH - title: ACL Pattern Type Filter + - resourceType + - resourceName + - patternType + - principal + - operation + - permission type: string AclOperation: enum: @@ -1423,7 +1394,6 @@ components: title: ACL Operation type: string AclOperationFilter: - default: ANY enum: - ALL - READ @@ -1437,6 +1407,22 @@ components: - ANY title: ACL Operation Filter type: string + AclPatternType: + enum: + - LITERAL + - PREFIXED + nullable: false + title: ACL Pattern Type + type: string + AclPatternTypeFilter: + description: Use value 'MATCH' to perform pattern matching. + enum: + - LITERAL + - PREFIXED + - ANY + - MATCH + title: ACL Pattern Type Filter + type: string AclPermissionType: enum: - ALLOW @@ -1445,98 +1431,30 @@ components: title: ACL Permission Type type: string AclPermissionTypeFilter: - default: ANY enum: - ALLOW - DENY - ANY title: ACL Permission Type Filter type: string - AclPrincipal: - description: Identifies the user or service account to which an ACL entry is - bound. The literal prefix value of `User:` is required. May be used to specify - all users with value `User:*`. - example: User:user-123-abc + AclResourceType: + enum: + - GROUP + - TOPIC + - CLUSTER + - TRANSACTIONAL_ID nullable: false - pattern: ^User:(\*|[a-zA-Z0-9_@.-]+)$ - title: ACL Principal + title: ACL Resource Type + type: string + AclResourceTypeFilter: + enum: + - ANY + - GROUP + - TOPIC + - CLUSTER + - TRANSACTIONAL_ID + title: ACL Resource Type Filter type: string - Topic: - description: Kafka Topic (A feed where records are stored and published) - example: - name: my-topic - config: - - key: min.insync.replicas - value: "1" - - key: max.message.bytes - value: "1050000" - partitions: - - id: 0 - replicas: - - id: 0 - - id: 1 - isr: - - id: 0 - - id: 1 - leader: - id: 0 - - id: 1 - replicas: - - id: 0 - - id: 1 - isr: - - id: 0 - - id: 1 - leader: - id: 1 - properties: - name: - description: The name of the topic. - type: string - config: - description: Topic configuration entry. - items: - $ref: '#/components/schemas/ConfigEntry' - type: array - partitions: - description: Partitions for this topic. - items: - $ref: '#/components/schemas/Partition' - type: array - title: Root Type for NewTopicInput - type: object - Partition: - description: Kafka topic partition - example: - id: 0 - replicas: - - id: 0 - - id: 1 - isr: - - id: 0 - - id: 1 - leader: - id: 1 - properties: - partition: - description: The partition id, unique among partitions of the same topic - type: integer - replicas: - description: List of replicas for the partition - items: - $ref: '#/components/schemas/Node' - type: array - isr: - description: List in-sync replicas for this partition. - items: - $ref: '#/components/schemas/Node' - type: array - leader: - description: Kafka server / broker. - type: object - required: - - partition - type: object ConfigEntry: description: Key value pair indicating possible configuration options for a topic. @@ -1547,198 +1465,120 @@ components: key: description: The key indicating what configuration entry you would like to set for the topic. + nullable: false + pattern: \S type: string value: description: Value to indicate the setting on the topic configuration entry. + nullable: false + pattern: \S type: string + required: + - key + - value type: object - TopicsList: - description: A list of topics. + Consumer: + description: A Kafka consumer is responsible for reading records from one or + more topics and one or more partitions of a topic. example: - items: - - name: my-topic - config: - - key: min.insync.replicas - value: "1" - - key: max.message.bytes - value: "1050000" - partitions: - - id: 0 - replicas: - - id: 0 - - id: 1 - isr: - - id: 0 - - id: 1 - leader: - id: 0 - - id: 1 - replicas: - - id: 0 - - id: 1 - isr: - - id: 0 - - id: 1 - leader: - id: 1 - offset: 25 - limit: 90 - count: 94 + groupId: consumer_group_1 + topic: topic-1 + partition: 0 + memberId: consumer_group_1-0 + offset: 5 + lag: 0 + logEndOffset: 5 properties: - page: - description: The page + groupId: + description: Unique identifier for the consumer group to which this consumer + belongs. + nullable: false + type: string + topic: + description: The unique topic name to which this consumer belongs + nullable: false + type: string + partition: + description: The partition number to which this consumer group is assigned + to. + format: int32 + nullable: false type: integer - size: - description: number of entries per page + offset: + description: Offset denotes the position of the consumer in a partition. + format: int64 type: integer - total: - description: Total number of topics + logEndOffset: + description: The log end offset is the offset of the last message written + to a log. + format: int64 type: integer - items: - description: List of topics - items: - $ref: '#/components/schemas/Topic' - type: array - type: object - TopicSettings: - description: Kafka Topic (A feed where records are stored and published) - example: - numPartitions: 2 - config: - - key: min.insync.replicas - value: "1" - - key: max.message.bytes - value: "1050000" - properties: - numPartitions: - description: Number of partitions for this topic. + lag: + description: Offset Lag is the delta between the last produced message and + the last consumer's committed offset. + format: int64 type: integer - config: - description: Topic configuration entry. - items: - $ref: '#/components/schemas/ConfigEntry' - type: array - required: - - numPartitions - title: Root Type for NewTopicInput - type: object - Node: - description: Kafka server / broker. - type: object - NewTopicInput: - description: Input object to create a new topic. - example: - name: my-topic - settings: - numPartitions: 3 - config: - - key: min.insync.replicas - value: "1" - - key: max.message.bytes - value: "1050000" - properties: - name: - description: The topic name, this value must be unique. + memberId: + description: The member ID is a unique identifier given to a consumer by + the coordinator upon initially joining the group. type: string - settings: - $ref: '#/components/schemas/TopicSettings' required: - - name - - settings + - groupId + - lag + - offset + - partition + - topic type: object ConsumerGroup: description: A group of Kafka consumers example: - id: consumer_group_1 + groupId: groupId consumers: - groupId: consumer_group_1 topic: topic-1 partition: 0 - memberId: consumer_group_member1 + memberId: consumer_group_1-0 offset: 5 lag: 0 logEndOffset: 5 - groupId: consumer_group_1 topic: topic-1 - partition: 1 - memberId: consumer_group_member2 - offset: 3 + partition: 0 + memberId: consumer_group_1-0 + offset: 5 lag: 0 - logEndOffset: 3 - - groupId: consumer_group_1 - topic: topic-1 - partition: 2 - memberId: consumer_group_member3 - offset: 6 - lag: 1 logEndOffset: 5 + metrics: + laggingPartitions: 0 + activeConsumers: 6 + unassignedPartitions: 1 properties: groupId: description: Unique identifier for the consumer group + nullable: false + pattern: \S type: string state: - enum: - - STABLE - - DEAD - - EMPTY - - COMPLETING_REBALANCE - - PREPARING_REBALANCE - - UNKNOWN - type: string + $ref: '#/components/schemas/ConsumerGroupState' consumers: description: The list of consumers associated with this consumer group items: $ref: '#/components/schemas/Consumer' + nullable: false type: array + metrics: + $ref: '#/components/schemas/ConsumerGroupMetrics' required: - consumers - groupId type: object - Consumer: - description: A Kafka consumer is responsible for reading records from one or - more topics and one or more partitions of a topic. - example: - groupId: consumer_group_1 - topic: topic-1 - partition: 0 - memberId: consumer_group_1-0 - offset: 5 - lag: 0 - logEndOffset: 5 - properties: - groupId: - description: Unique identifier for the consumer group to which this consumer - belongs. - type: string - topic: - description: The unique topic name to which this consumer belongs - type: string - partition: - description: The partition number to which this consumer group is assigned - to. - type: integer - offset: - description: Offset denotes the position of the consumer in a partition. - type: number - logEndOffset: - description: The log end offset is the offset of the last message written - to a log. - type: number - lag: - description: Offset Lag is the delta between the last produced message and - the last consumer's committed offset. - type: integer - memberId: - description: The member ID is a unique identifier given to a consumer by - the coordinator upon initially joining the group. - type: string - required: - - groupId - - lag + ConsumerGroupDescriptionOrderKey: + enum: - offset + - endOffset + - lag - partition - - topic - type: object + type: string ConsumerGroupList: description: A list of consumer groups example: @@ -1771,56 +1611,71 @@ components: logEndOffset: 5 properties: items: - description: Consumer group list items items: $ref: '#/components/schemas/ConsumerGroup' + nullable: false type: array total: - description: The total number of consumer groups. - type: number + description: Total number of entries in the full result set + format: int32 + nullable: false + type: integer size: - description: The number of consumer groups per page. - type: number + description: Number of entries per page (returned for fetch requests) + format: int32 + type: integer page: - description: The page + description: Current page number (returned for fetch requests) + format: int32 type: integer + required: + - items + - total type: object - UpdateTopicInput: - description: Kafka Topic (A feed where records are stored and published) + ConsumerGroupMetrics: example: - config: - - key: min.insync.replicas - value: "1" - - key: max.message.bytes - value: "1050000" + laggingPartitions: 0 + activeConsumers: 6 + unassignedPartitions: 1 properties: - config: - description: Topic configuration entries. - items: - $ref: '#/components/schemas/ConfigEntry' - type: array - numPartitions: - description: Number of partitions (only increasing supported) + laggingPartitions: + format: int32 + type: integer + activeConsumers: + format: int32 + type: integer + unassignedPartitions: + format: int32 type: integer - title: Root Type for UpdateTopicInput type: object + ConsumerGroupOrderKey: + enum: + - name + type: string ConsumerGroupResetOffsetParameters: example: + offset: "" topics: - - topic: my-topic - partitions: + - partitions: - 0 - offset: absolute - value: "4" + - 0 + topic: topic + - partitions: + - 0 + - 0 + topic: topic + value: value properties: - value: - type: string offset: - enum: - - timestamp - - absolute - - latest - - earliest + allOf: + - $ref: '#/components/schemas/OffsetType' + - nullable: false + value: + description: Value associated with the given `offset`. Not used for `offset` + values `earliest` and `latest`. When `offset` is `timestamp` then `value` + must be a valid timestamp representing the point in time to reset the + consumer group. When `offset` is `absolute` then `value` must be the integer + offset to which the consumer group will be reset. type: string topics: items: @@ -1830,29 +1685,7 @@ components: - offset title: Root Type for ConsumerGroupResetOffsetParameters type: object - TopicsToResetOffset: - example: - topic: foo - partitions: - - 0 - - 1 - - 2 - properties: - topic: - type: string - partitions: - items: - format: int32 - type: integer - type: array - required: - - topic - title: Root Type for TopicsToResetOffset - type: object ConsumerGroupResetOffsetResult: - allOf: - - $ref: '#/components/schemas/ConsumerGroupResetOffsetResultItemList' - - $ref: '#/components/schemas/ResultListPage' example: total: 2 page: 1 @@ -1864,14 +1697,29 @@ components: - topic: my-topic partition: 0 offset: 0 - title: Root Type for ConsumerGroupResetOffsetResult - type: object - ConsumerGroupResetOffsetResultItemList: properties: items: items: $ref: '#/components/schemas/ConsumerGroupResetOffsetResultItem' + nullable: false type: array + total: + description: Total number of entries in the full result set + format: int32 + nullable: false + type: integer + size: + description: Number of entries per page (returned for fetch requests) + format: int32 + type: integer + page: + description: Current page number (returned for fetch requests) + format: int32 + type: integer + required: + - items + - total + title: Root Type for ConsumerGroupResetOffsetResult type: object ConsumerGroupResetOffsetResultItem: example: @@ -1885,33 +1733,258 @@ components: format: int32 type: integer offset: + format: int64 + type: integer + type: object + ConsumerGroupState: + enum: + - UNKNOWN + - PREPARING_REBALANCE + - COMPLETING_REBALANCE + - STABLE + - DEAD + - EMPTY + type: string + Error: + description: General error response + properties: + code: format: int32 type: integer + error_message: + type: string type: object - ResultListPage: + NewTopicInput: + description: Input object to create a new topic. + example: + name: my-topic + settings: + numPartitions: 3 + config: + - key: min.insync.replicas + value: "1" + - key: max.message.bytes + value: "1050000" + properties: + name: + description: The topic name, this value must be unique. + nullable: false + pattern: \S + type: string + settings: + allOf: + - $ref: '#/components/schemas/TopicSettings' + - nullable: false + required: + - name + - settings + type: object + Node: + description: Identifier for a Kafka server / broker. + properties: + id: + format: int32 + type: integer + type: object + OffsetType: + enum: + - timestamp + - absolute + - latest + - earliest + type: string + Partition: + description: Kafka topic partition + example: + id: 0 + replicas: + - id: 0 + - id: 1 + isr: + - id: 0 + - id: 1 + leader: + id: 1 + properties: + partition: + description: The partition id, unique among partitions of the same topic + format: int32 + nullable: false + type: integer + replicas: + description: List of replicas for the partition + items: + $ref: '#/components/schemas/Node' + type: array + isr: + description: List in-sync replicas for this partition. + items: + $ref: '#/components/schemas/Node' + type: array + leader: + allOf: + - $ref: '#/components/schemas/Node' + - description: Node that is the leader for this partition. + required: + - partition + type: object + SortDirection: + enum: + - asc + - desc + type: string + Topic: + description: Kafka Topic (A feed where records are stored and published) + example: + name: my-topic + config: + - key: min.insync.replicas + value: "1" + - key: max.message.bytes + value: "1050000" + partitions: + - id: 0 + replicas: + - id: 0 + - id: 1 + isr: + - id: 0 + - id: 1 + leader: + id: 0 + - id: 1 + replicas: + - id: 0 + - id: 1 + isr: + - id: 0 + - id: 1 + leader: + id: 1 properties: + name: + description: The name of the topic. + type: string + isInternal: + type: boolean + partitions: + description: Partitions for this topic. + items: + $ref: '#/components/schemas/Partition' + type: array + config: + description: Topic configuration entry. + items: + $ref: '#/components/schemas/ConfigEntry' + type: array + title: Root Type for NewTopicInput + type: object + TopicOrderKey: + enum: + - name + - partitions + - retention.ms + - retention.bytes + type: string + TopicSettings: + description: The settings that are applicable to this topic. This includes partitions, + configuration information, and number of replicas. + example: + numPartitions: 2 + config: + - key: min.insync.replicas + value: "1" + - key: max.message.bytes + value: "1050000" + properties: + numPartitions: + description: Number of partitions for this topic. If not specified, the + default for new topics is `1`. Number of partitions may not be reduced + when updating existing topics + format: int32 + maximum: 100 + minimum: 1 + type: integer + config: + description: Topic configuration entries. + items: + $ref: '#/components/schemas/ConfigEntry' + type: array + title: Topic Settings + type: object + TopicsList: + description: A list of topics. + example: + items: + - name: my-topic + config: + - key: min.insync.replicas + value: "1" + - key: max.message.bytes + value: "1050000" + partitions: + - id: 0 + replicas: + - id: 0 + - id: 1 + isr: + - id: 0 + - id: 1 + leader: + id: 0 + - id: 1 + replicas: + - id: 0 + - id: 1 + isr: + - id: 0 + - id: 1 + leader: + id: 1 + offset: 25 + limit: 90 + count: 94 + properties: + items: + items: + $ref: '#/components/schemas/Topic' + nullable: false + type: array total: description: Total number of entries in the full result set - type: number - page: - description: Current page number (returned for fetch requests) + format: int32 + nullable: false type: integer size: description: Number of entries per page (returned for fetch requests) - type: number + format: int32 + type: integer + page: + description: Current page number (returned for fetch requests) + format: int32 + type: integer required: + - items - total type: object - Error: - description: General error response + TopicsToResetOffset: + example: + partitions: + - 0 + - 0 + topic: topic properties: - code: - format: int32 - type: integer - error_message: - type: string - class: + topic: + nullable: false type: string + partitions: + items: + format: int32 + type: integer + type: array + required: + - topic + title: Root Type for TopicsToResetOffset type: object securitySchemes: Bearer: diff --git a/packages/kafka-instance-sdk/docs/AclBindingListPage.md b/packages/kafka-instance-sdk/docs/AclBindingListPage.md index 2a2fb90d..e785ef41 100644 --- a/packages/kafka-instance-sdk/docs/AclBindingListPage.md +++ b/packages/kafka-instance-sdk/docs/AclBindingListPage.md @@ -8,10 +8,10 @@ A page of ACL binding entries Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**List<AclBinding>**](AclBinding.md) | | [optional] -**total** | **BigDecimal** | Total number of entries in the full result set | +**items** | [**List<AclBinding>**](AclBinding.md) | | +**total** | **Integer** | Total number of entries in the full result set | +**size** | **Integer** | Number of entries per page (returned for fetch requests) | [optional] **page** | **Integer** | Current page number (returned for fetch requests) | [optional] -**size** | **BigDecimal** | Number of entries per page (returned for fetch requests) | [optional] diff --git a/packages/kafka-instance-sdk/docs/AclBindingOrderKey.md b/packages/kafka-instance-sdk/docs/AclBindingOrderKey.md new file mode 100644 index 00000000..19d0ea4c --- /dev/null +++ b/packages/kafka-instance-sdk/docs/AclBindingOrderKey.md @@ -0,0 +1,21 @@ + + +# AclBindingOrderKey + +## Enum + + +* `RESOURCETYPE` (value: `"resourceType"`) + +* `RESOURCENAME` (value: `"resourceName"`) + +* `PATTERNTYPE` (value: `"patternType"`) + +* `PRINCIPAL` (value: `"principal"`) + +* `OPERATION` (value: `"operation"`) + +* `PERMISSION` (value: `"permission"`) + + + diff --git a/packages/kafka-instance-sdk/docs/AclsApi.md b/packages/kafka-instance-sdk/docs/AclsApi.md index 101c99d0..b19c9b9a 100644 --- a/packages/kafka-instance-sdk/docs/AclsApi.md +++ b/packages/kafka-instance-sdk/docs/AclsApi.md @@ -1,13 +1,13 @@ # AclsApi -All URIs are relative to */rest* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**createAcl**](AclsApi.md#createAcl) | **POST** /acls | Create ACL binding -[**deleteAcls**](AclsApi.md#deleteAcls) | **DELETE** /acls | Delete ACL bindings -[**getAclResourceOperations**](AclsApi.md#getAclResourceOperations) | **GET** /acls/resource-operations | Retrieve allowed ACL resources and operations -[**getAcls**](AclsApi.md#getAcls) | **GET** /acls | List ACL bindings +[**createAcl**](AclsApi.md#createAcl) | **POST** /rest/acls | Create ACL binding +[**deleteAcls**](AclsApi.md#deleteAcls) | **DELETE** /rest/acls | Delete ACL bindings +[**getAclResourceOperations**](AclsApi.md#getAclResourceOperations) | **GET** /rest/acls/resource-operations | Retrieve allowed ACL resources and operations +[**getAcls**](AclsApi.md#getAcls) | **GET** /rest/acls | List ACL bindings @@ -33,7 +33,7 @@ import com.openshift.cloud.api.kas.auth.AclsApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/rest"); + defaultClient.setBasePath("http://localhost"); // Configure OAuth2 access token for authorization: Bearer OAuth Bearer = (OAuth) defaultClient.getAuthentication("Bearer"); @@ -79,7 +79,7 @@ null (empty response body) | Status code | Description | Response headers | |-------------|-------------|------------------| | **201** | ACL created successfully. | - | -| **400** | The client request was invalid | - | +| **400** | The client request was invalid. One or more request parameters or the request body was rejected. Additional information may be found in the response. | - | | **401** | Request authentication missing or invalid | - | | **403** | User is not authorized to access requested resource | - | | **500** | Internal server error | - | @@ -108,19 +108,19 @@ import com.openshift.cloud.api.kas.auth.AclsApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/rest"); + defaultClient.setBasePath("http://localhost"); // Configure OAuth2 access token for authorization: Bearer OAuth Bearer = (OAuth) defaultClient.getAuthentication("Bearer"); Bearer.setAccessToken("YOUR ACCESS TOKEN"); AclsApi apiInstance = new AclsApi(defaultClient); - AclResourceTypeFilter resourceType = AclResourceTypeFilter.fromValue("ANY"); // AclResourceTypeFilter | ACL Resource Type Filter + AclResourceTypeFilter resourceType = new AclResourceTypeFilter(); // AclResourceTypeFilter | ACL Resource Type Filter String resourceName = "resourceName_example"; // String | ACL Resource Name Filter - AclPatternTypeFilter patternType = AclPatternTypeFilter.fromValue("LITERAL"); // AclPatternTypeFilter | ACL Pattern Type Filter - String principal = "User:*"; // String | ACL Principal Filter. Either a specific user or the wildcard user `User:*` may be provided. - When fetching by a specific user, the results will also include ACL bindings that apply to all users. - When deleting, ACL bindings to be delete must match the provided `principal` exactly. - AclOperationFilter operation = AclOperationFilter.fromValue("ALL"); // AclOperationFilter | ACL Operation Filter. The ACL binding operation provided should be valid for the resource type in the request, if not `ANY`. - AclPermissionTypeFilter permission = AclPermissionTypeFilter.fromValue("ALLOW"); // AclPermissionTypeFilter | ACL Permission Type Filter + AclPatternTypeFilter patternType = new AclPatternTypeFilter(); // AclPatternTypeFilter | ACL Pattern Type Filter + String principal = ""; // String | ACL Principal Filter. Either a specific user or the wildcard user `User:*` may be provided. - When fetching by a specific user, the results will also include ACL bindings that apply to all users. - When deleting, ACL bindings to be delete must match the provided `principal` exactly. + AclOperationFilter operation = new AclOperationFilter(); // AclOperationFilter | ACL Operation Filter. The ACL binding operation provided should be valid for the resource type in the request, if not `ANY`. + AclPermissionTypeFilter permission = new AclPermissionTypeFilter(); // AclPermissionTypeFilter | ACL Permission Type Filter try { AclBindingListPage result = apiInstance.deleteAcls(resourceType, resourceName, patternType, principal, operation, permission); System.out.println(result); @@ -140,12 +140,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **resourceType** | [**AclResourceTypeFilter**](.md)| ACL Resource Type Filter | [optional] [default to ANY] [enum: ANY, GROUP, TOPIC, CLUSTER, TRANSACTIONAL_ID] + **resourceType** | [**AclResourceTypeFilter**](.md)| ACL Resource Type Filter | [optional] **resourceName** | **String**| ACL Resource Name Filter | [optional] - **patternType** | [**AclPatternTypeFilter**](.md)| ACL Pattern Type Filter | [optional] [default to ANY] [enum: LITERAL, PREFIXED, ANY, MATCH] - **principal** | **String**| ACL Principal Filter. Either a specific user or the wildcard user `User:*` may be provided. - When fetching by a specific user, the results will also include ACL bindings that apply to all users. - When deleting, ACL bindings to be delete must match the provided `principal` exactly. | [optional] - **operation** | [**AclOperationFilter**](.md)| ACL Operation Filter. The ACL binding operation provided should be valid for the resource type in the request, if not `ANY`. | [optional] [default to ANY] [enum: ALL, READ, WRITE, CREATE, DELETE, ALTER, DESCRIBE, DESCRIBE_CONFIGS, ALTER_CONFIGS, ANY] - **permission** | [**AclPermissionTypeFilter**](.md)| ACL Permission Type Filter | [optional] [default to ANY] [enum: ALLOW, DENY, ANY] + **patternType** | [**AclPatternTypeFilter**](.md)| ACL Pattern Type Filter | [optional] + **principal** | **String**| ACL Principal Filter. Either a specific user or the wildcard user `User:*` may be provided. - When fetching by a specific user, the results will also include ACL bindings that apply to all users. - When deleting, ACL bindings to be delete must match the provided `principal` exactly. | [optional] [default to ] + **operation** | [**AclOperationFilter**](.md)| ACL Operation Filter. The ACL binding operation provided should be valid for the resource type in the request, if not `ANY`. | [optional] + **permission** | [**AclPermissionTypeFilter**](.md)| ACL Permission Type Filter | [optional] ### Return type @@ -164,12 +164,12 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | List of all ACL bindings matching the query parameters that were deleted. | - | -| **400** | The client request was invalid | - | +| **400** | The client request was invalid. One or more request parameters or the request body was rejected. Additional information may be found in the response. | - | | **401** | Request authentication missing or invalid | - | | **403** | User is not authorized to access requested resource | - | | **500** | Internal server error | - | | **503** | Kafka service unavailable | - | +| **200** | List of all ACL bindings matching the query parameters that were deleted. | - | ## getAclResourceOperations @@ -194,7 +194,7 @@ import com.openshift.cloud.api.kas.auth.AclsApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/rest"); + defaultClient.setBasePath("http://localhost"); // Configure OAuth2 access token for authorization: Bearer OAuth Bearer = (OAuth) defaultClient.getAuthentication("Bearer"); @@ -238,7 +238,6 @@ This endpoint does not need any parameter. |-------------|-------------|------------------| | **200** | Map of allowed resources and operations for ACL creation | - | | **401** | Request authentication missing or invalid | - | -| **403** | User is not authorized to access requested resource | - | | **500** | Internal server error | - | @@ -248,7 +247,7 @@ This endpoint does not need any parameter. List ACL bindings -Returns a list of all of the available ACL bindings, or the list of bindings that meet the users URL Query Parameters. If no parameters are specified, all ACL bindings known to the system will be returned (with paging). +Returns a list of all of the available ACL bindings, or the list of bindings that meet the user's URL query parameters. If no parameters are specified, all ACL bindings known to the system will be returned (with paging). ### Example @@ -264,23 +263,23 @@ import com.openshift.cloud.api.kas.auth.AclsApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/rest"); + defaultClient.setBasePath("http://localhost"); // Configure OAuth2 access token for authorization: Bearer OAuth Bearer = (OAuth) defaultClient.getAuthentication("Bearer"); Bearer.setAccessToken("YOUR ACCESS TOKEN"); AclsApi apiInstance = new AclsApi(defaultClient); - AclResourceTypeFilter resourceType = AclResourceTypeFilter.fromValue("ANY"); // AclResourceTypeFilter | ACL Resource Type Filter + AclResourceTypeFilter resourceType = new AclResourceTypeFilter(); // AclResourceTypeFilter | ACL Resource Type Filter String resourceName = "resourceName_example"; // String | ACL Resource Name Filter - AclPatternTypeFilter patternType = AclPatternTypeFilter.fromValue("LITERAL"); // AclPatternTypeFilter | ACL Pattern Type Filter - String principal = "User:*"; // String | ACL Principal Filter. Either a specific user or the wildcard user `User:*` may be provided. - When fetching by a specific user, the results will also include ACL bindings that apply to all users. - When deleting, ACL bindings to be delete must match the provided `principal` exactly. - AclOperationFilter operation = AclOperationFilter.fromValue("ALL"); // AclOperationFilter | ACL Operation Filter. The ACL binding operation provided should be valid for the resource type in the request, if not `ANY`. - AclPermissionTypeFilter permission = AclPermissionTypeFilter.fromValue("ALLOW"); // AclPermissionTypeFilter | ACL Permission Type Filter - BigDecimal page = new BigDecimal("1"); // BigDecimal | Page number for result lists - BigDecimal size = new BigDecimal("10"); // BigDecimal | Page size for result lists - String order = "asc"; // String | Order of the ACL binding sorting. - String orderKey = "resourceType"; // String | Order key to sort the items by. + AclPatternTypeFilter patternType = new AclPatternTypeFilter(); // AclPatternTypeFilter | ACL Pattern Type Filter + String principal = ""; // String | ACL Principal Filter. Either a specific user or the wildcard user `User:*` may be provided. - When fetching by a specific user, the results will also include ACL bindings that apply to all users. - When deleting, ACL bindings to be delete must match the provided `principal` exactly. + AclOperationFilter operation = new AclOperationFilter(); // AclOperationFilter | ACL Operation Filter. The ACL binding operation provided should be valid for the resource type in the request, if not `ANY`. + AclPermissionTypeFilter permission = new AclPermissionTypeFilter(); // AclPermissionTypeFilter | ACL Permission Type Filter + Integer page = 56; // Integer | Page number + Integer size = 56; // Integer | Number of records per page + SortDirection order = SortDirection.fromValue("asc"); // SortDirection | Order items are sorted + AclBindingOrderKey orderKey = new AclBindingOrderKey(); // AclBindingOrderKey | try { AclBindingListPage result = apiInstance.getAcls(resourceType, resourceName, patternType, principal, operation, permission, page, size, order, orderKey); System.out.println(result); @@ -300,16 +299,16 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **resourceType** | [**AclResourceTypeFilter**](.md)| ACL Resource Type Filter | [optional] [default to ANY] [enum: ANY, GROUP, TOPIC, CLUSTER, TRANSACTIONAL_ID] + **resourceType** | [**AclResourceTypeFilter**](.md)| ACL Resource Type Filter | [optional] **resourceName** | **String**| ACL Resource Name Filter | [optional] - **patternType** | [**AclPatternTypeFilter**](.md)| ACL Pattern Type Filter | [optional] [default to ANY] [enum: LITERAL, PREFIXED, ANY, MATCH] - **principal** | **String**| ACL Principal Filter. Either a specific user or the wildcard user `User:*` may be provided. - When fetching by a specific user, the results will also include ACL bindings that apply to all users. - When deleting, ACL bindings to be delete must match the provided `principal` exactly. | [optional] - **operation** | [**AclOperationFilter**](.md)| ACL Operation Filter. The ACL binding operation provided should be valid for the resource type in the request, if not `ANY`. | [optional] [default to ANY] [enum: ALL, READ, WRITE, CREATE, DELETE, ALTER, DESCRIBE, DESCRIBE_CONFIGS, ALTER_CONFIGS, ANY] - **permission** | [**AclPermissionTypeFilter**](.md)| ACL Permission Type Filter | [optional] [default to ANY] [enum: ALLOW, DENY, ANY] - **page** | **BigDecimal**| Page number for result lists | [optional] [default to 1] - **size** | **BigDecimal**| Page size for result lists | [optional] [default to 10] - **order** | **String**| Order of the ACL binding sorting. | [optional] [default to desc] [enum: asc, desc] - **orderKey** | **String**| Order key to sort the items by. | [optional] [default to permission] [enum: resourceType, resourceName, patternType, principal, operation, permission] + **patternType** | [**AclPatternTypeFilter**](.md)| ACL Pattern Type Filter | [optional] + **principal** | **String**| ACL Principal Filter. Either a specific user or the wildcard user `User:*` may be provided. - When fetching by a specific user, the results will also include ACL bindings that apply to all users. - When deleting, ACL bindings to be delete must match the provided `principal` exactly. | [optional] [default to ] + **operation** | [**AclOperationFilter**](.md)| ACL Operation Filter. The ACL binding operation provided should be valid for the resource type in the request, if not `ANY`. | [optional] + **permission** | [**AclPermissionTypeFilter**](.md)| ACL Permission Type Filter | [optional] + **page** | **Integer**| Page number | [optional] + **size** | **Integer**| Number of records per page | [optional] + **order** | [**SortDirection**](.md)| Order items are sorted | [optional] [enum: asc, desc] + **orderKey** | [**AclBindingOrderKey**](.md)| | [optional] ### Return type @@ -328,10 +327,10 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | List of ACL bindings matching the query parameters. | - | -| **400** | The client request was invalid | - | +| **400** | The client request was invalid. One or more request parameters or the request body was rejected. Additional information may be found in the response. | - | | **401** | Request authentication missing or invalid | - | | **403** | User is not authorized to access requested resource | - | | **500** | Internal server error | - | | **503** | Kafka service unavailable | - | +| **200** | List of ACL bindings matching the query parameters. | - | diff --git a/packages/kafka-instance-sdk/docs/ConfigEntry.md b/packages/kafka-instance-sdk/docs/ConfigEntry.md index a6c5d9bf..73eabdac 100644 --- a/packages/kafka-instance-sdk/docs/ConfigEntry.md +++ b/packages/kafka-instance-sdk/docs/ConfigEntry.md @@ -8,8 +8,8 @@ Key value pair indicating possible configuration options for a topic. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**key** | **String** | The key indicating what configuration entry you would like to set for the topic. | [optional] -**value** | **String** | Value to indicate the setting on the topic configuration entry. | [optional] +**key** | **String** | The key indicating what configuration entry you would like to set for the topic. | +**value** | **String** | Value to indicate the setting on the topic configuration entry. | diff --git a/packages/kafka-instance-sdk/docs/Consumer.md b/packages/kafka-instance-sdk/docs/Consumer.md index 8100a920..372ae996 100644 --- a/packages/kafka-instance-sdk/docs/Consumer.md +++ b/packages/kafka-instance-sdk/docs/Consumer.md @@ -11,9 +11,9 @@ Name | Type | Description | Notes **groupId** | **String** | Unique identifier for the consumer group to which this consumer belongs. | **topic** | **String** | The unique topic name to which this consumer belongs | **partition** | **Integer** | The partition number to which this consumer group is assigned to. | -**offset** | **BigDecimal** | Offset denotes the position of the consumer in a partition. | -**logEndOffset** | **BigDecimal** | The log end offset is the offset of the last message written to a log. | [optional] -**lag** | **Integer** | Offset Lag is the delta between the last produced message and the last consumer's committed offset. | +**offset** | **Long** | Offset denotes the position of the consumer in a partition. | +**logEndOffset** | **Long** | The log end offset is the offset of the last message written to a log. | [optional] +**lag** | **Long** | Offset Lag is the delta between the last produced message and the last consumer's committed offset. | **memberId** | **String** | The member ID is a unique identifier given to a consumer by the coordinator upon initially joining the group. | [optional] diff --git a/packages/kafka-instance-sdk/docs/ConsumerGroup.md b/packages/kafka-instance-sdk/docs/ConsumerGroup.md index 6fdc478c..8cd1fc9e 100644 --- a/packages/kafka-instance-sdk/docs/ConsumerGroup.md +++ b/packages/kafka-instance-sdk/docs/ConsumerGroup.md @@ -9,21 +9,9 @@ A group of Kafka consumers Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **groupId** | **String** | Unique identifier for the consumer group | -**state** | [**StateEnum**](#StateEnum) | | [optional] +**state** | **ConsumerGroupState** | | [optional] **consumers** | [**List<Consumer>**](Consumer.md) | The list of consumers associated with this consumer group | - - - -## Enum: StateEnum - -Name | Value ----- | ----- -STABLE | "STABLE" -DEAD | "DEAD" -EMPTY | "EMPTY" -COMPLETING_REBALANCE | "COMPLETING_REBALANCE" -PREPARING_REBALANCE | "PREPARING_REBALANCE" -UNKNOWN | "UNKNOWN" +**metrics** | [**ConsumerGroupMetrics**](ConsumerGroupMetrics.md) | | [optional] diff --git a/packages/kafka-instance-sdk/docs/ConsumerGroupDescriptionOrderKey.md b/packages/kafka-instance-sdk/docs/ConsumerGroupDescriptionOrderKey.md new file mode 100644 index 00000000..e4d7bc64 --- /dev/null +++ b/packages/kafka-instance-sdk/docs/ConsumerGroupDescriptionOrderKey.md @@ -0,0 +1,17 @@ + + +# ConsumerGroupDescriptionOrderKey + +## Enum + + +* `OFFSET` (value: `"offset"`) + +* `ENDOFFSET` (value: `"endOffset"`) + +* `LAG` (value: `"lag"`) + +* `PARTITION` (value: `"partition"`) + + + diff --git a/packages/kafka-instance-sdk/docs/ConsumerGroupList.md b/packages/kafka-instance-sdk/docs/ConsumerGroupList.md index d047fdb4..e702b7d7 100644 --- a/packages/kafka-instance-sdk/docs/ConsumerGroupList.md +++ b/packages/kafka-instance-sdk/docs/ConsumerGroupList.md @@ -8,10 +8,10 @@ A list of consumer groups Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**List<ConsumerGroup>**](ConsumerGroup.md) | Consumer group list items | [optional] -**total** | **BigDecimal** | The total number of consumer groups. | [optional] -**size** | **BigDecimal** | The number of consumer groups per page. | [optional] -**page** | **Integer** | The page | [optional] +**items** | [**List<ConsumerGroup>**](ConsumerGroup.md) | | +**total** | **Integer** | Total number of entries in the full result set | +**size** | **Integer** | Number of entries per page (returned for fetch requests) | [optional] +**page** | **Integer** | Current page number (returned for fetch requests) | [optional] diff --git a/packages/kafka-instance-sdk/docs/ConsumerGroupMetrics.md b/packages/kafka-instance-sdk/docs/ConsumerGroupMetrics.md new file mode 100644 index 00000000..5685256c --- /dev/null +++ b/packages/kafka-instance-sdk/docs/ConsumerGroupMetrics.md @@ -0,0 +1,15 @@ + + +# ConsumerGroupMetrics + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**laggingPartitions** | **Integer** | | [optional] +**activeConsumers** | **Integer** | | [optional] +**unassignedPartitions** | **Integer** | | [optional] + + + diff --git a/packages/kafka-instance-sdk/docs/ConsumerGroupOrderKey.md b/packages/kafka-instance-sdk/docs/ConsumerGroupOrderKey.md new file mode 100644 index 00000000..730dbfa2 --- /dev/null +++ b/packages/kafka-instance-sdk/docs/ConsumerGroupOrderKey.md @@ -0,0 +1,11 @@ + + +# ConsumerGroupOrderKey + +## Enum + + +* `NAME` (value: `"name"`) + + + diff --git a/packages/kafka-instance-sdk/docs/ConsumerGroupResetOffsetParameters.md b/packages/kafka-instance-sdk/docs/ConsumerGroupResetOffsetParameters.md index aa28f12e..4ca0ee27 100644 --- a/packages/kafka-instance-sdk/docs/ConsumerGroupResetOffsetParameters.md +++ b/packages/kafka-instance-sdk/docs/ConsumerGroupResetOffsetParameters.md @@ -7,20 +7,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**value** | **String** | | [optional] -**offset** | [**OffsetEnum**](#OffsetEnum) | | +**offset** | [**OffsetType**](OffsetType.md) | | +**value** | **String** | Value associated with the given `offset`. Not used for `offset` values `earliest` and `latest`. When `offset` is `timestamp` then `value` must be a valid timestamp representing the point in time to reset the consumer group. When `offset` is `absolute` then `value` must be the integer offset to which the consumer group will be reset. | [optional] **topics** | [**List<TopicsToResetOffset>**](TopicsToResetOffset.md) | | [optional] -## Enum: OffsetEnum - -Name | Value ----- | ----- -TIMESTAMP | "timestamp" -ABSOLUTE | "absolute" -LATEST | "latest" -EARLIEST | "earliest" - - - diff --git a/packages/kafka-instance-sdk/docs/ConsumerGroupResetOffsetResult.md b/packages/kafka-instance-sdk/docs/ConsumerGroupResetOffsetResult.md index 1be64f57..5de7c479 100644 --- a/packages/kafka-instance-sdk/docs/ConsumerGroupResetOffsetResult.md +++ b/packages/kafka-instance-sdk/docs/ConsumerGroupResetOffsetResult.md @@ -7,10 +7,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**List<ConsumerGroupResetOffsetResultItem>**](ConsumerGroupResetOffsetResultItem.md) | | [optional] -**total** | **BigDecimal** | Total number of entries in the full result set | +**items** | [**List<ConsumerGroupResetOffsetResultItem>**](ConsumerGroupResetOffsetResultItem.md) | | +**total** | **Integer** | Total number of entries in the full result set | +**size** | **Integer** | Number of entries per page (returned for fetch requests) | [optional] **page** | **Integer** | Current page number (returned for fetch requests) | [optional] -**size** | **BigDecimal** | Number of entries per page (returned for fetch requests) | [optional] diff --git a/packages/kafka-instance-sdk/docs/ConsumerGroupResetOffsetResultItem.md b/packages/kafka-instance-sdk/docs/ConsumerGroupResetOffsetResultItem.md index b425ba22..9005d471 100644 --- a/packages/kafka-instance-sdk/docs/ConsumerGroupResetOffsetResultItem.md +++ b/packages/kafka-instance-sdk/docs/ConsumerGroupResetOffsetResultItem.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **topic** | **String** | | [optional] **partition** | **Integer** | | [optional] -**offset** | **Integer** | | [optional] +**offset** | **Long** | | [optional] diff --git a/packages/kafka-instance-sdk/docs/ConsumerGroupState.md b/packages/kafka-instance-sdk/docs/ConsumerGroupState.md new file mode 100644 index 00000000..2faeb94c --- /dev/null +++ b/packages/kafka-instance-sdk/docs/ConsumerGroupState.md @@ -0,0 +1,21 @@ + + +# ConsumerGroupState + +## Enum + + +* `UNKNOWN` (value: `"UNKNOWN"`) + +* `PREPARING_REBALANCE` (value: `"PREPARING_REBALANCE"`) + +* `COMPLETING_REBALANCE` (value: `"COMPLETING_REBALANCE"`) + +* `STABLE` (value: `"STABLE"`) + +* `DEAD` (value: `"DEAD"`) + +* `EMPTY` (value: `"EMPTY"`) + + + diff --git a/packages/kafka-instance-sdk/docs/Error.md b/packages/kafka-instance-sdk/docs/Error.md index 57ea206f..2a70349f 100644 --- a/packages/kafka-instance-sdk/docs/Error.md +++ b/packages/kafka-instance-sdk/docs/Error.md @@ -10,7 +10,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **code** | **Integer** | | [optional] **errorMessage** | **String** | | [optional] -**propertyClass** | **String** | | [optional] diff --git a/packages/kafka-instance-sdk/docs/GroupsApi.md b/packages/kafka-instance-sdk/docs/GroupsApi.md index c76709ef..6621ab37 100644 --- a/packages/kafka-instance-sdk/docs/GroupsApi.md +++ b/packages/kafka-instance-sdk/docs/GroupsApi.md @@ -1,13 +1,13 @@ # GroupsApi -All URIs are relative to */rest* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**deleteConsumerGroupById**](GroupsApi.md#deleteConsumerGroupById) | **DELETE** /consumer-groups/{consumerGroupId} | Delete a consumer group. -[**getConsumerGroupById**](GroupsApi.md#getConsumerGroupById) | **GET** /consumer-groups/{consumerGroupId} | Get a single consumer group by its unique ID. -[**getConsumerGroups**](GroupsApi.md#getConsumerGroups) | **GET** /consumer-groups | List of consumer groups in the Kafka instance. -[**resetConsumerGroupOffset**](GroupsApi.md#resetConsumerGroupOffset) | **POST** /consumer-groups/{consumerGroupId}/reset-offset | Reset the offset for a consumer group. +[**deleteConsumerGroupById**](GroupsApi.md#deleteConsumerGroupById) | **DELETE** /rest/consumer-groups/{consumerGroupId} | Delete a consumer group. +[**getConsumerGroupById**](GroupsApi.md#getConsumerGroupById) | **GET** /rest/consumer-groups/{consumerGroupId} | Get a single consumer group by its unique ID. +[**getConsumerGroups**](GroupsApi.md#getConsumerGroups) | **GET** /rest/consumer-groups | List of consumer groups in the Kafka instance. +[**resetConsumerGroupOffset**](GroupsApi.md#resetConsumerGroupOffset) | **POST** /rest/consumer-groups/{consumerGroupId}/reset-offset | Reset the offset for a consumer group. @@ -33,14 +33,14 @@ import com.openshift.cloud.api.kas.auth.GroupsApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/rest"); + defaultClient.setBasePath("http://localhost"); // Configure OAuth2 access token for authorization: Bearer OAuth Bearer = (OAuth) defaultClient.getAuthentication("Bearer"); Bearer.setAccessToken("YOUR ACCESS TOKEN"); GroupsApi apiInstance = new GroupsApi(defaultClient); - String consumerGroupId = "consumerGroupId_example"; // String | The unique ID of the cobsumer group. + String consumerGroupId = "consumerGroupId_example"; // String | Consumer group identifier try { apiInstance.deleteConsumerGroupById(consumerGroupId); } catch (ApiException e) { @@ -59,7 +59,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **consumerGroupId** | **String**| The unique ID of the cobsumer group. | + **consumerGroupId** | **String**| Consumer group identifier | ### Return type @@ -80,8 +80,8 @@ null (empty response body) |-------------|-------------|------------------| | **204** | The consumer group was deleted successfully. | - | | **401** | Request authentication missing or invalid | - | -| **403** | Forbidden to delete this consumer group. | - | -| **404** | The consumer group does not exist. | - | +| **403** | User is not authorized to access requested resource | - | +| **404** | The requested resource could not be found. | - | | **423** | User cannot delete consumer group with active members. | - | | **500** | Internal server error | - | | **503** | Kafka service unavailable | - | @@ -107,18 +107,18 @@ import com.openshift.cloud.api.kas.auth.GroupsApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/rest"); + defaultClient.setBasePath("http://localhost"); // Configure OAuth2 access token for authorization: Bearer OAuth Bearer = (OAuth) defaultClient.getAuthentication("Bearer"); Bearer.setAccessToken("YOUR ACCESS TOKEN"); GroupsApi apiInstance = new GroupsApi(defaultClient); - String consumerGroupId = "consumerGroupId_example"; // String | The unique ID of the consumer group - String order = "asc"; // String | Order of the items sorting. Ascending order is used as default. - String orderKey = "offset"; // String | Order key to sort the topics by. + String consumerGroupId = "consumerGroupId_example"; // String | Consumer group identifier + SortDirection order = SortDirection.fromValue("asc"); // SortDirection | Order items are sorted + ConsumerGroupDescriptionOrderKey orderKey = new ConsumerGroupDescriptionOrderKey(); // ConsumerGroupDescriptionOrderKey | Integer partitionFilter = 56; // Integer | Value of partition to include. Value -1 means filter is not active. - String topic = "{\"groupId\":\"consumer_group_1\",\"consumers\":[{\"groupId\":\"consumer_group_1\",\"topic\":\"topic-1\",\"partition\":0,\"memberId\":\"consumer_group_member1\",\"offset\":5,\"lag\":0,\"logEndOffset\":5},{\"groupId\":\"consumer_group_1\",\"topic\":\"topic-1\",\"partition\":1,\"memberId\":\"consumer_group_member2\",\"offset\":3,\"lag\":0,\"logEndOffset\":3},{\"groupId\":\"consumer_group_1\",\"topic\":\"topic-1\",\"partition\":2,\"memberId\":\"consumer_group_member3\",\"offset\":6,\"lag\":1,\"logEndOffset\":5}]}"; // String | Filter consumer groups for a specific topic + String topic = "topic_example"; // String | Filter consumer groups for a specific topic try { ConsumerGroup result = apiInstance.getConsumerGroupById(consumerGroupId, order, orderKey, partitionFilter, topic); System.out.println(result); @@ -138,9 +138,9 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **consumerGroupId** | **String**| The unique ID of the consumer group | - **order** | **String**| Order of the items sorting. Ascending order is used as default. | [optional] [enum: asc, desc] - **orderKey** | **String**| Order key to sort the topics by. | [optional] [enum: offset, endOffset, lag, partition] + **consumerGroupId** | **String**| Consumer group identifier | + **order** | [**SortDirection**](.md)| Order items are sorted | [optional] [enum: asc, desc] + **orderKey** | [**ConsumerGroupDescriptionOrderKey**](.md)| | [optional] **partitionFilter** | **Integer**| Value of partition to include. Value -1 means filter is not active. | [optional] **topic** | **String**| Filter consumer groups for a specific topic | [optional] @@ -163,8 +163,8 @@ Name | Type | Description | Notes |-------------|-------------|------------------| | **200** | Consumer group details. | - | | **401** | Request authentication missing or invalid | - | -| **403** | User is forbidden this view this consumer group. | - | -| **404** | Consumer group not found. | - | +| **403** | User is not authorized to access requested resource | - | +| **404** | The requested resource could not be found. | - | | **500** | Internal server error | - | | **503** | Kafka service unavailable | - | @@ -191,19 +191,19 @@ import com.openshift.cloud.api.kas.auth.GroupsApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/rest"); + defaultClient.setBasePath("http://localhost"); // Configure OAuth2 access token for authorization: Bearer OAuth Bearer = (OAuth) defaultClient.getAuthentication("Bearer"); Bearer.setAccessToken("YOUR ACCESS TOKEN"); GroupsApi apiInstance = new GroupsApi(defaultClient); - Integer limit = 56; // Integer | Maximum number of consumer groups to return - Integer page = 56; // Integer | The page when returning the list of consumer groups - String topic = "topic_example"; // String | Return consumer groups where the topic name contains with this value - String groupIdFilter = "groupIdFilter_example"; // String | Return the consumer groups where the ID contains with this value - String order = "asc"; // String | Order of the consumer groups sorting. Ascending order is used as default. - String orderKey = "name"; // String | Order key to sort the items by. Only the value 'name' is currently applicable. + Integer limit = 56; // Integer | Maximum number of records to return + Integer page = 56; // Integer | Page number + String topic = "topic_example"; // String | Return consumer groups where the topic name contains this value + String groupIdFilter = "groupIdFilter_example"; // String | Return the consumer groups where the ID contains this value + SortDirection order = SortDirection.fromValue("asc"); // SortDirection | Order items are sorted + ConsumerGroupOrderKey orderKey = new ConsumerGroupOrderKey(); // ConsumerGroupOrderKey | try { ConsumerGroupList result = apiInstance.getConsumerGroups(limit, page, topic, groupIdFilter, order, orderKey); System.out.println(result); @@ -223,12 +223,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **limit** | **Integer**| Maximum number of consumer groups to return | [optional] - **page** | **Integer**| The page when returning the list of consumer groups | [optional] - **topic** | **String**| Return consumer groups where the topic name contains with this value | [optional] - **groupIdFilter** | **String**| Return the consumer groups where the ID contains with this value | [optional] - **order** | **String**| Order of the consumer groups sorting. Ascending order is used as default. | [optional] [enum: asc, desc] - **orderKey** | **String**| Order key to sort the items by. Only the value 'name' is currently applicable. | [optional] [enum: name] + **limit** | **Integer**| Maximum number of records to return | [optional] + **page** | **Integer**| Page number | [optional] + **topic** | **String**| Return consumer groups where the topic name contains this value | [optional] + **groupIdFilter** | **String**| Return the consumer groups where the ID contains this value | [optional] + **order** | [**SortDirection**](.md)| Order items are sorted | [optional] [enum: asc, desc] + **orderKey** | [**ConsumerGroupOrderKey**](.md)| | [optional] ### Return type @@ -248,7 +248,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | List of consumer groups matching the request parameters. The consumer groups returned are limited to those records the requestor is authorized to view. | - | -| **400** | The server cannot or will not process the request due to something that is perceived to be a client error such as malformed request syntax. | - | +| **400** | The client request was invalid. One or more request parameters or the request body was rejected. Additional information may be found in the response. | - | | **401** | Request authentication missing or invalid | - | | **500** | Internal server error | - | | **503** | Kafka service unavailable | - | @@ -276,14 +276,14 @@ import com.openshift.cloud.api.kas.auth.GroupsApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/rest"); + defaultClient.setBasePath("http://localhost"); // Configure OAuth2 access token for authorization: Bearer OAuth Bearer = (OAuth) defaultClient.getAuthentication("Bearer"); Bearer.setAccessToken("YOUR ACCESS TOKEN"); GroupsApi apiInstance = new GroupsApi(defaultClient); - String consumerGroupId = "consumerGroupId_example"; // String | The ID of the consumer group. + String consumerGroupId = "consumerGroupId_example"; // String | Consumer group identifier ConsumerGroupResetOffsetParameters consumerGroupResetOffsetParameters = new ConsumerGroupResetOffsetParameters(); // ConsumerGroupResetOffsetParameters | try { ConsumerGroupResetOffsetResult result = apiInstance.resetConsumerGroupOffset(consumerGroupId, consumerGroupResetOffsetParameters); @@ -304,7 +304,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **consumerGroupId** | **String**| The ID of the consumer group. | + **consumerGroupId** | **String**| Consumer group identifier | **consumerGroupResetOffsetParameters** | [**ConsumerGroupResetOffsetParameters**](ConsumerGroupResetOffsetParameters.md)| | ### Return type @@ -324,11 +324,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | The consumer group offsets have been reset. | - | -| **400** | The consumer group to reset the offset does have active consumers. | - | +| **400** | The client request was invalid. One or more request parameters or the request body was rejected. Additional information may be found in the response. | - | | **401** | Request authentication missing or invalid | - | -| **403** | Forbidden to delete this consumer group. | - | -| **404** | Specified topic or its partition does not exist. | - | +| **403** | User is not authorized to access requested resource | - | +| **404** | The requested resource could not be found. | - | | **500** | Internal server error | - | | **503** | Kafka service unavailable | - | +| **200** | The consumer group offsets have been reset. | - | diff --git a/packages/kafka-instance-sdk/docs/Node.md b/packages/kafka-instance-sdk/docs/Node.md new file mode 100644 index 00000000..0ab6661b --- /dev/null +++ b/packages/kafka-instance-sdk/docs/Node.md @@ -0,0 +1,14 @@ + + +# Node + +Identifier for a Kafka server / broker. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **Integer** | | [optional] + + + diff --git a/packages/kafka-instance-sdk/docs/OffsetType.md b/packages/kafka-instance-sdk/docs/OffsetType.md new file mode 100644 index 00000000..9a3d78d0 --- /dev/null +++ b/packages/kafka-instance-sdk/docs/OffsetType.md @@ -0,0 +1,17 @@ + + +# OffsetType + +## Enum + + +* `TIMESTAMP` (value: `"timestamp"`) + +* `ABSOLUTE` (value: `"absolute"`) + +* `LATEST` (value: `"latest"`) + +* `EARLIEST` (value: `"earliest"`) + + + diff --git a/packages/kafka-instance-sdk/docs/Partition.md b/packages/kafka-instance-sdk/docs/Partition.md index a9c6fb53..1c61cf70 100644 --- a/packages/kafka-instance-sdk/docs/Partition.md +++ b/packages/kafka-instance-sdk/docs/Partition.md @@ -9,9 +9,9 @@ Kafka topic partition Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **partition** | **Integer** | The partition id, unique among partitions of the same topic | -**replicas** | **List<Object>** | List of replicas for the partition | [optional] -**isr** | **List<Object>** | List in-sync replicas for this partition. | [optional] -**leader** | **Object** | Kafka server / broker. | [optional] +**replicas** | [**List<Node>**](Node.md) | List of replicas for the partition | [optional] +**isr** | [**List<Node>**](Node.md) | List in-sync replicas for this partition. | [optional] +**leader** | [**Node**](Node.md) | | [optional] diff --git a/packages/kafka-instance-sdk/docs/SortDirection.md b/packages/kafka-instance-sdk/docs/SortDirection.md new file mode 100644 index 00000000..d23e5c7d --- /dev/null +++ b/packages/kafka-instance-sdk/docs/SortDirection.md @@ -0,0 +1,13 @@ + + +# SortDirection + +## Enum + + +* `ASC` (value: `"asc"`) + +* `DESC` (value: `"desc"`) + + + diff --git a/packages/kafka-instance-sdk/docs/Topic.md b/packages/kafka-instance-sdk/docs/Topic.md index 99a08e9e..70be1bf1 100644 --- a/packages/kafka-instance-sdk/docs/Topic.md +++ b/packages/kafka-instance-sdk/docs/Topic.md @@ -9,8 +9,9 @@ Kafka Topic (A feed where records are stored and published) Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **String** | The name of the topic. | [optional] -**config** | [**List<ConfigEntry>**](ConfigEntry.md) | Topic configuration entry. | [optional] +**isInternal** | **Boolean** | | [optional] **partitions** | [**List<Partition>**](Partition.md) | Partitions for this topic. | [optional] +**config** | [**List<ConfigEntry>**](ConfigEntry.md) | Topic configuration entry. | [optional] diff --git a/packages/kafka-instance-sdk/docs/TopicOrderKey.md b/packages/kafka-instance-sdk/docs/TopicOrderKey.md new file mode 100644 index 00000000..e9445f66 --- /dev/null +++ b/packages/kafka-instance-sdk/docs/TopicOrderKey.md @@ -0,0 +1,17 @@ + + +# TopicOrderKey + +## Enum + + +* `NAME` (value: `"name"`) + +* `PARTITIONS` (value: `"partitions"`) + +* `RETENTION_MS` (value: `"retention.ms"`) + +* `RETENTION_BYTES` (value: `"retention.bytes"`) + + + diff --git a/packages/kafka-instance-sdk/docs/TopicSettings.md b/packages/kafka-instance-sdk/docs/TopicSettings.md index be2d02c0..e06ec9e1 100644 --- a/packages/kafka-instance-sdk/docs/TopicSettings.md +++ b/packages/kafka-instance-sdk/docs/TopicSettings.md @@ -2,14 +2,14 @@ # TopicSettings -Kafka Topic (A feed where records are stored and published) +The settings that are applicable to this topic. This includes partitions, configuration information, and number of replicas. ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**numPartitions** | **Integer** | Number of partitions for this topic. | -**config** | [**List<ConfigEntry>**](ConfigEntry.md) | Topic configuration entry. | [optional] +**numPartitions** | **Integer** | Number of partitions for this topic. If not specified, the default for new topics is `1`. Number of partitions may not be reduced when updating existing topics | [optional] +**config** | [**List<ConfigEntry>**](ConfigEntry.md) | Topic configuration entries. | [optional] diff --git a/packages/kafka-instance-sdk/docs/TopicsApi.md b/packages/kafka-instance-sdk/docs/TopicsApi.md index 76aac16e..bc0cfb8e 100644 --- a/packages/kafka-instance-sdk/docs/TopicsApi.md +++ b/packages/kafka-instance-sdk/docs/TopicsApi.md @@ -1,14 +1,14 @@ # TopicsApi -All URIs are relative to */rest* +All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**createTopic**](TopicsApi.md#createTopic) | **POST** /topics | Creates a new topic -[**deleteTopic**](TopicsApi.md#deleteTopic) | **DELETE** /topics/{topicName} | Deletes a topic -[**getTopic**](TopicsApi.md#getTopic) | **GET** /topics/{topicName} | Retrieves the topic with the specified name. -[**getTopics**](TopicsApi.md#getTopics) | **GET** /topics | List of topics -[**updateTopic**](TopicsApi.md#updateTopic) | **PATCH** /topics/{topicName} | Updates the topic with the specified name. +[**createTopic**](TopicsApi.md#createTopic) | **POST** /rest/topics | Creates a new topic +[**deleteTopic**](TopicsApi.md#deleteTopic) | **DELETE** /rest/topics/{topicName} | Deletes a topic +[**getTopic**](TopicsApi.md#getTopic) | **GET** /rest/topics/{topicName} | Retrieves a single topic +[**getTopics**](TopicsApi.md#getTopics) | **GET** /rest/topics | Retrieves a list of topics +[**updateTopic**](TopicsApi.md#updateTopic) | **PATCH** /rest/topics/{topicName} | Updates a single topic @@ -34,7 +34,7 @@ import com.openshift.cloud.api.kas.auth.TopicsApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/rest"); + defaultClient.setBasePath("http://localhost"); // Configure OAuth2 access token for authorization: Bearer OAuth Bearer = (OAuth) defaultClient.getAuthentication("Bearer"); @@ -80,19 +80,19 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **201** | Topic created successfully. | - | -| **400** | The client request was invalid | - | +| **400** | The client request was invalid. One or more request parameters or the request body was rejected. Additional information may be found in the response. | - | | **401** | Request authentication missing or invalid | - | | **409** | The resource already exists. | - | | **500** | Internal server error | - | | **503** | Kafka service unavailable | - | +| **201** | Topic created successfully. | - | ## deleteTopic > deleteTopic(topicName) -Deletes a topic +Deletes a topic Deletes the topic with the specified name. @@ -110,14 +110,14 @@ import com.openshift.cloud.api.kas.auth.TopicsApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/rest"); + defaultClient.setBasePath("http://localhost"); // Configure OAuth2 access token for authorization: Bearer OAuth Bearer = (OAuth) defaultClient.getAuthentication("Bearer"); Bearer.setAccessToken("YOUR ACCESS TOKEN"); TopicsApi apiInstance = new TopicsApi(defaultClient); - String topicName = "topicName_example"; // String | The topic name to delete. + String topicName = "topicName_example"; // String | Name of the topic to delete try { apiInstance.deleteTopic(topicName); } catch (ApiException e) { @@ -136,7 +136,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **topicName** | **String**| The topic name to delete. | + **topicName** | **String**| Name of the topic to delete | ### Return type @@ -155,9 +155,10 @@ null (empty response body) ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Topic deleted successfully. | - | +| **204** | Topic deleted successfully. | - | | **401** | Request authentication missing or invalid | - | -| **404** | Topic not found. | - | +| **403** | User is not authorized to access requested resource | - | +| **404** | The requested resource could not be found. | - | | **500** | Internal server error | - | | **503** | Kafka service unavailable | - | @@ -166,7 +167,7 @@ null (empty response body) > Topic getTopic(topicName) -Retrieves the topic with the specified name. +Retrieves a single topic Topic @@ -184,14 +185,14 @@ import com.openshift.cloud.api.kas.auth.TopicsApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/rest"); + defaultClient.setBasePath("http://localhost"); // Configure OAuth2 access token for authorization: Bearer OAuth Bearer = (OAuth) defaultClient.getAuthentication("Bearer"); Bearer.setAccessToken("YOUR ACCESS TOKEN"); TopicsApi apiInstance = new TopicsApi(defaultClient); - String topicName = "topicName_example"; // String | The topic name to retrieve. + String topicName = "topicName_example"; // String | Name of the topic to describe try { Topic result = apiInstance.getTopic(topicName); System.out.println(result); @@ -211,7 +212,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **topicName** | **String**| The topic name to retrieve. | + **topicName** | **String**| Name of the topic to describe | ### Return type @@ -230,18 +231,19 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Kafka topic details. | - | | **401** | Request authentication missing or invalid | - | -| **404** | Topic not found. | - | +| **403** | User is not authorized to access requested resource | - | +| **404** | The requested resource could not be found. | - | | **500** | Internal server error | - | | **503** | Kafka service unavailable | - | +| **200** | Kafka topic details | - | ## getTopics > TopicsList getTopics(limit, filter, page, order, orderKey) -List of topics +Retrieves a list of topics Returns a list of all of the available topics, or the list of topics that meet the request query parameters. The topics returned are limited to those records the requestor is authorized to view. @@ -259,18 +261,18 @@ import com.openshift.cloud.api.kas.auth.TopicsApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/rest"); + defaultClient.setBasePath("http://localhost"); // Configure OAuth2 access token for authorization: Bearer OAuth Bearer = (OAuth) defaultClient.getAuthentication("Bearer"); Bearer.setAccessToken("YOUR ACCESS TOKEN"); TopicsApi apiInstance = new TopicsApi(defaultClient); - Integer limit = 56; // Integer | Maximum number of topics to return + Integer limit = 56; // Integer | Maximum number of records to return String filter = "filter_example"; // String | Filter to apply when returning the list of topics - Integer page = 56; // Integer | The page when returning the limit of requested topics. - String order = "asc"; // String | Order of the items sorting. Ascending order is used as default. - String orderKey = "name"; // String | Order key to sort the topics by. + Integer page = 56; // Integer | Page number + SortDirection order = SortDirection.fromValue("asc"); // SortDirection | Order items are sorted + TopicOrderKey orderKey = new TopicOrderKey(); // TopicOrderKey | Order key to sort the topics by. try { TopicsList result = apiInstance.getTopics(limit, filter, page, order, orderKey); System.out.println(result); @@ -290,11 +292,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **limit** | **Integer**| Maximum number of topics to return | [optional] + **limit** | **Integer**| Maximum number of records to return | [optional] **filter** | **String**| Filter to apply when returning the list of topics | [optional] - **page** | **Integer**| The page when returning the limit of requested topics. | [optional] - **order** | **String**| Order of the items sorting. Ascending order is used as default. | [optional] [enum: asc, desc] - **orderKey** | **String**| Order key to sort the topics by. | [optional] [enum: name, partitions, retention.ms, retention.bytes] + **page** | **Integer**| Page number | [optional] + **order** | [**SortDirection**](.md)| Order items are sorted | [optional] [enum: asc, desc] + **orderKey** | [**TopicOrderKey**](.md)| Order key to sort the topics by. | [optional] ### Return type @@ -313,20 +315,20 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | List of topics matching the request query parameters. The topics returned are limited to those records the requestor is authorized to view. | - | -| **400** | Unable to retrieve topics. | - | +| **400** | The client request was invalid. One or more request parameters or the request body was rejected. Additional information may be found in the response. | - | | **401** | Request authentication missing or invalid | - | | **500** | Internal server error | - | | **503** | Kafka service unavailable | - | +| **200** | List of topics matching the request query parameters. The topics returned are limited to those records the requestor is authorized to view. | - | ## updateTopic -> Topic updateTopic(topicName, updateTopicInput) +> Topic updateTopic(topicName, topicSettings) -Updates the topic with the specified name. +Updates a single topic -updates the topic with the new data. +Update the configuration settings for a topic. ### Example @@ -342,17 +344,17 @@ import com.openshift.cloud.api.kas.auth.TopicsApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("/rest"); + defaultClient.setBasePath("http://localhost"); // Configure OAuth2 access token for authorization: Bearer OAuth Bearer = (OAuth) defaultClient.getAuthentication("Bearer"); Bearer.setAccessToken("YOUR ACCESS TOKEN"); TopicsApi apiInstance = new TopicsApi(defaultClient); - String topicName = "topicName_example"; // String | The topic name which is its unique id. - UpdateTopicInput updateTopicInput = new UpdateTopicInput(); // UpdateTopicInput | + String topicName = "topicName_example"; // String | Name of the topic to update + TopicSettings topicSettings = new TopicSettings(); // TopicSettings | try { - Topic result = apiInstance.updateTopic(topicName, updateTopicInput); + Topic result = apiInstance.updateTopic(topicName, topicSettings); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling TopicsApi#updateTopic"); @@ -370,8 +372,8 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **topicName** | **String**| The topic name which is its unique id. | - **updateTopicInput** | [**UpdateTopicInput**](UpdateTopicInput.md)| | + **topicName** | **String**| Name of the topic to update | + **topicSettings** | [**TopicSettings**](TopicSettings.md)| | ### Return type @@ -390,10 +392,11 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Topic updated successfully. | - | -| **400** | The client request was invalid | - | +| **400** | The client request was invalid. One or more request parameters or the request body was rejected. Additional information may be found in the response. | - | | **401** | Request authentication missing or invalid | - | -| **404** | Topic not found. | - | +| **403** | User is not authorized to access requested resource | - | +| **404** | The requested resource could not be found. | - | | **500** | Internal server error | - | | **503** | Kafka service unavailable | - | +| **200** | Topic updated successfully. | - | diff --git a/packages/kafka-instance-sdk/docs/TopicsList.md b/packages/kafka-instance-sdk/docs/TopicsList.md index b222ce02..a6f41adf 100644 --- a/packages/kafka-instance-sdk/docs/TopicsList.md +++ b/packages/kafka-instance-sdk/docs/TopicsList.md @@ -8,10 +8,10 @@ A list of topics. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**page** | **Integer** | The page | [optional] -**size** | **Integer** | number of entries per page | [optional] -**total** | **Integer** | Total number of topics | [optional] -**items** | [**List<Topic>**](Topic.md) | List of topics | [optional] +**items** | [**List<Topic>**](Topic.md) | | +**total** | **Integer** | Total number of entries in the full result set | +**size** | **Integer** | Number of entries per page (returned for fetch requests) | [optional] +**page** | **Integer** | Current page number (returned for fetch requests) | [optional] diff --git a/packages/kafka-instance-sdk/pom.xml b/packages/kafka-instance-sdk/pom.xml index 1c2c85ac..d8312275 100644 --- a/packages/kafka-instance-sdk/pom.xml +++ b/packages/kafka-instance-sdk/pom.xml @@ -137,7 +137,7 @@ org.apache.maven.plugins maven-compiler-plugin - 3.10.0 + 3.9.0 1.8 1.8 @@ -146,7 +146,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.3.2 + 3.3.1 none 1.8 @@ -175,7 +175,7 @@ org.sonatype.plugins nexus-staging-maven-plugin - 1.6.12 + 1.6.8 true ossrh diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/AclsApi.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/AclsApi.java index 9d1ba2af..1b9ae21f 100644 --- a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/AclsApi.java +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/AclsApi.java @@ -9,12 +9,13 @@ import com.openshift.cloud.api.kas.auth.models.AclBinding; import com.openshift.cloud.api.kas.auth.models.AclBindingListPage; +import com.openshift.cloud.api.kas.auth.models.AclBindingOrderKey; import com.openshift.cloud.api.kas.auth.models.AclOperationFilter; import com.openshift.cloud.api.kas.auth.models.AclPatternTypeFilter; import com.openshift.cloud.api.kas.auth.models.AclPermissionTypeFilter; import com.openshift.cloud.api.kas.auth.models.AclResourceTypeFilter; -import java.math.BigDecimal; import com.openshift.cloud.api.kas.auth.models.Error; +import com.openshift.cloud.api.kas.auth.models.SortDirection; import java.util.ArrayList; import java.util.HashMap; @@ -56,7 +57,7 @@ public void createAcl(AclBinding aclBinding) throws ApiException { } // create path and map variables - String localVarPath = "/acls".replaceAll("\\{format\\}","json"); + String localVarPath = "/rest/acls".replaceAll("\\{format\\}","json"); // query params List localVarQueryParams = new ArrayList(); @@ -86,12 +87,12 @@ public void createAcl(AclBinding aclBinding) throws ApiException { /** * Delete ACL bindings * Deletes ACL bindings that match the query parameters. - * @param resourceType ACL Resource Type Filter (optional, default to ANY) + * @param resourceType ACL Resource Type Filter (optional) * @param resourceName ACL Resource Name Filter (optional) - * @param patternType ACL Pattern Type Filter (optional, default to ANY) - * @param principal ACL Principal Filter. Either a specific user or the wildcard user `User:*` may be provided. - When fetching by a specific user, the results will also include ACL bindings that apply to all users. - When deleting, ACL bindings to be delete must match the provided `principal` exactly. (optional) - * @param operation ACL Operation Filter. The ACL binding operation provided should be valid for the resource type in the request, if not `ANY`. (optional, default to ANY) - * @param permission ACL Permission Type Filter (optional, default to ANY) + * @param patternType ACL Pattern Type Filter (optional) + * @param principal ACL Principal Filter. Either a specific user or the wildcard user `User:*` may be provided. - When fetching by a specific user, the results will also include ACL bindings that apply to all users. - When deleting, ACL bindings to be delete must match the provided `principal` exactly. (optional, default to ) + * @param operation ACL Operation Filter. The ACL binding operation provided should be valid for the resource type in the request, if not `ANY`. (optional) + * @param permission ACL Permission Type Filter (optional) * @return a {@code AclBindingListPage} * @throws ApiException if fails to make API call */ @@ -99,7 +100,7 @@ public AclBindingListPage deleteAcls(AclResourceTypeFilter resourceType, String Object localVarPostBody = null; // create path and map variables - String localVarPath = "/acls".replaceAll("\\{format\\}","json"); + String localVarPath = "/rest/acls".replaceAll("\\{format\\}","json"); // query params List localVarQueryParams = new ArrayList(); @@ -142,7 +143,7 @@ public Map> getAclResourceOperations() throws ApiException Object localVarPostBody = null; // create path and map variables - String localVarPath = "/acls/resource-operations".replaceAll("\\{format\\}","json"); + String localVarPath = "/rest/acls/resource-operations".replaceAll("\\{format\\}","json"); // query params List localVarQueryParams = new ArrayList(); @@ -171,25 +172,25 @@ public Map> getAclResourceOperations() throws ApiException } /** * List ACL bindings - * Returns a list of all of the available ACL bindings, or the list of bindings that meet the users URL Query Parameters. If no parameters are specified, all ACL bindings known to the system will be returned (with paging). - * @param resourceType ACL Resource Type Filter (optional, default to ANY) + * Returns a list of all of the available ACL bindings, or the list of bindings that meet the user's URL query parameters. If no parameters are specified, all ACL bindings known to the system will be returned (with paging). + * @param resourceType ACL Resource Type Filter (optional) * @param resourceName ACL Resource Name Filter (optional) - * @param patternType ACL Pattern Type Filter (optional, default to ANY) - * @param principal ACL Principal Filter. Either a specific user or the wildcard user `User:*` may be provided. - When fetching by a specific user, the results will also include ACL bindings that apply to all users. - When deleting, ACL bindings to be delete must match the provided `principal` exactly. (optional) - * @param operation ACL Operation Filter. The ACL binding operation provided should be valid for the resource type in the request, if not `ANY`. (optional, default to ANY) - * @param permission ACL Permission Type Filter (optional, default to ANY) - * @param page Page number for result lists (optional, default to 1) - * @param size Page size for result lists (optional, default to 10) - * @param order Order of the ACL binding sorting. (optional, default to desc) - * @param orderKey Order key to sort the items by. (optional, default to permission) + * @param patternType ACL Pattern Type Filter (optional) + * @param principal ACL Principal Filter. Either a specific user or the wildcard user `User:*` may be provided. - When fetching by a specific user, the results will also include ACL bindings that apply to all users. - When deleting, ACL bindings to be delete must match the provided `principal` exactly. (optional, default to ) + * @param operation ACL Operation Filter. The ACL binding operation provided should be valid for the resource type in the request, if not `ANY`. (optional) + * @param permission ACL Permission Type Filter (optional) + * @param page Page number (optional) + * @param size Number of records per page (optional) + * @param order Order items are sorted (optional) + * @param orderKey (optional) * @return a {@code AclBindingListPage} * @throws ApiException if fails to make API call */ - public AclBindingListPage getAcls(AclResourceTypeFilter resourceType, String resourceName, AclPatternTypeFilter patternType, String principal, AclOperationFilter operation, AclPermissionTypeFilter permission, BigDecimal page, BigDecimal size, String order, String orderKey) throws ApiException { + public AclBindingListPage getAcls(AclResourceTypeFilter resourceType, String resourceName, AclPatternTypeFilter patternType, String principal, AclOperationFilter operation, AclPermissionTypeFilter permission, Integer page, Integer size, SortDirection order, AclBindingOrderKey orderKey) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/acls".replaceAll("\\{format\\}","json"); + String localVarPath = "/rest/acls".replaceAll("\\{format\\}","json"); // query params List localVarQueryParams = new ArrayList(); diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/GroupsApi.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/GroupsApi.java index 43bd58a0..503c7322 100644 --- a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/GroupsApi.java +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/GroupsApi.java @@ -8,10 +8,13 @@ import javax.ws.rs.core.GenericType; import com.openshift.cloud.api.kas.auth.models.ConsumerGroup; +import com.openshift.cloud.api.kas.auth.models.ConsumerGroupDescriptionOrderKey; import com.openshift.cloud.api.kas.auth.models.ConsumerGroupList; +import com.openshift.cloud.api.kas.auth.models.ConsumerGroupOrderKey; import com.openshift.cloud.api.kas.auth.models.ConsumerGroupResetOffsetParameters; import com.openshift.cloud.api.kas.auth.models.ConsumerGroupResetOffsetResult; import com.openshift.cloud.api.kas.auth.models.Error; +import com.openshift.cloud.api.kas.auth.models.SortDirection; import java.util.ArrayList; import java.util.HashMap; @@ -41,7 +44,7 @@ public void setApiClient(ApiClient apiClient) { /** * Delete a consumer group. * Delete a consumer group, along with its consumers. - * @param consumerGroupId The unique ID of the cobsumer group. (required) + * @param consumerGroupId Consumer group identifier (required) * @throws ApiException if fails to make API call */ public void deleteConsumerGroupById(String consumerGroupId) throws ApiException { @@ -53,7 +56,7 @@ public void deleteConsumerGroupById(String consumerGroupId) throws ApiException } // create path and map variables - String localVarPath = "/consumer-groups/{consumerGroupId}".replaceAll("\\{format\\}","json") + String localVarPath = "/rest/consumer-groups/{consumerGroupId}".replaceAll("\\{format\\}","json") .replaceAll("\\{" + "consumerGroupId" + "\\}", apiClient.escapeString(consumerGroupId.toString())); // query params @@ -84,15 +87,15 @@ public void deleteConsumerGroupById(String consumerGroupId) throws ApiException /** * Get a single consumer group by its unique ID. * - * @param consumerGroupId The unique ID of the consumer group (required) - * @param order Order of the items sorting. Ascending order is used as default. (optional) - * @param orderKey Order key to sort the topics by. (optional) + * @param consumerGroupId Consumer group identifier (required) + * @param order Order items are sorted (optional) + * @param orderKey (optional) * @param partitionFilter Value of partition to include. Value -1 means filter is not active. (optional) * @param topic Filter consumer groups for a specific topic (optional) * @return a {@code ConsumerGroup} * @throws ApiException if fails to make API call */ - public ConsumerGroup getConsumerGroupById(String consumerGroupId, String order, String orderKey, Integer partitionFilter, String topic) throws ApiException { + public ConsumerGroup getConsumerGroupById(String consumerGroupId, SortDirection order, ConsumerGroupDescriptionOrderKey orderKey, Integer partitionFilter, String topic) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'consumerGroupId' is set @@ -101,7 +104,7 @@ public ConsumerGroup getConsumerGroupById(String consumerGroupId, String order, } // create path and map variables - String localVarPath = "/consumer-groups/{consumerGroupId}".replaceAll("\\{format\\}","json") + String localVarPath = "/rest/consumer-groups/{consumerGroupId}".replaceAll("\\{format\\}","json") .replaceAll("\\{" + "consumerGroupId" + "\\}", apiClient.escapeString(consumerGroupId.toString())); // query params @@ -136,20 +139,20 @@ public ConsumerGroup getConsumerGroupById(String consumerGroupId, String order, /** * List of consumer groups in the Kafka instance. * Returns a list of all consumer groups for a particular Kafka instance. The consumer groups returned are limited to those records the requestor is authorized to view. - * @param limit Maximum number of consumer groups to return (optional) - * @param page The page when returning the list of consumer groups (optional) - * @param topic Return consumer groups where the topic name contains with this value (optional) - * @param groupIdFilter Return the consumer groups where the ID contains with this value (optional) - * @param order Order of the consumer groups sorting. Ascending order is used as default. (optional) - * @param orderKey Order key to sort the items by. Only the value 'name' is currently applicable. (optional) + * @param limit Maximum number of records to return (optional) + * @param page Page number (optional) + * @param topic Return consumer groups where the topic name contains this value (optional) + * @param groupIdFilter Return the consumer groups where the ID contains this value (optional) + * @param order Order items are sorted (optional) + * @param orderKey (optional) * @return a {@code ConsumerGroupList} * @throws ApiException if fails to make API call */ - public ConsumerGroupList getConsumerGroups(Integer limit, Integer page, String topic, String groupIdFilter, String order, String orderKey) throws ApiException { + public ConsumerGroupList getConsumerGroups(Integer limit, Integer page, String topic, String groupIdFilter, SortDirection order, ConsumerGroupOrderKey orderKey) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/consumer-groups".replaceAll("\\{format\\}","json"); + String localVarPath = "/rest/consumer-groups".replaceAll("\\{format\\}","json"); // query params List localVarQueryParams = new ArrayList(); @@ -185,7 +188,7 @@ public ConsumerGroupList getConsumerGroups(Integer limit, Integer page, String t /** * Reset the offset for a consumer group. * Reset the offset for a particular consumer group. - * @param consumerGroupId The ID of the consumer group. (required) + * @param consumerGroupId Consumer group identifier (required) * @param consumerGroupResetOffsetParameters (required) * @return a {@code ConsumerGroupResetOffsetResult} * @throws ApiException if fails to make API call @@ -204,7 +207,7 @@ public ConsumerGroupResetOffsetResult resetConsumerGroupOffset(String consumerGr } // create path and map variables - String localVarPath = "/consumer-groups/{consumerGroupId}/reset-offset".replaceAll("\\{format\\}","json") + String localVarPath = "/rest/consumer-groups/{consumerGroupId}/reset-offset".replaceAll("\\{format\\}","json") .replaceAll("\\{" + "consumerGroupId" + "\\}", apiClient.escapeString(consumerGroupId.toString())); // query params diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/TopicsApi.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/TopicsApi.java index e2e5e1be..bb8ea660 100644 --- a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/TopicsApi.java +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/TopicsApi.java @@ -9,9 +9,11 @@ import com.openshift.cloud.api.kas.auth.models.Error; import com.openshift.cloud.api.kas.auth.models.NewTopicInput; +import com.openshift.cloud.api.kas.auth.models.SortDirection; import com.openshift.cloud.api.kas.auth.models.Topic; +import com.openshift.cloud.api.kas.auth.models.TopicOrderKey; +import com.openshift.cloud.api.kas.auth.models.TopicSettings; import com.openshift.cloud.api.kas.auth.models.TopicsList; -import com.openshift.cloud.api.kas.auth.models.UpdateTopicInput; import java.util.ArrayList; import java.util.HashMap; @@ -54,7 +56,7 @@ public Topic createTopic(NewTopicInput newTopicInput) throws ApiException { } // create path and map variables - String localVarPath = "/topics".replaceAll("\\{format\\}","json"); + String localVarPath = "/rest/topics".replaceAll("\\{format\\}","json"); // query params List localVarQueryParams = new ArrayList(); @@ -82,9 +84,9 @@ public Topic createTopic(NewTopicInput newTopicInput) throws ApiException { return apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** - * Deletes a topic + * Deletes a topic * Deletes the topic with the specified name. - * @param topicName The topic name to delete. (required) + * @param topicName Name of the topic to delete (required) * @throws ApiException if fails to make API call */ public void deleteTopic(String topicName) throws ApiException { @@ -96,7 +98,7 @@ public void deleteTopic(String topicName) throws ApiException { } // create path and map variables - String localVarPath = "/topics/{topicName}".replaceAll("\\{format\\}","json") + String localVarPath = "/rest/topics/{topicName}".replaceAll("\\{format\\}","json") .replaceAll("\\{" + "topicName" + "\\}", apiClient.escapeString(topicName.toString())); // query params @@ -125,9 +127,9 @@ public void deleteTopic(String topicName) throws ApiException { apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, null); } /** - * Retrieves the topic with the specified name. + * Retrieves a single topic * Topic - * @param topicName The topic name to retrieve. (required) + * @param topicName Name of the topic to describe (required) * @return a {@code Topic} * @throws ApiException if fails to make API call */ @@ -140,7 +142,7 @@ public Topic getTopic(String topicName) throws ApiException { } // create path and map variables - String localVarPath = "/topics/{topicName}".replaceAll("\\{format\\}","json") + String localVarPath = "/rest/topics/{topicName}".replaceAll("\\{format\\}","json") .replaceAll("\\{" + "topicName" + "\\}", apiClient.escapeString(topicName.toString())); // query params @@ -169,21 +171,21 @@ public Topic getTopic(String topicName) throws ApiException { return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** - * List of topics + * Retrieves a list of topics * Returns a list of all of the available topics, or the list of topics that meet the request query parameters. The topics returned are limited to those records the requestor is authorized to view. - * @param limit Maximum number of topics to return (optional) + * @param limit Maximum number of records to return (optional) * @param filter Filter to apply when returning the list of topics (optional) - * @param page The page when returning the limit of requested topics. (optional) - * @param order Order of the items sorting. Ascending order is used as default. (optional) + * @param page Page number (optional) + * @param order Order items are sorted (optional) * @param orderKey Order key to sort the topics by. (optional) * @return a {@code TopicsList} * @throws ApiException if fails to make API call */ - public TopicsList getTopics(Integer limit, String filter, Integer page, String order, String orderKey) throws ApiException { + public TopicsList getTopics(Integer limit, String filter, Integer page, SortDirection order, TopicOrderKey orderKey) throws ApiException { Object localVarPostBody = null; // create path and map variables - String localVarPath = "/topics".replaceAll("\\{format\\}","json"); + String localVarPath = "/rest/topics".replaceAll("\\{format\\}","json"); // query params List localVarQueryParams = new ArrayList(); @@ -216,28 +218,28 @@ public TopicsList getTopics(Integer limit, String filter, Integer page, String o return apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); } /** - * Updates the topic with the specified name. - * updates the topic with the new data. - * @param topicName The topic name which is its unique id. (required) - * @param updateTopicInput (required) + * Updates a single topic + * Update the configuration settings for a topic. + * @param topicName Name of the topic to update (required) + * @param topicSettings (required) * @return a {@code Topic} * @throws ApiException if fails to make API call */ - public Topic updateTopic(String topicName, UpdateTopicInput updateTopicInput) throws ApiException { - Object localVarPostBody = updateTopicInput; + public Topic updateTopic(String topicName, TopicSettings topicSettings) throws ApiException { + Object localVarPostBody = topicSettings; // verify the required parameter 'topicName' is set if (topicName == null) { throw new ApiException(400, "Missing the required parameter 'topicName' when calling updateTopic"); } - // verify the required parameter 'updateTopicInput' is set - if (updateTopicInput == null) { - throw new ApiException(400, "Missing the required parameter 'updateTopicInput' when calling updateTopic"); + // verify the required parameter 'topicSettings' is set + if (topicSettings == null) { + throw new ApiException(400, "Missing the required parameter 'topicSettings' when calling updateTopic"); } // create path and map variables - String localVarPath = "/topics/{topicName}".replaceAll("\\{format\\}","json") + String localVarPath = "/rest/topics/{topicName}".replaceAll("\\{format\\}","json") .replaceAll("\\{" + "topicName" + "\\}", apiClient.escapeString(topicName.toString())); // query params diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/ApiClient.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/ApiClient.java index 3bb60b19..b2719e59 100644 --- a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/ApiClient.java +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/ApiClient.java @@ -51,7 +51,7 @@ public class ApiClient extends JavaTimeFormatter { private Map defaultHeaderMap = new HashMap(); private Map defaultCookieMap = new HashMap(); - private String basePath = "/rest"; + private String basePath = "http://localhost"; private boolean debugging = false; private Client httpClient; @@ -77,7 +77,7 @@ public ApiClient() { this.json.setDateFormat((DateFormat) dateFormat.clone()); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/0.3.0/java"); + setUserAgent("OpenAPI-Generator/0.7.1-SNAPSHOT/java"); // Setup authentications (key: authentication name, value: authentication). authentications = new HashMap(); diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/ApiException.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/ApiException.java index c57405d4..f3822a31 100644 --- a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/ApiException.java +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/ApiException.java @@ -2,7 +2,7 @@ * Kafka Admin REST API * An API to provide REST endpoints for query Kafka for admin operations * - * The version of the OpenAPI document: 0.3.0 + * The version of the OpenAPI document: 0.7.1-SNAPSHOT * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/Configuration.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/Configuration.java index ea78b37c..23d8775d 100644 --- a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/Configuration.java +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/Configuration.java @@ -2,7 +2,7 @@ * Kafka Admin REST API * An API to provide REST endpoints for query Kafka for admin operations * - * The version of the OpenAPI document: 0.3.0 + * The version of the OpenAPI document: 0.7.1-SNAPSHOT * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/JavaTimeFormatter.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/JavaTimeFormatter.java index 5a5365ad..b6f7486f 100644 --- a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/JavaTimeFormatter.java +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/JavaTimeFormatter.java @@ -2,7 +2,7 @@ * Kafka Admin REST API * An API to provide REST endpoints for query Kafka for admin operations * - * The version of the OpenAPI document: 0.3.0 + * The version of the OpenAPI document: 0.7.1-SNAPSHOT * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/Pair.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/Pair.java index 415bbf17..3a5af0ac 100644 --- a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/Pair.java +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/Pair.java @@ -2,7 +2,7 @@ * Kafka Admin REST API * An API to provide REST endpoints for query Kafka for admin operations * - * The version of the OpenAPI document: 0.3.0 + * The version of the OpenAPI document: 0.7.1-SNAPSHOT * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/RFC3339DateFormat.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/RFC3339DateFormat.java index de87ed89..6da94e86 100644 --- a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/RFC3339DateFormat.java +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/RFC3339DateFormat.java @@ -2,7 +2,7 @@ * Kafka Admin REST API * An API to provide REST endpoints for query Kafka for admin operations * - * The version of the OpenAPI document: 0.3.0 + * The version of the OpenAPI document: 0.7.1-SNAPSHOT * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/StringUtil.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/StringUtil.java index ac415e87..4c9c13fb 100644 --- a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/StringUtil.java +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/StringUtil.java @@ -2,7 +2,7 @@ * Kafka Admin REST API * An API to provide REST endpoints for query Kafka for admin operations * - * The version of the OpenAPI document: 0.3.0 + * The version of the OpenAPI document: 0.7.1-SNAPSHOT * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/auth/ApiKeyAuth.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/auth/ApiKeyAuth.java index 25b60f30..3401bfb3 100644 --- a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/auth/ApiKeyAuth.java +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/auth/ApiKeyAuth.java @@ -2,7 +2,7 @@ * Kafka Admin REST API * An API to provide REST endpoints for query Kafka for admin operations * - * The version of the OpenAPI document: 0.3.0 + * The version of the OpenAPI document: 0.7.1-SNAPSHOT * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/auth/Authentication.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/auth/Authentication.java index c996614b..627ef473 100644 --- a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/auth/Authentication.java +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/auth/Authentication.java @@ -2,7 +2,7 @@ * Kafka Admin REST API * An API to provide REST endpoints for query Kafka for admin operations * - * The version of the OpenAPI document: 0.3.0 + * The version of the OpenAPI document: 0.7.1-SNAPSHOT * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/auth/HttpBasicAuth.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/auth/HttpBasicAuth.java index 40ab19ab..b575f74d 100644 --- a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/auth/HttpBasicAuth.java +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/auth/HttpBasicAuth.java @@ -2,7 +2,7 @@ * Kafka Admin REST API * An API to provide REST endpoints for query Kafka for admin operations * - * The version of the OpenAPI document: 0.3.0 + * The version of the OpenAPI document: 0.7.1-SNAPSHOT * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/auth/HttpBearerAuth.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/auth/HttpBearerAuth.java index 876c1ad0..3f83ab70 100644 --- a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/auth/HttpBearerAuth.java +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/auth/HttpBearerAuth.java @@ -2,7 +2,7 @@ * Kafka Admin REST API * An API to provide REST endpoints for query Kafka for admin operations * - * The version of the OpenAPI document: 0.3.0 + * The version of the OpenAPI document: 0.7.1-SNAPSHOT * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/auth/OAuth.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/auth/OAuth.java index 346e1fe7..63cdb770 100644 --- a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/auth/OAuth.java +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/auth/OAuth.java @@ -2,7 +2,7 @@ * Kafka Admin REST API * An API to provide REST endpoints for query Kafka for admin operations * - * The version of the OpenAPI document: 0.3.0 + * The version of the OpenAPI document: 0.7.1-SNAPSHOT * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/auth/OAuthFlow.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/auth/OAuthFlow.java index aeada859..3f31817f 100644 --- a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/auth/OAuthFlow.java +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/invoker/auth/OAuthFlow.java @@ -2,7 +2,7 @@ * Kafka Admin REST API * An API to provide REST endpoints for query Kafka for admin operations * - * The version of the OpenAPI document: 0.3.0 + * The version of the OpenAPI document: 0.7.1-SNAPSHOT * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclBinding.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclBinding.java index fbc3ea7c..36e0fafe 100644 --- a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclBinding.java +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclBinding.java @@ -2,7 +2,7 @@ * Kafka Admin REST API * An API to provide REST endpoints for query Kafka for admin operations * - * The version of the OpenAPI document: 0.3.0 + * The version of the OpenAPI document: 0.7.1-SNAPSHOT * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclBindingListPage.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclBindingListPage.java index e7f54a2a..01f79577 100644 --- a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclBindingListPage.java +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclBindingListPage.java @@ -2,7 +2,7 @@ * Kafka Admin REST API * An API to provide REST endpoints for query Kafka for admin operations * - * The version of the OpenAPI document: 0.3.0 + * The version of the OpenAPI document: 0.7.1-SNAPSHOT * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,11 +21,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.openshift.cloud.api.kas.auth.models.AclBinding; -import com.openshift.cloud.api.kas.auth.models.AclBindingList; -import com.openshift.cloud.api.kas.auth.models.ResultListPage; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.math.BigDecimal; import java.util.ArrayList; import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; @@ -38,24 +35,24 @@ @JsonPropertyOrder({ AclBindingListPage.JSON_PROPERTY_ITEMS, AclBindingListPage.JSON_PROPERTY_TOTAL, - AclBindingListPage.JSON_PROPERTY_PAGE, - AclBindingListPage.JSON_PROPERTY_SIZE + AclBindingListPage.JSON_PROPERTY_SIZE, + AclBindingListPage.JSON_PROPERTY_PAGE }) @JsonTypeName("AclBindingListPage") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class AclBindingListPage { public static final String JSON_PROPERTY_ITEMS = "items"; - private List items = null; + private List items = new ArrayList<>(); public static final String JSON_PROPERTY_TOTAL = "total"; - private BigDecimal total; + private Integer total; + + public static final String JSON_PROPERTY_SIZE = "size"; + private Integer size; public static final String JSON_PROPERTY_PAGE = "page"; private Integer page; - public static final String JSON_PROPERTY_SIZE = "size"; - private BigDecimal size; - public AclBindingListPage() { } @@ -66,9 +63,6 @@ public AclBindingListPage items(List items) { } public AclBindingListPage addItemsItem(AclBinding itemsItem) { - if (this.items == null) { - this.items = new ArrayList<>(); - } this.items.add(itemsItem); return this; } @@ -77,10 +71,10 @@ public AclBindingListPage addItemsItem(AclBinding itemsItem) { * Get items * @return items **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") @JsonProperty(JSON_PROPERTY_ITEMS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getItems() { return items; @@ -88,13 +82,13 @@ public List getItems() { @JsonProperty(JSON_PROPERTY_ITEMS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setItems(List items) { this.items = items; } - public AclBindingListPage total(BigDecimal total) { + public AclBindingListPage total(Integer total) { this.total = total; return this; @@ -109,69 +103,69 @@ public AclBindingListPage total(BigDecimal total) { @JsonProperty(JSON_PROPERTY_TOTAL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getTotal() { + public Integer getTotal() { return total; } @JsonProperty(JSON_PROPERTY_TOTAL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTotal(BigDecimal total) { + public void setTotal(Integer total) { this.total = total; } - public AclBindingListPage page(Integer page) { + public AclBindingListPage size(Integer size) { - this.page = page; + this.size = size; return this; } /** - * Current page number (returned for fetch requests) - * @return page + * Number of entries per page (returned for fetch requests) + * @return size **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Current page number (returned for fetch requests)") - @JsonProperty(JSON_PROPERTY_PAGE) + @ApiModelProperty(value = "Number of entries per page (returned for fetch requests)") + @JsonProperty(JSON_PROPERTY_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getPage() { - return page; + public Integer getSize() { + return size; } - @JsonProperty(JSON_PROPERTY_PAGE) + @JsonProperty(JSON_PROPERTY_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPage(Integer page) { - this.page = page; + public void setSize(Integer size) { + this.size = size; } - public AclBindingListPage size(BigDecimal size) { + public AclBindingListPage page(Integer page) { - this.size = size; + this.page = page; return this; } /** - * Number of entries per page (returned for fetch requests) - * @return size + * Current page number (returned for fetch requests) + * @return page **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Number of entries per page (returned for fetch requests)") - @JsonProperty(JSON_PROPERTY_SIZE) + @ApiModelProperty(value = "Current page number (returned for fetch requests)") + @JsonProperty(JSON_PROPERTY_PAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BigDecimal getSize() { - return size; + public Integer getPage() { + return page; } - @JsonProperty(JSON_PROPERTY_SIZE) + @JsonProperty(JSON_PROPERTY_PAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSize(BigDecimal size) { - this.size = size; + public void setPage(Integer page) { + this.page = page; } @@ -186,13 +180,13 @@ public boolean equals(Object o) { AclBindingListPage aclBindingListPage = (AclBindingListPage) o; return Objects.equals(this.items, aclBindingListPage.items) && Objects.equals(this.total, aclBindingListPage.total) && - Objects.equals(this.page, aclBindingListPage.page) && - Objects.equals(this.size, aclBindingListPage.size); + Objects.equals(this.size, aclBindingListPage.size) && + Objects.equals(this.page, aclBindingListPage.page); } @Override public int hashCode() { - return Objects.hash(items, total, page, size); + return Objects.hash(items, total, size, page); } @Override @@ -201,8 +195,8 @@ public String toString() { sb.append("class AclBindingListPage {\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" total: ").append(toIndentedString(total)).append("\n"); - sb.append(" page: ").append(toIndentedString(page)).append("\n"); sb.append(" size: ").append(toIndentedString(size)).append("\n"); + sb.append(" page: ").append(toIndentedString(page)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclBindingOrderKey.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclBindingOrderKey.java new file mode 100644 index 00000000..fc28906f --- /dev/null +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclBindingOrderKey.java @@ -0,0 +1,67 @@ +/* + * Kafka Admin REST API + * An API to provide REST endpoints for query Kafka for admin operations + * + * The version of the OpenAPI document: 0.7.1-SNAPSHOT + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.openshift.cloud.api.kas.auth.models; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Gets or Sets AclBindingOrderKey + */ +public enum AclBindingOrderKey { + + RESOURCETYPE("resourceType"), + + RESOURCENAME("resourceName"), + + PATTERNTYPE("patternType"), + + PRINCIPAL("principal"), + + OPERATION("operation"), + + PERMISSION("permission"); + + private String value; + + AclBindingOrderKey(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static AclBindingOrderKey fromValue(String value) { + for (AclBindingOrderKey b : AclBindingOrderKey.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } +} + diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclOperation.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclOperation.java index 8dfb22c4..177197f6 100644 --- a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclOperation.java +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclOperation.java @@ -2,7 +2,7 @@ * Kafka Admin REST API * An API to provide REST endpoints for query Kafka for admin operations * - * The version of the OpenAPI document: 0.3.0 + * The version of the OpenAPI document: 0.7.1-SNAPSHOT * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclOperationFilter.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclOperationFilter.java index e812cd27..1d5d7002 100644 --- a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclOperationFilter.java +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclOperationFilter.java @@ -2,7 +2,7 @@ * Kafka Admin REST API * An API to provide REST endpoints for query Kafka for admin operations * - * The version of the OpenAPI document: 0.3.0 + * The version of the OpenAPI document: 0.7.1-SNAPSHOT * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclPatternType.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclPatternType.java index 497a4f5c..19ab9d19 100644 --- a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclPatternType.java +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclPatternType.java @@ -2,7 +2,7 @@ * Kafka Admin REST API * An API to provide REST endpoints for query Kafka for admin operations * - * The version of the OpenAPI document: 0.3.0 + * The version of the OpenAPI document: 0.7.1-SNAPSHOT * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclPatternTypeFilter.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclPatternTypeFilter.java index 87989269..e4743371 100644 --- a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclPatternTypeFilter.java +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclPatternTypeFilter.java @@ -2,7 +2,7 @@ * Kafka Admin REST API * An API to provide REST endpoints for query Kafka for admin operations * - * The version of the OpenAPI document: 0.3.0 + * The version of the OpenAPI document: 0.7.1-SNAPSHOT * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclPermissionType.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclPermissionType.java index 14a3bd1d..01997ce9 100644 --- a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclPermissionType.java +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclPermissionType.java @@ -2,7 +2,7 @@ * Kafka Admin REST API * An API to provide REST endpoints for query Kafka for admin operations * - * The version of the OpenAPI document: 0.3.0 + * The version of the OpenAPI document: 0.7.1-SNAPSHOT * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclPermissionTypeFilter.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclPermissionTypeFilter.java index e5a0f86c..847a4f09 100644 --- a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclPermissionTypeFilter.java +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclPermissionTypeFilter.java @@ -2,7 +2,7 @@ * Kafka Admin REST API * An API to provide REST endpoints for query Kafka for admin operations * - * The version of the OpenAPI document: 0.3.0 + * The version of the OpenAPI document: 0.7.1-SNAPSHOT * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclResourceType.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclResourceType.java index e9c662cb..3b62c989 100644 --- a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclResourceType.java +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclResourceType.java @@ -2,7 +2,7 @@ * Kafka Admin REST API * An API to provide REST endpoints for query Kafka for admin operations * - * The version of the OpenAPI document: 0.3.0 + * The version of the OpenAPI document: 0.7.1-SNAPSHOT * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclResourceTypeFilter.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclResourceTypeFilter.java index e196c184..a715b182 100644 --- a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclResourceTypeFilter.java +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclResourceTypeFilter.java @@ -2,7 +2,7 @@ * Kafka Admin REST API * An API to provide REST endpoints for query Kafka for admin operations * - * The version of the OpenAPI document: 0.3.0 + * The version of the OpenAPI document: 0.7.1-SNAPSHOT * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ConfigEntry.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ConfigEntry.java index dc2c00c3..6d0a398c 100644 --- a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ConfigEntry.java +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ConfigEntry.java @@ -2,7 +2,7 @@ * Kafka Admin REST API * An API to provide REST endpoints for query Kafka for admin operations * - * The version of the OpenAPI document: 0.3.0 + * The version of the OpenAPI document: 0.7.1-SNAPSHOT * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -55,10 +55,10 @@ public ConfigEntry key(String key) { * The key indicating what configuration entry you would like to set for the topic. * @return key **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The key indicating what configuration entry you would like to set for the topic.") + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "The key indicating what configuration entry you would like to set for the topic.") @JsonProperty(JSON_PROPERTY_KEY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getKey() { return key; @@ -66,7 +66,7 @@ public String getKey() { @JsonProperty(JSON_PROPERTY_KEY) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setKey(String key) { this.key = key; } @@ -82,10 +82,10 @@ public ConfigEntry value(String value) { * Value to indicate the setting on the topic configuration entry. * @return value **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Value to indicate the setting on the topic configuration entry.") + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "Value to indicate the setting on the topic configuration entry.") @JsonProperty(JSON_PROPERTY_VALUE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getValue() { return value; @@ -93,7 +93,7 @@ public String getValue() { @JsonProperty(JSON_PROPERTY_VALUE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setValue(String value) { this.value = value; } diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/Consumer.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/Consumer.java index a4af9b6d..06ccce77 100644 --- a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/Consumer.java +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/Consumer.java @@ -2,7 +2,7 @@ * Kafka Admin REST API * An API to provide REST endpoints for query Kafka for admin operations * - * The version of the OpenAPI document: 0.3.0 + * The version of the OpenAPI document: 0.7.1-SNAPSHOT * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,7 +22,6 @@ import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.math.BigDecimal; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -52,13 +51,13 @@ public class Consumer { private Integer partition; public static final String JSON_PROPERTY_OFFSET = "offset"; - private BigDecimal offset; + private Long offset; public static final String JSON_PROPERTY_LOG_END_OFFSET = "logEndOffset"; - private BigDecimal logEndOffset; + private Long logEndOffset; public static final String JSON_PROPERTY_LAG = "lag"; - private Integer lag; + private Long lag; public static final String JSON_PROPERTY_MEMBER_ID = "memberId"; private String memberId; @@ -147,7 +146,7 @@ public void setPartition(Integer partition) { } - public Consumer offset(BigDecimal offset) { + public Consumer offset(Long offset) { this.offset = offset; return this; @@ -162,19 +161,19 @@ public Consumer offset(BigDecimal offset) { @JsonProperty(JSON_PROPERTY_OFFSET) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getOffset() { + public Long getOffset() { return offset; } @JsonProperty(JSON_PROPERTY_OFFSET) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOffset(BigDecimal offset) { + public void setOffset(Long offset) { this.offset = offset; } - public Consumer logEndOffset(BigDecimal logEndOffset) { + public Consumer logEndOffset(Long logEndOffset) { this.logEndOffset = logEndOffset; return this; @@ -189,19 +188,19 @@ public Consumer logEndOffset(BigDecimal logEndOffset) { @JsonProperty(JSON_PROPERTY_LOG_END_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BigDecimal getLogEndOffset() { + public Long getLogEndOffset() { return logEndOffset; } @JsonProperty(JSON_PROPERTY_LOG_END_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLogEndOffset(BigDecimal logEndOffset) { + public void setLogEndOffset(Long logEndOffset) { this.logEndOffset = logEndOffset; } - public Consumer lag(Integer lag) { + public Consumer lag(Long lag) { this.lag = lag; return this; @@ -216,14 +215,14 @@ public Consumer lag(Integer lag) { @JsonProperty(JSON_PROPERTY_LAG) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getLag() { + public Long getLag() { return lag; } @JsonProperty(JSON_PROPERTY_LAG) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setLag(Integer lag) { + public void setLag(Long lag) { this.lag = lag; } diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ConsumerGroup.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ConsumerGroup.java index fa870c7c..974cbcba 100644 --- a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ConsumerGroup.java +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ConsumerGroup.java @@ -2,7 +2,7 @@ * Kafka Admin REST API * An API to provide REST endpoints for query Kafka for admin operations * - * The version of the OpenAPI document: 0.3.0 + * The version of the OpenAPI document: 0.7.1-SNAPSHOT * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,6 +21,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.openshift.cloud.api.kas.auth.models.Consumer; +import com.openshift.cloud.api.kas.auth.models.ConsumerGroupMetrics; +import com.openshift.cloud.api.kas.auth.models.ConsumerGroupState; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; @@ -35,7 +37,8 @@ @JsonPropertyOrder({ ConsumerGroup.JSON_PROPERTY_GROUP_ID, ConsumerGroup.JSON_PROPERTY_STATE, - ConsumerGroup.JSON_PROPERTY_CONSUMERS + ConsumerGroup.JSON_PROPERTY_CONSUMERS, + ConsumerGroup.JSON_PROPERTY_METRICS }) @JsonTypeName("ConsumerGroup") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") @@ -43,55 +46,15 @@ public class ConsumerGroup { public static final String JSON_PROPERTY_GROUP_ID = "groupId"; private String groupId; - /** - * Gets or Sets state - */ - public enum StateEnum { - STABLE("STABLE"), - - DEAD("DEAD"), - - EMPTY("EMPTY"), - - COMPLETING_REBALANCE("COMPLETING_REBALANCE"), - - PREPARING_REBALANCE("PREPARING_REBALANCE"), - - UNKNOWN("UNKNOWN"); - - private String value; - - StateEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static StateEnum fromValue(String value) { - for (StateEnum b : StateEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - public static final String JSON_PROPERTY_STATE = "state"; - private StateEnum state; + private ConsumerGroupState state; public static final String JSON_PROPERTY_CONSUMERS = "consumers"; private List consumers = new ArrayList<>(); + public static final String JSON_PROPERTY_METRICS = "metrics"; + private ConsumerGroupMetrics metrics; + public ConsumerGroup() { } @@ -122,7 +85,7 @@ public void setGroupId(String groupId) { } - public ConsumerGroup state(StateEnum state) { + public ConsumerGroup state(ConsumerGroupState state) { this.state = state; return this; @@ -137,14 +100,14 @@ public ConsumerGroup state(StateEnum state) { @JsonProperty(JSON_PROPERTY_STATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public StateEnum getState() { + public ConsumerGroupState getState() { return state; } @JsonProperty(JSON_PROPERTY_STATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setState(StateEnum state) { + public void setState(ConsumerGroupState state) { this.state = state; } @@ -181,6 +144,33 @@ public void setConsumers(List consumers) { } + public ConsumerGroup metrics(ConsumerGroupMetrics metrics) { + + this.metrics = metrics; + return this; + } + + /** + * Get metrics + * @return metrics + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_METRICS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public ConsumerGroupMetrics getMetrics() { + return metrics; + } + + + @JsonProperty(JSON_PROPERTY_METRICS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMetrics(ConsumerGroupMetrics metrics) { + this.metrics = metrics; + } + + @Override public boolean equals(Object o) { if (this == o) { @@ -192,12 +182,13 @@ public boolean equals(Object o) { ConsumerGroup consumerGroup = (ConsumerGroup) o; return Objects.equals(this.groupId, consumerGroup.groupId) && Objects.equals(this.state, consumerGroup.state) && - Objects.equals(this.consumers, consumerGroup.consumers); + Objects.equals(this.consumers, consumerGroup.consumers) && + Objects.equals(this.metrics, consumerGroup.metrics); } @Override public int hashCode() { - return Objects.hash(groupId, state, consumers); + return Objects.hash(groupId, state, consumers, metrics); } @Override @@ -207,6 +198,7 @@ public String toString() { sb.append(" groupId: ").append(toIndentedString(groupId)).append("\n"); sb.append(" state: ").append(toIndentedString(state)).append("\n"); sb.append(" consumers: ").append(toIndentedString(consumers)).append("\n"); + sb.append(" metrics: ").append(toIndentedString(metrics)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ConsumerGroupDescriptionOrderKey.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ConsumerGroupDescriptionOrderKey.java new file mode 100644 index 00000000..ee648cef --- /dev/null +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ConsumerGroupDescriptionOrderKey.java @@ -0,0 +1,63 @@ +/* + * Kafka Admin REST API + * An API to provide REST endpoints for query Kafka for admin operations + * + * The version of the OpenAPI document: 0.7.1-SNAPSHOT + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.openshift.cloud.api.kas.auth.models; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Gets or Sets ConsumerGroupDescriptionOrderKey + */ +public enum ConsumerGroupDescriptionOrderKey { + + OFFSET("offset"), + + ENDOFFSET("endOffset"), + + LAG("lag"), + + PARTITION("partition"); + + private String value; + + ConsumerGroupDescriptionOrderKey(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ConsumerGroupDescriptionOrderKey fromValue(String value) { + for (ConsumerGroupDescriptionOrderKey b : ConsumerGroupDescriptionOrderKey.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } +} + diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ConsumerGroupList.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ConsumerGroupList.java index 99377cba..f4ffb8e2 100644 --- a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ConsumerGroupList.java +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ConsumerGroupList.java @@ -2,7 +2,7 @@ * Kafka Admin REST API * An API to provide REST endpoints for query Kafka for admin operations * - * The version of the OpenAPI document: 0.3.0 + * The version of the OpenAPI document: 0.7.1-SNAPSHOT * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -23,7 +23,6 @@ import com.openshift.cloud.api.kas.auth.models.ConsumerGroup; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.math.BigDecimal; import java.util.ArrayList; import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; @@ -43,13 +42,13 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class ConsumerGroupList { public static final String JSON_PROPERTY_ITEMS = "items"; - private List items = null; + private List items = new ArrayList<>(); public static final String JSON_PROPERTY_TOTAL = "total"; - private BigDecimal total; + private Integer total; public static final String JSON_PROPERTY_SIZE = "size"; - private BigDecimal size; + private Integer size; public static final String JSON_PROPERTY_PAGE = "page"; private Integer page; @@ -64,21 +63,18 @@ public ConsumerGroupList items(List items) { } public ConsumerGroupList addItemsItem(ConsumerGroup itemsItem) { - if (this.items == null) { - this.items = new ArrayList<>(); - } this.items.add(itemsItem); return this; } /** - * Consumer group list items + * Get items * @return items **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Consumer group list items") + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") @JsonProperty(JSON_PROPERTY_ITEMS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getItems() { return items; @@ -86,62 +82,62 @@ public List getItems() { @JsonProperty(JSON_PROPERTY_ITEMS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setItems(List items) { this.items = items; } - public ConsumerGroupList total(BigDecimal total) { + public ConsumerGroupList total(Integer total) { this.total = total; return this; } /** - * The total number of consumer groups. + * Total number of entries in the full result set * @return total **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The total number of consumer groups.") + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "Total number of entries in the full result set") @JsonProperty(JSON_PROPERTY_TOTAL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getTotal() { + public Integer getTotal() { return total; } @JsonProperty(JSON_PROPERTY_TOTAL) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTotal(BigDecimal total) { + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setTotal(Integer total) { this.total = total; } - public ConsumerGroupList size(BigDecimal size) { + public ConsumerGroupList size(Integer size) { this.size = size; return this; } /** - * The number of consumer groups per page. + * Number of entries per page (returned for fetch requests) * @return size **/ @javax.annotation.Nullable - @ApiModelProperty(value = "The number of consumer groups per page.") + @ApiModelProperty(value = "Number of entries per page (returned for fetch requests)") @JsonProperty(JSON_PROPERTY_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BigDecimal getSize() { + public Integer getSize() { return size; } @JsonProperty(JSON_PROPERTY_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSize(BigDecimal size) { + public void setSize(Integer size) { this.size = size; } @@ -153,11 +149,11 @@ public ConsumerGroupList page(Integer page) { } /** - * The page + * Current page number (returned for fetch requests) * @return page **/ @javax.annotation.Nullable - @ApiModelProperty(value = "The page") + @ApiModelProperty(value = "Current page number (returned for fetch requests)") @JsonProperty(JSON_PROPERTY_PAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ConsumerGroupMetrics.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ConsumerGroupMetrics.java new file mode 100644 index 00000000..0f2b2a80 --- /dev/null +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ConsumerGroupMetrics.java @@ -0,0 +1,174 @@ +/* + * Kafka Admin REST API + * An API to provide REST endpoints for query Kafka for admin operations + * + * The version of the OpenAPI document: 0.7.1-SNAPSHOT + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.openshift.cloud.api.kas.auth.models; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +/** + * ConsumerGroupMetrics + */ +@JsonPropertyOrder({ + ConsumerGroupMetrics.JSON_PROPERTY_LAGGING_PARTITIONS, + ConsumerGroupMetrics.JSON_PROPERTY_ACTIVE_CONSUMERS, + ConsumerGroupMetrics.JSON_PROPERTY_UNASSIGNED_PARTITIONS +}) +@JsonTypeName("ConsumerGroupMetrics") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ConsumerGroupMetrics { + public static final String JSON_PROPERTY_LAGGING_PARTITIONS = "laggingPartitions"; + private Integer laggingPartitions; + + public static final String JSON_PROPERTY_ACTIVE_CONSUMERS = "activeConsumers"; + private Integer activeConsumers; + + public static final String JSON_PROPERTY_UNASSIGNED_PARTITIONS = "unassignedPartitions"; + private Integer unassignedPartitions; + + public ConsumerGroupMetrics() { + } + + public ConsumerGroupMetrics laggingPartitions(Integer laggingPartitions) { + + this.laggingPartitions = laggingPartitions; + return this; + } + + /** + * Get laggingPartitions + * @return laggingPartitions + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_LAGGING_PARTITIONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getLaggingPartitions() { + return laggingPartitions; + } + + + @JsonProperty(JSON_PROPERTY_LAGGING_PARTITIONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setLaggingPartitions(Integer laggingPartitions) { + this.laggingPartitions = laggingPartitions; + } + + + public ConsumerGroupMetrics activeConsumers(Integer activeConsumers) { + + this.activeConsumers = activeConsumers; + return this; + } + + /** + * Get activeConsumers + * @return activeConsumers + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ACTIVE_CONSUMERS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getActiveConsumers() { + return activeConsumers; + } + + + @JsonProperty(JSON_PROPERTY_ACTIVE_CONSUMERS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setActiveConsumers(Integer activeConsumers) { + this.activeConsumers = activeConsumers; + } + + + public ConsumerGroupMetrics unassignedPartitions(Integer unassignedPartitions) { + + this.unassignedPartitions = unassignedPartitions; + return this; + } + + /** + * Get unassignedPartitions + * @return unassignedPartitions + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_UNASSIGNED_PARTITIONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getUnassignedPartitions() { + return unassignedPartitions; + } + + + @JsonProperty(JSON_PROPERTY_UNASSIGNED_PARTITIONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUnassignedPartitions(Integer unassignedPartitions) { + this.unassignedPartitions = unassignedPartitions; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ConsumerGroupMetrics consumerGroupMetrics = (ConsumerGroupMetrics) o; + return Objects.equals(this.laggingPartitions, consumerGroupMetrics.laggingPartitions) && + Objects.equals(this.activeConsumers, consumerGroupMetrics.activeConsumers) && + Objects.equals(this.unassignedPartitions, consumerGroupMetrics.unassignedPartitions); + } + + @Override + public int hashCode() { + return Objects.hash(laggingPartitions, activeConsumers, unassignedPartitions); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ConsumerGroupMetrics {\n"); + sb.append(" laggingPartitions: ").append(toIndentedString(laggingPartitions)).append("\n"); + sb.append(" activeConsumers: ").append(toIndentedString(activeConsumers)).append("\n"); + sb.append(" unassignedPartitions: ").append(toIndentedString(unassignedPartitions)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ConsumerGroupOrderKey.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ConsumerGroupOrderKey.java new file mode 100644 index 00000000..2e4b8979 --- /dev/null +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ConsumerGroupOrderKey.java @@ -0,0 +1,57 @@ +/* + * Kafka Admin REST API + * An API to provide REST endpoints for query Kafka for admin operations + * + * The version of the OpenAPI document: 0.7.1-SNAPSHOT + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.openshift.cloud.api.kas.auth.models; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Gets or Sets ConsumerGroupOrderKey + */ +public enum ConsumerGroupOrderKey { + + NAME("name"); + + private String value; + + ConsumerGroupOrderKey(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ConsumerGroupOrderKey fromValue(String value) { + for (ConsumerGroupOrderKey b : ConsumerGroupOrderKey.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } +} + diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ConsumerGroupResetOffsetParameters.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ConsumerGroupResetOffsetParameters.java index 8a63d1d6..621e7577 100644 --- a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ConsumerGroupResetOffsetParameters.java +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ConsumerGroupResetOffsetParameters.java @@ -2,7 +2,7 @@ * Kafka Admin REST API * An API to provide REST endpoints for query Kafka for admin operations * - * The version of the OpenAPI document: 0.3.0 + * The version of the OpenAPI document: 0.7.1-SNAPSHOT * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,6 +20,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import com.openshift.cloud.api.kas.auth.models.OffsetType; import com.openshift.cloud.api.kas.auth.models.TopicsToResetOffset; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; @@ -32,64 +33,52 @@ * ConsumerGroupResetOffsetParameters */ @JsonPropertyOrder({ - ConsumerGroupResetOffsetParameters.JSON_PROPERTY_VALUE, ConsumerGroupResetOffsetParameters.JSON_PROPERTY_OFFSET, + ConsumerGroupResetOffsetParameters.JSON_PROPERTY_VALUE, ConsumerGroupResetOffsetParameters.JSON_PROPERTY_TOPICS }) @JsonTypeName("ConsumerGroupResetOffsetParameters") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class ConsumerGroupResetOffsetParameters { + public static final String JSON_PROPERTY_OFFSET = "offset"; + private OffsetType offset; + public static final String JSON_PROPERTY_VALUE = "value"; private String value; - /** - * Gets or Sets offset - */ - public enum OffsetEnum { - TIMESTAMP("timestamp"), - - ABSOLUTE("absolute"), - - LATEST("latest"), - - EARLIEST("earliest"); - - private String value; + public static final String JSON_PROPERTY_TOPICS = "topics"; + private List topics = null; - OffsetEnum(String value) { - this.value = value; - } + public ConsumerGroupResetOffsetParameters() { + } - @JsonValue - public String getValue() { - return value; - } + public ConsumerGroupResetOffsetParameters offset(OffsetType offset) { + + this.offset = offset; + return this; + } - @Override - public String toString() { - return String.valueOf(value); - } + /** + * Get offset + * @return offset + **/ + @javax.annotation.Nullable + @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_OFFSET) + @JsonInclude(value = JsonInclude.Include.ALWAYS) - @JsonCreator - public static OffsetEnum fromValue(String value) { - for (OffsetEnum b : OffsetEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } + public OffsetType getOffset() { + return offset; } - public static final String JSON_PROPERTY_OFFSET = "offset"; - private OffsetEnum offset; - - public static final String JSON_PROPERTY_TOPICS = "topics"; - private List topics = null; - public ConsumerGroupResetOffsetParameters() { + @JsonProperty(JSON_PROPERTY_OFFSET) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setOffset(OffsetType offset) { + this.offset = offset; } + public ConsumerGroupResetOffsetParameters value(String value) { this.value = value; @@ -97,11 +86,11 @@ public ConsumerGroupResetOffsetParameters value(String value) { } /** - * Get value + * Value associated with the given `offset`. Not used for `offset` values `earliest` and `latest`. When `offset` is `timestamp` then `value` must be a valid timestamp representing the point in time to reset the consumer group. When `offset` is `absolute` then `value` must be the integer offset to which the consumer group will be reset. * @return value **/ @javax.annotation.Nullable - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Value associated with the given `offset`. Not used for `offset` values `earliest` and `latest`. When `offset` is `timestamp` then `value` must be a valid timestamp representing the point in time to reset the consumer group. When `offset` is `absolute` then `value` must be the integer offset to which the consumer group will be reset.") @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -117,33 +106,6 @@ public void setValue(String value) { } - public ConsumerGroupResetOffsetParameters offset(OffsetEnum offset) { - - this.offset = offset; - return this; - } - - /** - * Get offset - * @return offset - **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") - @JsonProperty(JSON_PROPERTY_OFFSET) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public OffsetEnum getOffset() { - return offset; - } - - - @JsonProperty(JSON_PROPERTY_OFFSET) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setOffset(OffsetEnum offset) { - this.offset = offset; - } - - public ConsumerGroupResetOffsetParameters topics(List topics) { this.topics = topics; @@ -188,22 +150,22 @@ public boolean equals(Object o) { return false; } ConsumerGroupResetOffsetParameters consumerGroupResetOffsetParameters = (ConsumerGroupResetOffsetParameters) o; - return Objects.equals(this.value, consumerGroupResetOffsetParameters.value) && - Objects.equals(this.offset, consumerGroupResetOffsetParameters.offset) && + return Objects.equals(this.offset, consumerGroupResetOffsetParameters.offset) && + Objects.equals(this.value, consumerGroupResetOffsetParameters.value) && Objects.equals(this.topics, consumerGroupResetOffsetParameters.topics); } @Override public int hashCode() { - return Objects.hash(value, offset, topics); + return Objects.hash(offset, value, topics); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ConsumerGroupResetOffsetParameters {\n"); - sb.append(" value: ").append(toIndentedString(value)).append("\n"); sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); sb.append(" topics: ").append(toIndentedString(topics)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ConsumerGroupResetOffsetResult.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ConsumerGroupResetOffsetResult.java index 7e39b32f..fd09fa17 100644 --- a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ConsumerGroupResetOffsetResult.java +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ConsumerGroupResetOffsetResult.java @@ -2,7 +2,7 @@ * Kafka Admin REST API * An API to provide REST endpoints for query Kafka for admin operations * - * The version of the OpenAPI document: 0.3.0 + * The version of the OpenAPI document: 0.7.1-SNAPSHOT * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,11 +21,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.openshift.cloud.api.kas.auth.models.ConsumerGroupResetOffsetResultItem; -import com.openshift.cloud.api.kas.auth.models.ConsumerGroupResetOffsetResultItemList; -import com.openshift.cloud.api.kas.auth.models.ResultListPage; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.math.BigDecimal; import java.util.ArrayList; import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; @@ -37,24 +34,24 @@ @JsonPropertyOrder({ ConsumerGroupResetOffsetResult.JSON_PROPERTY_ITEMS, ConsumerGroupResetOffsetResult.JSON_PROPERTY_TOTAL, - ConsumerGroupResetOffsetResult.JSON_PROPERTY_PAGE, - ConsumerGroupResetOffsetResult.JSON_PROPERTY_SIZE + ConsumerGroupResetOffsetResult.JSON_PROPERTY_SIZE, + ConsumerGroupResetOffsetResult.JSON_PROPERTY_PAGE }) @JsonTypeName("ConsumerGroupResetOffsetResult") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class ConsumerGroupResetOffsetResult { public static final String JSON_PROPERTY_ITEMS = "items"; - private List items = null; + private List items = new ArrayList<>(); public static final String JSON_PROPERTY_TOTAL = "total"; - private BigDecimal total; + private Integer total; + + public static final String JSON_PROPERTY_SIZE = "size"; + private Integer size; public static final String JSON_PROPERTY_PAGE = "page"; private Integer page; - public static final String JSON_PROPERTY_SIZE = "size"; - private BigDecimal size; - public ConsumerGroupResetOffsetResult() { } @@ -65,9 +62,6 @@ public ConsumerGroupResetOffsetResult items(List(); - } this.items.add(itemsItem); return this; } @@ -76,10 +70,10 @@ public ConsumerGroupResetOffsetResult addItemsItem(ConsumerGroupResetOffsetResul * Get items * @return items **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") @JsonProperty(JSON_PROPERTY_ITEMS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public List getItems() { return items; @@ -87,13 +81,13 @@ public List getItems() { @JsonProperty(JSON_PROPERTY_ITEMS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setItems(List items) { this.items = items; } - public ConsumerGroupResetOffsetResult total(BigDecimal total) { + public ConsumerGroupResetOffsetResult total(Integer total) { this.total = total; return this; @@ -108,69 +102,69 @@ public ConsumerGroupResetOffsetResult total(BigDecimal total) { @JsonProperty(JSON_PROPERTY_TOTAL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public BigDecimal getTotal() { + public Integer getTotal() { return total; } @JsonProperty(JSON_PROPERTY_TOTAL) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTotal(BigDecimal total) { + public void setTotal(Integer total) { this.total = total; } - public ConsumerGroupResetOffsetResult page(Integer page) { + public ConsumerGroupResetOffsetResult size(Integer size) { - this.page = page; + this.size = size; return this; } /** - * Current page number (returned for fetch requests) - * @return page + * Number of entries per page (returned for fetch requests) + * @return size **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Current page number (returned for fetch requests)") - @JsonProperty(JSON_PROPERTY_PAGE) + @ApiModelProperty(value = "Number of entries per page (returned for fetch requests)") + @JsonProperty(JSON_PROPERTY_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getPage() { - return page; + public Integer getSize() { + return size; } - @JsonProperty(JSON_PROPERTY_PAGE) + @JsonProperty(JSON_PROPERTY_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPage(Integer page) { - this.page = page; + public void setSize(Integer size) { + this.size = size; } - public ConsumerGroupResetOffsetResult size(BigDecimal size) { + public ConsumerGroupResetOffsetResult page(Integer page) { - this.size = size; + this.page = page; return this; } /** - * Number of entries per page (returned for fetch requests) - * @return size + * Current page number (returned for fetch requests) + * @return page **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Number of entries per page (returned for fetch requests)") - @JsonProperty(JSON_PROPERTY_SIZE) + @ApiModelProperty(value = "Current page number (returned for fetch requests)") + @JsonProperty(JSON_PROPERTY_PAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BigDecimal getSize() { - return size; + public Integer getPage() { + return page; } - @JsonProperty(JSON_PROPERTY_SIZE) + @JsonProperty(JSON_PROPERTY_PAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSize(BigDecimal size) { - this.size = size; + public void setPage(Integer page) { + this.page = page; } @@ -185,13 +179,13 @@ public boolean equals(Object o) { ConsumerGroupResetOffsetResult consumerGroupResetOffsetResult = (ConsumerGroupResetOffsetResult) o; return Objects.equals(this.items, consumerGroupResetOffsetResult.items) && Objects.equals(this.total, consumerGroupResetOffsetResult.total) && - Objects.equals(this.page, consumerGroupResetOffsetResult.page) && - Objects.equals(this.size, consumerGroupResetOffsetResult.size); + Objects.equals(this.size, consumerGroupResetOffsetResult.size) && + Objects.equals(this.page, consumerGroupResetOffsetResult.page); } @Override public int hashCode() { - return Objects.hash(items, total, page, size); + return Objects.hash(items, total, size, page); } @Override @@ -200,8 +194,8 @@ public String toString() { sb.append("class ConsumerGroupResetOffsetResult {\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); sb.append(" total: ").append(toIndentedString(total)).append("\n"); - sb.append(" page: ").append(toIndentedString(page)).append("\n"); sb.append(" size: ").append(toIndentedString(size)).append("\n"); + sb.append(" page: ").append(toIndentedString(page)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ConsumerGroupResetOffsetResultItem.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ConsumerGroupResetOffsetResultItem.java index e6466fa2..74529432 100644 --- a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ConsumerGroupResetOffsetResultItem.java +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ConsumerGroupResetOffsetResultItem.java @@ -2,7 +2,7 @@ * Kafka Admin REST API * An API to provide REST endpoints for query Kafka for admin operations * - * The version of the OpenAPI document: 0.3.0 + * The version of the OpenAPI document: 0.7.1-SNAPSHOT * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -43,7 +43,7 @@ public class ConsumerGroupResetOffsetResultItem { private Integer partition; public static final String JSON_PROPERTY_OFFSET = "offset"; - private Integer offset; + private Long offset; public ConsumerGroupResetOffsetResultItem() { } @@ -102,7 +102,7 @@ public void setPartition(Integer partition) { } - public ConsumerGroupResetOffsetResultItem offset(Integer offset) { + public ConsumerGroupResetOffsetResultItem offset(Long offset) { this.offset = offset; return this; @@ -117,14 +117,14 @@ public ConsumerGroupResetOffsetResultItem offset(Integer offset) { @JsonProperty(JSON_PROPERTY_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getOffset() { + public Long getOffset() { return offset; } @JsonProperty(JSON_PROPERTY_OFFSET) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setOffset(Integer offset) { + public void setOffset(Long offset) { this.offset = offset; } diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ConsumerGroupResetOffsetResultItemList.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ConsumerGroupResetOffsetResultItemList.java deleted file mode 100644 index 7d23431d..00000000 --- a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ConsumerGroupResetOffsetResultItemList.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * Kafka Admin REST API - * An API to provide REST endpoints for query Kafka for admin operations - * - * The version of the OpenAPI document: 0.3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.openshift.cloud.api.kas.auth.models; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.openshift.cloud.api.kas.auth.models.ConsumerGroupResetOffsetResultItem; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.ArrayList; -import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** - * ConsumerGroupResetOffsetResultItemList - */ -@JsonPropertyOrder({ - ConsumerGroupResetOffsetResultItemList.JSON_PROPERTY_ITEMS -}) -@JsonTypeName("ConsumerGroupResetOffsetResultItemList") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ConsumerGroupResetOffsetResultItemList { - public static final String JSON_PROPERTY_ITEMS = "items"; - private List items = null; - - public ConsumerGroupResetOffsetResultItemList() { - } - - public ConsumerGroupResetOffsetResultItemList items(List items) { - - this.items = items; - return this; - } - - public ConsumerGroupResetOffsetResultItemList addItemsItem(ConsumerGroupResetOffsetResultItem itemsItem) { - if (this.items == null) { - this.items = new ArrayList<>(); - } - this.items.add(itemsItem); - return this; - } - - /** - * Get items - * @return items - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_ITEMS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public List getItems() { - return items; - } - - - @JsonProperty(JSON_PROPERTY_ITEMS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setItems(List items) { - this.items = items; - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ConsumerGroupResetOffsetResultItemList consumerGroupResetOffsetResultItemList = (ConsumerGroupResetOffsetResultItemList) o; - return Objects.equals(this.items, consumerGroupResetOffsetResultItemList.items); - } - - @Override - public int hashCode() { - return Objects.hash(items); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ConsumerGroupResetOffsetResultItemList {\n"); - sb.append(" items: ").append(toIndentedString(items)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ConsumerGroupState.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ConsumerGroupState.java new file mode 100644 index 00000000..922a389f --- /dev/null +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ConsumerGroupState.java @@ -0,0 +1,67 @@ +/* + * Kafka Admin REST API + * An API to provide REST endpoints for query Kafka for admin operations + * + * The version of the OpenAPI document: 0.7.1-SNAPSHOT + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.openshift.cloud.api.kas.auth.models; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Gets or Sets ConsumerGroupState + */ +public enum ConsumerGroupState { + + UNKNOWN("UNKNOWN"), + + PREPARING_REBALANCE("PREPARING_REBALANCE"), + + COMPLETING_REBALANCE("COMPLETING_REBALANCE"), + + STABLE("STABLE"), + + DEAD("DEAD"), + + EMPTY("EMPTY"); + + private String value; + + ConsumerGroupState(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ConsumerGroupState fromValue(String value) { + for (ConsumerGroupState b : ConsumerGroupState.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } +} + diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/Error.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/Error.java index c517f2af..9de5b6ee 100644 --- a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/Error.java +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/Error.java @@ -2,7 +2,7 @@ * Kafka Admin REST API * An API to provide REST endpoints for query Kafka for admin operations * - * The version of the OpenAPI document: 0.3.0 + * The version of the OpenAPI document: 0.7.1-SNAPSHOT * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -31,8 +31,7 @@ @ApiModel(description = "General error response") @JsonPropertyOrder({ Error.JSON_PROPERTY_CODE, - Error.JSON_PROPERTY_ERROR_MESSAGE, - Error.JSON_PROPERTY_PROPERTY_CLASS + Error.JSON_PROPERTY_ERROR_MESSAGE }) @JsonTypeName("Error") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") @@ -43,9 +42,6 @@ public class Error { public static final String JSON_PROPERTY_ERROR_MESSAGE = "error_message"; private String errorMessage; - public static final String JSON_PROPERTY_PROPERTY_CLASS = "class"; - private String propertyClass; - public Error() { } @@ -103,33 +99,6 @@ public void setErrorMessage(String errorMessage) { } - public Error propertyClass(String propertyClass) { - - this.propertyClass = propertyClass; - return this; - } - - /** - * Get propertyClass - * @return propertyClass - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getPropertyClass() { - return propertyClass; - } - - - @JsonProperty(JSON_PROPERTY_PROPERTY_CLASS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPropertyClass(String propertyClass) { - this.propertyClass = propertyClass; - } - - @Override public boolean equals(Object o) { if (this == o) { @@ -140,13 +109,12 @@ public boolean equals(Object o) { } Error error = (Error) o; return Objects.equals(this.code, error.code) && - Objects.equals(this.errorMessage, error.errorMessage) && - Objects.equals(this.propertyClass, error.propertyClass); + Objects.equals(this.errorMessage, error.errorMessage); } @Override public int hashCode() { - return Objects.hash(code, errorMessage, propertyClass); + return Objects.hash(code, errorMessage); } @Override @@ -155,7 +123,6 @@ public String toString() { sb.append("class Error {\n"); sb.append(" code: ").append(toIndentedString(code)).append("\n"); sb.append(" errorMessage: ").append(toIndentedString(errorMessage)).append("\n"); - sb.append(" propertyClass: ").append(toIndentedString(propertyClass)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/NewTopicInput.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/NewTopicInput.java index 1a9003ec..1a19bca9 100644 --- a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/NewTopicInput.java +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/NewTopicInput.java @@ -2,7 +2,7 @@ * Kafka Admin REST API * An API to provide REST endpoints for query Kafka for admin operations * - * The version of the OpenAPI document: 0.3.0 + * The version of the OpenAPI document: 0.7.1-SNAPSHOT * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -83,7 +83,7 @@ public NewTopicInput settings(TopicSettings settings) { * Get settings * @return settings **/ - @javax.annotation.Nonnull + @javax.annotation.Nullable @ApiModelProperty(required = true, value = "") @JsonProperty(JSON_PROPERTY_SETTINGS) @JsonInclude(value = JsonInclude.Include.ALWAYS) diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclBindingList.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/Node.java similarity index 60% rename from packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclBindingList.java rename to packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/Node.java index 31d32307..42eb5e23 100644 --- a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/AclBindingList.java +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/Node.java @@ -2,7 +2,7 @@ * Kafka Admin REST API * An API to provide REST endpoints for query Kafka for admin operations * - * The version of the OpenAPI document: 0.3.0 + * The version of the OpenAPI document: 0.7.1-SNAPSHOT * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,61 +20,51 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.openshift.cloud.api.kas.auth.models.AclBinding; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.util.ArrayList; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; /** - * AclBindingList + * Identifier for a Kafka server / broker. */ +@ApiModel(description = "Identifier for a Kafka server / broker.") @JsonPropertyOrder({ - AclBindingList.JSON_PROPERTY_ITEMS + Node.JSON_PROPERTY_ID }) -@JsonTypeName("AclBindingList") +@JsonTypeName("Node") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class AclBindingList { - public static final String JSON_PROPERTY_ITEMS = "items"; - private List items = null; +public class Node { + public static final String JSON_PROPERTY_ID = "id"; + private Integer id; - public AclBindingList() { + public Node() { } - public AclBindingList items(List items) { + public Node id(Integer id) { - this.items = items; - return this; - } - - public AclBindingList addItemsItem(AclBinding itemsItem) { - if (this.items == null) { - this.items = new ArrayList<>(); - } - this.items.add(itemsItem); + this.id = id; return this; } /** - * Get items - * @return items + * Get id + * @return id **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_ITEMS) + @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getItems() { - return items; + public Integer getId() { + return id; } - @JsonProperty(JSON_PROPERTY_ITEMS) + @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setItems(List items) { - this.items = items; + public void setId(Integer id) { + this.id = id; } @@ -86,20 +76,20 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - AclBindingList aclBindingList = (AclBindingList) o; - return Objects.equals(this.items, aclBindingList.items); + Node node = (Node) o; + return Objects.equals(this.id, node.id); } @Override public int hashCode() { - return Objects.hash(items); + return Objects.hash(id); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class AclBindingList {\n"); - sb.append(" items: ").append(toIndentedString(items)).append("\n"); + sb.append("class Node {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/OffsetType.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/OffsetType.java new file mode 100644 index 00000000..a9c4989f --- /dev/null +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/OffsetType.java @@ -0,0 +1,63 @@ +/* + * Kafka Admin REST API + * An API to provide REST endpoints for query Kafka for admin operations + * + * The version of the OpenAPI document: 0.7.1-SNAPSHOT + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.openshift.cloud.api.kas.auth.models; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Gets or Sets OffsetType + */ +public enum OffsetType { + + TIMESTAMP("timestamp"), + + ABSOLUTE("absolute"), + + LATEST("latest"), + + EARLIEST("earliest"); + + private String value; + + OffsetType(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static OffsetType fromValue(String value) { + for (OffsetType b : OffsetType.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } +} + diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/Partition.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/Partition.java index 2bb423f9..e5e4d359 100644 --- a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/Partition.java +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/Partition.java @@ -2,7 +2,7 @@ * Kafka Admin REST API * An API to provide REST endpoints for query Kafka for admin operations * - * The version of the OpenAPI document: 0.3.0 + * The version of the OpenAPI document: 0.7.1-SNAPSHOT * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,10 +20,15 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import com.openshift.cloud.api.kas.auth.models.Node; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeName; @@ -44,13 +49,13 @@ public class Partition { private Integer partition; public static final String JSON_PROPERTY_REPLICAS = "replicas"; - private List replicas = null; + private List replicas = null; public static final String JSON_PROPERTY_ISR = "isr"; - private List isr = null; + private List isr = null; public static final String JSON_PROPERTY_LEADER = "leader"; - private Object leader; + private JsonNullable leader = JsonNullable.undefined(); public Partition() { } @@ -82,13 +87,13 @@ public void setPartition(Integer partition) { } - public Partition replicas(List replicas) { + public Partition replicas(List replicas) { this.replicas = replicas; return this; } - public Partition addReplicasItem(Object replicasItem) { + public Partition addReplicasItem(Node replicasItem) { if (this.replicas == null) { this.replicas = new ArrayList<>(); } @@ -105,25 +110,25 @@ public Partition addReplicasItem(Object replicasItem) { @JsonProperty(JSON_PROPERTY_REPLICAS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getReplicas() { + public List getReplicas() { return replicas; } @JsonProperty(JSON_PROPERTY_REPLICAS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setReplicas(List replicas) { + public void setReplicas(List replicas) { this.replicas = replicas; } - public Partition isr(List isr) { + public Partition isr(List isr) { this.isr = isr; return this; } - public Partition addIsrItem(Object isrItem) { + public Partition addIsrItem(Node isrItem) { if (this.isr == null) { this.isr = new ArrayList<>(); } @@ -140,44 +145,52 @@ public Partition addIsrItem(Object isrItem) { @JsonProperty(JSON_PROPERTY_ISR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getIsr() { + public List getIsr() { return isr; } @JsonProperty(JSON_PROPERTY_ISR) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setIsr(List isr) { + public void setIsr(List isr) { this.isr = isr; } - public Partition leader(Object leader) { + public Partition leader(Node leader) { + this.leader = JsonNullable.of(leader); - this.leader = leader; return this; } /** - * Kafka server / broker. + * Get leader * @return leader **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Kafka server / broker.") + @ApiModelProperty(value = "") + @JsonIgnore + + public Node getLeader() { + return leader.orElse(null); + } + @JsonProperty(JSON_PROPERTY_LEADER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Object getLeader() { + public JsonNullable getLeader_JsonNullable() { return leader; } - - + @JsonProperty(JSON_PROPERTY_LEADER) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLeader(Object leader) { + public void setLeader_JsonNullable(JsonNullable leader) { this.leader = leader; } + public void setLeader(Node leader) { + this.leader = JsonNullable.of(leader); + } + @Override public boolean equals(Object o) { @@ -191,12 +204,23 @@ public boolean equals(Object o) { return Objects.equals(this.partition, partition.partition) && Objects.equals(this.replicas, partition.replicas) && Objects.equals(this.isr, partition.isr) && - Objects.equals(this.leader, partition.leader); + equalsNullable(this.leader, partition.leader); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); } @Override public int hashCode() { - return Objects.hash(partition, replicas, isr, leader); + return Objects.hash(partition, replicas, isr, hashCodeNullable(leader)); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ResultListPage.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ResultListPage.java deleted file mode 100644 index 7bfbf681..00000000 --- a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/ResultListPage.java +++ /dev/null @@ -1,175 +0,0 @@ -/* - * Kafka Admin REST API - * An API to provide REST endpoints for query Kafka for admin operations - * - * The version of the OpenAPI document: 0.3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.openshift.cloud.api.kas.auth.models; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.math.BigDecimal; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** - * ResultListPage - */ -@JsonPropertyOrder({ - ResultListPage.JSON_PROPERTY_TOTAL, - ResultListPage.JSON_PROPERTY_PAGE, - ResultListPage.JSON_PROPERTY_SIZE -}) -@JsonTypeName("ResultListPage") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class ResultListPage { - public static final String JSON_PROPERTY_TOTAL = "total"; - private BigDecimal total; - - public static final String JSON_PROPERTY_PAGE = "page"; - private Integer page; - - public static final String JSON_PROPERTY_SIZE = "size"; - private BigDecimal size; - - public ResultListPage() { - } - - public ResultListPage total(BigDecimal total) { - - this.total = total; - return this; - } - - /** - * Total number of entries in the full result set - * @return total - **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "Total number of entries in the full result set") - @JsonProperty(JSON_PROPERTY_TOTAL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - - public BigDecimal getTotal() { - return total; - } - - - @JsonProperty(JSON_PROPERTY_TOTAL) - @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTotal(BigDecimal total) { - this.total = total; - } - - - public ResultListPage page(Integer page) { - - this.page = page; - return this; - } - - /** - * Current page number (returned for fetch requests) - * @return page - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Current page number (returned for fetch requests)") - @JsonProperty(JSON_PROPERTY_PAGE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Integer getPage() { - return page; - } - - - @JsonProperty(JSON_PROPERTY_PAGE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPage(Integer page) { - this.page = page; - } - - - public ResultListPage size(BigDecimal size) { - - this.size = size; - return this; - } - - /** - * Number of entries per page (returned for fetch requests) - * @return size - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Number of entries per page (returned for fetch requests)") - @JsonProperty(JSON_PROPERTY_SIZE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public BigDecimal getSize() { - return size; - } - - - @JsonProperty(JSON_PROPERTY_SIZE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSize(BigDecimal size) { - this.size = size; - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - ResultListPage resultListPage = (ResultListPage) o; - return Objects.equals(this.total, resultListPage.total) && - Objects.equals(this.page, resultListPage.page) && - Objects.equals(this.size, resultListPage.size); - } - - @Override - public int hashCode() { - return Objects.hash(total, page, size); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class ResultListPage {\n"); - sb.append(" total: ").append(toIndentedString(total)).append("\n"); - sb.append(" page: ").append(toIndentedString(page)).append("\n"); - sb.append(" size: ").append(toIndentedString(size)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/SortDirection.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/SortDirection.java new file mode 100644 index 00000000..a7f45421 --- /dev/null +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/SortDirection.java @@ -0,0 +1,59 @@ +/* + * Kafka Admin REST API + * An API to provide REST endpoints for query Kafka for admin operations + * + * The version of the OpenAPI document: 0.7.1-SNAPSHOT + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.openshift.cloud.api.kas.auth.models; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Gets or Sets SortDirection + */ +public enum SortDirection { + + ASC("asc"), + + DESC("desc"); + + private String value; + + SortDirection(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static SortDirection fromValue(String value) { + for (SortDirection b : SortDirection.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } +} + diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/Topic.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/Topic.java index 30c44f10..06e41102 100644 --- a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/Topic.java +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/Topic.java @@ -2,7 +2,7 @@ * Kafka Admin REST API * An API to provide REST endpoints for query Kafka for admin operations * - * The version of the OpenAPI document: 0.3.0 + * The version of the OpenAPI document: 0.7.1-SNAPSHOT * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -35,8 +35,9 @@ @ApiModel(description = "Kafka Topic (A feed where records are stored and published)") @JsonPropertyOrder({ Topic.JSON_PROPERTY_NAME, - Topic.JSON_PROPERTY_CONFIG, - Topic.JSON_PROPERTY_PARTITIONS + Topic.JSON_PROPERTY_IS_INTERNAL, + Topic.JSON_PROPERTY_PARTITIONS, + Topic.JSON_PROPERTY_CONFIG }) @JsonTypeName("Topic") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") @@ -44,12 +45,15 @@ public class Topic { public static final String JSON_PROPERTY_NAME = "name"; private String name; - public static final String JSON_PROPERTY_CONFIG = "config"; - private List config = null; + public static final String JSON_PROPERTY_IS_INTERNAL = "isInternal"; + private Boolean isInternal; public static final String JSON_PROPERTY_PARTITIONS = "partitions"; private List partitions = null; + public static final String JSON_PROPERTY_CONFIG = "config"; + private List config = null; + public Topic() { } @@ -80,38 +84,30 @@ public void setName(String name) { } - public Topic config(List config) { + public Topic isInternal(Boolean isInternal) { - this.config = config; - return this; - } - - public Topic addConfigItem(ConfigEntry configItem) { - if (this.config == null) { - this.config = new ArrayList<>(); - } - this.config.add(configItem); + this.isInternal = isInternal; return this; } /** - * Topic configuration entry. - * @return config + * Get isInternal + * @return isInternal **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Topic configuration entry.") - @JsonProperty(JSON_PROPERTY_CONFIG) + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_IS_INTERNAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getConfig() { - return config; + public Boolean getIsInternal() { + return isInternal; } - @JsonProperty(JSON_PROPERTY_CONFIG) + @JsonProperty(JSON_PROPERTY_IS_INTERNAL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setConfig(List config) { - this.config = config; + public void setIsInternal(Boolean isInternal) { + this.isInternal = isInternal; } @@ -150,6 +146,41 @@ public void setPartitions(List partitions) { } + public Topic config(List config) { + + this.config = config; + return this; + } + + public Topic addConfigItem(ConfigEntry configItem) { + if (this.config == null) { + this.config = new ArrayList<>(); + } + this.config.add(configItem); + return this; + } + + /** + * Topic configuration entry. + * @return config + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Topic configuration entry.") + @JsonProperty(JSON_PROPERTY_CONFIG) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getConfig() { + return config; + } + + + @JsonProperty(JSON_PROPERTY_CONFIG) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setConfig(List config) { + this.config = config; + } + + @Override public boolean equals(Object o) { if (this == o) { @@ -160,13 +191,14 @@ public boolean equals(Object o) { } Topic topic = (Topic) o; return Objects.equals(this.name, topic.name) && - Objects.equals(this.config, topic.config) && - Objects.equals(this.partitions, topic.partitions); + Objects.equals(this.isInternal, topic.isInternal) && + Objects.equals(this.partitions, topic.partitions) && + Objects.equals(this.config, topic.config); } @Override public int hashCode() { - return Objects.hash(name, config, partitions); + return Objects.hash(name, isInternal, partitions, config); } @Override @@ -174,8 +206,9 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Topic {\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); - sb.append(" config: ").append(toIndentedString(config)).append("\n"); + sb.append(" isInternal: ").append(toIndentedString(isInternal)).append("\n"); sb.append(" partitions: ").append(toIndentedString(partitions)).append("\n"); + sb.append(" config: ").append(toIndentedString(config)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/TopicOrderKey.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/TopicOrderKey.java new file mode 100644 index 00000000..b97e9c57 --- /dev/null +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/TopicOrderKey.java @@ -0,0 +1,63 @@ +/* + * Kafka Admin REST API + * An API to provide REST endpoints for query Kafka for admin operations + * + * The version of the OpenAPI document: 0.7.1-SNAPSHOT + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.openshift.cloud.api.kas.auth.models; + +import java.util.Objects; +import java.util.Arrays; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeName; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * Gets or Sets TopicOrderKey + */ +public enum TopicOrderKey { + + NAME("name"), + + PARTITIONS("partitions"), + + RETENTION_MS("retention.ms"), + + RETENTION_BYTES("retention.bytes"); + + private String value; + + TopicOrderKey(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TopicOrderKey fromValue(String value) { + for (TopicOrderKey b : TopicOrderKey.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } +} + diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/TopicSettings.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/TopicSettings.java index 0172b5d0..b8337f6f 100644 --- a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/TopicSettings.java +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/TopicSettings.java @@ -2,7 +2,7 @@ * Kafka Admin REST API * An API to provide REST endpoints for query Kafka for admin operations * - * The version of the OpenAPI document: 0.3.0 + * The version of the OpenAPI document: 0.7.1-SNAPSHOT * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -29,9 +29,9 @@ import com.fasterxml.jackson.annotation.JsonTypeName; /** - * Kafka Topic (A feed where records are stored and published) + * The settings that are applicable to this topic. This includes partitions, configuration information, and number of replicas. */ -@ApiModel(description = "Kafka Topic (A feed where records are stored and published)") +@ApiModel(description = "The settings that are applicable to this topic. This includes partitions, configuration information, and number of replicas.") @JsonPropertyOrder({ TopicSettings.JSON_PROPERTY_NUM_PARTITIONS, TopicSettings.JSON_PROPERTY_CONFIG @@ -55,13 +55,15 @@ public TopicSettings numPartitions(Integer numPartitions) { } /** - * Number of partitions for this topic. + * Number of partitions for this topic. If not specified, the default for new topics is `1`. Number of partitions may not be reduced when updating existing topics + * minimum: 1 + * maximum: 100 * @return numPartitions **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "Number of partitions for this topic.") + @javax.annotation.Nullable + @ApiModelProperty(value = "Number of partitions for this topic. If not specified, the default for new topics is `1`. Number of partitions may not be reduced when updating existing topics") @JsonProperty(JSON_PROPERTY_NUM_PARTITIONS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public Integer getNumPartitions() { return numPartitions; @@ -69,7 +71,7 @@ public Integer getNumPartitions() { @JsonProperty(JSON_PROPERTY_NUM_PARTITIONS) - @JsonInclude(value = JsonInclude.Include.ALWAYS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setNumPartitions(Integer numPartitions) { this.numPartitions = numPartitions; } @@ -90,11 +92,11 @@ public TopicSettings addConfigItem(ConfigEntry configItem) { } /** - * Topic configuration entry. + * Topic configuration entries. * @return config **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Topic configuration entry.") + @ApiModelProperty(value = "Topic configuration entries.") @JsonProperty(JSON_PROPERTY_CONFIG) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/TopicsList.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/TopicsList.java index 7557b8ad..8353bd9b 100644 --- a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/TopicsList.java +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/TopicsList.java @@ -2,7 +2,7 @@ * Kafka Admin REST API * An API to provide REST endpoints for query Kafka for admin operations * - * The version of the OpenAPI document: 0.3.0 + * The version of the OpenAPI document: 0.7.1-SNAPSHOT * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -33,142 +33,139 @@ */ @ApiModel(description = "A list of topics.") @JsonPropertyOrder({ - TopicsList.JSON_PROPERTY_PAGE, - TopicsList.JSON_PROPERTY_SIZE, + TopicsList.JSON_PROPERTY_ITEMS, TopicsList.JSON_PROPERTY_TOTAL, - TopicsList.JSON_PROPERTY_ITEMS + TopicsList.JSON_PROPERTY_SIZE, + TopicsList.JSON_PROPERTY_PAGE }) @JsonTypeName("TopicsList") @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class TopicsList { - public static final String JSON_PROPERTY_PAGE = "page"; - private Integer page; - - public static final String JSON_PROPERTY_SIZE = "size"; - private Integer size; + public static final String JSON_PROPERTY_ITEMS = "items"; + private List items = new ArrayList<>(); public static final String JSON_PROPERTY_TOTAL = "total"; private Integer total; - public static final String JSON_PROPERTY_ITEMS = "items"; - private List items = null; + public static final String JSON_PROPERTY_SIZE = "size"; + private Integer size; + + public static final String JSON_PROPERTY_PAGE = "page"; + private Integer page; public TopicsList() { } - public TopicsList page(Integer page) { + public TopicsList items(List items) { - this.page = page; + this.items = items; + return this; + } + + public TopicsList addItemsItem(Topic itemsItem) { + this.items.add(itemsItem); return this; } /** - * The page - * @return page + * Get items + * @return items **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "The page") - @JsonProperty(JSON_PROPERTY_PAGE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_ITEMS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getPage() { - return page; + public List getItems() { + return items; } - @JsonProperty(JSON_PROPERTY_PAGE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPage(Integer page) { - this.page = page; + @JsonProperty(JSON_PROPERTY_ITEMS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setItems(List items) { + this.items = items; } - public TopicsList size(Integer size) { + public TopicsList total(Integer total) { - this.size = size; + this.total = total; return this; } /** - * number of entries per page - * @return size + * Total number of entries in the full result set + * @return total **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "number of entries per page") - @JsonProperty(JSON_PROPERTY_SIZE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "Total number of entries in the full result set") + @JsonProperty(JSON_PROPERTY_TOTAL) + @JsonInclude(value = JsonInclude.Include.ALWAYS) - public Integer getSize() { - return size; + public Integer getTotal() { + return total; } - @JsonProperty(JSON_PROPERTY_SIZE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSize(Integer size) { - this.size = size; + @JsonProperty(JSON_PROPERTY_TOTAL) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setTotal(Integer total) { + this.total = total; } - public TopicsList total(Integer total) { + public TopicsList size(Integer size) { - this.total = total; + this.size = size; return this; } /** - * Total number of topics - * @return total + * Number of entries per page (returned for fetch requests) + * @return size **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Total number of topics") - @JsonProperty(JSON_PROPERTY_TOTAL) + @ApiModelProperty(value = "Number of entries per page (returned for fetch requests)") + @JsonProperty(JSON_PROPERTY_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Integer getTotal() { - return total; + public Integer getSize() { + return size; } - @JsonProperty(JSON_PROPERTY_TOTAL) + @JsonProperty(JSON_PROPERTY_SIZE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTotal(Integer total) { - this.total = total; + public void setSize(Integer size) { + this.size = size; } - public TopicsList items(List items) { + public TopicsList page(Integer page) { - this.items = items; - return this; - } - - public TopicsList addItemsItem(Topic itemsItem) { - if (this.items == null) { - this.items = new ArrayList<>(); - } - this.items.add(itemsItem); + this.page = page; return this; } /** - * List of topics - * @return items + * Current page number (returned for fetch requests) + * @return page **/ @javax.annotation.Nullable - @ApiModelProperty(value = "List of topics") - @JsonProperty(JSON_PROPERTY_ITEMS) + @ApiModelProperty(value = "Current page number (returned for fetch requests)") + @JsonProperty(JSON_PROPERTY_PAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getItems() { - return items; + public Integer getPage() { + return page; } - @JsonProperty(JSON_PROPERTY_ITEMS) + @JsonProperty(JSON_PROPERTY_PAGE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setItems(List items) { - this.items = items; + public void setPage(Integer page) { + this.page = page; } @@ -181,25 +178,25 @@ public boolean equals(Object o) { return false; } TopicsList topicsList = (TopicsList) o; - return Objects.equals(this.page, topicsList.page) && - Objects.equals(this.size, topicsList.size) && + return Objects.equals(this.items, topicsList.items) && Objects.equals(this.total, topicsList.total) && - Objects.equals(this.items, topicsList.items); + Objects.equals(this.size, topicsList.size) && + Objects.equals(this.page, topicsList.page); } @Override public int hashCode() { - return Objects.hash(page, size, total, items); + return Objects.hash(items, total, size, page); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class TopicsList {\n"); - sb.append(" page: ").append(toIndentedString(page)).append("\n"); - sb.append(" size: ").append(toIndentedString(size)).append("\n"); - sb.append(" total: ").append(toIndentedString(total)).append("\n"); sb.append(" items: ").append(toIndentedString(items)).append("\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" size: ").append(toIndentedString(size)).append("\n"); + sb.append(" page: ").append(toIndentedString(page)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/TopicsToResetOffset.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/TopicsToResetOffset.java index dde1604d..3f70298c 100644 --- a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/TopicsToResetOffset.java +++ b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/TopicsToResetOffset.java @@ -2,7 +2,7 @@ * Kafka Admin REST API * An API to provide REST endpoints for query Kafka for admin operations * - * The version of the OpenAPI document: 0.3.0 + * The version of the OpenAPI document: 0.7.1-SNAPSHOT * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/UpdateTopicInput.java b/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/UpdateTopicInput.java deleted file mode 100644 index a37fac24..00000000 --- a/packages/kafka-instance-sdk/src/main/java/com/openshift/cloud/api/kas/auth/models/UpdateTopicInput.java +++ /dev/null @@ -1,153 +0,0 @@ -/* - * Kafka Admin REST API - * An API to provide REST endpoints for query Kafka for admin operations - * - * The version of the OpenAPI document: 0.3.0 - * - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package com.openshift.cloud.api.kas.auth.models; - -import java.util.Objects; -import java.util.Arrays; -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonCreator; -import com.fasterxml.jackson.annotation.JsonTypeName; -import com.fasterxml.jackson.annotation.JsonValue; -import com.openshift.cloud.api.kas.auth.models.ConfigEntry; -import io.swagger.annotations.ApiModel; -import io.swagger.annotations.ApiModelProperty; -import java.util.ArrayList; -import java.util.List; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import com.fasterxml.jackson.annotation.JsonTypeName; - -/** - * Kafka Topic (A feed where records are stored and published) - */ -@ApiModel(description = "Kafka Topic (A feed where records are stored and published)") -@JsonPropertyOrder({ - UpdateTopicInput.JSON_PROPERTY_CONFIG, - UpdateTopicInput.JSON_PROPERTY_NUM_PARTITIONS -}) -@JsonTypeName("UpdateTopicInput") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") -public class UpdateTopicInput { - public static final String JSON_PROPERTY_CONFIG = "config"; - private List config = null; - - public static final String JSON_PROPERTY_NUM_PARTITIONS = "numPartitions"; - private Integer numPartitions; - - public UpdateTopicInput() { - } - - public UpdateTopicInput config(List config) { - - this.config = config; - return this; - } - - public UpdateTopicInput addConfigItem(ConfigEntry configItem) { - if (this.config == null) { - this.config = new ArrayList<>(); - } - this.config.add(configItem); - return this; - } - - /** - * Topic configuration entries. - * @return config - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Topic configuration entries.") - @JsonProperty(JSON_PROPERTY_CONFIG) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public List getConfig() { - return config; - } - - - @JsonProperty(JSON_PROPERTY_CONFIG) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setConfig(List config) { - this.config = config; - } - - - public UpdateTopicInput numPartitions(Integer numPartitions) { - - this.numPartitions = numPartitions; - return this; - } - - /** - * Number of partitions (only increasing supported) - * @return numPartitions - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Number of partitions (only increasing supported)") - @JsonProperty(JSON_PROPERTY_NUM_PARTITIONS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Integer getNumPartitions() { - return numPartitions; - } - - - @JsonProperty(JSON_PROPERTY_NUM_PARTITIONS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setNumPartitions(Integer numPartitions) { - this.numPartitions = numPartitions; - } - - - @Override - public boolean equals(Object o) { - if (this == o) { - return true; - } - if (o == null || getClass() != o.getClass()) { - return false; - } - UpdateTopicInput updateTopicInput = (UpdateTopicInput) o; - return Objects.equals(this.config, updateTopicInput.config) && - Objects.equals(this.numPartitions, updateTopicInput.numPartitions); - } - - @Override - public int hashCode() { - return Objects.hash(config, numPartitions); - } - - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append("class UpdateTopicInput {\n"); - sb.append(" config: ").append(toIndentedString(config)).append("\n"); - sb.append(" numPartitions: ").append(toIndentedString(numPartitions)).append("\n"); - sb.append("}"); - return sb.toString(); - } - - /** - * Convert the given object to string with each line indented by 4 spaces - * (except the first line). - */ - private String toIndentedString(Object o) { - if (o == null) { - return "null"; - } - return o.toString().replace("\n", "\n "); - } - -} - diff --git a/packages/kafka-management-sdk/pom.xml b/packages/kafka-management-sdk/pom.xml index 30a9a1ac..3e8be2f8 100644 --- a/packages/kafka-management-sdk/pom.xml +++ b/packages/kafka-management-sdk/pom.xml @@ -137,7 +137,7 @@ org.apache.maven.plugins maven-compiler-plugin - 3.10.0 + 3.9.0 1.8 1.8 @@ -146,7 +146,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.3.2 + 3.3.1 none 1.8 @@ -175,7 +175,7 @@ org.sonatype.plugins nexus-staging-maven-plugin - 1.6.12 + 1.6.8 true ossrh diff --git a/packages/registry-management-sdk/pom.xml b/packages/registry-management-sdk/pom.xml index 8c735f12..09532245 100644 --- a/packages/registry-management-sdk/pom.xml +++ b/packages/registry-management-sdk/pom.xml @@ -137,7 +137,7 @@ org.apache.maven.plugins maven-compiler-plugin - 3.10.0 + 3.9.0 1.8 1.8 @@ -146,7 +146,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.3.2 + 3.3.1 none 1.8 @@ -175,7 +175,7 @@ org.sonatype.plugins nexus-staging-maven-plugin - 1.6.12 + 1.6.8 true ossrh diff --git a/packages/service-accounts-sdk/pom.xml b/packages/service-accounts-sdk/pom.xml index 1810d760..e3524112 100644 --- a/packages/service-accounts-sdk/pom.xml +++ b/packages/service-accounts-sdk/pom.xml @@ -137,7 +137,7 @@ org.apache.maven.plugins maven-compiler-plugin - 3.10.0 + 3.9.0 1.8 1.8 @@ -146,7 +146,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.3.2 + 3.3.1 none 1.8 @@ -175,7 +175,7 @@ org.sonatype.plugins nexus-staging-maven-plugin - 1.6.12 + 1.6.8 true ossrh