Skip to content

Commit

Permalink
Merge pull request #533 from ggildong/master
Browse files Browse the repository at this point in the history
fix: remove scope, resource_group parameter to opsflow
  • Loading branch information
ggildong authored Jan 3, 2025
2 parents b9fed29 + 27c1fd9 commit ab7ffee
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 31 deletions.
1 change: 0 additions & 1 deletion proto/spaceone/api/opsflow/v1/comment.proto
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ message CommentInfo {
Mentions mentions = 5;
google.protobuf.Struct source = 7;
string reference_id = 8;
ResourceGroup resource_group = 9;

string domain_id = 21;
string workspace_id = 22;
Expand Down
16 changes: 1 addition & 15 deletions proto/spaceone/api/opsflow/v1/task.proto
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,6 @@ enum TaskPriority {
}

message TaskCreateRequest {
enum ResourceGroup {
RESOURCE_GROUP_NONE = 0;
WORKSPACE = 1;
PROJECT = 2;
}

string name = 1;
string status_id = 2;
// +optional
Expand All @@ -99,9 +93,7 @@ message TaskCreateRequest {
google.protobuf.Struct data = 8;
// +optional
string reference_id = 9;
ResourceGroup resource_group = 10;

// +optional
string project_id = 21;
string task_type_id = 22;
}
Expand Down Expand Up @@ -169,12 +161,6 @@ message TaskSearchQuery {
}

message TaskInfo {
enum ResourceGroup {
RESOURCE_GROUP_NONE = 0;
WORKSPACE = 1;
PROJECT = 2;
}

string task_id = 1;
string name = 2;
string status_id = 3;
Expand All @@ -186,7 +172,7 @@ message TaskInfo {
string assignee = 9;
string created_by = 10;
string reference_id = 11;
ResourceGroup resource_group = 12;

repeated string related_assets = 13;

string domain_id = 21;
Expand Down
20 changes: 5 additions & 15 deletions proto/spaceone/api/opsflow/v1/task_type.proto
Original file line number Diff line number Diff line change
Expand Up @@ -57,24 +57,19 @@ service TaskType {
}

message TaskTypeCreateRequest {
enum Scope {
SCOPE_NONE = 0;
WORKSPACE = 1;
PROJECT = 2;
}

string name = 1;
// +optional
string description = 2;
// +optional
repeated TaskField fields = 3;
// +optional
Scope scope = 4;

// +optional
repeated string assignee_pool = 5;
// +optional
google.protobuf.Struct vars = 6;
// +optional
bool require_project = 7;
// +optional
google.protobuf.Struct tags = 11;
string category_id = 21;
}
Expand Down Expand Up @@ -123,19 +118,14 @@ message TaskTypeSearchQuery {
}

message TaskTypeInfo {
enum Scope {
SCOPE_NONE = 0;
WORKSPACE = 1;
PROJECT = 2;
}

string task_type_id = 1;
string name = 2;
string description = 3;
repeated TaskField fields = 4;
Scope scope = 5;

repeated string assignee_pool = 6;
google.protobuf.Struct vars = 7;
bool require_project = 8;
google.protobuf.Struct tags = 11;

string domain_id = 21;
Expand Down

0 comments on commit ab7ffee

Please sign in to comment.