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

Commit

Permalink
fix!: rename parent to project in SearchRelatedAccountGroupMembership…
Browse files Browse the repository at this point in the history
…sRequest (#370)

fix!: rename parent to project in SearchRelatedAccountGroupMembershipsRequest
feat: introduced WafSettings
PiperOrigin-RevId: 446496512
Source-Link: googleapis/googleapis@63d4fba
Source-Link: googleapis/googleapis-gen@f168b29
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>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed May 11, 2022
1 parent 4391e5a commit aad0883
Show file tree
Hide file tree
Showing 8 changed files with 558 additions and 57 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2021 Google LLC
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -135,10 +135,10 @@ service RecaptchaEnterpriseService {
// Search group memberships related to a given account.
rpc SearchRelatedAccountGroupMemberships(SearchRelatedAccountGroupMembershipsRequest) returns (SearchRelatedAccountGroupMembershipsResponse) {
option (google.api.http) = {
post: "/v1/{parent=projects/*}/relatedaccountgroupmemberships:search"
post: "/v1/{project=projects/*}/relatedaccountgroupmemberships:search"
body: "*"
};
option (google.api.method_signature) = "parent,hashed_account_id";
option (google.api.method_signature) = "project,hashed_account_id";
}
}

Expand Down Expand Up @@ -186,18 +186,18 @@ message AnnotateAssessmentRequest {
// Default unspecified reason.
REASON_UNSPECIFIED = 0;

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

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

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

Expand Down Expand Up @@ -578,6 +578,9 @@ message Key {

// Options for user acceptance testing.
TestingOptions testing_options = 9;

// Settings for WAF
WafSettings waf_settings = 10;
}

// Options for user acceptance testing.
Expand Down Expand Up @@ -802,7 +805,7 @@ message ListRelatedAccountGroupsResponse {
message SearchRelatedAccountGroupMembershipsRequest {
// Required. The name of the project to search related account group memberships from,
// in the format "projects/{project}".
string parent = 1 [
string project = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
child_type: "recaptchaenterprise.googleapis.com/RelatedAccountGroupMembership"
Expand Down Expand Up @@ -878,3 +881,39 @@ message RelatedAccountGroup {
}
];
}

// Settings specific to keys that can be used for WAF (Web Application
// Firewall).
message WafSettings {
// Supported WAF features. For more information, see
// https://cloud.google.com/recaptcha-enterprise/docs/usecase#comparison_of_features.
enum WafFeature {
// Undefined feature.
WAF_FEATURE_UNSPECIFIED = 0;

// Redirects suspicious traffic to reCAPTCHA.
CHALLENGE_PAGE = 1;

// Use reCAPTCHA session-tokens to protect the whole user session on the
// site's domain.
SESSION_TOKEN = 2;

// Use reCAPTCHA action-tokens to protect user actions.
ACTION_TOKEN = 3;
}

// Web Application Firewalls supported by reCAPTCHA Enterprise.
enum WafService {
// Undefined WAF
WAF_SERVICE_UNSPECIFIED = 0;

// Cloud Armor
CA = 1;
}

// Required. The WAF service that uses this key.
WafService waf_service = 1 [(google.api.field_behavior) = REQUIRED];

// Required. The WAF feature for which this key is enabled.
WafFeature waf_feature = 2 [(google.api.field_behavior) = REQUIRED];
}
127 changes: 123 additions & 4 deletions protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit aad0883

Please sign in to comment.