google-cloud-web_risk-v1beta1 0.7.0 → 0.7.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: c8c8c8e3ed09d1a97c069edd9d42b21766a101b043faf19dad1b55d361c984dc
4
- data.tar.gz: c5bebffb33dd79bf932e898516f642dd5bb7dbd33fa091356d42ebfa69de4de3
3
+ metadata.gz: 150c5550bd4733fe142954c3c29407bf1ad98fb5a627d44cbc8f08d045e2bd88
4
+ data.tar.gz: 40cd9432de4153e9af1e534287ce27dea0f51a8554aaa47dbf80bbb80679abed
5
5
  SHA512:
6
- metadata.gz: ea1d4f08c14b9661cddf554aa2686317b0b5f8f27f0b00f059c64e22b0142f61d550273729316211ad85c1cda6ed409ae74414443c8c87ab7110d0afc24db408
7
- data.tar.gz: ade171a510ba221a94f638325191a8515f16fe85bced245323a1aefbca40e39f412462a9d30c54359e7c45cd95a09044a7f9a138b326c8b32629965cbf7f45bd
6
+ metadata.gz: 9462a002402f52bf36c70079dd2f4addb0cf58943b941994fdc4b2c3e684cce5ade5b35295e2fdfe315a34ea6e1ce912399854d4097099ee04b42da8cab62ca9
7
+ data.tar.gz: '09fc4eae75da12edb312775d9ffa073cb970f38e579388216a2e3abe9af3a865fb19b01f1b17d3fe1aa38d5557a8d8e18b6c827a99624639e159526660bdb6e2'
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module WebRisk
23
23
  module V1beta1
24
- VERSION = "0.7.0"
24
+ VERSION = "0.7.1"
25
25
  end
26
26
  end
27
27
  end
@@ -137,7 +137,7 @@ module Google
137
137
  credentials = @config.credentials
138
138
  # Use self-signed JWT if the endpoint is unchanged from default,
139
139
  # but only if the default endpoint does not have a region prefix.
140
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
140
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
141
141
  !@config.endpoint.split(".").first.include?("-")
142
142
  credentials ||= Credentials.default scope: @config.scope,
143
143
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -485,7 +485,9 @@ module Google
485
485
  class Configuration
486
486
  extend ::Gapic::Config
487
487
 
488
- config_attr :endpoint, "webrisk.googleapis.com", ::String
488
+ DEFAULT_ENDPOINT = "webrisk.googleapis.com"
489
+
490
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
489
491
  config_attr :credentials, nil do |value|
490
492
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
491
493
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -133,7 +133,7 @@ module Google
133
133
  credentials = @config.credentials
134
134
  # Use self-signed JWT if the endpoint is unchanged from default,
135
135
  # but only if the default endpoint does not have a region prefix.
136
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
136
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
137
137
  !@config.endpoint.split(".").first.include?("-")
138
138
  credentials ||= Credentials.default scope: @config.scope,
139
139
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -422,7 +422,9 @@ module Google
422
422
  class Configuration
423
423
  extend ::Gapic::Config
424
424
 
425
- config_attr :endpoint, "webrisk.googleapis.com", ::String
425
+ DEFAULT_ENDPOINT = "webrisk.googleapis.com"
426
+
427
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
426
428
  config_attr :credentials, nil do |value|
427
429
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
428
430
  allowed.any? { |klass| klass === value }
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_compute_threat_list_diff_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
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_search_uris_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -135,7 +135,7 @@ module Google
135
135
 
136
136
  verb, uri, query_string_params, body = ServiceStub.transcode_search_hashes_request request_pb
137
137
  query_string_params = if query_string_params.any?
138
- query_string_params.to_h { |p| p.split("=", 2) }
138
+ query_string_params.to_h { |p| p.split "=", 2 }
139
139
  else
140
140
  {}
141
141
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-web_risk-v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.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-05-31 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