You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Name of the permission or relation, required, must start with a letter and can include alphanumeric and underscore, max 64 bytes.
883
+
stringpermission=2 [
884
+
json_name = "permission",
885
+
(validate.rules).string = {
886
+
pattern: "^[a-zA-Z_]{1,64}$"
887
+
max_bytes: 64
888
+
ignore_empty: false
889
+
},
890
+
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "The action the user wants to perform on the resource"}
891
+
];
892
+
893
+
// Subject for which the permission needs to be checked, required.
894
+
Subjectsubject=3 [
895
+
json_name = "subject",
896
+
(validate.rules).message.required = true
897
+
];
898
+
}
899
+
// PermissionBulkCheckRequest is the request message for the BulkCheck method in the Permission service.
900
+
messagePermissionBulkCheckRequest {
901
+
// Identifier of the tenant, required, and must match the pattern "[a-zA-Z0-9-,]+", max 64 bytes.
902
+
stringtenant_id=1 [
903
+
json_name = "tenant_id",
904
+
(validate.rules).string = {
905
+
pattern: "^([a-zA-Z0-9_\\-@\\.:+]{1,128}|\\*)$"
906
+
max_bytes: 128
907
+
ignore_empty: false
908
+
},
909
+
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "Identifier of the tenant, if you are not using multi-tenancy (have only one tenant) use pre-inserted tenant <code>t1</code> for this field. Required, and must match the pattern \\“[a-zA-Z0-9-,]+\\“, max 64 bytes."}
910
+
];
911
+
912
+
// Metadata associated with this request, required.
913
+
PermissionCheckRequestMetadatametadata=2 [
914
+
json_name = "metadata",
915
+
(validate.rules).message.required = true
916
+
];
917
+
918
+
// List of permission check requests, maximum 100 items.
919
+
repeatedPermissionBulkCheckRequestItemitems=3 [
920
+
json_name = "items",
921
+
(validate.rules).repeated = {
922
+
min_items: 1
923
+
max_items: 100
924
+
}
925
+
];
926
+
927
+
// Context associated with this request.
928
+
Contextcontext=4 [
929
+
json_name = "context",
930
+
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "Contextual data that can be dynamically added to permission check requests. See details on [Contextual Data](../../operations/contextual-tuples)"}
931
+
];
932
+
933
+
// Additional arguments associated with this request.
0 commit comments