Skip to content

Commit b8b91fc

Browse files
committed
Fixed styling
1 parent 8a03bfd commit b8b91fc

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

contract-typespec/api/acls.tsp

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,26 @@ model KafkaAcl {
7575
namePatternType: KafkaAclNamePatternType;
7676
principal: string;
7777
host: string;
78-
operation: "UNKNOWN" | "ALL" | "READ" | "WRITE" | "CREATE" | "DELETE" | "ALTER" | "DESCRIBE" | "CLUSTER_ACTION" | "DESCRIBE_CONFIGS" | "ALTER_CONFIGS" | "IDEMPOTENT_WRITE" | "CREATE_TOKENS" | "DESCRIBE_TOKENS";
78+
operation: KafkaAclOpeations;
7979
permission: "ALLOW" | "DENY";
8080
}
8181

82+
alias KafkaAclOpeations =
83+
UNKNOWN
84+
| ALL
85+
| READ
86+
| WRITE
87+
| CREATE
88+
| DELETE
89+
| ALTER
90+
| DESCRIBE
91+
| CLUSTER_ACTION
92+
| DESCRIBE_CONFIGS
93+
| ALTER_CONFIGS
94+
| IDEMPOTENT_WRITE
95+
| CREATE_TOKENS
96+
| DESCRIBE_TOKENS;
97+
8298
enum KafkaAclResourceType {
8399
UNKNOWN,
84100
TOPIC,
@@ -120,4 +136,4 @@ model CreateStreamAppAcl {
120136
inputTopics: string[];
121137
outputTopics: string[];
122138
applicationId: string;
123-
}
139+
}

contract-typespec/api/messages.tsp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,6 @@ interface SmartFiltersTestExecutionsApi {
8989
): SmartFilterTestExecutionResult | ApiBadRequestResponse;
9090
}
9191

92-
93-
9492
model TopicSerdeSuggestion {
9593
key: SerdeDescription[];
9694
value: SerdeDescription[];
@@ -231,4 +229,4 @@ model SerdeDescription {
231229

232230
schema?: string;
233231
additionalProperties?: Record<unknown>;
234-
}
232+
}

contract-typespec/api/models.tsp

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,3 @@ enum SortOrder {
2121
}
2222

2323

24-
25-
26-
27-
// model BrokerLogdirs {
28-
// name: string;
29-
// error: string;
30-
// topics: TopicLogdirs[];
31-
// }
32-
33-
// model TopicLogdirs {
34-
// name?: string;
35-
// partitions?: TopicPartitionLogdir[];
36-
// }
37-

0 commit comments

Comments
 (0)