google-cloud-recaptcha_enterprise-v1 0.4.2 → 0.4.3

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: b7abec539c68ccff0a380d61ba4a6bd470a5eb928c3ce67aa2a8d46ea76124ff
4
- data.tar.gz: 9e6e9510d0ff7e2356b8d63bd6938b43ccdf55f0d3d7a8a0970441d7e1affa0e
3
+ metadata.gz: 4c9ea5260c755afca31b18d99b08fabab0c114e71e18f1de5fad5871457ac29b
4
+ data.tar.gz: 0ffe08204473a050d0aa30c4592c83b694ac75ba054969c20ce2cd5cb20eb488
5
5
  SHA512:
6
- metadata.gz: 4714eb2670f06e01e3e33caf56e60230d6d6cd4018f6a5975af49023ce08c4d8d38eef951b503020a0e0802ddbbe755f33a803bc46a622de0f46b0bc53bc4887
7
- data.tar.gz: 2c1e1c09f1e3be4082ae1b3864e6ae30e3cb42d25f4de18d414bbef3affd120a7168959da08ed9b579e74ccb17e42d0e834c7f5463b565445dad63f3e5f5934c
6
+ metadata.gz: 2ae6854aff84657d175233d264e98fb47514d305e4222680b037b58c80132f87628611c560c4556177a73de4799237f4203786074ca8c2c3be2a9c3c841d0476
7
+ data.tar.gz: b8fbb86cefebc19eee4ac16adcf0ac65e8bbf641a9608355c6cedbf123a16dd22ab3e9031bfe9e16fc8f0d9d4e68f3e2db61621c3f607a81e4a3264309e928ee
@@ -41,13 +41,12 @@ module Google
41
41
  # See {::Google::Cloud::RecaptchaEnterprise::V1::RecaptchaEnterpriseService::Client::Configuration}
42
42
  # for a description of the configuration fields.
43
43
  #
44
- # ## Example
44
+ # @example
45
45
  #
46
- # To modify the configuration for all RecaptchaEnterpriseService clients:
47
- #
48
- # ::Google::Cloud::RecaptchaEnterprise::V1::RecaptchaEnterpriseService::Client.configure do |config|
49
- # config.timeout = 10.0
50
- # end
46
+ # # Modify the configuration for all RecaptchaEnterpriseService clients
47
+ # ::Google::Cloud::RecaptchaEnterprise::V1::RecaptchaEnterpriseService::Client.configure do |config|
48
+ # config.timeout = 10.0
49
+ # end
51
50
  #
52
51
  # @yield [config] Configure the Client client.
53
52
  # @yieldparam config [Client::Configuration]
@@ -108,19 +107,15 @@ module Google
108
107
  ##
109
108
  # Create a new RecaptchaEnterpriseService client object.
110
109
  #
111
- # ## Examples
112
- #
113
- # To create a new RecaptchaEnterpriseService client with the default
114
- # configuration:
110
+ # @example
115
111
  #
116
- # client = ::Google::Cloud::RecaptchaEnterprise::V1::RecaptchaEnterpriseService::Client.new
112
+ # # Create a client using the default configuration
113
+ # client = ::Google::Cloud::RecaptchaEnterprise::V1::RecaptchaEnterpriseService::Client.new
117
114
  #
118
- # To create a new RecaptchaEnterpriseService client with a custom
119
- # configuration:
120
- #
121
- # client = ::Google::Cloud::RecaptchaEnterprise::V1::RecaptchaEnterpriseService::Client.new do |config|
122
- # config.timeout = 10.0
123
- # end
115
+ # # Create a client using a custom configuration
116
+ # client = ::Google::Cloud::RecaptchaEnterprise::V1::RecaptchaEnterpriseService::Client.new do |config|
117
+ # config.timeout = 10.0
118
+ # end
124
119
  #
125
120
  # @yield [config] Configure the RecaptchaEnterpriseService client.
126
121
  # @yieldparam config [Client::Configuration]
@@ -140,10 +135,9 @@ module Google
140
135
 
141
136
  # Create credentials
142
137
  credentials = @config.credentials
143
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
138
+ # Use self-signed JWT if the endpoint is unchanged from default,
144
139
  # but only if the default endpoint does not have a region prefix.
145
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
146
- @config.endpoint == Client.configure.endpoint &&
140
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
147
141
  !@config.endpoint.split(".").first.include?("-")
148
142
  credentials ||= Credentials.default scope: @config.scope,
149
143
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -222,7 +216,9 @@ module Google
222
216
  options.apply_defaults timeout: @config.rpcs.create_assessment.timeout,
223
217
  metadata: metadata,
224
218
  retry_policy: @config.rpcs.create_assessment.retry_policy
225
- options.apply_defaults metadata: @config.metadata,
219
+
220
+ options.apply_defaults timeout: @config.timeout,
221
+ metadata: @config.metadata,
226
222
  retry_policy: @config.retry_policy
227
223
 
228
224
  @recaptcha_enterprise_service_stub.call_rpc :create_assessment, request, options: options do |response, operation|
@@ -292,7 +288,9 @@ module Google
292
288
  options.apply_defaults timeout: @config.rpcs.annotate_assessment.timeout,
293
289
  metadata: metadata,
294
290
  retry_policy: @config.rpcs.annotate_assessment.retry_policy
