google-cloud-recaptcha_enterprise-v1 0.7.1 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e241eeb6c6a6297f0123627bb5a6a143a38e2287f191399e138f065f65667fc6
4
- data.tar.gz: c94bc7f92bd9f4f8cabece9404325007bd6c82bfa4ba850381c6e436aeba71fb
3
+ metadata.gz: e26602537b99c63017e5c48ae60e3dbd7dd26061aea474f4375febcf454e6ae6
4
+ data.tar.gz: a637690ab153550fa621ee4118b58354b1adbb2607fc5acc60ebdeca6fbc7d08
5
5
  SHA512:
6
- metadata.gz: b4752c985fc90e0209e16d05a4f01479491b4657f164feb4f7286ceb807cf7b4053da15f0a745339255d9f16c32118f196fc99eb4e5695eee55a4d7d2f7e8b53
7
- data.tar.gz: 6e69af9ee931aec21fe54280f458294dadb4337e504d35afa1462ed0ea10a9cb8f7fded1bad319ceb1e7c901bdffb556c40fccc9cc2e7bc880cd15ff133f44b8
6
+ metadata.gz: 8773c5677b44236627da8ea377a7e038c324d490d864fea750a8d2646fc2d98e2268f6a6f0974185d673f938d5cde503c80db4005ebea19c65c8c55d7fcededd
7
+ data.tar.gz: a90c47a18b028da33c162f01d4fa5b17a9365fc2c481f8d7d7776854d7c154b0830a1d9c65f5559a4ce5e7c26826576464afc767340cd07cd978e1e20797ec6e
data/README.md CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::RecaptchaEnterprise::V1::CreateAssessmentRequest.new
37
37
  response = client.create_assessment request
