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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 330a8c76e7b2ad3c54b9fd53050e4d44ca9255ab8374a922ce45714831221477
4
- data.tar.gz: 0c96959ad1003f6490094b4dac83081e6546068dd0ff0bac9e37ac6d9925dbc4
3
+ metadata.gz: dc63c5285fe041314f4e5730ac02c02d2d22a86be1310411671e9fa3aea42c19
4
+ data.tar.gz: 64048130b75a5525d10b5e886202435035a621a58bb7a0f05caf9c5fd88a8d2d
5
5
  SHA512:
6
- metadata.gz: 5f1acd08eede383369a9d1e7505c1d56d51f4628f610fa34ad27b8812a31b30db0f94e2c9189ba6152d6ccbc71f6d04c1ee784b6f427463753ef81e054dc5b2a
7
- data.tar.gz: 77c8ad735e46efafcdf83fe0af67a9b0b930f997ae7aa1dc0ef7c97b911bb99829f40be942eae83ff1a5131fe2c7c4b5b69def837851fcb3001eefa9ec2b1835
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
- "parent" => request.parent
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
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module PhishingProtection
23
23
  module V1beta1
24
- VERSION = "0.3.3"
24
+ VERSION = "0.3.4"
25
25
  end
26
26
  end
27
27
  end
@@ -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
@@ -28,7 +28,7 @@ module Google
28
28
  # Service to report phishing URIs.
29
29
  class Service
30
30
 
31
- include GRPC::GenericService
31
+ include ::GRPC::GenericService
32
32
 
33
33
  self.marshal_class_method = :encode
34
34
  self.unmarshal_class_method = :decode
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.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 00:00:00.000000000 Z
11
+ date: 2021-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common