Skip to content

Commit

Permalink
feat: Automated regeneration of recaptchaenterprise v1 client (google…
Browse files Browse the repository at this point in the history
…apis#19473)

Auto-created at 2024-05-26 10:23:14 +0000 using the toys pull request generator.
  • Loading branch information
yoshi-code-bot authored May 26, 2024
1 parent 06f4a3a commit 5158434
Show file tree
Hide file tree
Showing 5 changed files with 91 additions and 2 deletions.
7 changes: 7 additions & 0 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -264015,6 +264015,7 @@
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1Assessment/fraudPreventionAssessment": fraud_prevention_assessment
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1Assessment/fraudSignals": fraud_signals
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1Assessment/name": name
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1Assessment/phoneFraudAssessment": phone_fraud_assessment
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1Assessment/privatePasswordLeakVerification": private_password_leak_verification
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1Assessment/riskAnalysis": risk_analysis
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1Assessment/tokenProperties": token_properties
Expand Down Expand Up @@ -264135,6 +264136,8 @@
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1Metrics/startTime": start_time
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1MigrateKeyRequest": google_cloud_recaptchaenterprise_v1_migrate_key_request
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1MigrateKeyRequest/skipBillingCheck": skip_billing_check
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1PhoneFraudAssessment": google_cloud_recaptchaenterprise_v1_phone_fraud_assessment
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1PhoneFraudAssessment/smsTollFraudVerdict": sms_toll_fraud_verdict
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1PrivatePasswordLeakVerification": google_cloud_recaptchaenterprise_v1_private_password_leak_verification
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1PrivatePasswordLeakVerification/encryptedLeakMatchPrefixes": encrypted_leak_match_prefixes
? "/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1PrivatePasswordLeakVerification/encryptedLeakMatchPrefixes/encrypted_leak_match_prefix"
Expand Down Expand Up @@ -264178,6 +264181,10 @@
: related_account_group_memberships
? "/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1SearchRelatedAccountGroupMembershipsResponse/relatedAccountGroupMemberships/related_account_group_membership"
: related_account_group_membership
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1SmsTollFraudVerdict": google_cloud_recaptchaenterprise_v1_sms_toll_fraud_verdict
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1SmsTollFraudVerdict/reasons": reasons
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1SmsTollFraudVerdict/reasons/reason": reason
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1SmsTollFraudVerdict/risk": risk
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1TestingOptions": google_cloud_recaptchaenterprise_v1_testing_options
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1TestingOptions/testingChallenge": testing_challenge
"/recaptchaenterprise:v1/GoogleCloudRecaptchaenterpriseV1TestingOptions/testingScore": testing_score
Expand Down
3 changes: 2 additions & 1 deletion generated/google-apis-recaptchaenterprise_v1/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Release history for google-apis-recaptchaenterprise_v1

### v0.48.0 (2024-05-19)
### v0.48.0 (2024-05-26)

* Regenerated from discovery document revision 20240518
* Regenerated using generator version 0.15.0

### v0.47.0 (2024-03-31)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,11 @@ class GoogleCloudRecaptchaenterpriseV1Assessment
# @return [String]
attr_accessor :name

# Assessment for Phone Fraud
# Corresponds to the JSON property `phoneFraudAssessment`
# @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1PhoneFraudAssessment]
attr_accessor :phone_fraud_assessment

# Private password leak verification info.
# Corresponds to the JSON property `privatePasswordLeakVerification`
# @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1PrivatePasswordLeakVerification]
Expand Down Expand Up @@ -281,6 +286,7 @@ def update!(**args)
@fraud_prevention_assessment = args[:fraud_prevention_assessment] if args.key?(:fraud_prevention_assessment)
@fraud_signals = args[:fraud_signals] if args.key?(:fraud_signals)
@name = args[:name] if args.key?(:name)
@phone_fraud_assessment = args[:phone_fraud_assessment] if args.key?(:phone_fraud_assessment)
@private_password_leak_verification = args[:private_password_leak_verification] if args.key?(:private_password_leak_verification)
@risk_analysis = args[:risk_analysis] if args.key?(:risk_analysis)
@token_properties = args[:token_properties] if args.key?(:token_properties)
Expand Down Expand Up @@ -1189,6 +1195,25 @@ def update!(**args)
end
end

# Assessment for Phone Fraud
class GoogleCloudRecaptchaenterpriseV1PhoneFraudAssessment
include Google::Apis::Core::Hashable

# Information about sms toll fraud
# Corresponds to the JSON property `smsTollFraudVerdict`
# @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1SmsTollFraudVerdict]
attr_accessor :sms_toll_fraud_verdict

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@sms_toll_fraud_verdict = args[:sms_toll_fraud_verdict] if args.key?(:sms_toll_fraud_verdict)
end
end

# Private password leak verification info.
class GoogleCloudRecaptchaenterpriseV1PrivatePasswordLeakVerification
include Google::Apis::Core::Hashable
Expand Down Expand Up @@ -1507,6 +1532,32 @@ def update!(**args)
end
end

# Information about sms toll fraud
class GoogleCloudRecaptchaenterpriseV1SmsTollFraudVerdict
include Google::Apis::Core::Hashable

# Output only. Reasons contributing to the SMS toll fraud verdict.
# Corresponds to the JSON property `reasons`
# @return [Array<String>]
attr_accessor :reasons

# Output only. Probability of an sms event being fraudulent. Values are from 0.0
# (lowest) to 1.0 (highest).
# Corresponds to the JSON property `risk`
# @return [Float]
attr_accessor :risk

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@reasons = args[:reasons] if args.key?(:reasons)
@risk = args[:risk] if args.key?(:risk)
end
end

# Options for user acceptance testing.
class GoogleCloudRecaptchaenterpriseV1TestingOptions
include Google::Apis::Core::Hashable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module RecaptchaenterpriseV1
GENERATOR_VERSION = "0.15.0"

# Revision of the discovery document this client was generated from
REVISION = "20240324"
REVISION = "20240518"
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class GoogleCloudRecaptchaenterpriseV1PhoneFraudAssessment
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class GoogleCloudRecaptchaenterpriseV1PrivatePasswordLeakVerification
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -292,6 +298,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end

class GoogleCloudRecaptchaenterpriseV1SmsTollFraudVerdict
class Representation < Google::Apis::Core::JsonRepresentation; end

include Google::Apis::Core::JsonObjectSupport
end

class GoogleCloudRecaptchaenterpriseV1TestingOptions
class Representation < Google::Apis::Core::JsonRepresentation; end

Expand Down Expand Up @@ -446,6 +458,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
property :fraud_signals, as: 'fraudSignals', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FraudSignals, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FraudSignals::Representation

property :name, as: 'name'
property :phone_fraud_assessment, as: 'phoneFraudAssessment', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1PhoneFraudAssessment, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1PhoneFraudAssessment::Representation

property :private_password_leak_verification, as: 'privatePasswordLeakVerification', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1PrivatePasswordLeakVerification, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1PrivatePasswordLeakVerification::Representation

property :risk_analysis, as: 'riskAnalysis', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RiskAnalysis, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1RiskAnalysis::Representation
Expand Down Expand Up @@ -721,6 +735,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class GoogleCloudRecaptchaenterpriseV1PhoneFraudAssessment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :sms_toll_fraud_verdict, as: 'smsTollFraudVerdict', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1SmsTollFraudVerdict, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1SmsTollFraudVerdict::Representation

end
end

class GoogleCloudRecaptchaenterpriseV1PrivatePasswordLeakVerification
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down Expand Up @@ -812,6 +834,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
end
end

class GoogleCloudRecaptchaenterpriseV1SmsTollFraudVerdict
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :reasons, as: 'reasons'
property :risk, as: 'risk'
end
end

class GoogleCloudRecaptchaenterpriseV1TestingOptions
# @private
class Representation < Google::Apis::Core::JsonRepresentation
Expand Down

0 comments on commit 5158434

Please sign in to comment.