Skip to content

Commit

Permalink
build: update buf version in taskfiles and run generate
Browse files Browse the repository at this point in the history
  • Loading branch information
bojand committed Aug 20, 2024
1 parent db36d31 commit da7fc26
Show file tree
Hide file tree
Showing 17 changed files with 190 additions and 190 deletions.
2 changes: 1 addition & 1 deletion proto/gen/openapi/openapi.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion proto/gen/openapi/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2824,7 +2824,7 @@ paths:
content:
multipart/form-data:
schema:
example: '{"name":"redact-orders","input_topic_name":"orders","output_topic_names":["orders-redacted"],"environment_variables":[{"key":"LOGGER_LEVEL","value":"DEBUG"}]}'
example: '{"name":"redact-orders", "input_topic_name":"orders", "output_topic_names":["orders-redacted"], "environment_variables":[{"key":"LOGGER_LEVEL", "value":"DEBUG"}]}'
properties:
metadata:
$ref: '#/components/schemas/DeployTransformRequest'
Expand Down
4 changes: 2 additions & 2 deletions proto/redpanda/api/console/v1alpha1/security.proto
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ message ListRolesRequest {

// Page size.
int32 page_size = 2 [(buf.validate.field).int32 = {
gte: -1,
gte: -1
lte: 1000
}];

Expand Down Expand Up @@ -128,7 +128,7 @@ message ListRoleMembersRequest {

// Page size.
int32 page_size = 3 [(buf.validate.field).int32 = {
gte: -1,
gte: -1
lte: 1000
}];

Expand Down
28 changes: 14 additions & 14 deletions proto/redpanda/api/dataplane/v1alpha1/acl.proto
Original file line number Diff line number Diff line change
Expand Up @@ -107,17 +107,17 @@ message ListACLsResponse {

message CreateACLRequest {
option (buf.validate.message).cel = {
id: "resource_name_must_be_set_except_for_cluster_resource_type",
id: "resource_name_must_be_set_except_for_cluster_resource_type"
expression:
"this.resource_type == 4 && size(this.resource_name) == 0 ? ''"
": this.resource_type == 4 && this.resource_name != 'kafka-cluster' ? 'Field resource_name must be set to \"kafka-cluster\" or empty when using resource_type=CLUSTER'"
": this.resource_type != 4 && size(this.resource_name) == 0 ? 'Field resource_name must be set'"
": ''",
": ''"
};

ACL.ResourceType resource_type = 1 [
(buf.validate.field).enum = {
defined_only: true,
defined_only: true
not_in: [
0,
1
Expand All @@ -133,11 +133,11 @@ message CreateACLRequest {

ACL.ResourcePatternType resource_pattern_type = 3 [
(buf.validate.field).enum = {
defined_only: true,
defined_only: true
in: [
3,
4
], // Only allow: LITERAL or PREFIXED
]
},
(google.api.field_behavior) = REQUIRED,
(buf.validate.field).required = true
Expand All @@ -157,15 +157,15 @@ message CreateACLRequest {
(google.api.field_behavior) = REQUIRED,
(buf.validate.field).required = true,
(buf.validate.field).cel = {
id: "wildcard_or_ip_address",
message: "Field host must be either wildcard (*) or a valid IP address.",
id: "wildcard_or_ip_address"
message: "Field host must be either wildcard (*) or a valid IP address."
expression: "this == '*' ? true : this.isIp()"
}
];

ACL.Operation operation = 6 [
(buf.validate.field).enum = {
defined_only: true,
defined_only: true
not_in: [
0,
1
Expand All @@ -177,7 +177,7 @@ message CreateACLRequest {

ACL.PermissionType permission_type = 7 [
(buf.validate.field).enum = {
defined_only: true,
defined_only: true
in: [
2,
3
Expand All @@ -198,7 +198,7 @@ message DeleteACLsRequest {
(google.api.field_behavior) = REQUIRED,
(buf.validate.field).required = true,
(buf.validate.field).enum = {
defined_only: true,
defined_only: true
not_in: [0] /* Disallow: Unspecified */
}
];
Expand All @@ -212,7 +212,7 @@ message DeleteACLsRequest {
(google.api.field_behavior) = REQUIRED,
(buf.validate.field).required = true,
(buf.validate.field).enum = {
defined_only: true,
defined_only: true
not_in: [0] /* Disallow: Unspecified */
}
];
Expand All @@ -230,7 +230,7 @@ message DeleteACLsRequest {
(google.api.field_behavior) = REQUIRED,
(buf.validate.field).required = true,
(buf.validate.field).enum = {
defined_only: true,
defined_only: true
not_in: [0] /* Disallow: Unspecified */
}
];
Expand All @@ -240,7 +240,7 @@ message DeleteACLsRequest {
(google.api.field_behavior) = REQUIRED,
(buf.validate.field).required = true,
(buf.validate.field).enum = {
defined_only: true,
defined_only: true
not_in: [0] /* Disallow: Unspecified */
}
];
Expand Down Expand Up @@ -292,7 +292,7 @@ service ACLService {

rpc CreateACL(CreateACLRequest) returns (CreateACLResponse) {
option (google.api.http) = {
post: "/v1alpha1/acls",
post: "/v1alpha1/acls"
body: "*"
};
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
Expand Down
62 changes: 31 additions & 31 deletions proto/redpanda/api/dataplane/v1alpha1/kafka_connect.proto
Original file line number Diff line number Diff line change
Expand Up @@ -138,21 +138,21 @@ message ListConnectorsRequest {
(buf.validate.field).string.max_len = 128,
(buf.validate.field).string.pattern = "^[a-zA-Z0-9-_]+$",
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "Unique name of target connect cluster. For Redpanda Cloud, use `redpanda`.",
example: "\"redpanda\"",
description: "Unique name of target connect cluster. For Redpanda Cloud, use `redpanda`."
example: "\"redpanda\""
field_configuration: {path_param_name: "cluster_name"}
}
];
// Value of the next_page_token field returned by the previous response. If not provided, the system assumes the first page is requested.
string page_token = 2;
int32 page_size = 3 [
(buf.validate.field).int32 = {
gte: -1,
gte: -1
lte: 1000
},
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "Limit the paginated response to a number of items. Defaults to 100. Use -1 to disable pagination.",
minimum: -1,
description: "Limit the paginated response to a number of items. Defaults to 100. Use -1 to disable pagination."
minimum: -1
maximum: 1000
}
];
Expand All @@ -172,8 +172,8 @@ message RestartConnectorRequest {
(buf.validate.field).string.max_len = 128,
(buf.validate.field).string.pattern = "^[a-zA-Z0-9-_]+$",
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "Unique name of target connect cluster. For Redpanda Cloud, use `redpanda`.",
example: "\"redpanda\"",
description: "Unique name of target connect cluster. For Redpanda Cloud, use `redpanda`."
example: "\"redpanda\""
field_configuration: {path_param_name: "cluster_name"}
}
];
Expand All @@ -198,8 +198,8 @@ message DeleteConnectorRequest {
(buf.validate.field).string.max_len = 128,
(buf.validate.field).string.pattern = "^[a-zA-Z0-9-_]+$",
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "Unique name of target connect cluster. For Redpanda Cloud, use `redpanda`.",
example: "\"redpanda\"",
description: "Unique name of target connect cluster. For Redpanda Cloud, use `redpanda`."
example: "\"redpanda\""
field_configuration: {path_param_name: "cluster_name"}
}
];
Expand All @@ -221,8 +221,8 @@ message PauseConnectorRequest {
(buf.validate.field).string.max_len = 128,
(buf.validate.field).string.pattern = "^[a-zA-Z0-9-_]+$",
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "Unique name of target connect cluster. For Redpanda Cloud, use `redpanda`.",
example: "\"redpanda\"",
description: "Unique name of target connect cluster. For Redpanda Cloud, use `redpanda`."
example: "\"redpanda\""
field_configuration: {path_param_name: "cluster_name"}
}
];
Expand All @@ -245,8 +245,8 @@ message ResumeConnectorRequest {
(buf.validate.field).string.max_len = 128,
(buf.validate.field).string.pattern = "^[a-zA-Z0-9-_]+$",
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "Unique name of target connect cluster. For Redpanda Cloud, use `redpanda`.",
example: "\"redpanda\"",
description: "Unique name of target connect cluster. For Redpanda Cloud, use `redpanda`."
example: "\"redpanda\""
field_configuration: {path_param_name: "cluster_name"}
}
];
Expand All @@ -269,8 +269,8 @@ message StopConnectorRequest {
(buf.validate.field).string.max_len = 128,
(buf.validate.field).string.pattern = "^[a-zA-Z0-9-_]+$",
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "Unique name of target connect cluster. For Redpanda Cloud, use `redpanda`.",
example: "\"redpanda\"",
description: "Unique name of target connect cluster. For Redpanda Cloud, use `redpanda`."
example: "\"redpanda\""
field_configuration: {path_param_name: "cluster_name"}
}
];
Expand All @@ -293,8 +293,8 @@ message GetConnectorRequest {
(buf.validate.field).string.max_len = 128,
(buf.validate.field).string.pattern = "^[a-zA-Z0-9-_]+$",
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "Unique name of target connect cluster. For Redpanda Cloud, use `redpanda`.",
example: "\"redpanda\"",
description: "Unique name of target connect cluster. For Redpanda Cloud, use `redpanda`."
example: "\"redpanda\""
field_configuration: {path_param_name: "cluster_name"}
}
];
Expand All @@ -316,8 +316,8 @@ message CreateConnectorRequest {
(buf.validate.field).string.max_len = 128,
(buf.validate.field).string.pattern = "^[a-zA-Z0-9-_]+$",
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "Unique name of target connect cluster. For Redpanda Cloud, use `redpanda`.",
example: "\"redpanda\"",
description: "Unique name of target connect cluster. For Redpanda Cloud, use `redpanda`."
example: "\"redpanda\""
field_configuration: {path_param_name: "cluster_name"}
}
];
Expand Down Expand Up @@ -353,8 +353,8 @@ message GetConnectClusterRequest {
(buf.validate.field).string.max_len = 128,
(buf.validate.field).string.pattern = "^[a-zA-Z0-9-_]+$",
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "Unique name of target connect cluster. For Redpanda Cloud, use `redpanda`.",
example: "\"redpanda\"",
description: "Unique name of target connect cluster. For Redpanda Cloud, use `redpanda`."
example: "\"redpanda\""
field_configuration: {path_param_name: "cluster_name"}
}
];
Expand All @@ -378,8 +378,8 @@ message UpsertConnectorRequest {
(buf.validate.field).string.max_len = 128,
(buf.validate.field).string.pattern = "^[a-zA-Z0-9-_]+$",
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "Unique name of target connect cluster. For Redpanda Cloud, use `redpanda`.",
example: "\"redpanda\"",
description: "Unique name of target connect cluster. For Redpanda Cloud, use `redpanda`."
example: "\"redpanda\""
field_configuration: {path_param_name: "cluster_name"}
}
];
Expand Down Expand Up @@ -412,8 +412,8 @@ message GetConnectorConfigRequest {
(buf.validate.field).string.max_len = 128,
(buf.validate.field).string.pattern = "^[a-zA-Z0-9-_]+$",
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "Unique name of target connect cluster. For Redpanda Cloud, use `redpanda`.",
example: "\"redpanda\"",
description: "Unique name of target connect cluster. For Redpanda Cloud, use `redpanda`."
example: "\"redpanda\""
field_configuration: {path_param_name: "cluster_name"}
}
];
Expand All @@ -440,8 +440,8 @@ message GetConnectorStatusRequest {
(buf.validate.field).string.max_len = 128,
(buf.validate.field).string.pattern = "^[a-zA-Z0-9-_]+$",
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "Unique name of target connect cluster. For Redpanda Cloud, use `redpanda`.",
example: "\"redpanda\"",
description: "Unique name of target connect cluster. For Redpanda Cloud, use `redpanda`."
example: "\"redpanda\""
field_configuration: {path_param_name: "cluster_name"}
}
];
Expand All @@ -468,8 +468,8 @@ message ListConnectorTopicsRequest {
(buf.validate.field).string.max_len = 128,
(buf.validate.field).string.pattern = "^[a-zA-Z0-9-_]+$",
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "Unique name of target connect cluster. For Redpanda Cloud, use `redpanda`.",
example: "\"redpanda\"",
description: "Unique name of target connect cluster. For Redpanda Cloud, use `redpanda`."
example: "\"redpanda\""
field_configuration: {path_param_name: "cluster_name"}
}
];
Expand Down Expand Up @@ -497,8 +497,8 @@ message ResetConnectorTopicsRequest {
(buf.validate.field).string.max_len = 128,
(buf.validate.field).string.pattern = "^[a-zA-Z0-9-_]+$",
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
description: "Unique name of target connect cluster. For Redpanda Cloud, use `redpanda`.",
example: "\"redpanda\"",
description: "Unique name of target connect cluster. For Redpanda Cloud, use `redpanda`."
example: "\"redpanda\""
field_configuration: {path_param_name: "cluster_name"}
}
];
Expand Down
Loading

0 comments on commit da7fc26

Please sign in to comment.