Skip to content

Commit

Permalink
feat: Add an API method for reordering firewall policies
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 607015517
  • Loading branch information
Google APIs authored and Copybara-Service committed Feb 14, 2024
1 parent 0606cbc commit c43e216
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,16 @@ service RecaptchaEnterpriseService {
option (google.api.method_signature) = "name";
}

// Reorders all firewall policies.
rpc ReorderFirewallPolicies(ReorderFirewallPoliciesRequest)
returns (ReorderFirewallPoliciesResponse) {
option (google.api.http) = {
post: "/v1/{parent=projects/*}/firewallpolicies:reorder"
body: "*"
};
option (google.api.method_signature) = "parent,names";
}

// List groups of related accounts.
rpc ListRelatedAccountGroups(ListRelatedAccountGroupsRequest)
returns (ListRelatedAccountGroupsResponse) {
Expand Down Expand Up @@ -1279,6 +1289,30 @@ message DeleteFirewallPolicyRequest {
];
}

// The reorder firewall policies request message.
message ReorderFirewallPoliciesRequest {
// Required. The name of the project to list the policies for, in the format
// `projects/{project}`.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "cloudresourcemanager.googleapis.com/Project"
}
];

// Required. A list containing all policy names, in the new order. Each name
// is in the format `projects/{project}/firewallpolicies/{firewallpolicy}`.
repeated string names = 2 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "recaptchaenterprise.googleapis.com/FirewallPolicy"
}
];
}

// The reorder firewall policies response message.
message ReorderFirewallPoliciesResponse {}

// The migrate key request message.
message MigrateKeyRequest {
// Required. The name of the key to be migrated, in the format
Expand Down

0 comments on commit c43e216

Please sign in to comment.