diff --git a/proto/spaceone/api/identity/v2/project.proto b/proto/spaceone/api/identity/v2/project.proto index 0ee2530b0..9cb9fc022 100644 --- a/proto/spaceone/api/identity/v2/project.proto +++ b/proto/spaceone/api/identity/v2/project.proto @@ -13,177 +13,180 @@ import "spaceone/api/identity/v2/project_group.proto"; service Project { - rpc create (CreateProjectRequest) returns (ProjectInfo) { - option (google.api.http) = { - post: "/identity/v2/project/create" - body: "*" - }; - } - rpc update (UpdateProjectRequest) returns (ProjectInfo) { - option (google.api.http) = { - post: "/identity/v2/project/update" - body: "*" - }; - } - - rpc update_project_type (UpdateProjectTypeRequest) returns (ProjectInfo) { - option (google.api.http) = { - post: "/identity/v2/project/update-project-type" - body: "*" - }; - } - rpc change_project_group (ChangeProjectGroupRequest) returns (ProjectInfo) { - option (google.api.http) = { - post: "/identity/v2/project/change-project-group" - body: "*" - }; - } - - rpc delete (ProjectRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - post: "/identity/v2/project/delete" - body: "*" - }; - } - - rpc add_users (UsersProjectRequest) returns (ProjectInfo) { - option (google.api.http) = { - post: "/identity/v2/project/add-users" - body: "*" - }; - } - - rpc remove_users (UsersProjectRequest) returns (ProjectInfo) { - option (google.api.http) = { - post: "/identity/v2/project/remove-users" - body: "*" - }; - } - - rpc add_user_groups (UserGroupsProjectRequest) returns (ProjectInfo) { - option (google.api.http) = { - post: "/identity/v2/project/add-user-groups" - body: "*" - }; - } - - rpc remove_user_groups (UserGroupsProjectRequest) returns (ProjectInfo) { - option (google.api.http) = { - post: "/identity/v2/project/remove-user-groups" - body: "*" - }; - } - - rpc get (ProjectRequest) returns (ProjectInfo) { - option (google.api.http) = { - post: "/identity/v2/project/get" - body: "*" - }; - } - - rpc list (ProjectSearchQuery) returns (ProjectsInfo) { - option (google.api.http) = { - post: "/identity/v2/project/list" - body: "*" - }; - } - rpc stat (ProjectStatQuery) returns (google.protobuf.Struct) { - option (google.api.http) = { - post: "/identity/v2/project/stat" - body: "*" - }; - } + rpc create (CreateProjectRequest) returns (ProjectInfo) { + option (google.api.http) = { + post: "/identity/v2/project/create" + body: "*" + }; + } + rpc update (UpdateProjectRequest) returns (ProjectInfo) { + option (google.api.http) = { + post: "/identity/v2/project/update" + body: "*" + }; + } + + rpc update_project_type (UpdateProjectTypeRequest) returns (ProjectInfo) { + option (google.api.http) = { + post: "/identity/v2/project/update-project-type" + body: "*" + }; + } + rpc change_project_group (ChangeProjectGroupRequest) returns (ProjectInfo) { + option (google.api.http) = { + post: "/identity/v2/project/change-project-group" + body: "*" + }; + } + + rpc delete (ProjectRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/identity/v2/project/delete" + body: "*" + }; + } + + rpc add_users (UsersProjectRequest) returns (ProjectInfo) { + option (google.api.http) = { + post: "/identity/v2/project/add-users" + body: "*" + }; + } + + rpc remove_users (UsersProjectRequest) returns (ProjectInfo) { + option (google.api.http) = { + post: "/identity/v2/project/remove-users" + body: "*" + }; + } + + rpc add_user_groups (UserGroupsProjectRequest) returns (ProjectInfo) { + option (google.api.http) = { + post: "/identity/v2/project/add-user-groups" + body: "*" + }; + } + + rpc remove_user_groups (UserGroupsProjectRequest) returns (ProjectInfo) { + option (google.api.http) = { + post: "/identity/v2/project/remove-user-groups" + body: "*" + }; + } + + rpc get (ProjectRequest) returns (ProjectInfo) { + option (google.api.http) = { + post: "/identity/v2/project/get" + body: "*" + }; + } + + rpc list (ProjectSearchQuery) returns (ProjectsInfo) { + option (google.api.http) = { + post: "/identity/v2/project/list" + body: "*" + }; + } + rpc stat (ProjectStatQuery) returns (google.protobuf.Struct) { + option (google.api.http) = { + post: "/identity/v2/project/stat" + body: "*" + }; + } } enum ProjectType { - PROJECT_TYPE_NONE = 0; - PRIVATE = 1; - PUBLIC = 2; + PROJECT_TYPE_NONE = 0; + PRIVATE = 1; + PUBLIC = 2; } message CreateProjectRequest { - string name = 1; - ProjectType project_type = 2; - // +optional - google.protobuf.Struct tags = 3; - // +optional - string project_group_id = 4; + string name = 1; + ProjectType project_type = 2; + // +optional + google.protobuf.Struct tags = 3; + // +optional + string project_group_id = 4; } message UpdateProjectRequest { - string project_id = 1; - // +optional - string name = 2; - // +optional - google.protobuf.Struct tags = 3; + string project_id = 1; + // +optional + string name = 2; + // +optional + google.protobuf.Struct tags = 3; } message UpdateProjectTypeRequest { - string project_id = 1; - ProjectType project_type = 2; + string project_id = 1; + ProjectType project_type = 2; } message ChangeProjectGroupRequest { - string project_id = 1; - string project_group_id = 2; + string project_id = 1; + string project_group_id = 2; } message ProjectRequest { - string project_id = 1; + string project_id = 1; } message UsersProjectRequest { - string project_id = 1; - repeated string users = 2; + string project_id = 1; + repeated string users = 2; } message UserGroupsProjectRequest { - string project_id = 1; - repeated string user_groups = 2; + string project_id = 1; + repeated string user_groups = 2; } message ProjectInfo { - string project_id = 1; - string name = 2; - ProjectType project_type = 3; - google.protobuf.Struct tags = 4; - repeated string users = 5; - repeated string user_groups = 6; - string created_by = 7; - string domain_id = 21; - string workspace_id = 22; - string project_group_id = 23; - string created_at = 31; + string project_id = 1; + string name = 2; + ProjectType project_type = 3; + google.protobuf.Struct tags = 4; + repeated string users = 5; + repeated string user_groups = 6; + string created_by = 7; + string reference_id = 8; + bool is_managed = 9; + string domain_id = 21; + string workspace_id = 22; + string project_group_id = 23; + string created_at = 31; + string last_synced_at = 32; } message ProjectSearchQuery { - // +optional - spaceone.api.core.v2.Query query = 1; - // +optional - string project_id = 2; - // +optional - string name = 3; - // +optional - ProjectType project_type = 4; - // +optional - string created_by = 5; - // +optional - bool include_children = 6; - // +optional - string workspace_id = 21; - // +optional - string project_group_id = 23; - // +optional - string user_group_id = 24; - // +optional - string user_id = 25; + // +optional + spaceone.api.core.v2.Query query = 1; + // +optional + string project_id = 2; + // +optional + string name = 3; + // +optional + ProjectType project_type = 4; + // +optional + string created_by = 5; + // +optional + bool include_children = 6; + // +optional + string workspace_id = 21; + // +optional + string project_group_id = 23; + // +optional + string user_group_id = 24; + // +optional + string user_id = 25; } message ProjectsInfo { - repeated ProjectInfo results = 1; - int32 total_count = 2; + repeated ProjectInfo results = 1; + int32 total_count = 2; } message ProjectStatQuery { - spaceone.api.core.v2.StatisticsQuery query = 1; + spaceone.api.core.v2.StatisticsQuery query = 1; } \ No newline at end of file diff --git a/proto/spaceone/api/identity/v2/project_group.proto b/proto/spaceone/api/identity/v2/project_group.proto index be5620b75..b04fd9229 100644 --- a/proto/spaceone/api/identity/v2/project_group.proto +++ b/proto/spaceone/api/identity/v2/project_group.proto @@ -108,10 +108,13 @@ message ProjectGroupInfo { string name = 2; google.protobuf.Struct tags = 3; repeated string users = 4; + string reference_id = 5; + bool is_managed = 6; string domain_id = 21; string workspace_id = 22; string parent_group_id = 23; string created_at = 31; + string last_synced_at = 32; } message ProjectGroupSearchQuery { diff --git a/proto/spaceone/api/identity/v2/service_account.proto b/proto/spaceone/api/identity/v2/service_account.proto index a99a128cb..c43a0d176 100644 --- a/proto/spaceone/api/identity/v2/service_account.proto +++ b/proto/spaceone/api/identity/v2/service_account.proto @@ -154,6 +154,8 @@ message ServiceAccountInfo { string provider = 4; google.protobuf.Struct options = 5; google.protobuf.Struct tags = 6; + string reference_id = 7; + bool is_managed = 8; string domain_id = 21; string workspace_id = 22; string project_id = 23; @@ -162,6 +164,7 @@ message ServiceAccountInfo { string secret_id = 26; string app_id = 27; string created_at = 31; + string last_synced_at = 32; } message ServiceAccountSearchQuery { diff --git a/proto/spaceone/api/identity/v2/workspace.proto b/proto/spaceone/api/identity/v2/workspace.proto index af0c7c473..287bb9a85 100644 --- a/proto/spaceone/api/identity/v2/workspace.proto +++ b/proto/spaceone/api/identity/v2/workspace.proto @@ -11,119 +11,122 @@ import "spaceone/api/core/v2/query.proto"; service Workspace { - rpc create (CreateWorkSpaceRequest) returns (WorkspaceInfo) { - option (google.api.http) = { - post: "/identity/v2/workspace/create" - body: "*" - }; - } - - rpc update (UpdateWorkSpaceRequest) returns (WorkspaceInfo) { - option (google.api.http) = { - post: "/identity/v2/workspace/update" - body: "*" - }; - } - - rpc delete (WorkspaceRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - post: "/identity/v2/workspace/delete" - body: "*" - }; - } - - rpc enable (WorkspaceRequest) returns (WorkspaceInfo) { - option (google.api.http) = { - post: "/identity/v2/workspace/enable" - body: "*" - }; - } - - rpc disable (WorkspaceRequest) returns (WorkspaceInfo) { - option (google.api.http) = { - post: "/identity/v2/workspace/disable" - body: "*" - }; - } - - rpc get (WorkspaceRequest) returns (WorkspaceInfo) { - option (google.api.http) = { - post: "/identity/v2/workspace/get" - body: "*" - }; - } - - rpc check (WorkspaceCheckRequest) returns (google.protobuf.Empty) {} - - rpc list (WorkspaceSearchQuery) returns (WorkspacesInfo) { - option (google.api.http) = { - post: "/identity/v2/workspace/list" - body: "*" - }; - } - - rpc stat (WorkspaceStatQuery) returns (google.protobuf.Struct) { - option (google.api.http) = { - post: "/identity/v2/workspace/stat" - body: "*" - }; - } + rpc create (CreateWorkSpaceRequest) returns (WorkspaceInfo) { + option (google.api.http) = { + post: "/identity/v2/workspace/create" + body: "*" + }; + } + + rpc update (UpdateWorkSpaceRequest) returns (WorkspaceInfo) { + option (google.api.http) = { + post: "/identity/v2/workspace/update" + body: "*" + }; + } + + rpc delete (WorkspaceRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/identity/v2/workspace/delete" + body: "*" + }; + } + + rpc enable (WorkspaceRequest) returns (WorkspaceInfo) { + option (google.api.http) = { + post: "/identity/v2/workspace/enable" + body: "*" + }; + } + + rpc disable (WorkspaceRequest) returns (WorkspaceInfo) { + option (google.api.http) = { + post: "/identity/v2/workspace/disable" + body: "*" + }; + } + + rpc get (WorkspaceRequest) returns (WorkspaceInfo) { + option (google.api.http) = { + post: "/identity/v2/workspace/get" + body: "*" + }; + } + + rpc check (WorkspaceCheckRequest) returns (google.protobuf.Empty) {} + + rpc list (WorkspaceSearchQuery) returns (WorkspacesInfo) { + option (google.api.http) = { + post: "/identity/v2/workspace/list" + body: "*" + }; + } + + rpc stat (WorkspaceStatQuery) returns (google.protobuf.Struct) { + option (google.api.http) = { + post: "/identity/v2/workspace/stat" + body: "*" + }; + } } message CreateWorkSpaceRequest { - string name = 1; - google.protobuf.Struct tags = 2; + string name = 1; + google.protobuf.Struct tags = 2; } message UpdateWorkSpaceRequest { - string workspace_id = 1; - // +optional - string name = 2; - // +optional - google.protobuf.Struct tags = 3; + string workspace_id = 1; + // +optional + string name = 2; + // +optional + google.protobuf.Struct tags = 3; } message WorkspaceRequest { - string workspace_id = 1; + string workspace_id = 1; } message WorkspaceCheckRequest { - string workspace_id = 1; - string domain_id = 21; + string workspace_id = 1; + string domain_id = 21; } message WorkspaceInfo { - enum State { - NONE = 0; - ENABLED = 1; - DISABLED = 2; - } - string workspace_id = 1; - string name = 2; - State state = 3; - google.protobuf.Struct tags = 4; - string created_by = 5; - string domain_id = 21; - string created_at = 31; + enum State { + NONE = 0; + ENABLED = 1; + DISABLED = 2; + } + string workspace_id = 1; + string name = 2; + State state = 3; + google.protobuf.Struct tags = 4; + string created_by = 5; + string reference_id = 6; + bool is_managed = 7; + string domain_id = 21; + string created_at = 31; + string last_synced_at = 32; } message WorkspaceSearchQuery { - // +optional - spaceone.api.core.v2.Query query = 1; - // +optional - string workspace_id = 2; - // +optional - string name = 3; - // +optional - string created_by = 4; + // +optional + spaceone.api.core.v2.Query query = 1; + // +optional + string workspace_id = 2; + // +optional + string name = 3; + // +optional + string created_by = 4; } message WorkspacesInfo { - repeated WorkspaceInfo results = 1; - int32 total_count = 2; + repeated WorkspaceInfo results = 1; + int32 total_count = 2; } message WorkspaceStatQuery { - spaceone.api.core.v2.StatisticsQuery query = 1; + spaceone.api.core.v2.StatisticsQuery query = 1; } \ No newline at end of file