google-apis-recaptchaenterprise_v1 0.38.0 → 0.40.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/recaptchaenterprise_v1/classes.rb +105 -20
- data/lib/google/apis/recaptchaenterprise_v1/gem_version.rb +2 -2
- data/lib/google/apis/recaptchaenterprise_v1/representations.rb +34 -0
- data/lib/google/apis/recaptchaenterprise_v1/service.rb +4 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b41163767ae9f5c6c6e6825c69ecc53786049c6aadfe63ccaf37edb0e3abe5d
|
4
|
+
data.tar.gz: 74d25cbdb683c0cfe065dca40dcc5af5d27edb748ad3bf20fee91b6327415d75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0dff5b7d1d417f20bdc171436727d2ae2d03b14a962ccf8450c04bd222d7d33036f3073ef6427d297c92d012a9db2a78dd8ecef12da0b7d08392ae308def53e5
|
7
|
+
data.tar.gz: f7ce3bda0ff13c8d1ec9fb960b14c1719cadde4d41310614c7dd50ed49b3edb6a8f00ff6141eac8d7f2c6c73ec3110ad97605dacdcbea04963b110fb4c869f71
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-recaptchaenterprise_v1
|
2
2
|
|
3
|
+
### v0.40.0 (2023-11-19)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20231112
|
6
|
+
|
7
|
+
### v0.39.0 (2023-10-29)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20231022
|
10
|
+
|
3
11
|
### v0.38.0 (2023-10-15)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20231008
|
@@ -119,6 +119,13 @@ module Google
|
|
119
119
|
class GoogleCloudRecaptchaenterpriseV1AnnotateAssessmentRequest
|
120
120
|
include Google::Apis::Core::Hashable
|
121
121
|
|
122
|
+
# Optional. A stable account identifier to apply to the assessment. This is an
|
123
|
+
# alternative to setting `account_id` in `CreateAssessment`, for example when a
|
124
|
+
# stable account identifier is not yet known in the initial request.
|
125
|
+
# Corresponds to the JSON property `accountId`
|
126
|
+
# @return [String]
|
127
|
+
attr_accessor :account_id
|
128
|
+
|
122
129
|
# Optional. The annotation that will be assigned to the Event. This field can be
|
123
130
|
# left empty to provide reasons that apply to an event without concluding
|
124
131
|
# whether the event is legitimate or fraudulent.
|
@@ -126,18 +133,16 @@ module Google
|
|
126
133
|
# @return [String]
|
127
134
|
attr_accessor :annotation
|
128
135
|
|
129
|
-
# Optional.
|
130
|
-
#
|
131
|
-
#
|
132
|
-
# request.
|
133
|
-
# with stable secret.
|
136
|
+
# Optional. A stable hashed account identifier to apply to the assessment. This
|
137
|
+
# is an alternative to setting `hashed_account_id` in `CreateAssessment`, for
|
138
|
+
# example when a stable account identifier is not yet known in the initial
|
139
|
+
# request.
|
134
140
|
# Corresponds to the JSON property `hashedAccountId`
|
135
141
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
136
142
|
# @return [String]
|
137
143
|
attr_accessor :hashed_account_id
|
138
144
|
|
139
|
-
# Optional.
|
140
|
-
# Event.
|
145
|
+
# Optional. Reasons for the annotation that are assigned to the event.
|
141
146
|
# Corresponds to the JSON property `reasons`
|
142
147
|
# @return [Array<String>]
|
143
148
|
attr_accessor :reasons
|
@@ -153,6 +158,7 @@ module Google
|
|
153
158
|
|
154
159
|
# Update properties of this object
|
155
160
|
def update!(**args)
|
161
|
+
@account_id = args[:account_id] if args.key?(:account_id)
|
156
162
|
@annotation = args[:annotation] if args.key?(:annotation)
|
157
163
|
@hashed_account_id = args[:hashed_account_id] if args.key?(:hashed_account_id)
|
158
164
|
@reasons = args[:reasons] if args.key?(:reasons)
|
@@ -241,8 +247,8 @@ module Google
|
|
241
247
|
# @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FraudSignals]
|
242
248
|
attr_accessor :fraud_signals
|
243
249
|
|
244
|
-
# Output only. The resource name for the Assessment in the format `
|
245
|
-
# project`/assessments/`assessment``.
|
250
|
+
# Output only. Identifier. The resource name for the Assessment in the format `
|
251
|
+
# projects/`project`/assessments/`assessment``.
|
246
252
|
# Corresponds to the JSON property `name`
|
247
253
|
# @return [String]
|
248
254
|
attr_accessor :name
|
@@ -388,8 +394,9 @@ module Google
|
|
388
394
|
attr_accessor :firewall_policy_evaluation
|
389
395
|
alias_method :firewall_policy_evaluation?, :firewall_policy_evaluation
|
390
396
|
|
391
|
-
# Optional.
|
392
|
-
# must be hashed using hmac-
|
397
|
+
# Optional. Deprecated: use `user_info.account_id` instead. Unique stable hashed
|
398
|
+
# user identifier for the request. The identifier must be hashed using hmac-
|
399
|
+
# sha256 with stable secret.
|
393
400
|
# Corresponds to the JSON property `hashedAccountId`
|
394
401
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
395
402
|
# @return [String]
|
@@ -433,6 +440,11 @@ module Google
|
|
433
440
|
# @return [String]
|
434
441
|
attr_accessor :user_agent
|
435
442
|
|
443
|
+
# User information associated with a request protected by reCAPTCHA Enterprise.
|
444
|
+
# Corresponds to the JSON property `userInfo`
|
445
|
+
# @return [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1UserInfo]
|
446
|
+
attr_accessor :user_info
|
447
|
+
|
436
448
|
# Optional. The IP address in the request from the user's device related to this
|
437
449
|
# event.
|
438
450
|
# Corresponds to the JSON property `userIpAddress`
|
@@ -463,6 +475,7 @@ module Google
|
|
463
475
|
@token = args[:token] if args.key?(:token)
|
464
476
|
@transaction_data = args[:transaction_data] if args.key?(:transaction_data)
|
465
477
|
@user_agent = args[:user_agent] if args.key?(:user_agent)
|
478
|
+
@user_info = args[:user_info] if args.key?(:user_info)
|
466
479
|
@user_ip_address = args[:user_ip_address] if args.key?(:user_ip_address)
|
467
480
|
@waf_token_assessment = args[:waf_token_assessment] if args.key?(:waf_token_assessment)
|
468
481
|
end
|
@@ -635,8 +648,8 @@ module Google
|
|
635
648
|
# @return [String]
|
636
649
|
attr_accessor :description
|
637
650
|
|
638
|
-
# The resource name for the FirewallPolicy in the format `projects/`
|
639
|
-
# firewallpolicies/`firewallpolicy``.
|
651
|
+
# Identifier. The resource name for the FirewallPolicy in the format `projects/`
|
652
|
+
# project`/firewallpolicies/`firewallpolicy``.
|
640
653
|
# Corresponds to the JSON property `name`
|
641
654
|
# @return [String]
|
642
655
|
attr_accessor :name
|
@@ -932,7 +945,8 @@ module Google
|
|
932
945
|
# @return [Hash<String,String>]
|
933
946
|
attr_accessor :labels
|
934
947
|
|
935
|
-
# The resource name for the Key in the format `projects/`project`/
|
948
|
+
# Identifier. The resource name for the Key in the format `projects/`project`/
|
949
|
+
# keys/`key``.
|
936
950
|
# Corresponds to the JSON property `name`
|
937
951
|
# @return [String]
|
938
952
|
attr_accessor :name
|
@@ -1085,8 +1099,8 @@ module Google
|
|
1085
1099
|
# @return [Array<Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1ChallengeMetrics>]
|
1086
1100
|
attr_accessor :challenge_metrics
|
1087
1101
|
|
1088
|
-
# Output only. The name of the metrics, in the format `projects/`
|
1089
|
-
# key`/metrics`.
|
1102
|
+
# Output only. Identifier. The name of the metrics, in the format `projects/`
|
1103
|
+
# project`/keys/`key`/metrics`.
|
1090
1104
|
# Corresponds to the JSON property `name`
|
1091
1105
|
# @return [String]
|
1092
1106
|
attr_accessor :name
|
@@ -1194,8 +1208,8 @@ module Google
|
|
1194
1208
|
class GoogleCloudRecaptchaenterpriseV1RelatedAccountGroup
|
1195
1209
|
include Google::Apis::Core::Hashable
|
1196
1210
|
|
1197
|
-
# Required. The resource name for the related account group in the
|
1198
|
-
# projects/`project`/relatedaccountgroups/`related_account_group``.
|
1211
|
+
# Required. Identifier. The resource name for the related account group in the
|
1212
|
+
# format `projects/`project`/relatedaccountgroups/`related_account_group``.
|
1199
1213
|
# Corresponds to the JSON property `name`
|
1200
1214
|
# @return [String]
|
1201
1215
|
attr_accessor :name
|
@@ -1222,8 +1236,9 @@ module Google
|
|
1222
1236
|
# @return [String]
|
1223
1237
|
attr_accessor :hashed_account_id
|
1224
1238
|
|
1225
|
-
# Required. The resource name for this membership in the format `
|
1226
|
-
# project`/relatedaccountgroups/`relatedaccountgroup`/memberships/`
|
1239
|
+
# Required. Identifier. The resource name for this membership in the format `
|
1240
|
+
# projects/`project`/relatedaccountgroups/`relatedaccountgroup`/memberships/`
|
1241
|
+
# membership``.
|
1227
1242
|
# Corresponds to the JSON property `name`
|
1228
1243
|
# @return [String]
|
1229
1244
|
attr_accessor :name
|
@@ -1824,6 +1839,76 @@ module Google
|
|
1824
1839
|
end
|
1825
1840
|
end
|
1826
1841
|
|
1842
|
+
# An identifier associated with a user.
|
1843
|
+
class GoogleCloudRecaptchaenterpriseV1UserId
|
1844
|
+
include Google::Apis::Core::Hashable
|
1845
|
+
|
1846
|
+
# Optional. An email address.
|
1847
|
+
# Corresponds to the JSON property `email`
|
1848
|
+
# @return [String]
|
1849
|
+
attr_accessor :email
|
1850
|
+
|
1851
|
+
# Optional. A phone number. Should use the E.164 format.
|
1852
|
+
# Corresponds to the JSON property `phoneNumber`
|
1853
|
+
# @return [String]
|
1854
|
+
attr_accessor :phone_number
|
1855
|
+
|
1856
|
+
# Optional. A unique username, if different from all the other identifiers and `
|
1857
|
+
# account_id` that are provided. Can be a unique login handle or display name
|
1858
|
+
# for a user.
|
1859
|
+
# Corresponds to the JSON property `username`
|
1860
|
+
# @return [String]
|
1861
|
+
attr_accessor :username
|
1862
|
+
|
1863
|
+
def initialize(**args)
|
1864
|
+
update!(**args)
|
1865
|
+
end
|
1866
|
+
|
1867
|
+
# Update properties of this object
|
1868
|
+
def update!(**args)
|
1869
|
+
@email = args[:email] if args.key?(:email)
|
1870
|
+
@phone_number = args[:phone_number] if args.key?(:phone_number)
|
1871
|
+
@username = args[:username] if args.key?(:username)
|
1872
|
+
end
|
1873
|
+
end
|
1874
|
+
|
1875
|
+
# User information associated with a request protected by reCAPTCHA Enterprise.
|
1876
|
+
class GoogleCloudRecaptchaenterpriseV1UserInfo
|
1877
|
+
include Google::Apis::Core::Hashable
|
1878
|
+
|
1879
|
+
# Optional. For logged-in requests or login/registration requests, the unique
|
1880
|
+
# account identifier associated with this user. You can use the username if it
|
1881
|
+
# is stable (meaning it is the same for every request associated with the same
|
1882
|
+
# user), or any stable user ID of your choice. Leave blank for non logged-in
|
1883
|
+
# actions or guest checkout.
|
1884
|
+
# Corresponds to the JSON property `accountId`
|
1885
|
+
# @return [String]
|
1886
|
+
attr_accessor :account_id
|
1887
|
+
|
1888
|
+
# Optional. Creation time for this account associated with this user. Leave
|
1889
|
+
# blank for non logged-in actions, guest checkout, or when there is no account
|
1890
|
+
# associated with the current user.
|
1891
|
+
# Corresponds to the JSON property `createAccountTime`
|
1892
|
+
# @return [String]
|
1893
|
+
attr_accessor :create_account_time
|
1894
|
+
|
1895
|
+
# Optional. Identifiers associated with this user or request.
|
1896
|
+
# Corresponds to the JSON property `userIds`
|
1897
|
+
# @return [Array<Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1UserId>]
|
1898
|
+
attr_accessor :user_ids
|
1899
|
+
|
1900
|
+
def initialize(**args)
|
1901
|
+
update!(**args)
|
1902
|
+
end
|
1903
|
+
|
1904
|
+
# Update properties of this object
|
1905
|
+
def update!(**args)
|
1906
|
+
@account_id = args[:account_id] if args.key?(:account_id)
|
1907
|
+
@create_account_time = args[:create_account_time] if args.key?(:create_account_time)
|
1908
|
+
@user_ids = args[:user_ids] if args.key?(:user_ids)
|
1909
|
+
end
|
1910
|
+
end
|
1911
|
+
|
1827
1912
|
# Settings specific to keys that can be used for WAF (Web Application Firewall).
|
1828
1913
|
class GoogleCloudRecaptchaenterpriseV1WafSettings
|
1829
1914
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module RecaptchaenterpriseV1
|
18
18
|
# Version of the google-apis-recaptchaenterprise_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.40.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20231112"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -322,6 +322,18 @@ module Google
|
|
322
322
|
include Google::Apis::Core::JsonObjectSupport
|
323
323
|
end
|
324
324
|
|
325
|
+
class GoogleCloudRecaptchaenterpriseV1UserId
|
326
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
327
|
+
|
328
|
+
include Google::Apis::Core::JsonObjectSupport
|
329
|
+
end
|
330
|
+
|
331
|
+
class GoogleCloudRecaptchaenterpriseV1UserInfo
|
332
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
333
|
+
|
334
|
+
include Google::Apis::Core::JsonObjectSupport
|
335
|
+
end
|
336
|
+
|
325
337
|
class GoogleCloudRecaptchaenterpriseV1WafSettings
|
326
338
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
327
339
|
|
@@ -376,6 +388,7 @@ module Google
|
|
376
388
|
class GoogleCloudRecaptchaenterpriseV1AnnotateAssessmentRequest
|
377
389
|
# @private
|
378
390
|
class Representation < Google::Apis::Core::JsonRepresentation
|
391
|
+
property :account_id, as: 'accountId'
|
379
392
|
property :annotation, as: 'annotation'
|
380
393
|
property :hashed_account_id, :base64 => true, as: 'hashedAccountId'
|
381
394
|
collection :reasons, as: 'reasons'
|
@@ -459,6 +472,8 @@ module Google
|
|
459
472
|
property :transaction_data, as: 'transactionData', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionData, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1TransactionData::Representation
|
460
473
|
|
461
474
|
property :user_agent, as: 'userAgent'
|
475
|
+
property :user_info, as: 'userInfo', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1UserInfo, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1UserInfo::Representation
|
476
|
+
|
462
477
|
property :user_ip_address, as: 'userIpAddress'
|
463
478
|
property :waf_token_assessment, as: 'wafTokenAssessment'
|
464
479
|
end
|
@@ -855,6 +870,25 @@ module Google
|
|
855
870
|
end
|
856
871
|
end
|
857
872
|
|
873
|
+
class GoogleCloudRecaptchaenterpriseV1UserId
|
874
|
+
# @private
|
875
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
876
|
+
property :email, as: 'email'
|
877
|
+
property :phone_number, as: 'phoneNumber'
|
878
|
+
property :username, as: 'username'
|
879
|
+
end
|
880
|
+
end
|
881
|
+
|
882
|
+
class GoogleCloudRecaptchaenterpriseV1UserInfo
|
883
|
+
# @private
|
884
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
885
|
+
property :account_id, as: 'accountId'
|
886
|
+
property :create_account_time, as: 'createAccountTime'
|
887
|
+
collection :user_ids, as: 'userIds', class: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1UserId, decorator: Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1UserId::Representation
|
888
|
+
|
889
|
+
end
|
890
|
+
end
|
891
|
+
|
858
892
|
class GoogleCloudRecaptchaenterpriseV1WafSettings
|
859
893
|
# @private
|
860
894
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -258,8 +258,8 @@ module Google
|
|
258
258
|
|
259
259
|
# Updates the specified firewall policy.
|
260
260
|
# @param [String] name
|
261
|
-
# The resource name for the FirewallPolicy in the format `projects/`
|
262
|
-
# firewallpolicies/`firewallpolicy``.
|
261
|
+
# Identifier. The resource name for the FirewallPolicy in the format `projects/`
|
262
|
+
# project`/firewallpolicies/`firewallpolicy``.
|
263
263
|
# @param [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1FirewallPolicy] google_cloud_recaptchaenterprise_v1_firewall_policy_object
|
264
264
|
# @param [String] update_mask
|
265
265
|
# Optional. The mask to control which fields of the policy get updated. If the
|
@@ -501,7 +501,8 @@ module Google
|
|
501
501
|
|
502
502
|
# Updates the specified key.
|
503
503
|
# @param [String] name
|
504
|
-
# The resource name for the Key in the format `projects/`project`/
|
504
|
+
# Identifier. The resource name for the Key in the format `projects/`project`/
|
505
|
+
# keys/`key``.
|
505
506
|
# @param [Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1Key] google_cloud_recaptchaenterprise_v1_key_object
|
506
507
|
# @param [String] update_mask
|
507
508
|
# Optional. The mask to control which fields of the key get updated. If the mask
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-recaptchaenterprise_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.40.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-recaptchaenterprise_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-recaptchaenterprise_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-recaptchaenterprise_v1/v0.40.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-recaptchaenterprise_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|