-
Notifications
You must be signed in to change notification settings - Fork 593
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1187 from dotnwat/metadata-codegen
kafka: use code generation for metadata api request
- Loading branch information
Showing
19 changed files
with
295 additions
and
374 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// Licensed to the Apache Software Foundation (ASF) under one or more | ||
// contributor license agreements. See the NOTICE file distributed with | ||
// this work for additional information regarding copyright ownership. | ||
// The ASF licenses this file to You under the Apache License, Version 2.0 | ||
// (the "License"); you may not use this file except in compliance with | ||
// the License. You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
{ | ||
"apiKey": 3, | ||
"type": "request", | ||
"name": "MetadataRequest", | ||
"validVersions": "0-9", | ||
"flexibleVersions": "9+", | ||
"fields": [ | ||
// In version 0, an empty array indicates "request metadata for all topics." In version 1 and | ||
// higher, an empty array indicates "request metadata for no topics," and a null array is used to | ||
// indiate "request metadata for all topics." | ||
// | ||
// Version 2 and 3 are the same as version 1. | ||
// | ||
// Version 4 adds AllowAutoTopicCreation. | ||
// | ||
// Starting in version 8, authorized operations can be requested for cluster and topic resource. | ||
// | ||
// Version 9 is the first flexible version. | ||
{ "name": "Topics", "type": "[]MetadataRequestTopic", "versions": "0+", "nullableVersions": "1+", | ||
"about": "The topics to fetch metadata for.", "fields": [ | ||
{ "name": "Name", "type": "string", "versions": "0+", "entityType": "topicName", | ||
"about": "The topic name." } | ||
]}, | ||
{ "name": "AllowAutoTopicCreation", "type": "bool", "versions": "4+", "default": "true", "ignorable": false, | ||
"about": "If this is true, the broker may auto-create topics that we requested which do not already exist, if it is configured to do so." }, | ||
{ "name": "IncludeClusterAuthorizedOperations", "type": "bool", "versions": "8+", | ||
"about": "Whether to include cluster authorized operations." }, | ||
{ "name": "IncludeTopicAuthorizedOperations", "type": "bool", "versions": "8+", | ||
"about": "Whether to include topic authorized operations." } | ||
] | ||
} |
Oops, something went wrong.