Skip to content

Commit 3cc5990

Browse files
chore(all): re-generate OpenAPI client(s) (#66)
Co-authored-by: app-services-ci <app-services-ci@users.noreply.github.com>
1 parent 3e26892 commit 3cc5990

70 files changed

Lines changed: 5332 additions & 411 deletions

Some content is hidden

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

packages/kafka-instance-sdk/README.md

Lines changed: 54 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Kafka Admin REST API
44

5-
- API version: 0.1.0
5+
- API version: 0.3.0
66

77
An API to provide REST endpoints for query Kafka for admin operations
88

@@ -40,7 +40,7 @@ Add this dependency to your project's POM:
4040
<dependency>
4141
<groupId>com.redhat.cloud</groupId>
4242
<artifactId>kafka-instance-sdk</artifactId>
43-
<version>0.1.0</version>
43+
<version>0.3.0</version>
4444
<scope>compile</scope>
4545
</dependency>
4646
```
@@ -50,7 +50,7 @@ Add this dependency to your project's POM:
5050
Add this dependency to your project's build file:
5151

5252
```groovy
53-
compile "com.redhat.cloud:kafka-instance-sdk:0.1.0"
53+
compile "com.redhat.cloud:kafka-instance-sdk:0.3.0"
5454
```
5555

5656
### Others
@@ -63,7 +63,7 @@ mvn clean package
6363

6464
Then manually install the following JARs:
6565

66-
- `target/kafka-instance-sdk-0.1.0.jar`
66+
- `target/kafka-instance-sdk-0.3.0.jar`
6767
- `target/lib/*.jar`
6868

6969
## Getting Started
@@ -75,21 +75,24 @@ Please follow the [installation](#installation) instruction and execute the foll
7575
import com.openshift.cloud.api.kas.auth.invoker.*;
7676
import com.openshift.cloud.api.kas.auth.invoker.auth.*;
7777
import com.openshift.cloud.api.kas.auth.models.*;
78-
import com.openshift.cloud.api.kas.auth.DefaultApi;
78+
import com.openshift.cloud.api.kas.auth.AclsApi;
7979

80-
public class DefaultApiExample {
80+
public class AclsApiExample {
8181

8282
public static void main(String[] args) {
8383
ApiClient defaultClient = Configuration.getDefaultApiClient();
84-
defaultClient.setBasePath("http://localhost");
84+
defaultClient.setBasePath("http://localhost/rest");
8585

86-
DefaultApi apiInstance = new DefaultApi(defaultClient);
87-
NewTopicInput newTopicInput = new NewTopicInput(); // NewTopicInput | Topic to create.
86+
// Configure OAuth2 access token for authorization: Bearer
87+
OAuth Bearer = (OAuth) defaultClient.getAuthentication("Bearer");
88+
Bearer.setAccessToken("YOUR ACCESS TOKEN");
89+
90+
AclsApi apiInstance = new AclsApi(defaultClient);
91+
AclBinding aclBinding = new AclBinding(); // AclBinding | ACL to create.
8892
try {
89-
Topic result = apiInstance.createTopic(newTopicInput);
90-
System.out.println(result);
93+
apiInstance.createAcl(aclBinding);
9194
} catch (ApiException e) {
92-
System.err.println("Exception when calling DefaultApi#createTopic");
95+
System.err.println("Exception when calling AclsApi#createAcl");
9396
System.err.println("Status code: " + e.getCode());
9497
System.err.println("Reason: " + e.getResponseBody());
9598
System.err.println("Response headers: " + e.getResponseHeaders());
@@ -102,38 +105,67 @@ public class DefaultApiExample {
102105

103106
## Documentation for API Endpoints
104107

105-
All URIs are relative to *http://localhost*
108+
All URIs are relative to *http://localhost/rest*
106109

107110
Class | Method | HTTP request | Description
108111
------------ | ------------- | ------------- | -------------
109-
*DefaultApi* | [**createTopic**](docs/DefaultApi.md#createTopic) | **POST** /topics | Creates a new topic
110-
*DefaultApi* | [**deleteConsumerGroupById**](docs/DefaultApi.md#deleteConsumerGroupById) | **DELETE** /consumer-groups/{consumerGroupId} | Delete a consumer group.
111-
*DefaultApi* | [**deleteTopic**](docs/DefaultApi.md#deleteTopic) | **DELETE** /topics/{topicName} | Deletes a topic
112-
*DefaultApi* | [**getConsumerGroupById**](docs/DefaultApi.md#getConsumerGroupById) | **GET** /consumer-groups/{consumerGroupId} | Get a single consumer group by its unique ID.
113-
*DefaultApi* | [**getConsumerGroups**](docs/DefaultApi.md#getConsumerGroups) | **GET** /consumer-groups | List of consumer groups in the Kafka instance.
114-
*DefaultApi* | [**getTopic**](docs/DefaultApi.md#getTopic) | **GET** /topics/{topicName} | Retrieves the topic with the specified name.
115-
*DefaultApi* | [**getTopics**](docs/DefaultApi.md#getTopics) | **GET** /topics | List of topics
116-
*DefaultApi* | [**updateTopic**](docs/DefaultApi.md#updateTopic) | **PATCH** /topics/{topicName} | Updates the topic with the specified name.
112+
*AclsApi* | [**createAcl**](docs/AclsApi.md#createAcl) | **POST** /acls | Create ACL binding
113+
*AclsApi* | [**deleteAcls**](docs/AclsApi.md#deleteAcls) | **DELETE** /acls | Delete ACL bindings
114+
*AclsApi* | [**getAclResourceOperations**](docs/AclsApi.md#getAclResourceOperations) | **GET** /acls/resource-operations | Retrieve allowed ACL resources and operations
115+
*AclsApi* | [**getAcls**](docs/AclsApi.md#getAcls) | **GET** /acls | List ACL bindings
116+
*GroupsApi* | [**deleteConsumerGroupById**](docs/GroupsApi.md#deleteConsumerGroupById) | **DELETE** /consumer-groups/{consumerGroupId} | Delete a consumer group.
117+
*GroupsApi* | [**getConsumerGroupById**](docs/GroupsApi.md#getConsumerGroupById) | **GET** /consumer-groups/{consumerGroupId} | Get a single consumer group by its unique ID.
118+
*GroupsApi* | [**getConsumerGroups**](docs/GroupsApi.md#getConsumerGroups) | **GET** /consumer-groups | List of consumer groups in the Kafka instance.
119+
*GroupsApi* | [**resetConsumerGroupOffset**](docs/GroupsApi.md#resetConsumerGroupOffset) | **POST** /consumer-groups/{consumerGroupId}/reset-offset | Reset the offset for a consumer group.
120+
*TopicsApi* | [**createTopic**](docs/TopicsApi.md#createTopic) | **POST** /topics | Creates a new topic
121+
*TopicsApi* | [**deleteTopic**](docs/TopicsApi.md#deleteTopic) | **DELETE** /topics/{topicName} | Deletes a topic
122+
*TopicsApi* | [**getTopic**](docs/TopicsApi.md#getTopic) | **GET** /topics/{topicName} | Retrieves the topic with the specified name.
123+
*TopicsApi* | [**getTopics**](docs/TopicsApi.md#getTopics) | **GET** /topics | List of topics
124+
*TopicsApi* | [**updateTopic**](docs/TopicsApi.md#updateTopic) | **PATCH** /topics/{topicName} | Updates the topic with the specified name.
117125

118126

119127
## Documentation for Models
120128

129+
- [AclBinding](docs/AclBinding.md)
130+
- [AclBindingListPage](docs/AclBindingListPage.md)
131+
- [AclBindingListPageAllOf](docs/AclBindingListPageAllOf.md)
132+
- [AclFilterAny](docs/AclFilterAny.md)
133+
- [AclOperation](docs/AclOperation.md)
134+
- [AclOperationFilter](docs/AclOperationFilter.md)
135+
- [AclPatternType](docs/AclPatternType.md)
136+
- [AclPatternTypeFilter](docs/AclPatternTypeFilter.md)
137+
- [AclPatternTypeFilterOneOf](docs/AclPatternTypeFilterOneOf.md)
138+
- [AclPermissionType](docs/AclPermissionType.md)
139+
- [AclPermissionTypeFilter](docs/AclPermissionTypeFilter.md)
140+
- [AclResourceType](docs/AclResourceType.md)
141+
- [AclResourceTypeFilter](docs/AclResourceTypeFilter.md)
121142
- [ConfigEntry](docs/ConfigEntry.md)
122143
- [Consumer](docs/Consumer.md)
123144
- [ConsumerGroup](docs/ConsumerGroup.md)
124145
- [ConsumerGroupList](docs/ConsumerGroupList.md)
146+
- [ConsumerGroupResetOffsetParameters](docs/ConsumerGroupResetOffsetParameters.md)
147+
- [Error](docs/Error.md)
125148
- [NewTopicInput](docs/NewTopicInput.md)
126149
- [Partition](docs/Partition.md)
150+
- [ResultListPage](docs/ResultListPage.md)
127151
- [Topic](docs/Topic.md)
128152
- [TopicSettings](docs/TopicSettings.md)
129153
- [TopicsList](docs/TopicsList.md)
154+
- [TopicsToResetOffset](docs/TopicsToResetOffset.md)
130155
- [UpdateTopicInput](docs/UpdateTopicInput.md)
131156

132157

133158
## Documentation for Authorization
134159

135-
All endpoints do not require authorization.
136160
Authentication schemes defined for the API:
161+
### Bearer
162+
163+
164+
- **Type**: OAuth
165+
- **Flow**: application
166+
- **Authorization URL**:
167+
- **Scopes**: N/A
168+
137169

138170
## Recommendation
139171

0 commit comments

Comments
 (0)