diff --git a/src/relations/v0/check_pb2.py b/src/relations/v0/check_pb2.py index 9313431..c9e5152 100644 --- a/src/relations/v0/check_pb2.py +++ b/src/relations/v0/check_pb2.py @@ -16,14 +16,14 @@ from relations.v0 import common_pb2 as relations_dot_v0_dot_common__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x18relations/v0/check.proto\x12\x13kessel.relations.v0\x1a\x1cgoogle/api/annotations.proto\x1a\x19relations/v0/common.proto\"\x90\x01\n\x0c\x43heckRequest\x12\x36\n\x08resource\x18\x01 \x01(\x0b\x32$.kessel.relations.v0.ObjectReference\x12\x10\n\x08relation\x18\x02 \x01(\t\x12\x36\n\x07subject\x18\x03 \x01(\x0b\x32%.kessel.relations.v0.SubjectReference\"\x95\x01\n\rCheckResponse\x12;\n\x07\x61llowed\x18\x01 \x01(\x0e\x32*.kessel.relations.v0.CheckResponse.Allowed\"G\n\x07\x41llowed\x12\x17\n\x13\x41LLOWED_UNSPECIFIED\x10\x00\x12\x10\n\x0c\x41LLOWED_TRUE\x10\x01\x12\x11\n\rALLOWED_FALSE\x10\x02\x32z\n\x12KesselCheckService\x12\x64\n\x05\x43heck\x12!.kessel.relations.v0.CheckRequest\x1a\".kessel.relations.v0.CheckResponse\"\x14\x82\xd3\xe4\x93\x02\x0e\"\t/v0/check:\x01*BG\n#org.project_kessel.api.relations.v0P\x01Z\x1e\x63iam-rebac/api/relations/v0;v0b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x18relations/v0/check.proto\x12\x13kessel.relations.v0\x1a\x1cgoogle/api/annotations.proto\x1a\x19relations/v0/common.proto\"\x90\x01\n\x0c\x43heckRequest\x12\x36\n\x08resource\x18\x01 \x01(\x0b\x32$.kessel.relations.v0.ObjectReference\x12\x10\n\x08relation\x18\x02 \x01(\t\x12\x36\n\x07subject\x18\x03 \x01(\x0b\x32%.kessel.relations.v0.SubjectReference\"\x95\x01\n\rCheckResponse\x12;\n\x07\x61llowed\x18\x01 \x01(\x0e\x32*.kessel.relations.v0.CheckResponse.Allowed\"G\n\x07\x41llowed\x12\x17\n\x13\x41LLOWED_UNSPECIFIED\x10\x00\x12\x10\n\x0c\x41LLOWED_TRUE\x10\x01\x12\x11\n\rALLOWED_FALSE\x10\x02\x32z\n\x12KesselCheckService\x12\x64\n\x05\x43heck\x12!.kessel.relations.v0.CheckRequest\x1a\".kessel.relations.v0.CheckResponse\"\x14\x82\xd3\xe4\x93\x02\x0e\"\t/v0/check:\x01*Ba\n#org.project_kessel.api.relations.v0P\x01Z8github.com/project-kessel/relations-api/api/relations/v0b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'relations.v0.check_pb2', _globals) if not _descriptor._USE_C_DESCRIPTORS: _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n#org.project_kessel.api.relations.v0P\001Z\036ciam-rebac/api/relations/v0;v0' + _globals['DESCRIPTOR']._serialized_options = b'\n#org.project_kessel.api.relations.v0P\001Z8github.com/project-kessel/relations-api/api/relations/v0' _globals['_KESSELCHECKSERVICE'].methods_by_name['Check']._loaded_options = None _globals['_KESSELCHECKSERVICE'].methods_by_name['Check']._serialized_options = b'\202\323\344\223\002\016\"\t/v0/check:\001*' _globals['_CHECKREQUEST']._serialized_start=107 diff --git a/src/relations/v0/common_pb2.py b/src/relations/v0/common_pb2.py index 6dfff05..0f77586 100644 --- a/src/relations/v0/common_pb2.py +++ b/src/relations/v0/common_pb2.py @@ -14,14 +14,14 @@ -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19relations/v0/common.proto\x12\x13kessel.relations.v0\"\x90\x01\n\x0cRelationship\x12\x36\n\x08resource\x18\x01 \x01(\x0b\x32$.kessel.relations.v0.ObjectReference\x12\x10\n\x08relation\x18\x02 \x01(\t\x12\x36\n\x07subject\x18\x03 \x01(\x0b\x32%.kessel.relations.v0.SubjectReference\"m\n\x10SubjectReference\x12\x15\n\x08relation\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x35\n\x07subject\x18\x02 \x01(\x0b\x32$.kessel.relations.v0.ObjectReferenceB\x0b\n\t_relation\"Z\n\x11RequestPagination\x12\r\n\x05limit\x18\x01 \x01(\r\x12\x1f\n\x12\x63ontinuation_token\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x15\n\x13_continuation_token\"0\n\x12ResponsePagination\x12\x1a\n\x12\x63ontinuation_token\x18\x01 \x01(\t\"L\n\x0fObjectReference\x12-\n\x04type\x18\x01 \x01(\x0b\x32\x1f.kessel.relations.v0.ObjectType\x12\n\n\x02id\x18\x02 \x01(\t\"-\n\nObjectType\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\tBG\n#org.project_kessel.api.relations.v0P\x01Z\x1e\x63iam-rebac/api/relations/v0;v0b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19relations/v0/common.proto\x12\x13kessel.relations.v0\"\x90\x01\n\x0cRelationship\x12\x36\n\x08resource\x18\x01 \x01(\x0b\x32$.kessel.relations.v0.ObjectReference\x12\x10\n\x08relation\x18\x02 \x01(\t\x12\x36\n\x07subject\x18\x03 \x01(\x0b\x32%.kessel.relations.v0.SubjectReference\"m\n\x10SubjectReference\x12\x15\n\x08relation\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x35\n\x07subject\x18\x02 \x01(\x0b\x32$.kessel.relations.v0.ObjectReferenceB\x0b\n\t_relation\"Z\n\x11RequestPagination\x12\r\n\x05limit\x18\x01 \x01(\r\x12\x1f\n\x12\x63ontinuation_token\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x15\n\x13_continuation_token\"0\n\x12ResponsePagination\x12\x1a\n\x12\x63ontinuation_token\x18\x01 \x01(\t\"L\n\x0fObjectReference\x12-\n\x04type\x18\x01 \x01(\x0b\x32\x1f.kessel.relations.v0.ObjectType\x12\n\n\x02id\x18\x02 \x01(\t\"-\n\nObjectType\x12\x11\n\tnamespace\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\tBa\n#org.project_kessel.api.relations.v0P\x01Z8github.com/project-kessel/relations-api/api/relations/v0b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'relations.v0.common_pb2', _globals) if not _descriptor._USE_C_DESCRIPTORS: _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n#org.project_kessel.api.relations.v0P\001Z\036ciam-rebac/api/relations/v0;v0' + _globals['DESCRIPTOR']._serialized_options = b'\n#org.project_kessel.api.relations.v0P\001Z8github.com/project-kessel/relations-api/api/relations/v0' _globals['_RELATIONSHIP']._serialized_start=51 _globals['_RELATIONSHIP']._serialized_end=195 _globals['_SUBJECTREFERENCE']._serialized_start=197 diff --git a/src/relations/v0/lookup_pb2.py b/src/relations/v0/lookup_pb2.py index c6218c4..e5716e8 100644 --- a/src/relations/v0/lookup_pb2.py +++ b/src/relations/v0/lookup_pb2.py @@ -16,14 +16,14 @@ from relations.v0 import common_pb2 as relations_dot_v0_dot_common__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19relations/v0/lookup.proto\x12\x13kessel.relations.v0\x1a\x1cgoogle/api/annotations.proto\x1a\x19relations/v0/common.proto\"\x9c\x02\n\x15LookupSubjectsRequest\x12\x36\n\x08resource\x18\x01 \x01(\x0b\x32$.kessel.relations.v0.ObjectReference\x12\x10\n\x08relation\x18\x02 \x01(\t\x12\x35\n\x0csubject_type\x18\x03 \x01(\x0b\x32\x1f.kessel.relations.v0.ObjectType\x12\x1d\n\x10subject_relation\x18\x04 \x01(\tH\x00\x88\x01\x01\x12?\n\npagination\x18\x05 \x01(\x0b\x32&.kessel.relations.v0.RequestPaginationH\x01\x88\x01\x01\x42\x13\n\x11_subject_relationB\r\n\x0b_pagination\"\x8d\x01\n\x16LookupSubjectsResponse\x12\x36\n\x07subject\x18\x01 \x01(\x0b\x32%.kessel.relations.v0.SubjectReference\x12;\n\npagination\x18\x02 \x01(\x0b\x32\'.kessel.relations.v0.ResponsePagination2\x99\x01\n\x13KesselLookupService\x12\x81\x01\n\x0eLookupSubjects\x12*.kessel.relations.v0.LookupSubjectsRequest\x1a+.kessel.relations.v0.LookupSubjectsResponse\"\x14\x82\xd3\xe4\x93\x02\x0e\x12\x0c/v0/subjects0\x01\x42G\n#org.project_kessel.api.relations.v0P\x01Z\x1e\x63iam-rebac/api/relations/v0;v0b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x19relations/v0/lookup.proto\x12\x13kessel.relations.v0\x1a\x1cgoogle/api/annotations.proto\x1a\x19relations/v0/common.proto\"\x9c\x02\n\x15LookupSubjectsRequest\x12\x36\n\x08resource\x18\x01 \x01(\x0b\x32$.kessel.relations.v0.ObjectReference\x12\x10\n\x08relation\x18\x02 \x01(\t\x12\x35\n\x0csubject_type\x18\x03 \x01(\x0b\x32\x1f.kessel.relations.v0.ObjectType\x12\x1d\n\x10subject_relation\x18\x04 \x01(\tH\x00\x88\x01\x01\x12?\n\npagination\x18\x05 \x01(\x0b\x32&.kessel.relations.v0.RequestPaginationH\x01\x88\x01\x01\x42\x13\n\x11_subject_relationB\r\n\x0b_pagination\"\x8d\x01\n\x16LookupSubjectsResponse\x12\x36\n\x07subject\x18\x01 \x01(\x0b\x32%.kessel.relations.v0.SubjectReference\x12;\n\npagination\x18\x02 \x01(\x0b\x32\'.kessel.relations.v0.ResponsePagination2\x99\x01\n\x13KesselLookupService\x12\x81\x01\n\x0eLookupSubjects\x12*.kessel.relations.v0.LookupSubjectsRequest\x1a+.kessel.relations.v0.LookupSubjectsResponse\"\x14\x82\xd3\xe4\x93\x02\x0e\x12\x0c/v0/subjects0\x01\x42\x61\n#org.project_kessel.api.relations.v0P\x01Z8github.com/project-kessel/relations-api/api/relations/v0b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'relations.v0.lookup_pb2', _globals) if not _descriptor._USE_C_DESCRIPTORS: _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n#org.project_kessel.api.relations.v0P\001Z\036ciam-rebac/api/relations/v0;v0' + _globals['DESCRIPTOR']._serialized_options = b'\n#org.project_kessel.api.relations.v0P\001Z8github.com/project-kessel/relations-api/api/relations/v0' _globals['_KESSELLOOKUPSERVICE'].methods_by_name['LookupSubjects']._loaded_options = None _globals['_KESSELLOOKUPSERVICE'].methods_by_name['LookupSubjects']._serialized_options = b'\202\323\344\223\002\016\022\014/v0/subjects' _globals['_LOOKUPSUBJECTSREQUEST']._serialized_start=108 diff --git a/src/relations/v0/relation_tuples_pb2.py b/src/relations/v0/relation_tuples_pb2.py index fb5b80b..cc4072f 100644 --- a/src/relations/v0/relation_tuples_pb2.py +++ b/src/relations/v0/relation_tuples_pb2.py @@ -16,14 +16,14 @@ from relations.v0 import common_pb2 as relations_dot_v0_dot_common__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"relations/v0/relation_tuples.proto\x12\x13kessel.relations.v0\x1a\x1cgoogle/api/annotations.proto\x1a\x19relations/v0/common.proto\"X\n\x13\x43reateTuplesRequest\x12\x0e\n\x06upsert\x18\x01 \x01(\x08\x12\x31\n\x06tuples\x18\x02 \x03(\x0b\x32!.kessel.relations.v0.Relationship\"\x16\n\x14\x43reateTuplesResponse\"\x9d\x01\n\x11ReadTuplesRequest\x12\x38\n\x06\x66ilter\x18\x01 \x01(\x0b\x32(.kessel.relations.v0.RelationTupleFilter\x12?\n\npagination\x18\x02 \x01(\x0b\x32&.kessel.relations.v0.RequestPaginationH\x00\x88\x01\x01\x42\r\n\x0b_pagination\"\x83\x01\n\x12ReadTuplesResponse\x12\x30\n\x05tuple\x18\x01 \x01(\x0b\x32!.kessel.relations.v0.Relationship\x12;\n\npagination\x18\x02 \x01(\x0b\x32\'.kessel.relations.v0.ResponsePagination\"O\n\x13\x44\x65leteTuplesRequest\x12\x38\n\x06\x66ilter\x18\x01 \x01(\x0b\x32(.kessel.relations.v0.RelationTupleFilter\"\x16\n\x14\x44\x65leteTuplesResponse\"\x9d\x02\n\x13RelationTupleFilter\x12\x1f\n\x12resource_namespace\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x1a\n\rresource_type\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x18\n\x0bresource_id\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x15\n\x08relation\x18\x04 \x01(\tH\x03\x88\x01\x01\x12?\n\x0esubject_filter\x18\x05 \x01(\x0b\x32\".kessel.relations.v0.SubjectFilterH\x04\x88\x01\x01\x42\x15\n\x13_resource_namespaceB\x10\n\x0e_resource_typeB\x0e\n\x0c_resource_idB\x0b\n\t_relationB\x11\n\x0f_subject_filter\"\xbd\x01\n\rSubjectFilter\x12\x1e\n\x11subject_namespace\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x19\n\x0csubject_type\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x17\n\nsubject_id\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x15\n\x08relation\x18\x04 \x01(\tH\x03\x88\x01\x01\x42\x14\n\x12_subject_namespaceB\x0f\n\r_subject_typeB\r\n\x0b_subject_idB\x0b\n\t_relation2\xfe\x02\n\x12KesselTupleService\x12z\n\x0c\x43reateTuples\x12(.kessel.relations.v0.CreateTuplesRequest\x1a).kessel.relations.v0.CreateTuplesResponse\"\x15\x82\xd3\xe4\x93\x02\x0f\"\n/v0/tuples:\x01*\x12s\n\nReadTuples\x12&.kessel.relations.v0.ReadTuplesRequest\x1a\'.kessel.relations.v0.ReadTuplesResponse\"\x12\x82\xd3\xe4\x93\x02\x0c\x12\n/v0/tuples0\x01\x12w\n\x0c\x44\x65leteTuples\x12(.kessel.relations.v0.DeleteTuplesRequest\x1a).kessel.relations.v0.DeleteTuplesResponse\"\x12\x82\xd3\xe4\x93\x02\x0c*\n/v0/tuplesBG\n#org.project_kessel.api.relations.v0P\x01Z\x1e\x63iam-rebac/api/relations/v0;v0b\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"relations/v0/relation_tuples.proto\x12\x13kessel.relations.v0\x1a\x1cgoogle/api/annotations.proto\x1a\x19relations/v0/common.proto\"X\n\x13\x43reateTuplesRequest\x12\x0e\n\x06upsert\x18\x01 \x01(\x08\x12\x31\n\x06tuples\x18\x02 \x03(\x0b\x32!.kessel.relations.v0.Relationship\"\x16\n\x14\x43reateTuplesResponse\"\x9d\x01\n\x11ReadTuplesRequest\x12\x38\n\x06\x66ilter\x18\x01 \x01(\x0b\x32(.kessel.relations.v0.RelationTupleFilter\x12?\n\npagination\x18\x02 \x01(\x0b\x32&.kessel.relations.v0.RequestPaginationH\x00\x88\x01\x01\x42\r\n\x0b_pagination\"\x83\x01\n\x12ReadTuplesResponse\x12\x30\n\x05tuple\x18\x01 \x01(\x0b\x32!.kessel.relations.v0.Relationship\x12;\n\npagination\x18\x02 \x01(\x0b\x32\'.kessel.relations.v0.ResponsePagination\"O\n\x13\x44\x65leteTuplesRequest\x12\x38\n\x06\x66ilter\x18\x01 \x01(\x0b\x32(.kessel.relations.v0.RelationTupleFilter\"\x16\n\x14\x44\x65leteTuplesResponse\"\x9d\x02\n\x13RelationTupleFilter\x12\x1f\n\x12resource_namespace\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x1a\n\rresource_type\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x18\n\x0bresource_id\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x15\n\x08relation\x18\x04 \x01(\tH\x03\x88\x01\x01\x12?\n\x0esubject_filter\x18\x05 \x01(\x0b\x32\".kessel.relations.v0.SubjectFilterH\x04\x88\x01\x01\x42\x15\n\x13_resource_namespaceB\x10\n\x0e_resource_typeB\x0e\n\x0c_resource_idB\x0b\n\t_relationB\x11\n\x0f_subject_filter\"\xbd\x01\n\rSubjectFilter\x12\x1e\n\x11subject_namespace\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x19\n\x0csubject_type\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x17\n\nsubject_id\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x15\n\x08relation\x18\x04 \x01(\tH\x03\x88\x01\x01\x42\x14\n\x12_subject_namespaceB\x0f\n\r_subject_typeB\r\n\x0b_subject_idB\x0b\n\t_relation2\xfe\x02\n\x12KesselTupleService\x12z\n\x0c\x43reateTuples\x12(.kessel.relations.v0.CreateTuplesRequest\x1a).kessel.relations.v0.CreateTuplesResponse\"\x15\x82\xd3\xe4\x93\x02\x0f\"\n/v0/tuples:\x01*\x12s\n\nReadTuples\x12&.kessel.relations.v0.ReadTuplesRequest\x1a\'.kessel.relations.v0.ReadTuplesResponse\"\x12\x82\xd3\xe4\x93\x02\x0c\x12\n/v0/tuples0\x01\x12w\n\x0c\x44\x65leteTuples\x12(.kessel.relations.v0.DeleteTuplesRequest\x1a).kessel.relations.v0.DeleteTuplesResponse\"\x12\x82\xd3\xe4\x93\x02\x0c*\n/v0/tuplesBa\n#org.project_kessel.api.relations.v0P\x01Z8github.com/project-kessel/relations-api/api/relations/v0b\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'relations.v0.relation_tuples_pb2', _globals) if not _descriptor._USE_C_DESCRIPTORS: _globals['DESCRIPTOR']._loaded_options = None - _globals['DESCRIPTOR']._serialized_options = b'\n#org.project_kessel.api.relations.v0P\001Z\036ciam-rebac/api/relations/v0;v0' + _globals['DESCRIPTOR']._serialized_options = b'\n#org.project_kessel.api.relations.v0P\001Z8github.com/project-kessel/relations-api/api/relations/v0' _globals['_KESSELTUPLESERVICE'].methods_by_name['CreateTuples']._loaded_options = None _globals['_KESSELTUPLESERVICE'].methods_by_name['CreateTuples']._serialized_options = b'\202\323\344\223\002\017\"\n/v0/tuples:\001*' _globals['_KESSELTUPLESERVICE'].methods_by_name['ReadTuples']._loaded_options = None