295
- options.apply_defaults metadata: @config.metadata,
291
+
292
+ options.apply_defaults timeout: @config.timeout,
293
+ metadata: @config.metadata,
296
294
  retry_policy: @config.retry_policy
297
295
 
298
296
  @recaptcha_enterprise_service_stub.call_rpc :annotate_assessment, request, options: options do |response, operation|
@@ -361,7 +359,9 @@ module Google
361
359
  options.apply_defaults timeout: @config.rpcs.create_key.timeout,
362
360
  metadata: metadata,
363
361
  retry_policy: @config.rpcs.create_key.retry_policy
364
- options.apply_defaults metadata: @config.metadata,
362
+
363
+ options.apply_defaults timeout: @config.timeout,
364
+ metadata: @config.metadata,
365
365
  retry_policy: @config.retry_policy
366
366
 
367
367
  @recaptcha_enterprise_service_stub.call_rpc :create_key, request, options: options do |response, operation|
@@ -434,7 +434,9 @@ module Google
434
434
  options.apply_defaults timeout: @config.rpcs.list_keys.timeout,
435
435
  metadata: metadata,
436
436
  retry_policy: @config.rpcs.list_keys.retry_policy
437
- options.apply_defaults metadata: @config.metadata,
437
+
438
+ options.apply_defaults timeout: @config.timeout,
439
+ metadata: @config.metadata,
438
440
  retry_policy: @config.retry_policy
439
441
 
440
442
  @recaptcha_enterprise_service_stub.call_rpc :list_keys, request, options: options do |response, operation|
@@ -502,7 +504,9 @@ module Google
502
504
  options.apply_defaults timeout: @config.rpcs.get_key.timeout,
503
505
  metadata: metadata,
504
506
  retry_policy: @config.rpcs.get_key.retry_policy
505
- options.apply_defaults metadata: @config.metadata,
507
+
508
+ options.apply_defaults timeout: @config.timeout,
509
+ metadata: @config.metadata,
506
510
  retry_policy: @config.retry_policy
507
511
 
508
512
  @recaptcha_enterprise_service_stub.call_rpc :get_key, request, options: options do |response, operation|
@@ -571,7 +575,9 @@ module Google
571
575
  options.apply_defaults timeout: @config.rpcs.update_key.timeout,
572
576
  metadata: metadata,
573
577
  retry_policy: @config.rpcs.update_key.retry_policy
574
- options.apply_defaults metadata: @config.metadata,
578
+
579
+ options.apply_defaults timeout: @config.timeout,
580
+ metadata: @config.metadata,
575
581
  retry_policy: @config.retry_policy
576
582
 
577
583
  @recaptcha_enterprise_service_stub.call_rpc :update_key, request, options: options do |response, operation|
@@ -638,7 +644,9 @@ module Google
638
644
  options.apply_defaults timeout: @config.rpcs.delete_key.timeout,
639
645
  metadata: metadata,
640
646
  retry_policy: @config.rpcs.delete_key.retry_policy
641
- options.apply_defaults metadata: @config.metadata,
647
+
648
+ options.apply_defaults timeout: @config.timeout,
649
+ metadata: @config.metadata,
642
650
  retry_policy: @config.retry_policy
643
651
 
644
652
  @recaptcha_enterprise_service_stub.call_rpc :delete_key, request, options: options do |response, operation|
@@ -662,22 +670,21 @@ module Google
662
670
  # Configuration can be applied globally to all clients, or to a single client
663
671
  # on construction.
664
672
  #
665
- # # Examples
666
- #
667
- # To modify the global config, setting the timeout for create_assessment
668
- # to 20 seconds, and all remaining timeouts to 10 seconds:
669
- #
670
- # ::Google::Cloud::RecaptchaEnterprise::V1::RecaptchaEnterpriseService::Client.configure do |config|
671
- # config.timeout = 10.0
672
- # config.rpcs.create_assessment.timeout = 20.0
673
- # end
674
- #
675
- # To apply the above configuration only to a new client:
676
- #
677
- # client = ::Google::Cloud::RecaptchaEnterprise::V1::RecaptchaEnterpriseService::Client.new do |config|
678
- # config.timeout = 10.0
679
- # config.rpcs.create_assessment.timeout = 20.0
680
- # end
673
+ # @example
674
+ #
675
+ # # Modify the global config, setting the timeout for
676
+ # # create_assessment to 20 seconds,
677
+ # # and all remaining timeouts to 10 seconds.
678
+ # ::Google::Cloud::RecaptchaEnterprise::V1::RecaptchaEnterpriseService::Client.configure do |config|
679
+ # config.timeout = 10.0
680
+ # config.rpcs.create_assessment.timeout = 20.0
681
+ # end
682
+ #
683
+ # # Apply the above configuration only to a new client.
684
+ # client = ::Google::Cloud::RecaptchaEnterprise::V1::RecaptchaEnterpriseService::Client.new do |config|
685
+ # config.timeout = 10.0
686
+ # config.rpcs.create_assessment.timeout = 20.0
687
+ # end
681
688
  #
682
689
  # @!attribute [rw] endpoint
683
690
  # The hostname or hostname:port of the service endpoint.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module RecaptchaEnterprise
23
23
  module V1
24
- VERSION = "0.4.2"
24
+ VERSION = "0.4.3"
25
25
  end
26
26
  end
27
27
  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.4.2
4
+ version: 0.4.3
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-07-12 00:00:00.000000000 Z
11
+ date: 2021-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.5'
19
+ version: '0.7'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a