Skip to content

Commit c43e216

Browse files
Google APIscopybara-github
authored andcommitted
feat: Add an API method for reordering firewall policies
PiperOrigin-RevId: 607015517
1 parent 0606cbc commit c43e216

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,16 @@ service RecaptchaEnterpriseService {
183183
option (google.api.method_signature) = "name";
184184
}
185185

186+
// Reorders all firewall policies.
187+
rpc ReorderFirewallPolicies(ReorderFirewallPoliciesRequest)
188+
returns (ReorderFirewallPoliciesResponse) {
189+
option (google.api.http) = {
190+
post: "/v1/{parent=projects/*}/firewallpolicies:reorder"
191+
body: "*"
192+
};
193+
option (google.api.method_signature) = "parent,names";
194+
}
195+
186196
// List groups of related accounts.
187197
rpc ListRelatedAccountGroups(ListRelatedAccountGroupsRequest)
188198
returns (ListRelatedAccountGroupsResponse) {
@@ -1279,6 +1289,30 @@ message DeleteFirewallPolicyRequest {
12791289
];
12801290
}
12811291

1292+
// The reorder firewall policies request message.
1293+
message ReorderFirewallPoliciesRequest {
1294+
// Required. The name of the project to list the policies for, in the format
1295+
// `projects/{project}`.
1296+
string parent = 1 [
1297+
(google.api.field_behavior) = REQUIRED,
1298+
(google.api.resource_reference) = {
1299+
type: "cloudresourcemanager.googleapis.com/Project"
1300+
}
1301+
];
1302+
1303+
// Required. A list containing all policy names, in the new order. Each name
1304+
// is in the format `projects/{project}/firewallpolicies/{firewallpolicy}`.
1305+
repeated string names = 2 [
1306+
(google.api.field_behavior) = REQUIRED,
1307+
(google.api.resource_reference) = {
1308+
type: "recaptchaenterprise.googleapis.com/FirewallPolicy"
1309+
}
1310+
];
1311+
}
1312+
1313+
// The reorder firewall policies response message.
1314+
message ReorderFirewallPoliciesResponse {}
1315+
12821316
// The migrate key request message.
12831317
message MigrateKeyRequest {
12841318
// Required. The name of the key to be migrated, in the format

0 commit comments

Comments
 (0)