google-cloud-phishing_protection-v1beta1 0.3.3 → 0.3.4
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 +20 -3
- data/lib/google/cloud/phishing_protection/v1beta1/version.rb +1 -1
- data/lib/google/cloud/phishingprotection/v1beta1/phishingprotection_pb.rb +2 -2
- data/lib/google/cloud/phishingprotection/v1beta1/phishingprotection_services_pb.rb +1 -1
- 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: dc63c5285fe041314f4e5730ac02c02d2d22a86be1310411671e9fa3aea42c19
|
4
|
+
data.tar.gz: 64048130b75a5525d10b5e886202435035a621a58bb7a0f05caf9c5fd88a8d2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2701234976a314873c0eb5034b7466cdb405bba90565325a68d4c24a625f684f948b35dc8e1f602ae96504921d279345dbfb6467927506aa25e7233a9fdc4136
|
7
|
+
data.tar.gz: 04fdd9d2510bbdcded82fe8bfccdd62ea1e4d3a028cc4ea95e9e77d7bce126ed944ffac042e477208b884eb3df916f394b3f1fc5ddd86d7cf368305ee2f09442
|
@@ -184,6 +184,21 @@ module Google
|
|
184
184
|
#
|
185
185
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
186
186
|
#
|
187
|
+
# @example Basic example
|
188
|
+
# require "google/cloud/phishing_protection/v1beta1"
|
189
|
+
#
|
190
|
+
# # Create a client object. The client can be reused for multiple calls.
|
191
|
+
# client = Google::Cloud::PhishingProtection::V1beta1::PhishingProtectionService::Client.new
|
192
|
+
#
|
193
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
194
|
+
# request = Google::Cloud::PhishingProtection::V1beta1::ReportPhishingRequest.new
|
195
|
+
#
|
196
|
+
# # Call the report_phishing method.
|
197
|
+
# result = client.report_phishing request
|
198
|
+
#
|
199
|
+
# # The returned object is of type Google::Cloud::PhishingProtection::V1beta1::ReportPhishingResponse.
|
200
|
+
# p result
|
201
|
+
#
|
187
202
|
def report_phishing request, options = nil
|
188
203
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
189
204
|
|
@@ -201,9 +216,11 @@ module Google
|
|
201
216
|
gapic_version: ::Google::Cloud::PhishingProtection::V1beta1::VERSION
|
202
217
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
203
218
|
|
204
|
-
header_params = {
|
205
|
-
|
206
|
-
|
219
|
+
header_params = {}
|
220
|
+
if request.parent
|
221
|
+
header_params["parent"] = request.parent
|
222
|
+
end
|
223
|
+
|
207
224
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
208
225
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
209
226
|
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/phishingprotection/v1beta1/phishingprotection.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
9
7
|
require 'google/api/resource_pb'
|
8
|
+
require 'google/protobuf'
|
9
|
+
|
10
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
11
|
add_file("google/cloud/phishingprotection/v1beta1/phishingprotection.proto", :syntax => :proto3) do
|
12
12
|
add_message "google.cloud.phishingprotection.v1beta1.ReportPhishingRequest" do
|
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.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-08
|
11
|
+
date: 2021-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|