google-cloud-phishing_protection 0.4.1 → 0.5.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/doc/google/cloud/phishingprotection/v1beta1/phishingprotection.rb +1 -1
- data/lib/google/cloud/phishing_protection/v1beta1/phishing_protection_client.rb +5 -5
- data/lib/google/cloud/phishing_protection/version.rb +1 -1
- data/lib/google/cloud/phishingprotection/v1beta1/phishingprotection_pb.rb +6 -5
- data/lib/google/cloud/phishingprotection/v1beta1/phishingprotection_services_pb.rb +24 -23
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 142d2a7ccc489b76dd4a816be66d1b12be61b639ea0b3a73872996626b83eecf
|
4
|
+
data.tar.gz: 7e107172abbdb14372efd361b9b70b1f21cb925e983aea13be87f50b6313e8d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0688c64aead77dbcd714de74640822404bb1d36829e85b65a6bece3badc2d9d5a98e0984f051a41a9389523fc29127c7385fb9818be8915c10eb1fef0fdd5d6e'
|
7
|
+
data.tar.gz: 692ae21e14dad1591b44384392dcdc36a6aaa5af66c86828b954a0d6f9ba43b87a49b335f9fd6c8dfc9b1cad5b5a7a2da31fb419becdad46a90b7aa7e29a2f6e
|
@@ -36,7 +36,7 @@ module Google
|
|
36
36
|
# Service to report phishing URIs.
|
37
37
|
#
|
38
38
|
# @!attribute [r] phishing_protection_stub
|
39
|
-
# @return [Google::Cloud::
|
39
|
+
# @return [Google::Cloud::PhishingProtection::V1beta1::PhishingProtection::Stub]
|
40
40
|
class PhishingProtectionClient
|
41
41
|
# @private
|
42
42
|
attr_reader :phishing_protection_stub
|
@@ -182,7 +182,7 @@ module Google
|
|
182
182
|
updater_proc: updater_proc,
|
183
183
|
scopes: scopes,
|
184
184
|
interceptors: interceptors,
|
185
|
-
&Google::Cloud::
|
185
|
+
&Google::Cloud::PhishingProtection::V1beta1::PhishingProtection::Stub.method(:new)
|
186
186
|
)
|
187
187
|
|
188
188
|
@report_phishing = Google::Gax.create_api_call(
|
@@ -214,9 +214,9 @@ module Google
|
|
214
214
|
# Overrides the default settings for this call, e.g, timeout,
|
215
215
|
# retries, etc.
|
216
216
|
# @yield [result, operation] Access the result along with the RPC operation
|
217
|
-
# @yieldparam result [Google::Cloud::
|
217
|
+
# @yieldparam result [Google::Cloud::PhishingProtection::V1beta1::ReportPhishingResponse]
|
218
218
|
# @yieldparam operation [GRPC::ActiveCall::Operation]
|
219
|
-
# @return [Google::Cloud::
|
219
|
+
# @return [Google::Cloud::PhishingProtection::V1beta1::ReportPhishingResponse]
|
220
220
|
# @raise [Google::Gax::GaxError] if the RPC is aborted.
|
221
221
|
# @example
|
222
222
|
# require "google/cloud/phishing_protection"
|
@@ -237,7 +237,7 @@ module Google
|
|
237
237
|
parent: parent,
|
238
238
|
uri: uri
|
239
239
|
}.delete_if { |_, v| v.nil? }
|
240
|
-
req = Google::Gax::to_proto(req, Google::Cloud::
|
240
|
+
req = Google::Gax::to_proto(req, Google::Cloud::PhishingProtection::V1beta1::ReportPhishingRequest)
|
241
241
|
@report_phishing.call(req, options, &block)
|
242
242
|
end
|
243
243
|
end
|
@@ -19,11 +19,12 @@ end
|
|
19
19
|
|
20
20
|
module Google
|
21
21
|
module Cloud
|
22
|
-
module
|
23
|
-
module V1beta1
|
24
|
-
ReportPhishingRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.phishingprotection.v1beta1.ReportPhishingRequest").msgclass
|
25
|
-
ReportPhishingResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.phishingprotection.v1beta1.ReportPhishingResponse").msgclass
|
26
|
-
end
|
22
|
+
module PhishingProtection
|
27
23
|
end
|
24
|
+
Phishingprotection = PhishingProtection unless const_defined? :Phishingprotection
|
28
25
|
end
|
29
26
|
end
|
27
|
+
module Google::Cloud::PhishingProtection::V1beta1
|
28
|
+
ReportPhishingRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.phishingprotection.v1beta1.ReportPhishingRequest").msgclass
|
29
|
+
ReportPhishingResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.phishingprotection.v1beta1.ReportPhishingResponse").msgclass
|
30
|
+
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# Source: google/cloud/phishingprotection/v1beta1/phishingprotection.proto for package '
|
2
|
+
# Source: google/cloud/phishingprotection/v1beta1/phishingprotection.proto for package 'Google::Cloud::PhishingProtection::V1beta1'
|
3
3
|
# Original file comments:
|
4
4
|
# Copyright 2019 Google LLC.
|
5
5
|
#
|
@@ -23,31 +23,32 @@ require 'google/cloud/phishingprotection/v1beta1/phishingprotection_pb'
|
|
23
23
|
|
24
24
|
module Google
|
25
25
|
module Cloud
|
26
|
-
module
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
26
|
+
module PhishingProtection
|
27
|
+
end
|
28
|
+
Phishingprotection = PhishingProtection unless const_defined? :Phishingprotection
|
29
|
+
end
|
30
|
+
end
|
31
|
+
module Google::Cloud::PhishingProtection::V1beta1
|
32
|
+
module PhishingProtection
|
33
|
+
# Service to report phishing URIs.
|
34
|
+
class Service
|
33
35
|
|
34
|
-
|
35
|
-
self.unmarshal_class_method = :decode
|
36
|
-
self.service_name = 'google.cloud.phishingprotection.v1beta1.PhishingProtection'
|
36
|
+
include GRPC::GenericService
|
37
37
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
# result verifies the existence of malicious phishing content, the site will
|
42
|
-
# be added the to [Google's Social Engineering
|
43
|
-
# lists](https://support.google.com/webmasters/answer/6350487/) in order to
|
44
|
-
# protect users that could get exposed to this threat in the future.
|
45
|
-
rpc :ReportPhishing, ReportPhishingRequest, ReportPhishingResponse
|
46
|
-
end
|
38
|
+
self.marshal_class_method = :encode
|
39
|
+
self.unmarshal_class_method = :decode
|
40
|
+
self.service_name = 'google.cloud.phishingprotection.v1beta1.PhishingProtection'
|
47
41
|
|
48
|
-
|
49
|
-
|
50
|
-
|
42
|
+
# Reports a URI suspected of containing phishing content to be reviewed. Once
|
43
|
+
# the report review is complete, its result can be found in the Cloud
|
44
|
+
# Security Command Center findings dashboard for Phishing Protection. If the
|
45
|
+
# result verifies the existence of malicious phishing content, the site will
|
46
|
+
# be added the to [Google's Social Engineering
|
47
|
+
# lists](https://support.google.com/webmasters/answer/6350487/) in order to
|
48
|
+
# protect users that could get exposed to this threat in the future.
|
49
|
+
rpc :ReportPhishing, ReportPhishingRequest, ReportPhishingResponse
|
51
50
|
end
|
51
|
+
|
52
|
+
Stub = Service.rpc_stub_class
|
52
53
|
end
|
53
54
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-phishing_protection
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.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: 2020-04-
|
11
|
+
date: 2020-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-gax
|