google-cloud-phishing_protection-v1beta1 0.6.0 → 0.7.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: cebd5d4e8dc93729467fad75ce90111c72e60550929f90547aca6bcb0c8e9a81
4
- data.tar.gz: e091d12a90397524ddb9074f2f6f7952410842abbacd655dca071479184853ce
3
+ metadata.gz: 557d20c507c4c0fbb410b9c7641d16e242278698a9fd93c5d6d45008aa003dce
4
+ data.tar.gz: 9f51c78e24b9ce4d263f54765892ee1a8745733b58df48dc8b2c95e7eb9920d5
5
5
  SHA512:
6
- metadata.gz: 5de896dd110525a9ce6dc94ba30e2584c7e9c894122169da083975fb9a2fcc7cabcadef98867b13e0127ba214a93043d350690e45fd704d2587889a377b045da
7
- data.tar.gz: 3adf570ed19063c51f94a36fccf5a50531999475d201e589751829080ac575afe0d288d1f9fa8abca9aae68947169cf00bea9ce7b5e9f8fe2340dd3648768774
6
+ metadata.gz: 7a2622d7b894816c727e482c462e1698ae40356d9a5a961d0c321a2524130f2a291644f7985cc9d864dd0271a7c6ccec81bf4bc3093fd22cf5a8b2292b3d9c67
7
+ data.tar.gz: 195b700c6b141cfb573249c09e905d930f8b74e9ec5530bd70c3855a621b6052f4a17b4f6fc74c8892c1351f308baffb917b387350235e06ae9c56a45b66300e
@@ -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
@@ -140,7 +140,8 @@ module Google
140
140
  credentials: credentials,
141
141
  endpoint: @config.endpoint,
142
142
  channel_args: @config.channel_args,
143
- interceptors: @config.interceptors
143
+ interceptors: @config.interceptors,
144
+ channel_pool_config: @config.channel_pool
144
145
  )
145
146
  end
146
147
 
@@ -322,7 +323,9 @@ module Google
322
323
  class Configuration
323
324
  extend ::Gapic::Config
324
325
 
325
- config_attr :endpoint, "phishingprotection.googleapis.com", ::String
326
+ DEFAULT_ENDPOINT = "phishingprotection.googleapis.com"
327
+
328
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
326
329
  config_attr :credentials, nil do |value|
327
330
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
328
331
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -357,6 +360,14 @@ module Google
357
360
  end
358
361
  end
359
362
 
363
+ ##
364
+ # Configuration for the channel pool
365
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
366
+ #
367
+ def channel_pool
368
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
369
+ end
370
+
360
371
  ##
361
372
  # Configuration RPC class for the PhishingProtectionService API.
362
373
  #
@@ -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
@@ -173,6 +173,22 @@ module Google
173
173
  # @return [::Google::Cloud::PhishingProtection::V1beta1::ReportPhishingResponse]
174
174
  #
175
175
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
176
+ #
177
+ # @example Basic example
178
+ # require "google/cloud/phishing_protection/v1beta1"
179
+ #
180
+ # # Create a client object. The client can be reused for multiple calls.
181
+ # client = Google::Cloud::PhishingProtection::V1beta1::PhishingProtectionService::Rest::Client.new
182
+ #
183
+ # # Create a request. To set request fields, pass in keyword arguments.
184
+ # request = Google::Cloud::PhishingProtection::V1beta1::ReportPhishingRequest.new
185
+ #
186
+ # # Call the report_phishing method.
187
+ # result = client.report_phishing request
188
+ #
189
+ # # The returned object is of type Google::Cloud::PhishingProtection::V1beta1::ReportPhishingResponse.
190
+ # p result
191
+ #
176
192
  def report_phishing request, options = nil
177
193
  raise ::ArgumentError, "request must be provided" if request.nil?
178
194
 
@@ -281,7 +297,9 @@ module Google
281
297
  class Configuration
282
298
  extend ::Gapic::Config
283
299
 
284
- config_attr :endpoint, "phishingprotection.googleapis.com", ::String
300
+ DEFAULT_ENDPOINT = "phishingprotection.googleapis.com"
301
+
302
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
285
303
  config_attr :credentials, nil do |value|
286
304
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
287
305
  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.7.0"
25
25
  end
26
26
  end
27
27
  end
@@ -66,6 +66,20 @@ module Google
66
66
  # a non-empty value will be returned. The user will not be aware of what
67
67
  # non-empty value to expect.
68
68
  NON_EMPTY_DEFAULT = 7
69
+
70
+ # Denotes that the field in a resource (a message annotated with
71
+ # google.api.resource) is used in the resource name to uniquely identify the
72
+ # resource. For AIP-compliant APIs, this should only be applied to the
73
+ # `name` field on the resource.
74
+ #
75
+ # This behavior should not be applied to references to other resources within
76
+ # the message.
77
+ #
78
+ # The identifier field of resources often have different field behavior
79
+ # depending on the request it is embedded in (e.g. for Create methods name
80
+ # is optional and unused, while for Update methods it is required). Instead
81
+ # of method-specific annotations, only `IDENTIFIER` is required.
82
+ IDENTIFIER = 8
69
83
  end
70
84
  end
71
85
  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.7.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: 2023-06-03 00:00:00.000000000 Z
11
+ date: 2023-09-12 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.20.0
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.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -211,7 +211,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
211
211
  - !ruby/object:Gem::Version
212
212
  version: '0'
213
213
  requirements: []
214
- rubygems_version: 3.4.2
214
+ rubygems_version: 3.4.19
215
215
  signing_key:
216
216
  specification_version: 4
217
217
  summary: API Client library for the Phishing Protection V1beta1 API