Skip to content
This repository was archived by the owner on Jul 13, 2023. It is now read-only.

Commit aad0883

Browse files
fix!: rename parent to project in SearchRelatedAccountGroupMembershipsRequest (#370)
fix!: rename parent to project in SearchRelatedAccountGroupMembershipsRequest feat: introduced WafSettings PiperOrigin-RevId: 446496512 Source-Link: googleapis/googleapis@63d4fba Source-Link: https://github.com/googleapis/googleapis-gen/commit/f168b29e44d1d09bc407e8ef09587b7c8fcfe622 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZjE2OGIyOWU0NGQxZDA5YmM0MDdlOGVmMDk1ODdiN2M4ZmNmZTYyMiJ9 See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 4391e5a commit aad0883

8 files changed

+558
-57
lines changed

protos/google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto

Lines changed: 48 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2021 Google LLC
1+
// Copyright 2022 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -135,10 +135,10 @@ service RecaptchaEnterpriseService {
135135
// Search group memberships related to a given account.
136136
rpc SearchRelatedAccountGroupMemberships(SearchRelatedAccountGroupMembershipsRequest) returns (SearchRelatedAccountGroupMembershipsResponse) {
137137
option (google.api.http) = {
138-
post: "/v1/{parent=projects/*}/relatedaccountgroupmemberships:search"
138+
post: "/v1/{project=projects/*}/relatedaccountgroupmemberships:search"
139139
body: "*"
140140
};
141-
option (google.api.method_signature) = "parent,hashed_account_id";
141+
option (google.api.method_signature) = "project,hashed_account_id";
142142
}
143143
}
144144

@@ -186,18 +186,18 @@ message AnnotateAssessmentRequest {
186186
// Default unspecified reason.
187187
REASON_UNSPECIFIED = 0;
188188

189-
// Indicates a chargeback was issued for the transaction associated with the
190-
// assessment, with no other details. When possible, specify the type by
191-
// using CHARGEBACK_FRAUD or CHARGEBACK_DISPUTE instead.
189+
// Indicates a chargeback issued for the transaction with no other details.
190+
// When possible, specify the type by using CHARGEBACK_FRAUD or
191+
// CHARGEBACK_DISPUTE instead.
192192
CHARGEBACK = 1;
193193

194194
// Indicates a chargeback related to an alleged unauthorized transaction
195-
// from the perspective of the cardholder (for example, the card number was
195+
// from the cardholder's perspective (for example, the card number was
196196
// stolen).
197197
CHARGEBACK_FRAUD = 8;
198198

199199
// Indicates a chargeback related to the cardholder having provided their
200-
// card but allegedly not being satisfied with the purchase
200+
// card details but allegedly not being satisfied with the purchase
201201
// (for example, misrepresentation, attempted cancellation).
202202
CHARGEBACK_DISPUTE = 9;
203203

@@ -578,6 +578,9 @@ message Key {
578578

579579
// Options for user acceptance testing.
580580
TestingOptions testing_options = 9;
581+
582+
// Settings for WAF
583+
WafSettings waf_settings = 10;
581584
}
582585

583586
// Options for user acceptance testing.
@@ -802,7 +805,7 @@ message ListRelatedAccountGroupsResponse {
802805
message SearchRelatedAccountGroupMembershipsRequest {
803806
// Required. The name of the project to search related account group memberships from,
804807
// in the format "projects/{project}".
805-
string parent = 1 [
808+
string project = 1 [
806809
(google.api.field_behavior) = REQUIRED,
807810
(google.api.resource_reference) = {
808811
child_type: "recaptchaenterprise.googleapis.com/RelatedAccountGroupMembership"
@@ -878,3 +881,39 @@ message RelatedAccountGroup {
878881
}
879882
];
880883
}
884+
885+
// Settings specific to keys that can be used for WAF (Web Application
886+
// Firewall).
887+
message WafSettings {
888+
// Supported WAF features. For more information, see
889+
// https://cloud.google.com/recaptcha-enterprise/docs/usecase#comparison_of_features.
890+
enum WafFeature {
891+
// Undefined feature.
892+
WAF_FEATURE_UNSPECIFIED = 0;
893+
894+
// Redirects suspicious traffic to reCAPTCHA.
895+
CHALLENGE_PAGE = 1;
896+
897+
// Use reCAPTCHA session-tokens to protect the whole user session on the
898+
// site's domain.
899+
SESSION_TOKEN = 2;
900+
901+
// Use reCAPTCHA action-tokens to protect user actions.
902+
ACTION_TOKEN = 3;
903+
}
904+
905+
// Web Application Firewalls supported by reCAPTCHA Enterprise.
906+
enum WafService {
907+
// Undefined WAF
908+
WAF_SERVICE_UNSPECIFIED = 0;
909+
910+
// Cloud Armor
911+
CA = 1;
912+
}
913+
914+
// Required. The WAF service that uses this key.
915+
WafService waf_service = 1 [(google.api.field_behavior) = REQUIRED];
916+
917+
// Required. The WAF feature for which this key is enabled.
918+
WafFeature waf_feature = 2 [(google.api.field_behavior) = REQUIRED];
919+
}

protos/protos.d.ts

Lines changed: 123 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)