google-cloud-recaptcha_enterprise-v1 0.6.0 → 0.8.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: 9f256800fdd81e93e4045ae4b13e2b9219e17eeb9d4937b942fea2c86712d027
4
- data.tar.gz: 804b44cf983a6d02548124ddf2f082d7320a66f4a1389bb885c446b09b565926
3
+ metadata.gz: e26602537b99c63017e5c48ae60e3dbd7dd26061aea474f4375febcf454e6ae6
4
+ data.tar.gz: a637690ab153550fa621ee4118b58354b1adbb2607fc5acc60ebdeca6fbc7d08
5
5
  SHA512:
6
- metadata.gz: ee31985432275b2f8f4b610ea09c3eba05cd910bcdcd29048234c36a02571ec1400407df0b28427d15f24aeb7b4d5ec1ea032069a7da4535ce0b080594bed5f4
7
- data.tar.gz: a50764572d48829d53018192b80db86aa0fd0dcb86e3aee1103459665e1d4616adc9ab58aaa32bb07fcbac39f3d7d721893d19031c9fc23c42ff959f2952f169
6
+ metadata.gz: 8773c5677b44236627da8ea377a7e038c324d490d864fea750a8d2646fc2d98e2268f6a6f0974185d673f938d5cde503c80db4005ebea19c65c8c55d7fcededd
7
+ data.tar.gz: a90c47a18b028da33c162f01d4fa5b17a9365fc2c481f8d7d7776854d7c154b0830a1d9c65f5559a4ce5e7c26826576464afc767340cd07cd978e1e20797ec6e
data/.yardopts CHANGED
@@ -1,5 +1,5 @@
1
1
  --no-private
2
- --title=reCAPTCHA Enterprise V1 API
2
+ --title="reCAPTCHA Enterprise V1 API"
3
3
  --exclude _pb\.rb$
4
4
  --markup markdown
5
5
  --markup-provider redcarpet
data/AUTHENTICATION.md CHANGED
@@ -120,15 +120,6 @@ To configure your system for this, simply:
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
121
121
  *should* only be used during development.
122
122
 
