Skip to content

Commit

Permalink
Merge pull request #159 from whdalsrnt/master
Browse files Browse the repository at this point in the history
feat: change role and policy fields
  • Loading branch information
whdalsrnt authored Nov 23, 2023
2 parents e1fe26f + aa9541c commit 9fd0c58
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions proto/spaceone/api/identity/v2/policy.proto
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ message PolicyInfo {
string name = 2;
repeated string permissions = 3;
google.protobuf.Struct tags = 4;
bool is_managed = 5;
string domain_id = 21;
string created_at = 31;
}
Expand Down
14 changes: 9 additions & 5 deletions proto/spaceone/api/identity/v2/role.proto
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ message PagePermission {
message CreateRoleRequest {
string name = 1;
RoleType role_type = 2;
string policy_id = 3;
repeated string policies = 3;
// +optional
repeated PagePermission page_permissions = 4;
// +optional
Expand All @@ -84,9 +84,11 @@ message UpdateRoleRequest {
// +optional
string name = 2;
// +optional
repeated PagePermission page_permissions = 3;
repeated string policies = 3;
// +optional
google.protobuf.Struct tags = 4;
repeated PagePermission page_permissions = 4;
// +optional
google.protobuf.Struct tags = 5;
string domain_id = 21;
}

Expand All @@ -99,8 +101,10 @@ message RoleInfo {
string role_id = 1;
string name = 2;
RoleType role_type = 3;
repeated PagePermission page_permissions = 4;
google.protobuf.Struct tags = 5;
repeated string policies = 4;
repeated PagePermission page_permissions = 5;
google.protobuf.Struct tags = 6;
bool is_managed = 7;
string domain_id = 21;
string created_at = 31;
}
Expand Down

0 comments on commit 9fd0c58

Please sign in to comment.