permissions display
This commit is contained in:
2
client
2
client
Submodule client updated: 4001db9446...fd78cd73aa
@@ -275,7 +275,7 @@ message DeleteTableDataRequest {
|
|||||||
|
|
||||||
// Soft-delete response.
|
// Soft-delete response.
|
||||||
message DeleteTableDataResponse {
|
message DeleteTableDataResponse {
|
||||||
// True if a row was marked deleted (id existed and was not already deleted).
|
// True when the row was successfully marked deleted.
|
||||||
bool success = 1;
|
bool success = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -307,6 +307,9 @@ enum ResolvedTableLinkStatus {
|
|||||||
SUPERSEDED = 1;
|
SUPERSEDED = 1;
|
||||||
UNAVAILABLE = 2;
|
UNAVAILABLE = 2;
|
||||||
DELETED = 3;
|
DELETED = 3;
|
||||||
|
// The source row may expose the FK and the target's configured display
|
||||||
|
// columns, but the caller may not read the target table itself.
|
||||||
|
RESTRICTED = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
message ResolvedTableLinkVersion {
|
message ResolvedTableLinkVersion {
|
||||||
@@ -349,7 +352,9 @@ message GetTableDataResponse {
|
|||||||
repeated string row_display_columns = 3;
|
repeated string row_display_columns = 3;
|
||||||
|
|
||||||
// Links keyed by their public column name. Each value contains the row as
|
// Links keyed by their public column name. Each value contains the row as
|
||||||
// saved by this record and the newest available state of the linked row.
|
// saved by this record and, when the caller may read the target table, its
|
||||||
|
// newest available state. Restricted links contain only the target table's
|
||||||
|
// configured display columns.
|
||||||
map<string, ResolvedTableLink> resolved_links = 4;
|
map<string, ResolvedTableLink> resolved_links = 4;
|
||||||
|
|
||||||
// The generation returned by this response. Zero is never returned.
|
// The generation returned by this response. Zero is never returned.
|
||||||
|
|||||||
Binary file not shown.
@@ -217,7 +217,7 @@ pub struct DeleteTableDataRequest {
|
|||||||
/// Soft-delete response.
|
/// Soft-delete response.
|
||||||
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
|
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
|
||||||
pub struct DeleteTableDataResponse {
|
pub struct DeleteTableDataResponse {
|
||||||
/// True if a row was marked deleted (id existed and was not already deleted).
|
/// True when the row was successfully marked deleted.
|
||||||
#[prost(bool, tag = "1")]
|
#[prost(bool, tag = "1")]
|
||||||
pub success: bool,
|
pub success: bool,
|
||||||
}
|
}
|
||||||
@@ -309,7 +309,9 @@ pub struct GetTableDataResponse {
|
|||||||
#[prost(string, repeated, tag = "3")]
|
#[prost(string, repeated, tag = "3")]
|
||||||
pub row_display_columns: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
|
pub row_display_columns: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
|
||||||
/// Links keyed by their public column name. Each value contains the row as
|
/// Links keyed by their public column name. Each value contains the row as
|
||||||
/// saved by this record and the newest available state of the linked row.
|
/// saved by this record and, when the caller may read the target table, its
|
||||||
|
/// newest available state. Restricted links contain only the target table's
|
||||||
|
/// configured display columns.
|
||||||
#[prost(map = "string, message", tag = "4")]
|
#[prost(map = "string, message", tag = "4")]
|
||||||
pub resolved_links: ::std::collections::HashMap<
|
pub resolved_links: ::std::collections::HashMap<
|
||||||
::prost::alloc::string::String,
|
::prost::alloc::string::String,
|
||||||
@@ -352,6 +354,9 @@ pub enum ResolvedTableLinkStatus {
|
|||||||
Superseded = 1,
|
Superseded = 1,
|
||||||
Unavailable = 2,
|
Unavailable = 2,
|
||||||
Deleted = 3,
|
Deleted = 3,
|
||||||
|
/// The source row may expose the FK and the target's configured display
|
||||||
|
/// columns, but the caller may not read the target table itself.
|
||||||
|
Restricted = 4,
|
||||||
}
|
}
|
||||||
impl ResolvedTableLinkStatus {
|
impl ResolvedTableLinkStatus {
|
||||||
/// String value of the enum field names used in the ProtoBuf definition.
|
/// String value of the enum field names used in the ProtoBuf definition.
|
||||||
@@ -364,6 +369,7 @@ impl ResolvedTableLinkStatus {
|
|||||||
Self::Superseded => "SUPERSEDED",
|
Self::Superseded => "SUPERSEDED",
|
||||||
Self::Unavailable => "UNAVAILABLE",
|
Self::Unavailable => "UNAVAILABLE",
|
||||||
Self::Deleted => "DELETED",
|
Self::Deleted => "DELETED",
|
||||||
|
Self::Restricted => "RESTRICTED",
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/// Creates an enum from field names used in the ProtoBuf definition.
|
/// Creates an enum from field names used in the ProtoBuf definition.
|
||||||
@@ -373,6 +379,7 @@ impl ResolvedTableLinkStatus {
|
|||||||
"SUPERSEDED" => Some(Self::Superseded),
|
"SUPERSEDED" => Some(Self::Superseded),
|
||||||
"UNAVAILABLE" => Some(Self::Unavailable),
|
"UNAVAILABLE" => Some(Self::Unavailable),
|
||||||
"DELETED" => Some(Self::Deleted),
|
"DELETED" => Some(Self::Deleted),
|
||||||
|
"RESTRICTED" => Some(Self::Restricted),
|
||||||
_ => None,
|
_ => None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
2
server
2
server
Submodule server updated: d927987c95...d6dd48e6df
Reference in New Issue
Block a user