123
- [gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
124
- [dev-console]: https://console.cloud.google.com/project
125
-
126
- [enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
127
-
128
- [create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
129
- [create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
130
- [reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
131
-
132
123
  ## Creating a Service Account
133
124
 
134
125
  Google Cloud requires **Service Account Credentials** to
@@ -139,31 +130,22 @@ If you are not running this client within
139
130
  [Google Cloud Platform environments](#google-cloud-platform-environments), you
140
131
  need a Google Developers service account.
141
132
 
142
- 1. Visit the [Google Developers Console][dev-console].
133
+ 1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
143
134
  2. Create a new project or click on an existing project.
144
- 3. Activate the slide-out navigation tray and select **API Manager**. From
135
+ 3. Activate the menu in the upper left and select **APIs & Services**. From
145
136
  here, you will enable the APIs that your application requires.
146
137
 
147
- ![Enable the APIs that your application requires][enable-apis]
148
-
149
138
  *Note: You may need to enable billing in order to use these services.*
150
139
 
151
140
  4. Select **Credentials** from the side navigation.
152
141
 
153
- You should see a screen like one of the following.
154
-
155
- ![Create a new service account][create-new-service-account]
156
-
157
- ![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
158
-
159
- Find the "Add credentials" drop down and select "Service account" to be
160
- guided through downloading a new JSON key file.
142
+ Find the "Create credentials" drop down near the top of the page, and select
143
+ "Service account" to be guided through downloading a new JSON key file.
161
144
 
162
145
  If you want to re-use an existing service account, you can easily generate a
163
- new key file. Just select the account you wish to re-use, and click "Generate
164
- new JSON key":
165
-
166
- ![Re-use an existing service account][reuse-service-account]
146
+ new key file. Just select the account you wish to re-use, click the pencil
147
+ tool on the right side to edit the service account, select the **Keys** tab,
148
+ and then select **Add Key**.
167
149
 
168
150
  The key file you download will be used by this library to authenticate API
169
151
  requests and should be stored in a secure location.
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.6.0"
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
@@ -32,6 +33,8 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
32
33
  add_enum "google.cloud.recaptchaenterprise.v1.AnnotateAssessmentRequest.Reason" do
33
34
  value :REASON_UNSPECIFIED, 0
34
35
  value :CHARGEBACK, 1
36
+ value :CHARGEBACK_FRAUD, 8
37
+ value :CHARGEBACK_DISPUTE, 9
35
38
  value :PAYMENT_HEURISTICS, 2
36
39
  value :INITIATED_TWO_FACTOR, 7
37
40
  value :PASSED_TWO_FACTOR, 3
@@ -135,6 +138,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
135
138
  map :labels, :string, :string, 6
136
139
  optional :create_time, :message, 7, "google.protobuf.Timestamp"
137
140
  optional :testing_options, :message, 9, "google.cloud.recaptchaenterprise.v1.TestingOptions"
141
+ optional :waf_settings, :message, 10, "google.cloud.recaptchaenterprise.v1.WafSettings"
138
142
  oneof :platform_settings do
139
143
  optional :web_settings, :message, 3, "google.cloud.recaptchaenterprise.v1.WebKeySettings"
140
144
  optional :android_settings, :message, 4, "google.cloud.recaptchaenterprise.v1.AndroidKeySettings"
@@ -209,7 +213,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
209
213
  optional :next_page_token, :string, 2
210
214
  end
211
215
  add_message "google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsRequest" do
212
- optional :parent, :string, 1
216
+ optional :project, :string, 1
213
217
  optional :hashed_account_id, :bytes, 2
214
218
  optional :page_size, :int32, 3
215
219
  optional :page_token, :string, 4
@@ -225,6 +229,20 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
225
229
  add_message "google.cloud.recaptchaenterprise.v1.RelatedAccountGroup" do
226
230
  optional :name, :string, 1
227
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
228
246
  end
229
247
  end
230
248
 
@@ -273,6 +291,9 @@ module Google
273
291
  SearchRelatedAccountGroupMembershipsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.SearchRelatedAccountGroupMembershipsResponse").msgclass
274
292
  RelatedAccountGroupMembership = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.recaptchaenterprise.v1.RelatedAccountGroupMembership").msgclass
275
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
276
297
  end
277
298
  end
278
299
  end
@@ -33,11 +33,7 @@ module Google
33
33
  # // For Kubernetes resources, the format is {api group}/{kind}.
34
34
  # option (google.api.resource) = {
35
35
  # type: "pubsub.googleapis.com/Topic"
36
- # name_descriptor: {
37
- # pattern: "projects/{project}/topics/{topic}"
38
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
39
- # parent_name_extractor: "projects/{project}"
40
- # }
36
+ # pattern: "projects/{project}/topics/{topic}"
41
37
  # };
42
38
  # }
43
39
  #
@@ -45,10 +41,7 @@ module Google
45
41
  #
46
42
  # resources:
47
43
  # - type: "pubsub.googleapis.com/Topic"
48
- # name_descriptor:
49
- # - pattern: "projects/{project}/topics/{topic}"
50
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
51
- # parent_name_extractor: "projects/{project}"
44
+ # pattern: "projects/{project}/topics/{topic}"
52
45
  #
53
46
  # Sometimes, resources have multiple patterns, typically because they can
54
47
  # live under multiple parents.
@@ -58,26 +51,10 @@ module Google
58
51
  # message LogEntry {
59
52
  # option (google.api.resource) = {
60
53
  # type: "logging.googleapis.com/LogEntry"
61
- # name_descriptor: {
62
- # pattern: "projects/{project}/logs/{log}"
63
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
64
- # parent_name_extractor: "projects/{project}"
65
- # }
66
- # name_descriptor: {
67
- # pattern: "folders/{folder}/logs/{log}"
68
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
69
- # parent_name_extractor: "folders/{folder}"
70
- # }
71
- # name_descriptor: {
72
- # pattern: "organizations/{organization}/logs/{log}"
73
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
74
- # parent_name_extractor: "organizations/{organization}"
75
- # }
76
- # name_descriptor: {
77
- # pattern: "billingAccounts/{billing_account}/logs/{log}"
78
- # parent_type: "billing.googleapis.com/BillingAccount"
79
- # parent_name_extractor: "billingAccounts/{billing_account}"
80
- # }
54
+ # pattern: "projects/{project}/logs/{log}"
55
+ # pattern: "folders/{folder}/logs/{log}"
56
+ # pattern: "organizations/{organization}/logs/{log}"
57
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
81
58
  # };
82
59
  # }
83
60
  #
@@ -85,48 +62,10 @@ module Google
85
62
  #
86
63
  # resources:
87
64
  # - type: 'logging.googleapis.com/LogEntry'
88
- # name_descriptor:
89
- # - pattern: "projects/{project}/logs/{log}"
90
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
91
- # parent_name_extractor: "projects/{project}"
92
- # - pattern: "folders/{folder}/logs/{log}"
93
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
94
- # parent_name_extractor: "folders/{folder}"
95
- # - pattern: "organizations/{organization}/logs/{log}"
96
- # parent_type: "cloudresourcemanager.googleapis.com/Organization"
97
- # parent_name_extractor: "organizations/{organization}"
98
- # - pattern: "billingAccounts/{billing_account}/logs/{log}"
99
- # parent_type: "billing.googleapis.com/BillingAccount"
100
- # parent_name_extractor: "billingAccounts/{billing_account}"
101
- #
102
- # For flexible resources, the resource name doesn't contain parent names, but
103
- # the resource itself has parents for policy evaluation.
104
- #
105
- # Example:
106
- #
107
- # message Shelf {
108
- # option (google.api.resource) = {
109
- # type: "library.googleapis.com/Shelf"
110
- # name_descriptor: {
111
- # pattern: "shelves/{shelf}"
112
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
113
- # }
114
- # name_descriptor: {
115
- # pattern: "shelves/{shelf}"
116
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
117
- # }
118
- # };
119
- # }
120
- #
121
- # The ResourceDescriptor Yaml config will look like:
122
- #
123
- # resources:
124
- # - type: 'library.googleapis.com/Shelf'
125
- # name_descriptor:
126
- # - pattern: "shelves/{shelf}"
127
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
128
- # - pattern: "shelves/{shelf}"
129
- # parent_type: "cloudresourcemanager.googleapis.com/Folder"
65
+ # pattern: "projects/{project}/logs/{log}"
66
+ # pattern: "folders/{folder}/logs/{log}"
67
+ # pattern: "organizations/{organization}/logs/{log}"
68
+ # pattern: "billingAccounts/{billing_account}/logs/{log}"
130
69
  # @!attribute [rw] type
131
70
  # @return [::String]
132
71
  # The resource type. It must be in the format of
@@ -85,10 +85,21 @@ module Google
85
85
  # Default unspecified reason.
86
86
  REASON_UNSPECIFIED = 0
87
87
 
88
- # Indicates a chargeback for fraud was issued for the transaction
89
- # associated with the assessment.
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.
90
91
  CHARGEBACK = 1
91
92
 
93
+ # Indicates a chargeback related to an alleged unauthorized transaction
94
+ # from the cardholder's perspective (for example, the card number was
95
+ # stolen).
96
+ CHARGEBACK_FRAUD = 8
97
+
98
+ # Indicates a chargeback related to the cardholder having provided their
99
+ # card details but allegedly not being satisfied with the purchase
100
+ # (for example, misrepresentation, attempted cancellation).
101
+ CHARGEBACK_DISPUTE = 9
102
+
92
103
  # Indicates the transaction associated with the assessment is suspected of
93
104
  # being fraudulent based on the payment method, billing details, shipping
94
105
  # address or other transaction information.
@@ -436,6 +447,9 @@ module Google
436
447
  # @!attribute [rw] testing_options
437
448
  # @return [::Google::Cloud::RecaptchaEnterprise::V1::TestingOptions]
438
449
  # Options for user acceptance testing.
450
+ # @!attribute [rw] waf_settings
451
+ # @return [::Google::Cloud::RecaptchaEnterprise::V1::WafSettings]
452
+ # Settings for WAF
439
453
  class Key
440
454
  include ::Google::Protobuf::MessageExts
441
455
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -710,7 +724,7 @@ module Google
710
724
  end
711
725
 
712
726
  # The request message to search related account group memberships.
713
- # @!attribute [rw] parent
727
+ # @!attribute [rw] project
714
728
  # @return [::String]
715
729
  # Required. The name of the project to search related account group memberships from,
716
730
  # in the format "projects/\\{project}".
@@ -776,6 +790,45 @@ module Google
776
790
  include ::Google::Protobuf::MessageExts
777
791
  extend ::Google::Protobuf::MessageExts::ClassMethods
778
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
779
832
  end
780
833
  end
781
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.6.0
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: 2021-11-08 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.2.17
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