Skip to content

Commit 7a7245d

Browse files
committed
fix: Fix Region api to identity-v2
Signed-off-by: lhhyung <[email protected]>
1 parent a7e93ba commit 7a7245d

File tree

1 file changed

+26
-9
lines changed

1 file changed

+26
-9
lines changed

proto/spaceone/api/inventory/v2/region.proto renamed to proto/spaceone/api/inventory_v2/v1/region.proto

+26-9
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// A Region is a resource storing regional information from each cloud service provider. Regional data stored by the resource includes the latitude and longitude of the region.
22
syntax = "proto3";
33

4-
package spaceone.api.inventory.v2;
4+
package spaceone.api.inventory_v2.v1;
55

6-
option go_package = "github.com/cloudforet-io/api/dist/go/spaceone/api/inventory/v2";
6+
option go_package = "github.com/cloudforet-io/api/dist/go/spaceone/api/inventory-v2/v1";
77

88
import "google/protobuf/empty.proto";
99
import "google/protobuf/struct.proto";
@@ -61,12 +61,20 @@ service Region {
6161
}
6262

6363
message CreateRegionRequest {
64+
enum ResourceGroup {
65+
RESOURCE_GROUP_NONE = 0;
66+
DOMAIN = 1;
67+
WORKSPACE = 2;
68+
}
69+
6470
string name = 1;
6571
string region_code = 2;
66-
// +optional
6772
string provider = 3;
6873
// +optional
6974
google.protobuf.Struct tags = 4;
75+
ResourceGroup resource_group = 20;
76+
// +optional
77+
string workspace_id = 21;
7078
}
7179

7280
message UpdateRegionRequest {
@@ -89,22 +97,31 @@ message RegionQuery {
8997
// +optional
9098
string name = 3;
9199
// +optional
92-
string region_key = 4;
93-
// +optional
94100
string region_code = 5;
95101
// +optional
96102
string provider = 6;
103+
// +optional
104+
string exists_only = 7;
105+
// +optional
106+
string workspace_id = 21;
97107
}
98108

99109
message RegionInfo {
110+
enum ResourceGroup {
111+
RESOURCE_GROUP_NONE = 0;
112+
DOMAIN = 1;
113+
WORKSPACE = 2;
114+
}
115+
100116
string region_id = 1;
101117
string name = 2;
102-
string region_key = 3;
103-
string region_code = 4;
104-
string provider = 5;
105-
google.protobuf.Struct tags = 6;
118+
string region_code = 3;
119+
string provider = 4;
120+
google.protobuf.Struct tags = 5;
106121

122+
ResourceGroup resource_group = 20;
107123
string domain_id = 21;
124+
string workspace_id = 22;
108125

109126
string created_at = 31;
110127
string updated_at = 32;

0 commit comments

Comments
 (0)