Migrate grants to more structured output (#194)
This commit is contained in:
1 parent
1a1d3058c9
commit
99653727bb
19 files changed
+757
-642
No files matched your search
@@ -21,10 +21,32 @@ message Principal {
|
||||
string scope_id = 3 [json_name="scope_id"];
|
||||
}
|
||||
|
||||
message Grant {
|
||||
// The user-supplied string.
|
||||
message GrantJson {
|
||||
// The ID, if set.
|
||||
// Output only.
|
||||
string id = 1;
|
||||
|
||||
// The type, if set.
|
||||
// Output only.
|
||||
string type = 2;
|
||||
|
||||
// The actions.
|
||||
// Output only.
|
||||
repeated string actions = 3;
|
||||
}
|
||||
|
||||
message Grant {
|
||||
// The original user-supplied string.
|
||||
// Output only.
|
||||
string raw = 1;
|
||||
|
||||
// The canonically formatted string.
|
||||
// Output only.
|
||||
string canonical = 2;
|
||||
|
||||
// The JSON representation of the grant.
|
||||
// Output only.
|
||||
GrantJson json = 3;
|
||||
}
|
||||
|
||||
// Role contains all fields related to a Role resource
|
||||
@@ -72,13 +94,9 @@ message Role {
|
||||
|
||||
// The grants that this role provides for its principals.
|
||||
// Output only.
|
||||
repeated string grants = 11;
|
||||
repeated string grant_strings = 11 [json_name="grant_strings"];
|
||||
|
||||
// The canonical version of the grants in the grants field with the same index.
|
||||
// The parsed grant information.
|
||||
// Output only.
|
||||
repeated string grants_canonical = 12;
|
||||
|
||||
// The JSON version of the grants in the grants field with the same index.
|
||||
// Output only.
|
||||
repeated string grants_json = 13;
|
||||
repeated Grant grants = 12;
|
||||
}
|
||||
@@ -338,7 +338,7 @@ message AddRoleGrantsRequest {
|
||||
// The version ensures the role hasn't changed since it was last retrieved and if
|
||||
// it has the request will fail.
|
||||
google.protobuf.UInt32Value version = 4;
|
||||
repeated string grants = 5 [json_name="grants"];
|
||||
repeated string grant_strings = 5 [json_name="grant_strings"];
|
||||
}
|
||||
|
||||
message AddRoleGrantsResponse {
|
||||
@@ -352,7 +352,7 @@ message SetRoleGrantsRequest {
|
||||
// The version ensures the role hasn't changed since it was last retrieved and if
|
||||
// it has the request will fail.
|
||||
google.protobuf.UInt32Value version = 4;
|
||||
repeated string grants = 5 [json_name="grants"];
|
||||
repeated string grant_strings = 5 [json_name="grant_strings"];
|
||||
}
|
||||
|
||||
message SetRoleGrantsResponse {
|
||||
@@ -366,7 +366,7 @@ message RemoveRoleGrantsRequest {
|
||||
// The version ensures the role hasn't changed since it was last retrieved and if
|
||||
// it has the request will fail.
|
||||
google.protobuf.UInt32Value version = 4;
|
||||
repeated string grants = 5 [json_name="grants"];
|
||||
repeated string grant_strings = 5 [json_name="grant_strings"];
|
||||
}
|
||||
|
||||
message RemoveRoleGrantsResponse {
|
||||
|
||||
Reference in new issue
Block a user