google-cloud-phishing_protection-v1beta1 0.6.0 → 0.6.1

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: cebd5d4e8dc93729467fad75ce90111c72e60550929f90547aca6bcb0c8e9a81
4
- data.tar.gz: e091d12a90397524ddb9074f2f6f7952410842abbacd655dca071479184853ce
3
+ metadata.gz: 5cbe01fcedc09a6b2f318a6a60e6d9fa627e0d888564c83abda3d51e931c5d61
4
+ data.tar.gz: c2dad33d49eacd11ebc13a483300b2ca02e288d2ebb50f8d0eb5279270f5d050
5
5
  SHA512:
6
- metadata.gz: 5de896dd110525a9ce6dc94ba30e2584c7e9c894122169da083975fb9a2fcc7cabcadef98867b13e0127ba214a93043d350690e45fd704d2587889a377b045da
7
- data.tar.gz: 3adf570ed19063c51f94a36fccf5a50531999475d201e589751829080ac575afe0d288d1f9fa8abca9aae68947169cf00bea9ce7b5e9f8fe2340dd3648768774
6
+ metadata.gz: 83db02be72e790d220470e4d4c1fec6d35b0c49524afa2460268b4613113ca77f846ffad9534c9fe941ed618e35f349164ac194e8f3378e4fb00ee26229d0e02
7
+ data.tar.gz: 58098aa969d4d3882df1e906f3269f5f529e096b5b415e745f290fa0b807ff298f5c7323bafe0d9f7970a136fdd4c0c5a57a9d26620b8d1f8cfdfaa10dc72315
@@ -125,7 +125,7 @@ module Google
125
125
  credentials = @config.credentials
126
126
  # Use self-signed JWT if the endpoint is unchanged from default,
127
127
  # but only if the default endpoint does not have a region prefix.
128
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
128
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
129
129
  !@config.endpoint.split(".").first.include?("-")
130
130
  credentials ||= Credentials.default scope: @config.scope,
131
131
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -322,7 +322,9 @@ module Google
322
322
  class Configuration
323
323
  extend ::Gapic::Config
324
324
 
325
- config_attr :endpoint, "phishingprotection.googleapis.com", ::String
325
+ DEFAULT_ENDPOINT = "phishingprotection.googleapis.com"
326
+
327
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
326
328
  config_attr :credentials, nil do |value|
327
329
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
328
330
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -121,7 +121,7 @@ module Google
121
121
  credentials = @config.credentials
122
122
  # Use self-signed JWT if the endpoint is unchanged from default,
123
123
  # but only if the default endpoint does not have a region prefix.
124
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
124
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
125
125
  !@config.endpoint.split(".").first.include?("-")
126
126
  credentials ||= Credentials.default scope: @config.scope,
127
127
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -281,7 +281,9 @@ module Google
281
281
  class Configuration
282
282
  extend ::Gapic::Config
283
283
 
284
- config_attr :endpoint, "phishingprotection.googleapis.com", ::String
284
+ DEFAULT_ENDPOINT = "phishingprotection.googleapis.com"
285
+
286
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
285
287
  config_attr :credentials, nil do |value|
286
288
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
287
289
  allowed.any? { |klass| klass === value }
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_report_phishing_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module PhishingProtection
23
23
  module V1beta1
24
- VERSION = "0.6.0"
24
+ VERSION = "0.6.1"
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.6.0
4
+ version: 0.6.1
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-06-03 00:00:00.000000000 Z
11
+ date: 2023-06-06 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.19.0
19
+ version: 0.19.1
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.19.0
29
+ version: 0.19.1
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a