google-cloud-phishing_protection-v1beta1 0.3.2 → 0.3.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: 1f3a1fe6fe9b08255bb171df517bf2b60c02bf999042b04c1f49542eeac348dc
4
- data.tar.gz: ee19728d75e2c990770f4197b4f121ee53b991edd4d769b5fd3a472c6c0d0966
3
+ metadata.gz: 330a8c76e7b2ad3c54b9fd53050e4d44ca9255ab8374a922ce45714831221477
4
+ data.tar.gz: 0c96959ad1003f6490094b4dac83081e6546068dd0ff0bac9e37ac6d9925dbc4
5
5
  SHA512:
6
- metadata.gz: '0648d219feee05b0cac4243015be68b4d0687ba7a719af229d8c735a70ae624ef8e045d734e7719454a8bc95f0100713c5aee974bb24f6f9a85f699f416ab6d8'
7
- data.tar.gz: 64d0f5107f21368a032d157311d4afd7ea2082acb1ae5582df49eb667646a6c77a18b516576cbe11c248e5b68dbb22e25f3cacf42023802c7c2a1f8b56177ff2
6
+ metadata.gz: 5f1acd08eede383369a9d1e7505c1d56d51f4628f610fa34ad27b8812a31b30db0f94e2c9189ba6152d6ccbc71f6d04c1ee784b6f427463753ef81e054dc5b2a
7
+ data.tar.gz: 77c8ad735e46efafcdf83fe0af67a9b0b930f997ae7aa1dc0ef7c97b911bb99829f40be942eae83ff1a5131fe2c7c4b5b69def837851fcb3001eefa9ec2b1835
@@ -41,13 +41,12 @@ module Google
41
41
  # See {::Google::Cloud::PhishingProtection::V1beta1::PhishingProtectionService::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 PhishingProtectionService clients:
47
- #
48
- # ::Google::Cloud::PhishingProtection::V1beta1::PhishingProtectionService::Client.configure do |config|
49
- # config.timeout = 10.0
50
- # end
46
+ # # Modify the configuration for all PhishingProtectionService clients
47
+ # ::Google::Cloud::PhishingProtection::V1beta1::PhishingProtectionService::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]
@@ -96,19 +95,15 @@ module Google
96
95
  ##
97
96
  # Create a new PhishingProtectionService client object.
98
97
  #
99
- # ## Examples
100
- #
101
- # To create a new PhishingProtectionService client with the default
102
- # configuration:
98
+ # @example
103
99
  #
104
- # client = ::Google::Cloud::PhishingProtection::V1beta1::PhishingProtectionService::Client.new
100
+ # # Create a client using the default configuration
101
+ # client = ::Google::Cloud::PhishingProtection::V1beta1::PhishingProtectionService::Client.new
105
102
  #
106
- # To create a new PhishingProtectionService client with a custom
107
- # configuration:
108
- #
109
- # client = ::Google::Cloud::PhishingProtection::V1beta1::PhishingProtectionService::Client.new do |config|
110
- # config.timeout = 10.0
111
- # end
103
+ # # Create a client using a custom configuration
104
+ # client = ::Google::Cloud::PhishingProtection::V1beta1::PhishingProtectionService::Client.new do |config|
105
+ # config.timeout = 10.0
106
+ # end
112
107
  #
113
108
  # @yield [config] Configure the PhishingProtectionService client.
114
109
  # @yieldparam config [Client::Configuration]
@@ -128,10 +123,9 @@ module Google
128
123
 
129
124
  # Create credentials
130
125
  credentials = @config.credentials
131
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
126
+ # Use self-signed JWT if the endpoint is unchanged from default,
132
127
  # but only if the default endpoint does not have a region prefix.
133
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
134
- @config.endpoint == Client.configure.endpoint &&
128
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
135
129
  !@config.endpoint.split(".").first.include?("-")
136
130
  credentials ||= Credentials.default scope: @config.scope,
137
131
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -216,7 +210,9 @@ module Google
216
210
  options.apply_defaults timeout: @config.rpcs.report_phishing.timeout,
217
211
  metadata: metadata,
218
212
  retry_policy: @config.rpcs.report_phishing.retry_policy
219
- options.apply_defaults metadata: @config.metadata,
213
+
214
+ options.apply_defaults timeout: @config.timeout,
215
+ metadata: @config.metadata,
220
216
  retry_policy: @config.retry_policy
221
217
 
222
218
  @phishing_protection_service_stub.call_rpc :report_phishing, request, options: options do |response, operation|
@@ -240,22 +236,21 @@ module Google
240
236
  # Configuration can be applied globally to all clients, or to a single client
241
237
  # on construction.
242
238
  #
243
- # # Examples
244
- #
245
- # To modify the global config, setting the timeout for report_phishing
246
- # to 20 seconds, and all remaining timeouts to 10 seconds:
247
- #
248
- # ::Google::Cloud::PhishingProtection::V1beta1::PhishingProtectionService::Client.configure do |config|
249
- # config.timeout = 10.0
250
- # config.rpcs.report_phishing.timeout = 20.0
251
- # end
252
- #
253
- # To apply the above configuration only to a new client:
254
- #
255
- # client = ::Google::Cloud::PhishingProtection::V1beta1::PhishingProtectionService::Client.new do |config|
256
- # config.timeout = 10.0
257
- # config.rpcs.report_phishing.timeout = 20.0
258
- # end
239
+ # @example
240
+ #
241
+ # # Modify the global config, setting the timeout for
242
+ # # report_phishing to 20 seconds,
243
+ # # and all remaining timeouts to 10 seconds.
244
+ # ::Google::Cloud::PhishingProtection::V1beta1::PhishingProtectionService::Client.configure do |config|
245
+ # config.timeout = 10.0
246
+ # config.rpcs.report_phishing.timeout = 20.0
247
+ # end
248
+ #
249
+ # # Apply the above configuration only to a new client.
250
+ # client = ::Google::Cloud::PhishingProtection::V1beta1::PhishingProtectionService::Client.new do |config|
251
+ # config.timeout = 10.0
252
+ # config.rpcs.report_phishing.timeout = 20.0
253
+ # end
259
254
  #
260
255
  # @!attribute [rw] endpoint
261
256
  # The hostname or hostname:port of the service endpoint.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module PhishingProtection
23
23
  module V1beta1
24
- VERSION = "0.3.2"
24
+ VERSION = "0.3.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-phishing_protection-v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.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