38
38
  ```
39
39
 
40
- View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-recaptcha_enterprise-v1/latest)
40
+ View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-recaptcha_enterprise-v1/latest)
41
41
  for class and method documentation.
42
42
 
43
43
  See also the [Product Documentation](https://cloud.google.com/recaptcha-enterprise)
@@ -1193,12 +1193,12 @@ module Google
1193
1193
  # @param options [::Gapic::CallOptions, ::Hash]
1194
1194
  # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1195
1195
  #
1196
- # @overload search_related_account_group_memberships(parent: nil, hashed_account_id: nil, page_size: nil, page_token: nil)
1196
+ # @overload search_related_account_group_memberships(project: nil, hashed_account_id: nil, page_size: nil, page_token: nil)
1197
1197
  # Pass arguments to `search_related_account_group_memberships` via keyword arguments. Note that at
1198
1198
  # least one keyword argument is required. To specify no parameters, or to keep all
1199
1199
  # the default parameter values, pass an empty Hash as a request object (see above).
1200
1200
  #
1201
- # @param parent [::String]
1201
+ # @param project [::String]
1202
1202
  # Required. The name of the project to search related account group memberships from,
1203
1203
  # in the format "projects/\\{project}".
1204
1204
  # @param hashed_account_id [::String]
@@ -1266,8 +1266,8 @@ module Google
1266
1266
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1267
1267
 
1268
1268
  header_params = {}
1269
- if request.parent
1270
- header_params["parent"] = request.parent
1269
+ if request.project
1270
+ header_params["project"] = request.project
1271
1271
  end
1272
1272
 
1273
1273
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module RecaptchaEnterprise
23
23
  module V1
24
- VERSION = "0.7.1"
24
+ VERSION = "0.8.0"
25
25
  end
26
26
  end
27
27
  end
@@ -25,6 +25,8 @@ module Google
25
25
  ##
26
26
  # To load this package, including all its services, and instantiate a client:
27
27
  #
28
+ # @example
29
+ #
28
30
  # require "google/cloud/recaptcha_enterprise/v1"
29
31
  # client = ::Google::Cloud::RecaptchaEnterprise::V1::RecaptchaEnterpriseService::Client.new
30
32
  #
@@ -1,6 +1,8 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/annotations_pb'
5
7
  require 'google/api/client_pb'
6
8
  require 'google/api/field_behavior_pb'
@@ -8,7 +10,6 @@ require 'google/api/resource_pb'
8
10
  require 'google/protobuf/empty_pb'
9
11
  require 'google/protobuf/field_mask_pb'
10
12
  require 'google/protobuf/timestamp_pb'
11
- require 'google/protobuf'
12
13
 
13
14
  Google::Protobuf::DescriptorPool.generated_pool.build do
14
15
  add_file("google/cloud/recaptchaenterprise/v1/recaptchaenterprise.proto", :syntax => :proto3) do
@@ -137,6 +138,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
137
138
  map :labels, :string, :string, 6
138
139
  optional :create_time, :message, 7, "google.protobuf.Timestamp"
139
140
  optional :testing_options, :message, 9, "google.cloud.recaptchaenterprise.v1.TestingOptions"
141
+ optional :waf_settings, :message, 10, "google.cloud.recaptchaenterprise.v1.WafSettings"
140
142
  oneof :platform_settings do
141
143
  optional :web_settings, :message, 3, "google.cloud.recaptchaenterprise.v1.WebKeySettings"
142
144
  optional :android_settings, :message, 4, "google.cloud.recaptchaenterprise.v1.AndroidKeySettings"
@@ -211,7 +213,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
211
213
  optional :next_page_token, :string, 2
212
214
  end
213
215
  add_message "google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest" do
214
- optional :parent, :string, 1
216
+ optional :project, :string, 1
215
217
  optional :hashed_account_id, :bytes, 2
216
218
  optional :page_size, :int32, 3
217
219
  optional :page_token, :string, 4
@@ -227,6 +229,20 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
227
229
  add_message "google.cloud.recaptchaenterprise.v1.RelatedAccountGroup" do
228
230
  optional :name, :string, 1
229
231
  end
232
+ add_message "google.cloud.recaptchaenterprise.v1.WafSettings" do
233
+ optional :waf_service, :enum, 1, "google.cloud.recaptchaenterprise.v1.WafSettings.WafService"
234
+ optional :waf_feature, :enum, 2, "google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature"
235
+ end
236
+ add_enum "google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature" do
237
+ value :WAF_FEATURE_UNSPECIFIED, 0
238
+ value :CHALLENGE_PAGE, 1
239
+ value :SESSION_TOKEN, 2
240
+ value :ACTION_TOKEN, 3
241
+ end
242
+ add_enum "google.cloud.recaptchaenterprise.v1.WafSettings.WafService" do
243
+ value :WAF_SERVICE_UNSPECIFIED, 0
244
+ value :CA, 1
245
+ end
230
246
  end
231
247
  end
232
248
 
@@ -275,6 +291,9 @@ module Google
275
291
  SearchRelatedAccountGroupMembershipsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse").msgclass
276
292
  RelatedAccountGroupMembership = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership").msgclass
277
293
  RelatedAccountGroup = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.RelatedAccountGroup").msgclass
294
+ WafSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.WafSettings").msgclass
295
+ WafSettings::WafFeature = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.WafSettings.WafFeature").enummodule
296
+ WafSettings::WafService = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.WafSettings.WafService").enummodule
278
297
  end
279
298
  end
280
299
  end
@@ -85,18 +85,18 @@ module Google
85
85
  # Default unspecified reason.
86
86
  REASON_UNSPECIFIED = 0
87
87
 
88
- # Indicates a chargeback was issued for the transaction associated with the
89
- # assessment, with no other details. When possible, specify the type by
90
- # using CHARGEBACK_FRAUD or CHARGEBACK_DISPUTE instead.
88
+ # Indicates a chargeback issued for the transaction with no other details.
89
+ # When possible, specify the type by using CHARGEBACK_FRAUD or
90
+ # CHARGEBACK_DISPUTE instead.
91
91
  CHARGEBACK = 1
92
92
 
93
93
  # Indicates a chargeback related to an alleged unauthorized transaction
94
- # from the perspective of the cardholder (for example, the card number was
94
+ # from the cardholder's perspective (for example, the card number was
95
95
  # stolen).
96
96
  CHARGEBACK_FRAUD = 8
97
97
 
98
98
  # Indicates a chargeback related to the cardholder having provided their
99
- # card but allegedly not being satisfied with the purchase
99
+ # card details but allegedly not being satisfied with the purchase
100
100
  # (for example, misrepresentation, attempted cancellation).
101
101
  CHARGEBACK_DISPUTE = 9
102
102
 
@@ -447,6 +447,9 @@ module Google
447
447
  # @!attribute [rw] testing_options
448
448
  # @return [::Google::Cloud::RecaptchaEnterprise::V1::TestingOptions]
449
449
  # Options for user acceptance testing.
450
+ # @!attribute [rw] waf_settings
451
+ # @return [::Google::Cloud::RecaptchaEnterprise::V1::WafSettings]
452
+ # Settings for WAF
450
453
  class Key
451
454
  include ::Google::Protobuf::MessageExts
452
455
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -721,7 +724,7 @@ module Google
721
724
  end
722
725
 
723
726
  # The request message to search related account group memberships.
724
- # @!attribute [rw] parent
727
+ # @!attribute [rw] project
725
728
  # @return [::String]
726
729
  # Required. The name of the project to search related account group memberships from,
727
730
  # in the format "projects/\\{project}".
@@ -787,6 +790,45 @@ module Google
787
790
  include ::Google::Protobuf::MessageExts
788
791
  extend ::Google::Protobuf::MessageExts::ClassMethods
789
792
  end
793
+
794
+ # Settings specific to keys that can be used for WAF (Web Application
795
+ # Firewall).
796
+ # @!attribute [rw] waf_service
797
+ # @return [::Google::Cloud::RecaptchaEnterprise::V1::WafSettings::WafService]
798
+ # Required. The WAF service that uses this key.
799
+ # @!attribute [rw] waf_feature
800
+ # @return [::Google::Cloud::RecaptchaEnterprise::V1::WafSettings::WafFeature]
801
+ # Required. The WAF feature for which this key is enabled.
802
+ class WafSettings
803
+ include ::Google::Protobuf::MessageExts
804
+ extend ::Google::Protobuf::MessageExts::ClassMethods
805
+
806
+ # Supported WAF features. For more information, see
807
+ # https://cloud.google.com/recaptcha-enterprise/docs/usecase#comparison_of_features.
808
+ module WafFeature
809
+ # Undefined feature.
810
+ WAF_FEATURE_UNSPECIFIED = 0
811
+
812
+ # Redirects suspicious traffic to reCAPTCHA.
813
+ CHALLENGE_PAGE = 1
814
+
815
+ # Use reCAPTCHA session-tokens to protect the whole user session on the
816
+ # site's domain.
817
+ SESSION_TOKEN = 2
818
+
819
+ # Use reCAPTCHA action-tokens to protect user actions.
820
+ ACTION_TOKEN = 3
821
+ end
822
+
823
+ # Web Application Firewalls supported by reCAPTCHA Enterprise.
824
+ module WafService
825
+ # Undefined WAF
826
+ WAF_SERVICE_UNSPECIFIED = 0
827
+
828
+ # Cloud Armor
829
+ CA = 1
830
+ end
831
+ end
790
832
  end
791
833
  end
792
834
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-recaptcha_enterprise-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 0.8.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: 2022-01-11 00:00:00.000000000 Z
11
+ date: 2022-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -204,7 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
204
204
  - !ruby/object:Gem::Version
205
205
  version: '0'
206
206
  requirements: []
207
- rubygems_version: 3.3.4
207
+ rubygems_version: 3.3.5
208
208
  signing_key:
209
209
  specification_version: 4
210
210
  summary: API Client library for the reCAPTCHA Enterprise V1 API