1
- // DomainConfig API which configure environments for domain
2
1
syntax = "proto3" ;
3
2
4
3
package spaceone.api.config.v1 ;
@@ -12,126 +11,84 @@ import "spaceone/api/core/v2/query.proto";
12
11
13
12
14
13
service PublicConfig {
15
- rpc create (CreatePublicConfigRequest ) returns (PublicConfigInfo ) {
16
- option (google.api.http ) = {
17
- post : "/config/v1/public-config/create"
18
- body : "*"
19
- };
20
- }
21
- rpc update (UpdatePublicConfigRequest ) returns (PublicConfigInfo ) {
22
- option (google.api.http ) = {
23
- post : "/config/v1/public-config/update"
24
- body : "*"
25
- };
26
- }
27
-
28
- rpc delete (PublicConfigRequest ) returns (google .protobuf .Empty ) {
29
- option (google.api.http ) = {
30
- post : "/config/v1/public-config/delete"
31
- body : "*"
32
- };
33
- }
34
- rpc get (PublicConfigSearchQuery ) returns (PublicConfigInfo ) {
35
- option (google.api.http ) = {
36
- post : "/config/v1/public-config/get"
37
- body : "*"
38
- };
39
- }
40
-
41
- // This API for retrieving domain scoped configs that are accessible to users.
42
- rpc get_accessible_configs (PublicConfigSearchQuery ) returns (PublicConfigsInfo ) {
43
- option (google.api.http ) = {
44
- post : "/config/v1/public-config/get-accessible-configs"
45
- body : "*"
46
- };
47
- }
48
-
49
- rpc list (PublicConfigSearchQuery ) returns (PublicConfigsInfo ) {
50
- option (google.api.http ) = {
51
- post : "/config/v1/public-config/list"
52
- body : "*"
53
- };
54
- }
55
- rpc stat (PublicConfigStatQuery ) returns (google .protobuf .Struct ) {
56
- option (google.api.http ) = {
57
- post : "/config/v1/public-config/stat"
58
- body : "*"
59
- };
60
- }
61
- }
62
-
63
-
64
- message CreatePublicConfigRequest {
65
- enum ResourceGroup {
66
- RESOURCE_GROUP_NONE = 0 ;
67
- DOMAIN = 1 ;
68
- WORKSPACE = 2 ;
69
- PROJECT = 3 ;
70
- }
71
-
72
- string name = 1 ;
73
- google.protobuf.Struct data = 2 ;
74
- // +optional
75
- google.protobuf.Struct tags = 3 ;
76
- ResourceGroup resource_group = 20 ;
77
- // +optional
78
- string workspace_id = 21 ;
79
- // +optional
80
- string project_id = 22 ;
14
+ rpc create (SetPublicConfigRequest ) returns (PublicConfigInfo ) {
15
+ option (google.api.http ) = {
16
+ post : "/config/v1/public-config/create"
17
+ body : "*"
18
+ };
19
+ }
20
+ rpc update (SetPublicConfigRequest ) returns (PublicConfigInfo ) {
21
+ option (google.api.http ) = {
22
+ post : "/config/v1/public-config/update"
23
+ body : "*"
24
+ };
25
+ }
26
+ rpc set (SetPublicConfigRequest ) returns (PublicConfigInfo ) {
27
+ option (google.api.http ) = {
28
+ post : "/config/v1/public-config/set"
29
+ body : "*"
30
+ };
31
+ }
32
+ rpc delete (PublicConfigRequest ) returns (google .protobuf .Empty ) {
33
+ option (google.api.http ) = {
34
+ post : "/config/v1/public-config/delete"
35
+ body : "*"
36
+ };
37
+ }
38
+ rpc get (PublicConfigRequest ) returns (PublicConfigInfo ) {
39
+ option (google.api.http ) = {
40
+ post : "/config/v1/public-config/get"
41
+ body : "*"
42
+ };
43
+ }
44
+ rpc list (PublicConfigSearchQuery ) returns (PublicConfigsInfo ) {
45
+ option (google.api.http ) = {
46
+ post : "/config/v1/public-config/list"
47
+ body : "*"
48
+ };
49
+ }
50
+ rpc stat (PublicConfigStatQuery ) returns (google .protobuf .Struct ) {
51
+ option (google.api.http ) = {
52
+ post : "/config/v1/public-config/stat"
53
+ body : "*"
54
+ };
55
+ }
81
56
}
82
57
83
- message UpdatePublicConfigRequest {
84
- string name = 1 ;
85
- google.protobuf.Struct data = 2 ;
86
- // +optional
87
- google.protobuf.Struct tags = 3 ;
88
- // +optional
89
- string workspace_id = 21 ;
90
- // +optional
91
- string project_id = 22 ;
92
-
58
+ message SetPublicConfigRequest {
59
+ string name = 1 ;
60
+ google.protobuf.Struct data = 2 ;
61
+ // +optional
62
+ google.protobuf.Struct tags = 3 ;
93
63
}
94
64
95
65
message PublicConfigRequest {
96
- string name = 1 ;
97
- // +optional
98
- string workspace_id = 21 ;
99
- // +optional
100
- string project_id = 22 ;
66
+ string name = 1 ;
101
67
}
102
68
103
69
message PublicConfigSearchQuery {
104
- // +optional
105
- spaceone.api.core.v2.Query query = 1 ;
106
- // +optional
107
- string name = 2 ;
70
+ // +optional
71
+ spaceone.api.core.v2.Query query = 1 ;
72
+ // +optional
73
+ string name = 2 ;
108
74
}
109
75
110
76
message PublicConfigInfo {
111
- enum ResourceGroup {
112
- RESOURCE_GROUP_NONE = 0 ;
113
- DOMAIN = 1 ;
114
- WORKSPACE = 2 ;
115
- PROJECT = 3 ;
116
- }
77
+ string name = 1 ;
78
+ google.protobuf.Struct data = 2 ;
79
+ google.protobuf.Struct tags = 3 ;
117
80
118
- string name = 1 ;
119
- google.protobuf.Struct data = 2 ;
120
- google.protobuf.Struct tags = 3 ;
121
- ResourceGroup resource_group = 20 ;
122
- string domain_id = 21 ;
123
- string workspace_id = 22 ;
124
- string project_id = 23 ;
81
+ string domain_id = 21 ;
125
82
126
- string created_at = 31 ;
127
- string updated_at = 32 ;
83
+ string created_at = 31 ;
84
+ string updated_at = 32 ;
128
85
}
129
86
130
87
message PublicConfigsInfo {
131
- repeated PublicConfigInfo results = 1 ;
132
- int32 total_count = 2 ;
88
+ repeated PublicConfigInfo results = 1 ;
89
+ int32 total_count = 2 ;
133
90
}
134
91
135
92
message PublicConfigStatQuery {
136
- spaceone.api.core.v2.StatisticsQuery query = 1 ;
93
+ spaceone.api.core.v2.StatisticsQuery query = 1 ;
137
94
}
0 commit comments