google-cloud-phishing_protection-v1beta1 0.6.1 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/phishing_protection/v1beta1/phishing_protection_service/client.rb +10 -1
- data/lib/google/cloud/phishing_protection/v1beta1/phishing_protection_service/rest/client.rb +16 -0
- data/lib/google/cloud/phishing_protection/v1beta1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 557d20c507c4c0fbb410b9c7641d16e242278698a9fd93c5d6d45008aa003dce
|
4
|
+
data.tar.gz: 9f51c78e24b9ce4d263f54765892ee1a8745733b58df48dc8b2c95e7eb9920d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a2622d7b894816c727e482c462e1698ae40356d9a5a961d0c321a2524130f2a291644f7985cc9d864dd0271a7c6ccec81bf4bc3093fd22cf5a8b2292b3d9c67
|
7
|
+
data.tar.gz: 195b700c6b141cfb573249c09e905d930f8b74e9ec5530bd70c3855a621b6052f4a17b4f6fc74c8892c1351f308baffb917b387350235e06ae9c56a45b66300e
|
@@ -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
|
|
@@ -359,6 +360,14 @@ module Google
|
|
359
360
|
end
|
360
361
|
end
|
361
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
|
+
|
362
371
|
##
|
363
372
|
# Configuration RPC class for the PhishingProtectionService API.
|
364
373
|
#
|
data/lib/google/cloud/phishing_protection/v1beta1/phishing_protection_service/rest/client.rb
CHANGED
@@ -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
|
|
@@ -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.
|
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-
|
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
|
+
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.
|
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.
|
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
|