File tree 1 file changed +19
-0
lines changed
raystack/frontier/v1beta1
1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -951,6 +951,18 @@ service FrontierService {
951
951
};
952
952
}
953
953
954
+ rpc ReplacePolicy (ReplacePolicyRequest ) returns (ReplacePolicyResponse ) {
955
+ option (google.api.http ) = {
956
+ post : "/v1beta1/policies/{id}/replace" ,
957
+ body : "*"
958
+ };
959
+ option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation ) = {
960
+ tags : "Policy" ;
961
+ summary : "Replace policy" ;
962
+ description : "Deletes an existing policy and create new." ;
963
+ };
964
+ }
965
+
954
966
// Relations
955
967
rpc CreateRelation (CreateRelationRequest ) returns (CreateRelationResponse ) {
956
968
option (google.api.http ) = {
@@ -2323,6 +2335,13 @@ message DeletePolicyRequest {
2323
2335
2324
2336
message DeletePolicyResponse {}
2325
2337
2338
+ message ReplacePolicyRequest {
2339
+ string id = 1 ;
2340
+ PolicyRequestBody body = 2 ;
2341
+ }
2342
+
2343
+ message ReplacePolicyResponse {}
2344
+
2326
2345
message RelationRequestBody {
2327
2346
reserved 2 , 5 ;
2328
2347
You can’t perform that action at this time.
0 commit comments