google-cloud-phishing_protection 0.5.0 → 0.11.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +2 -1
- data/AUTHENTICATION.md +56 -59
- data/LICENSE.md +201 -0
- data/MIGRATING.md +340 -0
- data/README.md +95 -25
- data/lib/{google/cloud/phishing_protection/v1beta1/helpers.rb → google-cloud-phishing_protection.rb} +6 -18
- data/lib/google/cloud/phishing_protection.rb +87 -116
- data/lib/google/cloud/phishing_protection/version.rb +6 -2
- metadata +54 -50
- data/LICENSE +0 -201
- data/lib/google/cloud/phishing_protection/v1beta1.rb +0 -146
- data/lib/google/cloud/phishing_protection/v1beta1/credentials.rb +0 -41
- data/lib/google/cloud/phishing_protection/v1beta1/doc/google/cloud/phishingprotection/v1beta1/phishingprotection.rb +0 -35
- data/lib/google/cloud/phishing_protection/v1beta1/phishing_protection_client.rb +0 -247
- data/lib/google/cloud/phishing_protection/v1beta1/phishing_protection_client_config.json +0 -31
- data/lib/google/cloud/phishingprotection/v1beta1/phishingprotection_pb.rb +0 -30
- data/lib/google/cloud/phishingprotection/v1beta1/phishingprotection_services_pb.rb +0 -54
data/README.md
CHANGED
@@ -1,41 +1,53 @@
|
|
1
|
-
# Ruby Client for Phishing Protection API
|
1
|
+
# Ruby Client for the Phishing Protection API
|
2
2
|
|
3
|
-
|
3
|
+
API Client library for the Phishing Protection API
|
4
4
|
|
5
|
-
|
6
|
-
- [Product Documentation][]
|
5
|
+
Phishing Protection helps prevent users from accessing phishing sites by identifying various signals associated with malicious content, including the use of your brand assets, classifying malicious content that uses your brand and reporting the unsafe URLs to Google Safe Browsing.
|
7
6
|
|
8
|
-
|
9
|
-
|
10
|
-
|
7
|
+
Actual client classes for the various versions of this API are defined in
|
8
|
+
_versioned_ client gems, with names of the form `google-cloud-phishing_protection-v*`.
|
9
|
+
The gem `google-cloud-phishing_protection` is the main client library that brings the
|
10
|
+
verisoned gems in as dependencies, and provides high-level methods for
|
11
|
+
constructing clients. More information on versioned clients can be found below
|
12
|
+
in the section titled *Which client should I use?*.
|
11
13
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
14
|
+
View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-phishing_protection/latest)
|
15
|
+
for this library, google-cloud-phishing_protection, to see the convenience methods for
|
16
|
+
constructing client objects. Reference documentation for the client objects
|
17
|
+
themselves can be found in the client library documentation for the versioned
|
18
|
+
client gems:
|
19
|
+
[google-cloud-phishing_protection-v1beta1](https://googleapis.dev/ruby/google-cloud-phishing_protection-v1beta1/latest).
|
20
|
+
|
21
|
+
See also the [Product Documentation](https://cloud.google.com/phishing-protection)
|
22
|
+
for more usage information.
|
23
|
+
|
24
|
+
## Quick Start
|
16
25
|
|
17
|
-
### Installation
|
18
26
|
```
|
19
27
|
$ gem install google-cloud-phishing_protection
|
20
28
|
```
|
21
29
|
|
22
|
-
|
23
|
-
- Read the [Client Library Documentation][] for Phishing Protection API
|
24
|
-
to see other available methods on the client.
|
25
|
-
- Read the [Phishing Protection API Product documentation][Product Documentation]
|
26
|
-
to learn more about the product and see How-to Guides.
|
27
|
-
- View this [repository's main README](https://github.com/googleapis/google-cloud-ruby/blob/master/README.md)
|
28
|
-
to see the full list of Cloud APIs that we cover.
|
30
|
+
In order to use this library, you first need to go through the following steps:
|
29
31
|
|
30
|
-
[
|
31
|
-
[
|
32
|
+
1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
33
|
+
1. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
34
|
+
1. [Enable the API.](https://console.cloud.google.com/apis/library/phishingprotection.googleapis.com)
|
35
|
+
1. {file:AUTHENTICATION.md Set up authentication.}
|
36
|
+
|
37
|
+
## Migrating from pre-0.10 versions
|
38
|
+
|
39
|
+
The 0.10 release of the google-cloud-phishing_protection client is a significant upgrade
|
40
|
+
based on a [next-gen code generator](https://github.com/googleapis/gapic-generator-ruby),
|
41
|
+
and includes substantial interface changes. Existing code written for earlier
|
42
|
+
versions of this library will likely require updates to use this version.
|
43
|
+
See the {file:MIGRATING.md MIGRATING.md} document for more information.
|
32
44
|
|
33
45
|
## Enabling Logging
|
34
46
|
|
35
47
|
To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
36
|
-
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib
|
48
|
+
The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
|
37
49
|
or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
38
|
-
that will write logs to [
|
50
|
+
that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
39
51
|
and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
40
52
|
|
41
53
|
Configuring a Ruby stdlib logger:
|
@@ -58,11 +70,69 @@ end
|
|
58
70
|
|
59
71
|
## Supported Ruby Versions
|
60
72
|
|
61
|
-
This library is supported on Ruby 2.
|
73
|
+
This library is supported on Ruby 2.5+.
|
62
74
|
|
63
75
|
Google provides official support for Ruby versions that are actively supported
|
64
76
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
65
|
-
in security maintenance, and not end of life. Currently, this means Ruby 2.
|
77
|
+
in security maintenance, and not end of life. Currently, this means Ruby 2.5
|
66
78
|
and later. Older versions of Ruby _may_ still work, but are unsupported and not
|
67
79
|
recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
|
68
80
|
about the Ruby support schedule.
|
81
|
+
|
82
|
+
## Which client should I use?
|
83
|
+
|
84
|
+
Most modern Ruby client libraries for Google APIs come in two flavors: the main
|
85
|
+
client library with a name such as `google-cloud-phishing_protection`,
|
86
|
+
and lower-level _versioned_ client libraries with names such as
|
87
|
+
`google-cloud-phishing_protection-v1beta1`.
|
88
|
+
_In most cases, you should install the main client._
|
89
|
+
|
90
|
+
### What's the difference between the main client and a versioned client?
|
91
|
+
|
92
|
+
A _versioned client_ provides a basic set of data types and client classes for
|
93
|
+
a _single version_ of a specific service. (That is, for a service with multiple
|
94
|
+
versions, there might be a separate versioned client for each service version.)
|
95
|
+
Most versioned clients are written and maintained by a code generator.
|
96
|
+
|
97
|
+
The _main client_ is designed to provide you with the _recommended_ client
|
98
|
+
interfaces for the service. There will be only one main client for any given
|
99
|
+
service, even a service with multiple versions. The main client includes
|
100
|
+
factory methods for constructing the client objects we recommend for most
|
101
|
+
users. In some cases, those will be classes provided by an underlying versioned
|
102
|
+
client; in other cases, they will be handwritten higher-level client objects
|
103
|
+
with additional capabilities, convenience methods, or best practices built in.
|
104
|
+
Generally, the main client will default to a recommended service version,
|
105
|
+
although in some cases you can override this if you need to talk to a specific
|
106
|
+
service version.
|
107
|
+
|
108
|
+
### Why would I want to use the main client?
|
109
|
+
|
110
|
+
We recommend that most users install the main client gem for a service. You can
|
111
|
+
identify this gem as the one _without_ a version in its name, e.g.
|
112
|
+
`google-cloud-phishing_protection`.
|
113
|
+
The main client is recommended because it will embody the best practices for
|
114
|
+
accessing the service, and may also provide more convenient interfaces or
|
115
|
+
tighter integration into frameworks and third-party libraries. In addition, the
|
116
|
+
documentation and samples published by Google will generally demonstrate use of
|
117
|
+
the main client.
|
118
|
+
|
119
|
+
### Why would I want to use a versioned client?
|
120
|
+
|
121
|
+
You can use a versioned client if you are content with a possibly lower-level
|
122
|
+
class interface, you explicitly want to avoid features provided by the main
|
123
|
+
client, or you want to access a specific service version not be covered by the
|
124
|
+
main client. You can identify versioned client gems because the service version
|
125
|
+
is part of the name, e.g. `google-cloud-phishing_protection-v1beta1`.
|
126
|
+
|
127
|
+
### What about the google-apis-<name> clients?
|
128
|
+
|
129
|
+
Client library gems with names that begin with `google-apis-` are based on an
|
130
|
+
older code generation technology. They talk to a REST/JSON backend (whereas
|
131
|
+
most modern clients talk to a [gRPC](https://grpc.io/) backend) and they may
|
132
|
+
not offer the same performance, features, and ease of use provided by more
|
133
|
+
modern clients.
|
134
|
+
|
135
|
+
The `google-apis-` clients have wide coverage across Google services, so you
|
136
|
+
might need to use one if there is no modern client available for the service.
|
137
|
+
However, if a modern client is available, we generally recommend it over the
|
138
|
+
older `google-apis-` clients.
|
data/lib/{google/cloud/phishing_protection/v1beta1/helpers.rb → google-cloud-phishing_protection.rb}
RENAMED
@@ -1,4 +1,6 @@
|
|
1
|
-
#
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 Google LLC
|
2
4
|
#
|
3
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
6
|
# you may not use this file except in compliance with the License.
|
@@ -10,22 +12,8 @@
|
|
10
12
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
13
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
14
|
# See the License for the specific language governing permissions and
|
13
|
-
#
|
15
|
+
# limitations under the License.
|
14
16
|
|
15
|
-
|
16
|
-
module Cloud
|
17
|
-
module PhishingProtection
|
18
|
-
module V1beta1
|
19
|
-
class PhishingProtectionClient
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
20
18
|
|
21
|
-
|
22
|
-
# @param project [String]
|
23
|
-
# @return [String]
|
24
|
-
def project_path project
|
25
|
-
self.class.project_path project
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|
19
|
+
require "google/cloud/phishing_protection" unless defined? Google::Cloud::PhishingProtection::VERSION
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
# Copyright 2020 Google LLC
|
2
4
|
#
|
3
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -12,133 +14,102 @@
|
|
12
14
|
# See the License for the specific language governing permissions and
|
13
15
|
# limitations under the License.
|
14
16
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
# Require this file early so that the version constant gets defined before
|
20
|
+
# requiring "google/cloud". This is because google-cloud-core will load the
|
21
|
+
# entrypoint (gem name) file, which in turn re-requires this file (hence
|
22
|
+
# causing a require cycle) unless the version constant is already defined.
|
23
|
+
require "google/cloud/phishing_protection/version"
|
15
24
|
|
16
|
-
require "
|
17
|
-
|
25
|
+
require "googleauth"
|
26
|
+
gem "google-cloud-core"
|
27
|
+
require "google/cloud" unless defined? ::Google::Cloud.new
|
28
|
+
require "google/cloud/config"
|
29
|
+
|
30
|
+
# Set the default configuration
|
31
|
+
::Google::Cloud.configure.add_config! :phishing_protection do |config|
|
32
|
+
config.add_field! :endpoint, "phishingprotection.googleapis.com", match: ::String
|
33
|
+
config.add_field! :credentials, nil, match: [::String, ::Hash, ::Google::Auth::Credentials]
|
34
|
+
config.add_field! :scope, nil, match: [::Array, ::String]
|
35
|
+
config.add_field! :lib_name, nil, match: ::String
|
36
|
+
config.add_field! :lib_version, nil, match: ::String
|
37
|
+
config.add_field! :interceptors, nil, match: ::Array
|
38
|
+
config.add_field! :timeout, nil, match: ::Numeric
|
39
|
+
config.add_field! :metadata, nil, match: ::Hash
|
40
|
+
config.add_field! :retry_policy, nil, match: [::Hash, ::Proc]
|
41
|
+
config.add_field! :quota_project, nil, match: ::String
|
42
|
+
end
|
18
43
|
|
19
44
|
module Google
|
20
45
|
module Cloud
|
21
|
-
# rubocop:disable LineLength
|
22
|
-
|
23
|
-
##
|
24
|
-
# # Ruby Client for Phishing Protection API
|
25
|
-
#
|
26
|
-
# [Phishing Protection API][Product Documentation]:
|
27
|
-
#
|
28
|
-
# - [Product Documentation][]
|
29
|
-
#
|
30
|
-
# ## Quick Start
|
31
|
-
# In order to use this library, you first need to go through the following
|
32
|
-
# steps:
|
33
|
-
#
|
34
|
-
# 1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
|
35
|
-
# 2. [Enable billing for your project.](https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
|
36
|
-
# 3. [Enable the Phishing Protection API.](https://console.cloud.google.com/apis/library/phishingprotection.googleapis.com)
|
37
|
-
# 4. [Setup Authentication.](https://googleapis.dev/ruby/google-cloud-phishing_protection/latest/file.AUTHENTICATION.html)
|
38
|
-
#
|
39
|
-
# ### Installation
|
40
|
-
# ```
|
41
|
-
# $ gem install google-cloud-phishing_protection
|
42
|
-
# ```
|
43
|
-
#
|
44
|
-
# ### Next Steps
|
45
|
-
# - Read the [Phishing Protection API Product documentation][Product Documentation]
|
46
|
-
# to learn more about the product and see How-to Guides.
|
47
|
-
# - View this [repository's main README](https://github.com/googleapis/google-cloud-ruby/blob/master/README.md)
|
48
|
-
# to see the full list of Cloud APIs that we cover.
|
49
|
-
#
|
50
|
-
# [Product Documentation]: https://cloud.google.com/phishing-protection
|
51
|
-
#
|
52
|
-
# ## Enabling Logging
|
53
|
-
#
|
54
|
-
# To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
|
55
|
-
# The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib-2.5.0/libdoc/logger/rdoc/Logger.html) as shown below,
|
56
|
-
# or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
57
|
-
# that will write logs to [Stackdriver Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
|
58
|
-
# and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
|
59
|
-
#
|
60
|
-
# Configuring a Ruby stdlib logger:
|
61
|
-
#
|
62
|
-
# ```ruby
|
63
|
-
# require "logger"
|
64
|
-
#
|
65
|
-
# module MyLogger
|
66
|
-
# LOGGER = Logger.new $stderr, level: Logger::WARN
|
67
|
-
# def logger
|
68
|
-
# LOGGER
|
69
|
-
# end
|
70
|
-
# end
|
71
|
-
#
|
72
|
-
# # Define a gRPC module-level logger method before grpc/logconfig.rb loads.
|
73
|
-
# module GRPC
|
74
|
-
# extend MyLogger
|
75
|
-
# end
|
76
|
-
# ```
|
77
|
-
#
|
78
46
|
module PhishingProtection
|
79
|
-
|
80
|
-
|
81
|
-
|
47
|
+
##
|
48
|
+
# Create a new client object for PhishingProtectionService.
|
49
|
+
#
|
50
|
+
# By default, this returns an instance of
|
51
|
+
# [Google::Cloud::PhishingProtection::V1beta1::PhishingProtectionService::Client](https://googleapis.dev/ruby/google-cloud-phishing_protection-v1beta1/latest/Google/Cloud/PhishingProtection/V1beta1/PhishingProtectionService/Client.html)
|
52
|
+
# for version V1beta1 of the API.
|
53
|
+
# However, you can specify specify a different API version by passing it in the
|
54
|
+
# `version` parameter. If the PhishingProtectionService service is
|
55
|
+
# supported by that API version, and the corresponding gem is available, the
|
56
|
+
# appropriate versioned client will be returned.
|
57
|
+
#
|
58
|
+
# ## About PhishingProtectionService
|
59
|
+
#
|
60
|
+
# Service to report phishing URIs.
|
61
|
+
#
|
62
|
+
# @param version [::String, ::Symbol] The API version to connect to. Optional.
|
63
|
+
# Defaults to `:v1beta1`.
|
64
|
+
# @return [PhishingProtectionService::Client] A client object for the specified version.
|
65
|
+
#
|
66
|
+
def self.phishing_protection_service version: :v1beta1, &block
|
67
|
+
require "google/cloud/phishing_protection/#{version.to_s.downcase}"
|
82
68
|
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
69
|
+
package_name = Google::Cloud::PhishingProtection
|
70
|
+
.constants
|
71
|
+
.select { |sym| sym.to_s.downcase == version.to_s.downcase.tr("_", "") }
|
72
|
+
.first
|
73
|
+
package_module = Google::Cloud::PhishingProtection.const_get package_name
|
74
|
+
package_module.const_get(:PhishingProtectionService).const_get(:Client).new(&block)
|
75
|
+
end
|
88
76
|
|
89
77
|
##
|
90
|
-
#
|
78
|
+
# Configure the google-cloud-phishing_protection library.
|
91
79
|
#
|
92
|
-
#
|
93
|
-
#
|
94
|
-
#
|
95
|
-
#
|
96
|
-
#
|
97
|
-
#
|
98
|
-
#
|
99
|
-
#
|
100
|
-
#
|
101
|
-
#
|
102
|
-
#
|
103
|
-
#
|
104
|
-
#
|
105
|
-
#
|
106
|
-
#
|
107
|
-
#
|
108
|
-
#
|
109
|
-
#
|
110
|
-
#
|
111
|
-
#
|
112
|
-
#
|
113
|
-
#
|
114
|
-
#
|
115
|
-
#
|
116
|
-
#
|
117
|
-
|
118
|
-
|
119
|
-
# The default timeout, in seconds, for calls made through this client.
|
120
|
-
# @param metadata [Hash]
|
121
|
-
# Default metadata to be sent with each request. This can be overridden on a per call basis.
|
122
|
-
# @param service_address [String]
|
123
|
-
# Override for the service hostname, or `nil` to leave as the default.
|
124
|
-
# @param service_port [Integer]
|
125
|
-
# Override for the service port, or `nil` to leave as the default.
|
126
|
-
# @param exception_transformer [Proc]
|
127
|
-
# An optional proc that intercepts any exceptions raised during an API call to inject
|
128
|
-
# custom error handling.
|
129
|
-
def self.new(*args, version: :v1beta1, **kwargs)
|
130
|
-
unless AVAILABLE_VERSIONS.include?(version.to_s.downcase)
|
131
|
-
raise "The version: #{version} is not available. The available versions " \
|
132
|
-
"are: [#{AVAILABLE_VERSIONS.join(", ")}]"
|
133
|
-
end
|
80
|
+
# The following configuration parameters are supported:
|
81
|
+
#
|
82
|
+
# * `credentials` (*type:* `String, Hash, Google::Auth::Credentials`) -
|
83
|
+
# The path to the keyfile as a String, the contents of the keyfile as a
|
84
|
+
# Hash, or a Google::Auth::Credentials object.
|
85
|
+
# * `lib_name` (*type:* `String`) -
|
86
|
+
# The library name as recorded in instrumentation and logging.
|
87
|
+
# * `lib_version` (*type:* `String`) -
|
88
|
+
# The library version as recorded in instrumentation and logging.
|
89
|
+
# * `interceptors` (*type:* `Array<GRPC::ClientInterceptor>`) -
|
90
|
+
# An array of interceptors that are run before calls are executed.
|
91
|
+
# * `timeout` (*type:* `Numeric`) -
|
92
|
+
# Default timeout in seconds.
|
93
|
+
# * `metadata` (*type:* `Hash{Symbol=>String}`) -
|
94
|
+
# Additional gRPC headers to be sent with the call.
|
95
|
+
# * `retry_policy` (*type:* `Hash`) -
|
96
|
+
# The retry policy. The value is a hash with the following keys:
|
97
|
+
# * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
|
98
|
+
# * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
|
99
|
+
# * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
|
100
|
+
# * `:retry_codes` (*type:* `Array<String>`) -
|
101
|
+
# The error codes that should trigger a retry.
|
102
|
+
#
|
103
|
+
# @return [::Google::Cloud::Config] The default configuration used by this library
|
104
|
+
#
|
105
|
+
def self.configure
|
106
|
+
yield ::Google::Cloud.configure.phishing_protection if block_given?
|
134
107
|
|
135
|
-
|
136
|
-
version_module = Google::Cloud::PhishingProtection
|
137
|
-
.constants
|
138
|
-
.select {|sym| sym.to_s.downcase == version.to_s.downcase}
|
139
|
-
.first
|
140
|
-
Google::Cloud::PhishingProtection.const_get(version_module).new(*args, **kwargs)
|
108
|
+
::Google::Cloud.configure.phishing_protection
|
141
109
|
end
|
142
110
|
end
|
143
111
|
end
|
144
112
|
end
|
113
|
+
|
114
|
+
helper_path = ::File.join __dir__, "phishing_protection", "helpers.rb"
|
115
|
+
require "google/cloud/phishing_protection/helpers" if ::File.file? helper_path
|
@@ -1,4 +1,6 @@
|
|
1
|
-
#
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 Google LLC
|
2
4
|
#
|
3
5
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
6
|
# you may not use this file except in compliance with the License.
|
@@ -12,11 +14,13 @@
|
|
12
14
|
# See the License for the specific language governing permissions and
|
13
15
|
# limitations under the License.
|
14
16
|
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
15
19
|
|
16
20
|
module Google
|
17
21
|
module Cloud
|
18
22
|
module PhishingProtection
|
19
|
-
VERSION = "0.
|
23
|
+
VERSION = "0.11.1"
|
20
24
|
end
|
21
25
|
end
|
22
26
|
end
|
metadata
CHANGED
@@ -1,125 +1,133 @@
|
|
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.11.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:
|
11
|
+
date: 2021-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name: google-
|
14
|
+
name: google-cloud-core
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.6'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
26
|
+
version: '1.6'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: google-cloud-phishing_protection-v1beta1
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: '0.0'
|
34
34
|
- - "<"
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version:
|
36
|
+
version: 2.a
|
37
37
|
type: :runtime
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
41
|
- - ">="
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version:
|
43
|
+
version: '0.0'
|
44
44
|
- - "<"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version:
|
46
|
+
version: 2.a
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
|
-
name:
|
48
|
+
name: google-style
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
|
-
- - "
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: 1.0.4
|
54
|
-
- - "<"
|
51
|
+
- - "~>"
|
55
52
|
- !ruby/object:Gem::Version
|
56
|
-
version:
|
57
|
-
type: :
|
53
|
+
version: 1.25.1
|
54
|
+
type: :development
|
58
55
|
prerelease: false
|
59
56
|
version_requirements: !ruby/object:Gem::Requirement
|
60
57
|
requirements:
|
61
|
-
- - "
|
62
|
-
- !ruby/object:Gem::Version
|
63
|
-
version: 1.0.4
|
64
|
-
- - "<"
|
58
|
+
- - "~>"
|
65
59
|
- !ruby/object:Gem::Version
|
66
|
-
version:
|
60
|
+
version: 1.25.1
|
67
61
|
- !ruby/object:Gem::Dependency
|
68
|
-
name:
|
62
|
+
name: minitest
|
69
63
|
requirement: !ruby/object:Gem::Requirement
|
70
64
|
requirements:
|
71
65
|
- - "~>"
|
72
66
|
- !ruby/object:Gem::Version
|
73
|
-
version:
|
74
|
-
type: :
|
67
|
+
version: '5.14'
|
68
|
+
type: :development
|
75
69
|
prerelease: false
|
76
70
|
version_requirements: !ruby/object:Gem::Requirement
|
77
71
|
requirements:
|
78
72
|
- - "~>"
|
79
73
|
- !ruby/object:Gem::Version
|
80
|
-
version:
|
74
|
+
version: '5.14'
|
81
75
|
- !ruby/object:Gem::Dependency
|
82
|
-
name: minitest
|
76
|
+
name: minitest-focus
|
83
77
|
requirement: !ruby/object:Gem::Requirement
|
84
78
|
requirements:
|
85
79
|
- - "~>"
|
86
80
|
- !ruby/object:Gem::Version
|
87
|
-
version: '
|
81
|
+
version: '1.1'
|
88
82
|
type: :development
|
89
83
|
prerelease: false
|
90
84
|
version_requirements: !ruby/object:Gem::Requirement
|
91
85
|
requirements:
|
92
86
|
- - "~>"
|
93
87
|
- !ruby/object:Gem::Version
|
94
|
-
version: '
|
88
|
+
version: '1.1'
|
95
89
|
- !ruby/object:Gem::Dependency
|
96
|
-
name:
|
90
|
+
name: minitest-rg
|
97
91
|
requirement: !ruby/object:Gem::Requirement
|
98
92
|
requirements:
|
99
93
|
- - "~>"
|
100
94
|
- !ruby/object:Gem::Version
|
101
|
-
version: '
|
95
|
+
version: '5.2'
|
102
96
|
type: :development
|
103
97
|
prerelease: false
|
104
98
|
version_requirements: !ruby/object:Gem::Requirement
|
105
99
|
requirements:
|
106
100
|
- - "~>"
|
107
101
|
- !ruby/object:Gem::Version
|
108
|
-
version: '
|
102
|
+
version: '5.2'
|
109
103
|
- !ruby/object:Gem::Dependency
|
110
|
-
name:
|
104
|
+
name: rake
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - ">="
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '12.0'
|
110
|
+
type: :development
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - ">="
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '12.0'
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: redcarpet
|
111
119
|
requirement: !ruby/object:Gem::Requirement
|
112
120
|
requirements:
|
113
121
|
- - "~>"
|
114
122
|
- !ruby/object:Gem::Version
|
115
|
-
version:
|
123
|
+
version: '3.0'
|
116
124
|
type: :development
|
117
125
|
prerelease: false
|
118
126
|
version_requirements: !ruby/object:Gem::Requirement
|
119
127
|
requirements:
|
120
128
|
- - "~>"
|
121
129
|
- !ruby/object:Gem::Version
|
122
|
-
version:
|
130
|
+
version: '3.0'
|
123
131
|
- !ruby/object:Gem::Dependency
|
124
132
|
name: simplecov
|
125
133
|
requirement: !ruby/object:Gem::Requirement
|
@@ -148,8 +156,10 @@ dependencies:
|
|
148
156
|
- - "~>"
|
149
157
|
- !ruby/object:Gem::Version
|
150
158
|
version: '0.9'
|
151
|
-
description:
|
152
|
-
|
159
|
+
description: Phishing Protection helps prevent users from accessing phishing sites
|
160
|
+
by identifying various signals associated with malicious content, including the
|
161
|
+
use of your brand assets, classifying malicious content that uses your brand and
|
162
|
+
reporting the unsafe URLs to Google Safe Browsing.
|
153
163
|
email: googleapis-packages@google.com
|
154
164
|
executables: []
|
155
165
|
extensions: []
|
@@ -157,19 +167,13 @@ extra_rdoc_files: []
|
|
157
167
|
files:
|
158
168
|
- ".yardopts"
|
159
169
|
- AUTHENTICATION.md
|
160
|
-
- LICENSE
|
170
|
+
- LICENSE.md
|
171
|
+
- MIGRATING.md
|
161
172
|
- README.md
|
173
|
+
- lib/google-cloud-phishing_protection.rb
|
162
174
|
- lib/google/cloud/phishing_protection.rb
|
163
|
-
- lib/google/cloud/phishing_protection/v1beta1.rb
|
164
|
-
- lib/google/cloud/phishing_protection/v1beta1/credentials.rb
|
165
|
-
- lib/google/cloud/phishing_protection/v1beta1/doc/google/cloud/phishingprotection/v1beta1/phishingprotection.rb
|
166
|
-
- lib/google/cloud/phishing_protection/v1beta1/helpers.rb
|
167
|
-
- lib/google/cloud/phishing_protection/v1beta1/phishing_protection_client.rb
|
168
|
-
- lib/google/cloud/phishing_protection/v1beta1/phishing_protection_client_config.json
|
169
175
|
- lib/google/cloud/phishing_protection/version.rb
|
170
|
-
|
171
|
-
- lib/google/cloud/phishingprotection/v1beta1/phishingprotection_services_pb.rb
|
172
|
-
homepage: https://github.com/googleapis/googleapis
|
176
|
+
homepage: https://github.com/googleapis/google-cloud-ruby
|
173
177
|
licenses:
|
174
178
|
- Apache-2.0
|
175
179
|
metadata: {}
|
@@ -181,15 +185,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
181
185
|
requirements:
|
182
186
|
- - ">="
|
183
187
|
- !ruby/object:Gem::Version
|
184
|
-
version: '2.
|
188
|
+
version: '2.5'
|
185
189
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
186
190
|
requirements:
|
187
191
|
- - ">="
|
188
192
|
- !ruby/object:Gem::Version
|
189
193
|
version: '0'
|
190
194
|
requirements: []
|
191
|
-
rubygems_version: 3.
|
195
|
+
rubygems_version: 3.2.17
|
192
196
|
signing_key:
|
193
197
|
specification_version: 4
|
194
|
-
summary: API Client library for Phishing Protection API
|
198
|
+
summary: API Client library for the Phishing Protection API
|
195
199
|
test_files: []
|