Skip to content

Commit 5c373f6

Browse files
feat: [google-cloud-recaptcha-enterprise]Add Fraud Prevention settings field (#12626)
BEGIN_COMMIT_OVERRIDE feat:Add Fraud Prevention settings field END_COMMIT_OVERRIDE - [ ] Regenerate this pull request now. PiperOrigin-RevId: 627512001 Source-Link: googleapis/googleapis@0179dcc Source-Link: googleapis/googleapis-gen@e483da8 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXJlY2FwdGNoYS1lbnRlcnByaXNlLy5Pd2xCb3QueWFtbCIsImgiOiJlNDgzZGE4MmFjMTk3MmM5ZTc2NDU5MmQwNmYyZGE5NWFmODM1YjExIn0= BEGIN_NESTED_COMMIT feat: [google-cloud-recaptcha-enterprise]Add Fraud Prevention settings field PiperOrigin-RevId: 627445658 Source-Link: googleapis/googleapis@0f16abb Source-Link: googleapis/googleapis-gen@692123d Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXJlY2FwdGNoYS1lbnRlcnByaXNlLy5Pd2xCb3QueWFtbCIsImgiOiI2OTIxMjNkZTdiZGNkOTE4MGVmNjQzNjlhMDkyN2FhZmU4ODQ2ZDkxIn0= END_NESTED_COMMIT --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: ohmayr <omairnaveed@ymail.com>
1 parent bbc49a5 commit 5c373f6

File tree

4 files changed

+35
-3
lines changed

4 files changed

+35
-3
lines changed

packages/google-cloud-recaptcha-enterprise/google/cloud/recaptchaenterprise/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "1.19.1" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-recaptcha-enterprise/google/cloud/recaptchaenterprise_v1/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "1.19.1" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-recaptcha-enterprise/google/cloud/recaptchaenterprise_v1/types/recaptchaenterprise.py

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,8 +794,35 @@ class Event(proto.Message):
794794
login/registration requests, or by providing
795795
user identifiers for guest actions like
796796
checkout.
797+
fraud_prevention (google.cloud.recaptchaenterprise_v1.types.Event.FraudPrevention):
798+
Optional. The Fraud Prevention setting for
799+
this assessment.
797800
"""
798801

802+
class FraudPrevention(proto.Enum):
803+
r"""Setting that controls Fraud Prevention assessments.
804+
805+
Values:
806+
FRAUD_PREVENTION_UNSPECIFIED (0):
807+
Default, unspecified setting. If opted in for automatic
808+
detection, ``fraud_prevention_assessment`` is returned based
809+
on the request. Otherwise, ``fraud_prevention_assessment``
810+
is returned if ``transaction_data`` is present in the
811+
``Event`` and Fraud Prevention is enabled in the Google
812+
Cloud console.
813+
ENABLED (1):
814+
Enable Fraud Prevention for this assessment,
815+
if Fraud Prevention is enabled in the Google
816+
Cloud console.
817+
DISABLED (2):
818+
Disable Fraud Prevention for this assessment,
819+
regardless of opt-in status or Google Cloud
820+
console settings.
821+
"""
822+
FRAUD_PREVENTION_UNSPECIFIED = 0
823+
ENABLED = 1
824+
DISABLED = 2
825+
799826
token: str = proto.Field(
800827
proto.STRING,
801828
number=1,
@@ -854,6 +881,11 @@ class Event(proto.Message):
854881
number=15,
855882
message="UserInfo",
856883
)
884+
fraud_prevention: FraudPrevention = proto.Field(
885+
proto.ENUM,
886+
number=17,
887+
enum=FraudPrevention,
888+
)
857889

858890

859891
class TransactionData(proto.Message):

packages/google-cloud-recaptcha-enterprise/samples/generated_samples/snippet_metadata_google.cloud.recaptchaenterprise.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-recaptcha-enterprise",
11-
"version": "1.19.1"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

0 commit comments

Comments
 (0)