-
aserto/directory/reader/v3/reader.proto
-
aserto/directory/reader/v4/reader.proto
-
aserto/directory/writer/v4/writer.proto
| Field | Type | Label | Description |
|---|---|---|---|
| type | string | object type identifier | |
| id | string | object instance identifier | |
| display_name | string | display name object (optional) | |
| properties | google.protobuf.Struct | property bag (optional) | |
| created_at | google.protobuf.Timestamp | created at timestamp (UTC) | |
| updated_at | google.protobuf.Timestamp | last updated timestamp (UTC) | |
| etag | string | object instance etag (optional) |
Object identifier
| Field | Type | Label | Description |
|---|---|---|---|
| object_type | string | object type identifier | |
| object_id | string | object instance identifier |
Pagination request
| Field | Type | Label | Description |
|---|---|---|---|
| size | int32 | requested page size, valid value between 1-100 rows (optional, default 100) | |
| token | string | pagination start token (optional, default "") |
Pagination response
| Field | Type | Label | Description |
|---|---|---|---|
| next_token | string | next page token, when empty there are no more pages to fetch |
| Field | Type | Label | Description |
|---|---|---|---|
| object_type | string | object type identifier | |
| object_id | string | object instance identifier | |
| relation | string | object relation name | |
| subject_type | string | subject type identifier | |
| subject_id | string | subject instance identifier | |
| subject_relation | string | subject relation name (optional) | |
| created_at | google.protobuf.Timestamp | created at timestamp (UTC) | |
| updated_at | google.protobuf.Timestamp | last updated timestamp (UTC) | |
| etag | string | object instance etag (optional) |
Relation identifier
| Field | Type | Label | Description |
|---|---|---|---|
| object_type | string | object type identifier | |
| object_id | string | object instance identifier | |
| relation | string | object relation name | |
| subject_type | string | subject type identifier | |
| subject_id | string | subject instance identifier | |
| subject_relation | string | subject relation name (optional) |
Manifest
| Field | Type | Label | Description |
|---|---|---|---|
| body | bytes | manifest payload | |
| updated_at | google.protobuf.Timestamp | last updated timestamp (UTC) | |
| etag | string | manifest instance etag (optional) |
Model
| Field | Type | Label | Description |
|---|---|---|---|
| model | google.protobuf.Struct | model representation of manifest | |
| updated_at | google.protobuf.Timestamp | last updated timestamp (UTC) | |
| etag | string | manifest instance etag |
Object
| Field | Type | Label | Description |
|---|---|---|---|
| object_type | string | object type identifier | |
| object_id | string | object instance identifier | |
| properties | google.protobuf.Struct | property bag (optional) | |
| updated_at | google.protobuf.Timestamp | last updated timestamp (UTC) | |
| etag | string | object instance etag (optional) |
Object identifier
| Field | Type | Label | Description |
|---|---|---|---|
| object_type | string | object type identifier | |
| object_id | string | object instance identifier |
Pagination request
| Field | Type | Label | Description |
|---|---|---|---|
| size | int32 | requested page size, valid value between 1-1000 rows (optional, default 100) | |
| token | string | pagination start token (optional default "") |
Pagination response
| Field | Type | Label | Description |
|---|---|---|---|
| next_token | string | next page token, when empty there are no more pages to fetch |
Relation
| Field | Type | Label | Description |
|---|---|---|---|
| object_type | string | object type identifier | |
| object_id | string | object instance identifier | |
| relation | string | object relation name | |
| subject_type | string | subject type identifier | |
| subject_id | string | subject instance identifier | |
| subject_relation | string | subject relation name (optional) | |
| updated_at | google.protobuf.Timestamp | last updated timestamp (UTC) | |
| etag | string | object instance etag (optional) |
Relation identifier
| Field | Type | Label | Description |
|---|---|---|---|
| object_type | string | object type identifier | |
| object_id | string | object instance identifier | |
| relation | string | object relation name | |
| subject_type | string | subject type identifier | |
| subject_id | string | subject instance identifier | |
| subject_relation | string | subject relation name (optional) |
| Field | Type | Label | Description |
|---|---|---|---|
| options | uint32 | data export options mask | |
| start_from | google.protobuf.Timestamp | start export from timestamp (UTC) |
| Field | Type | Label | Description |
|---|---|---|---|
| object | aserto.directory.common.v3.Object | object instance (data) | |
| relation | aserto.directory.common.v3.Relation | relation instance (data) | |
| stats | google.protobuf.Struct | object and/or relation stats (no data) |
| Name | Number | Description |
|---|---|---|
| OPTION_UNKNOWN | 0 | nothing selected (default initialization value) |
| OPTION_DATA_OBJECTS | 8 | object instances |
| OPTION_DATA_RELATIONS | 16 | relation instances |
| OPTION_DATA | 24 | all data = OPTION_DATA_OBJECTS |
| OPTION_STATS | 64 | stats |
| Method Name | Request Type | Response Type | Description |
|---|---|---|---|
| Export | ExportRequest | ExportResponse stream | export objects and relations as a stream |
| Field | Type | Label | Description |
|---|---|---|---|
| recv | uint64 | number of messages received | |
| set | uint64 | number of messages with OPCODE_SET | |
| delete | uint64 | number of messages with OPCODE_DELETE | |
| error | uint64 | number of messages resulting in error | |
| type | string | counter of type (object |
| Field | Type | Label | Description |
|---|---|---|---|
| op_code | Opcode | operation Opcode enum value | |
| object | aserto.directory.common.v3.Object | object import message | |
| relation | aserto.directory.common.v3.Relation | relation import message |
| Field | Type | Label | Description |
|---|---|---|---|
| object | ImportCounter | Deprecated. object import counter | |
| relation | ImportCounter | Deprecated. relation import counter | |
| status | ImportStatus | import status message | |
| counter | ImportCounter | import counter per type |
| Field | Type | Label | Description |
|---|---|---|---|
| code | uint32 | gRPC status code (google.golang.org/grpc/codes) | |
| msg | string | gRPC status message (google.golang.org/grpc/status) | |
| req | ImportRequest | req contains the original import request message |
| Name | Number | Description |
|---|---|---|
| OPCODE_UNKNOWN | 0 | |
| OPCODE_SET | 1 | |
| OPCODE_DELETE | 2 | |
| OPCODE_DELETE_WITH_RELATIONS | 3 |
| Method Name | Request Type | Response Type | Description |
|---|---|---|---|
| Import | ImportRequest stream | ImportResponse stream | import stream of objects and relations |
| Field | Type | Label | Description |
|---|---|---|---|
| data | bytes | manifest content |
| Field | Type | Label | Description |
|---|---|---|---|
| empty | google.protobuf.Empty | empty request |
| Field | Type | Label | Description |
|---|---|---|---|
| result | google.protobuf.Empty | empty result |
| Field | Type | Label | Description |
|---|---|---|---|
| empty | google.protobuf.Empty | empty request |
| Field | Type | Label | Description |
|---|---|---|---|
| metadata | Metadata | Manifest metadata | |
| body | Body | Manifest content | |
| model | google.protobuf.Struct | Model |
| Field | Type | Label | Description |
|---|---|---|---|
| updated_at | google.protobuf.Timestamp | last updated timestamp (UTC) | |
| etag | string | object instance etag (optional) |
| Field | Type | Label | Description |
|---|---|---|---|
| body | Body | Manifest content |
| Field | Type | Label | Description |
|---|---|---|---|
| result | google.protobuf.Empty | empty result |
| Method Name | Request Type | Response Type | Description |
|---|---|---|---|
| GetManifest | GetManifestRequest | GetManifestResponse stream | get manifest instance |
| SetManifest | SetManifestRequest stream | SetManifestResponse | set manifest instance |
| DeleteManifest | DeleteManifestRequest | DeleteManifestResponse | delete manifest instance |
| Field | Type | Label | Description |
|---|---|---|---|
| object_type | string | object type identifier | |
| object_id | string | object instance identifier | |
| permission | string | permission name | |
| subject_type | string | subject type identifier | |
| subject_id | string | subject instance identifier | |
| trace | bool | collect trace information (optional) |
| Field | Type | Label | Description |
|---|---|---|---|
| check | bool | check result | |
| trace | string | repeated | trace information |
| Field | Type | Label | Description |
|---|---|---|---|
| object_type | string | object type identifier | |
| object_id | string | object instance identifier | |
| relation | string | relation name | |
| subject_type | string | subject type identifier | |
| subject_id | string | subject instance identifier | |
| trace | bool | collect trace information (optional) |
| Field | Type | Label | Description |
|---|---|---|---|
| check | bool | check result | |
| trace | string | repeated | trace information |
| Field | Type | Label | Description |
|---|---|---|---|
| object_type | string | object type identifier | |
| object_id | string | object instance identifier | |
| relation | string | relation name | |
| subject_type | string | subject type identifier | |
| subject_id | string | subject instance identifier | |
| trace | bool | collect trace information (optional) |
| Field | Type | Label | Description |
|---|---|---|---|
| check | bool | check result | |
| trace | string | repeated | trace information |
| context | google.protobuf.Struct | context |
| Field | Type | Label | Description |
|---|---|---|---|
| default | CheckRequest | ||
| checks | CheckRequest | repeated |
| Field | Type | Label | Description |
|---|---|---|---|
| checks | CheckResponse | repeated |
| Field | Type | Label | Description |
|---|---|---|---|
| object_type | string | object type identifier | |
| object_id | string | object instance identifier (optional) | |
| relation | string | relation name | |
| subject_type | string | subject type identifier | |
| subject_id | string | subject instance identifier (optional) | |
| subject_relation | string | subject relation name (optional) | |
| explain | bool | return graph paths for each result (optional) | |
| trace | bool | collect trace information (optional) |
| Field | Type | Label | Description |
|---|---|---|---|
| results | aserto.directory.common.v3.ObjectIdentifier | repeated | matching object identifiers |
| explanation | google.protobuf.Struct | explanation of results | |
| trace | string | repeated | trace information |
| Field | Type | Label | Description |
|---|---|---|---|
| param | aserto.directory.common.v3.ObjectIdentifier | repeated | object identifier list |
| Field | Type | Label | Description |
|---|---|---|---|
| results | aserto.directory.common.v3.Object | repeated | array of object instances |
| Field | Type | Label | Description |
|---|---|---|---|
| object_type | string | object type identifier | |
| object_id | string | object instance identifier | |
| with_relations | bool | materialize the object relations objects (optional) |
pagination request (optional) aserto.directory.common.v3.PaginationRequest page = 9 [(google.api.field_behavior) = OPTIONAL]; |
| Field | Type | Label | Description |
|---|---|---|---|
| result | aserto.directory.common.v3.Object | object instance | |
| relations | aserto.directory.common.v3.Relation | repeated | object relations |
pagination response aserto.directory.common.v3.PaginationResponse page = 9; |
| Field | Type | Label | Description |
|---|---|---|---|
| object_type | string | object type identifier (optional) | |
| page | aserto.directory.common.v3.PaginationRequest | pagination request (optional) |
| Field | Type | Label | Description |
|---|---|---|---|
| results | aserto.directory.common.v3.Object | repeated | array of object instances |
| page | aserto.directory.common.v3.PaginationResponse | pagination response |
| Field | Type | Label | Description |
|---|---|---|---|
| object_type | string | object type identifier | |
| object_id | string | object instance identifier | |
| relation | string | relation name | |
| subject_type | string | subject type identifier | |
| subject_id | string | subject instance identifier | |
| subject_relation | string | subject relation name (optional) | |
| with_objects | bool | materialize relation objects (optional) |
| Field | Type | Label | Description |
|---|---|---|---|
| result | aserto.directory.common.v3.Relation | relation instance | |
| objects | GetRelationResponse.ObjectsEntry | repeated | map of materialized relation objects |
| Field | Type | Label | Description |
|---|---|---|---|
| key | string | ||
| value | aserto.directory.common.v3.Object |
| Field | Type | Label | Description |
|---|---|---|---|
| object_type | string | object type identifier (optional) | |
| object_id | string | object instance identifier (optional) | |
| relation | string | relation name (optional) | |
| subject_type | string | subject type identifier (optional) | |
| subject_id | string | subject instance identifier (optional) | |
| subject_relation | string | subject relation name (optional) | |
| with_objects | bool | materialize relation objects (optional) | |
| with_empty_subject_relation | bool | only return relations that do not have a subject relation (optional) | |
| page | aserto.directory.common.v3.PaginationRequest | pagination request (optional) |
| Field | Type | Label | Description |
|---|---|---|---|
| results | aserto.directory.common.v3.Relation | repeated | array of relation instances |
| objects | GetRelationsResponse.ObjectsEntry | repeated | map of materialized relation objects |
| page | aserto.directory.common.v3.PaginationResponse | pagination response |
| Field | Type | Label | Description |
|---|---|---|---|
| key | string | ||
| value | aserto.directory.common.v3.Object |
| Method Name | Request Type | Response Type | Description |
|---|---|---|---|
| GetObject | GetObjectRequest | GetObjectResponse | get object |
| GetObjectMany | GetObjectManyRequest | GetObjectManyResponse | get multiple objects |
| GetObjects | GetObjectsRequest | GetObjectsResponse | list objects |
| GetRelation | GetRelationRequest | GetRelationResponse | get relation |
| GetRelations | GetRelationsRequest | GetRelationsResponse | list relations |
| Check | CheckRequest | CheckResponse | check if subject has relation or permission with object |
| Checks | ChecksRequest | ChecksResponse | checks validates a set of check requests in a single roundtrip |
| CheckPermission | CheckPermissionRequest | CheckPermissionResponse | check permission (deprecated, use the check method) Deprecated: use directory.reader.v3.Check() |
| CheckRelation | CheckRelationRequest | CheckRelationResponse | check relation (deprecated, use the check method) Deprecated: use directory.reader.v3.Check() |
| GetGraph | GetGraphRequest | GetGraphResponse | get object relationship graph |
| Field | Type | Label | Description |
|---|---|---|---|
| object_type | string | object type identifier | |
| object_id | string | object instance identifier | |
| relation | string | relation name | |
| subject_type | string | subject type identifier | |
| subject_id | string | subject instance identifier | |
| trace | bool | collect trace information (optional) |
| Field | Type | Label | Description |
|---|---|---|---|
| check | bool | check result | |
| trace | string | repeated | trace information |
| context | google.protobuf.Struct | context |
| Field | Type | Label | Description |
|---|---|---|---|
| default | CheckRequest | default values | |
| checks | CheckRequest | repeated | array of check requests |
| Field | Type | Label | Description |
|---|---|---|---|
| checks | CheckResponse | repeated | array of check responses |
| Field | Type | Label | Description |
|---|---|---|---|
| options | uint32 | data export options mask | |
| start_from | google.protobuf.Timestamp | start export from timestamp (UTC) |
| Field | Type | Label | Description |
|---|---|---|---|
| manifest | aserto.directory.common.v4.Manifest | manifest | |
| model | aserto.directory.common.v4.Model | model | |
| object | aserto.directory.common.v4.Object | object | |
| relation | aserto.directory.common.v4.Relation | relation | |
| stats | google.protobuf.Struct | stats |
| Field | Type | Label | Description |
|---|---|---|---|
| object_type | string | object type identifier | |
| object_id | string | object instance identifier (optional) | |
| relation | string | relation name | |
| subject_type | string | subject type identifier | |
| subject_id | string | subject instance identifier (optional) | |
| subject_relation | string | subject relation name (optional) | |
| explain | bool | return graph paths for each result (optional) | |
| trace | bool | collect trace information (optional) |
| Field | Type | Label | Description |
|---|---|---|---|
| results | aserto.directory.common.v4.ObjectIdentifier | repeated | matching object identifiers |
| explanation | google.protobuf.Struct | explanation of results | |
| trace | string | repeated | trace information |
| Field | Type | Label | Description |
|---|---|---|---|
| empty | google.protobuf.Empty | empty request |
| Field | Type | Label | Description |
|---|---|---|---|
| result | aserto.directory.common.v4.Manifest | manifest instance |
| Field | Type | Label | Description |
|---|---|---|---|
| empty | google.protobuf.Empty | empty request |
| Field | Type | Label | Description |
|---|---|---|---|
| result | aserto.directory.common.v4.Model | model instance |
| Field | Type | Label | Description |
|---|---|---|---|
| object_type | string | object type identifier | |
| object_id | string | object instance identifier | |
| with_relations | bool | materialize the object relations objects (optional) |
| Field | Type | Label | Description |
|---|---|---|---|
| result | aserto.directory.common.v4.Object | object instance | |
| relations | aserto.directory.common.v4.Relation | repeated | array of associated relations of given object instance |
| Field | Type | Label | Description |
|---|---|---|---|
| param | aserto.directory.common.v4.ObjectIdentifier | repeated | array of object identifiers |
| Field | Type | Label | Description |
|---|---|---|---|
| results | aserto.directory.common.v4.Object | repeated | array of object instances |
| Field | Type | Label | Description |
|---|---|---|---|
| object_type | string | object type identifier | |
| object_id | string | object instance identifier | |
| relation | string | relation name | |
| subject_type | string | subject type identifier | |
| subject_id | string | subject instance identifier | |
| subject_relation | string | subject relation name (optional) | |
| with_objects | bool | materialize relation objects (optional) |
| Field | Type | Label | Description |
|---|---|---|---|
| result | aserto.directory.common.v4.Relation | relation instance | |
| object | aserto.directory.common.v4.Object | object instance, set when with_objects=true | |
| subject | aserto.directory.common.v4.Object | subject instance, set when with_objects=true |
| Field | Type | Label | Description |
|---|---|---|---|
| param | aserto.directory.common.v4.RelationIdentifier | repeated | array of relation identifiers |
| Field | Type | Label | Description |
|---|---|---|---|
| results | aserto.directory.common.v4.Relation | repeated | array of relation instances |
| Field | Type | Label | Description |
|---|---|---|---|
| object_type | string | object type identifier (optional) | |
| page | aserto.directory.common.v4.PaginationRequest | pagination request (optional) |
| Field | Type | Label | Description |
|---|---|---|---|
| results | aserto.directory.common.v4.Object | repeated | array of object instances |
| page | aserto.directory.common.v4.PaginationResponse | pagination response |
| Field | Type | Label | Description |
|---|---|---|---|
| object_type | string | object type identifier (optional) | |
| object_id | string | object instance identifier (optional) | |
| relation | string | relation name (optional) | |
| subject_type | string | subject type identifier (optional) | |
| subject_id | string | subject instance identifier (optional) | |
| subject_relation | string | subject relation name (optional) | |
| with_objects | bool | materialize relation objects (optional) | |
| with_empty_subject_relation | bool | only return relations that do not have a subject relation. (optional) | |
| page | aserto.directory.common.v4.PaginationRequest | pagination request (optional) |
| Field | Type | Label | Description |
|---|---|---|---|
| results | aserto.directory.common.v4.Relation | repeated | array of relation instances |
| objects | ListRelationsResponse.ObjectsEntry | repeated | map of materialized relation objects |
| page | aserto.directory.common.v4.PaginationResponse | pagination response |
| Field | Type | Label | Description |
|---|---|---|---|
| key | string | ||
| value | aserto.directory.common.v4.Object |
| Name | Number | Description |
|---|---|---|
| OPTION_UNKNOWN | 0 | nothing selected (default initialization value) |
| OPTION_DATA_MANIFEST | 1 | manifest instances |
| OPTION_DATA_MODEL | 2 | model instances |
| OPTION_DATA_OBJECTS | 8 | object instances |
| OPTION_DATA_RELATIONS | 16 | relation instances |
| OPTION_DATA | 24 | all data = OPTION_DATA_OBJECTS |
| OPTION_STATS | 64 | stats |
Directory Reader service
| Method Name | Request Type | Response Type | Description |
|---|---|---|---|
| GetManifest | GetManifestRequest | GetManifestResponse | get manifest |
| GetModel | GetModelRequest | GetModelResponse | get model |
| GetObject | GetObjectRequest | GetObjectResponse | get object |
| GetObjects | GetObjectsRequest | GetObjectsResponse | get multiple objects |
| ListObjects | ListObjectsRequest | ListObjectsResponse | list objects |
| GetRelation | GetRelationRequest | GetRelationResponse | get relation |
| GetRelations | GetRelationsRequest | GetRelationsResponse | get multiple relations in a single round trip |
| ListRelations | ListRelationsRequest | ListRelationsResponse | list relations |
| Check | CheckRequest | CheckResponse | check if subject has relation or permission with object |
| Checks | ChecksRequest | ChecksResponse | checks validates a set of check requests in a single roundtrip |
| GetGraph | GetGraphRequest | GetGraphResponse | get object relationship graph |
| Export | ExportRequest | ExportResponse stream | stream exporter, exports manifests, models, objects and relations |
| Field | Type | Label | Description |
|---|---|---|---|
| object_type | string | object type identifier | |
| object_id | string | object instance identifier | |
| with_relations | bool | delete object relations, both object and subject relations (optional) |
| Field | Type | Label | Description |
|---|---|---|---|
| result | google.protobuf.Empty | empty result |
| Field | Type | Label | Description |
|---|---|---|---|
| object_type | string | object type identifier | |
| object_id | string | object instance identifier | |
| relation | string | object relation name | |
| subject_type | string | subject type identifier | |
| subject_id | string | subject instance identifier | |
| subject_relation | string | subject relation name (optional) |
| Field | Type | Label | Description |
|---|---|---|---|
| result | google.protobuf.Empty | empty result |
| Field | Type | Label | Description |
|---|---|---|---|
| object | aserto.directory.common.v3.Object | object instance |
| Field | Type | Label | Description |
|---|---|---|---|
| result | aserto.directory.common.v3.Object | object instance |
| Field | Type | Label | Description |
|---|---|---|---|
| relation | aserto.directory.common.v3.Relation | relation instance |
| Field | Type | Label | Description |
|---|---|---|---|
| result | aserto.directory.common.v3.Relation | relation instance |
| Method Name | Request Type | Response Type | Description |
|---|---|---|---|
| SetObject | SetObjectRequest | SetObjectResponse | set object instance |
| DeleteObject | DeleteObjectRequest | DeleteObjectResponse | delete object instance |
| SetRelation | SetRelationRequest | SetRelationResponse | set relation instance |
| DeleteRelation | DeleteRelationRequest | DeleteRelationResponse | delete relation instance |
| Field | Type | Label | Description |
|---|---|---|---|
| empty | google.protobuf.Empty | empty request |
| Field | Type | Label | Description |
|---|---|---|---|
| result | google.protobuf.Empty | empty result |
| Field | Type | Label | Description |
|---|---|---|---|
| object_type | string | object type identifier | |
| object_id | string | object instance identifier | |
| with_relations | bool | delete object relations, both object and subject relations (optional) |
| Field | Type | Label | Description |
|---|---|---|---|
| result | google.protobuf.Empty | empty result |
| Field | Type | Label | Description |
|---|---|---|---|
| object_type | string | object type identifier | |
| object_id | string | object instance identifier | |
| relation | string | object relation name | |
| subject_type | string | subject type identifier | |
| subject_id | string | subject instance identifier | |
| subject_relation | string | subject relation name (optional) |
| Field | Type | Label | Description |
|---|---|---|---|
| result | google.protobuf.Empty | empty result |
| Field | Type | Label | Description |
|---|---|---|---|
| type | string | counter of type (manifest | |
| recv | uint64 | number of messages received | |
| get | uint64 | number of messages with OPCODE_GET | |
| set | uint64 | number of messages with OPCODE_SET | |
| delete | uint64 | number of messages with OPCODE_DELETE | |
| error | uint64 | number of messages resulting in error |
| Field | Type | Label | Description |
|---|---|---|---|
| op_code | Opcode | operation Opcode enum value | |
| manifest | aserto.directory.common.v4.Manifest | manifest | |
| model | aserto.directory.common.v4.Manifest | model | |
| object | aserto.directory.common.v4.Object | object | |
| relation | aserto.directory.common.v4.Relation | relation |
| Field | Type | Label | Description |
|---|---|---|---|
| manifest | aserto.directory.common.v4.Manifest | manifest | |
| model | aserto.directory.common.v4.Manifest | model (GET only) | |
| object | aserto.directory.common.v4.Object | object | |
| relation | aserto.directory.common.v4.Relation | relation | |
| status | ImportStatus | import status message | |
| counter | ImportCounter | import counter per type |
| Field | Type | Label | Description |
|---|---|---|---|
| code | uint32 | gRPC status code (google.golang.org/grpc/codes) | |
| msg | string | gRPC status message (google.golang.org/grpc/status) | |
| req | ImportRequest | req contains the original import request message |
| Field | Type | Label | Description |
|---|---|---|---|
| body | bytes | manifest body |
| Field | Type | Label | Description |
|---|---|---|---|
| result | aserto.directory.common.v4.Manifest | manifest instance |
| Field | Type | Label | Description |
|---|---|---|---|
| object | aserto.directory.common.v4.Object | object instance |
| Field | Type | Label | Description |
|---|---|---|---|
| result | aserto.directory.common.v4.Object | object instance |
| Field | Type | Label | Description |
|---|---|---|---|
| relation | aserto.directory.common.v4.Relation | relation instance |
| Field | Type | Label | Description |
|---|---|---|---|
| result | aserto.directory.common.v4.Relation | relation instance |
| Name | Number | Description |
|---|---|---|
| OPCODE_UNKNOWN | 0 | |
| OPCODE_GET | 1 | |
| OPCODE_SET | 2 | |
| OPCODE_DELETE | 3 | |
| OPCODE_DELETE_WITH_RELATIONS | 4 |
Directory Writer service
| Method Name | Request Type | Response Type | Description |
|---|---|---|---|
| SetManifest | SetManifestRequest | SetManifestResponse | set manifest instance |
| DeleteManifest | DeleteManifestRequest | DeleteManifestResponse | delete manifest instance |
| SetObject | SetObjectRequest | SetObjectResponse | set object instance |
| DeleteObject | DeleteObjectRequest | DeleteObjectResponse | delete object instance |
| SetRelation | SetRelationRequest | SetRelationResponse | set relation instance |
| DeleteRelation | DeleteRelationRequest | DeleteRelationResponse | delete relation instance |
| Import | ImportRequest stream | ImportResponse stream | import stream of objects and relations |
| .proto Type | Notes | C++ | Java | Python | Go | C# | PHP | Ruby |
|---|---|---|---|---|---|---|---|---|
| double | double | double | float | float64 | double | float | Float | |
| float | float | float | float | float32 | float | float | Float | |
| int32 | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) |
| int64 | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int64 | long | int/long | int64 | long | integer/string | Bignum |
| uint32 | Uses variable-length encoding. | uint32 | int | int/long | uint32 | uint | integer | Bignum or Fixnum (as required) |
| uint64 | Uses variable-length encoding. | uint64 | long | int/long | uint64 | ulong | integer/string | Bignum or Fixnum (as required) |
| sint32 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) |
| sint64 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int64 | long | int/long | int64 | long | integer/string | Bignum |
| fixed32 | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | uint32 | int | int | uint32 | uint | integer | Bignum or Fixnum (as required) |
| fixed64 | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | uint64 | long | int/long | uint64 | ulong | integer/string | Bignum |
| sfixed32 | Always four bytes. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) |
| sfixed64 | Always eight bytes. | int64 | long | int/long | int64 | long | integer/string | Bignum |
| bool | bool | boolean | boolean | bool | bool | boolean | TrueClass/FalseClass | |
| string | A string must always contain UTF-8 encoded or 7-bit ASCII text. | string | String | str/unicode | string | string | string | String (UTF-8) |
| bytes | May contain any arbitrary sequence of bytes. | string | ByteString | str | []byte | ByteString | string | String (ASCII-8BIT) |