google-apis-recaptchaenterprise_v1 0.38.0 → 0.39.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 83f3381bbfe181b8c81adced280ac0009e5166e1452d74f3e5938440798498b6
4
- data.tar.gz: 4d8fb061cce48d7e0cea01cae037715453ffac4dcc88709643a5f0c3ac3c29b9
3
+ metadata.gz: e48293f785f59018d843dd3ff4d70008f507467f3c41a33622801a43dee6fc92
4
+ data.tar.gz: 912f61861d8b7606473905e4319fda846bd85e796f2a496319cd97596bb6d2e5
5
5
  SHA512:
6
- metadata.gz: f52931ea7b614133b514bbd3fe7c77c525b5f7fea2eb09f87e00d3091b77d03262b52c2c6616db88ef8bd6cb70aab651c452d25cf7530723ca270130066cae39
7
- data.tar.gz: ead9b8f43fe491e9820529f192fde70f23b20e35e3226c34ac51c0e728196d5a076c4760e2cb18987b2804c6d48b8bd2fef21c070721fb8a619734e97b987dfb
6
+ metadata.gz: eb7f40dcfbaba08aeb86c354a044bf038192031f4434427ab8e78d2f6504af97ad4c37543b7a84d2d65e7cb65bd4eef9d1c076e6665a30e1f1a33c4c2b041781
7
+ data.tar.gz: df52f9e22c07baff0a87c0bfb21d25319d1e0acd10e0cd61a28df23ca97a98c2a1703dfcc214dcec5298008bbfabee10f4ca87fceb5066c459fd9902b3da1f84
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-recaptchaenterprise_v1
2
2
 
3
+ ### v0.39.0 (2023-10-29)
4
+
5
+ * Regenerated from discovery document revision 20231022
6
+
3
7
  ### v0.38.0 (2023-10-15)
4
8
 
5
9
  * 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. Unique stable hashed user identifier to apply to the assessment.
130
- # This is an alternative to setting the hashed_account_id in CreateAssessment,
131
- # for example when the account identifier is not yet known in the initial
132
- # request. It is recommended that the identifier is hashed using hmac-sha256
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. Optional reasons for the annotation that will be assigned to the
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)
@@ -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. Unique stable hashed user identifier for the request. The identifier
392
- # must be hashed using hmac-sha256 with stable secret.
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
@@ -1824,6 +1837,76 @@ module Google
1824
1837
  end
1825
1838
  end
1826
1839
 
1840
+ # An identifier associated with a user.
1841
+ class GoogleCloudRecaptchaenterpriseV1UserId
1842
+ include Google::Apis::Core::Hashable
1843
+
1844
+ # Optional. An email address.
1845
+ # Corresponds to the JSON property `email`
1846
+ # @return [String]
1847
+ attr_accessor :email
1848
+
1849
+ # Optional. A phone number. Should use the E.164 format.
1850
+ # Corresponds to the JSON property `phoneNumber`
1851
+ # @return [String]
1852
+ attr_accessor :phone_number
1853
+
1854
+ # Optional. A unique username, if different from all the other identifiers and `
1855
+ # account_id` that are provided. Can be a unique login handle or display name
1856
+ # for a user.
1857
+ # Corresponds to the JSON property `username`
1858
+ # @return [String]
1859
+ attr_accessor :username
1860
+
1861
+ def initialize(**args)
1862
+ update!(**args)
1863
+ end
1864
+
1865
+ # Update properties of this object
1866
+ def update!(**args)
1867
+ @email = args[:email] if args.key?(:email)
1868
+ @phone_number = args[:phone_number] if args.key?(:phone_number)
1869
+ @username = args[:username] if args.key?(:username)
1870
+ end
1871
+ end
1872
+
1873
+ # User information associated with a request protected by reCAPTCHA Enterprise.
1874
+ class GoogleCloudRecaptchaenterpriseV1UserInfo
1875
+ include Google::Apis::Core::Hashable
1876
+
1877
+ # Optional. For logged-in requests or login/registration requests, the unique
1878
+ # account identifier associated with this user. You can use the username if it
1879
+ # is stable (meaning it is the same for every request associated with the same
1880
+ # user), or any stable user ID of your choice. Leave blank for non logged-in
1881
+ # actions or guest checkout.
1882
+ # Corresponds to the JSON property `accountId`
1883
+ # @return [String]
1884
+ attr_accessor :account_id
1885
+
1886
+ # Optional. Creation time for this account associated with this user. Leave
1887
+ # blank for non logged-in actions, guest checkout, or when there is no account
1888
+ # associated with the current user.
1889
+ # Corresponds to the JSON property `createAccountTime`
1890
+ # @return [String]
1891
+ attr_accessor :create_account_time
1892
+
1893
+ # Optional. Identifiers associated with this user or request.
1894
+ # Corresponds to the JSON property `userIds`
1895
+ # @return [Array<Google::Apis::RecaptchaenterpriseV1::GoogleCloudRecaptchaenterpriseV1UserId>]
1896
+ attr_accessor :user_ids
1897
+
1898
+ def initialize(**args)
1899
+ update!(**args)
1900
+ end
1901
+
1902
+ # Update properties of this object
1903
+ def update!(**args)
1904
+ @account_id = args[:account_id] if args.key?(:account_id)
1905
+ @create_account_time = args[:create_account_time] if args.key?(:create_account_time)
1906
+ @user_ids = args[:user_ids] if args.key?(:user_ids)
1907
+ end
1908
+ end
1909
+
1827
1910
  # Settings specific to keys that can be used for WAF (Web Application Firewall).
1828
1911
  class GoogleCloudRecaptchaenterpriseV1WafSettings
1829
1912
  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.38.0"
19
+ GEM_VERSION = "0.39.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 = "20231008"
25
+ REVISION = "20231022"
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
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.38.0
4
+ version: 0.39.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-10-15 00:00:00.000000000 Z
11
+ date: 2023-10-29 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.38.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-recaptchaenterprise_v1/v0.39.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: []