google-cloud-web_risk-v1 0.4.5 → 0.6.0

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: 24c2518fb4eae9495d4322a6c34ce99557b8fdcf613843e80e5104426701ab20
4
- data.tar.gz: f5186a85fd0791aeff0a6b54bcd8466cee89235d6ffae48b072f4fb7410f4964
3
+ metadata.gz: f4a1e42a4e53cb1cc7bb49da3a6d93e8b6d1fe12d13a6625aa47b4b37079d7b2
4
+ data.tar.gz: 4f102663e3699e6d4c49471dd85ddf90f8f75f74895c716e124f32fe430e7599
5
5
  SHA512:
6
- metadata.gz: cb66acb57c6c0cf2b494ecb39e2a0fd38e280252f12833f5dbefe398b75e74eca9bb1ee749b15461ab3d7339b628c5af79be59b4abed4f5e1263eb911f4853d9
7
- data.tar.gz: 86f9cb5dd0640ceb5098d089a21871ceead752c27c7ef97a1130da7880ce8496e1ede519cb60a3d83db604db4d2ffa0f94ee398f5c07db7646a7ccecb22461cc
6
+ metadata.gz: 91995f126535a48f2f96c267f15ff441608506e1ec9390edf5887e969da80e1c22850ef3d8c4651d3dd9e9a69fe1899b3d24a31150a0ff7fe0a900db754b2adb
7
+ data.tar.gz: d49f8bb4a0f765044999c38ea3d78b68325e84984b9781bf1955bcc012b1ef5ab3037cc8c486e5ef6af524edb5c49db8b1de8f02a3572c27e73ed6cc5bbf3db7
data/AUTHENTICATION.md CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
114
114
  To configure your system for this, simply:
115
115
 
116
116
  1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
117
- 2. Authenticate using OAuth 2.0 `$ gcloud auth login`
117
+ 2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
118
118
  3. Write code as if already authenticated.
119
119
 
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
data/README.md CHANGED
@@ -37,7 +37,7 @@ request = ::Google::Cloud::WebRisk::V1::ComputeThreatListDiffRequest.new # (requ
37
37
  response = client.compute_threat_list_diff request
38
38
  ```
39
39
 
40
- View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-web_risk-v1/latest)
40
+ View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-web_risk-v1/latest)
41
41
  for class and method documentation.
42
42
 
43
43
  See also the [Product Documentation](https://cloud.google.com/web-risk)
@@ -69,16 +69,21 @@ module GRPC
69
69
  end
70
70
  ```
71
71
 
72
+
73
+ ## Google Cloud Samples
74
+
75
+ To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
76
+
72
77
  ## Supported Ruby Versions
73
78
 
74
- This library is supported on Ruby 2.5+.
79
+ This library is supported on Ruby 2.6+.
75
80
 
76
81
  Google provides official support for Ruby versions that are actively supported
77
82
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
78
- in security maintenance, and not end of life. Currently, this means Ruby 2.5
79
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
80
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
81
- about the Ruby support schedule.
83
+ in security maintenance, and not end of life. Older versions of Ruby _may_
84
+ still work, but are unsupported and not recommended. See
85
+ https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
86
+ support schedule.
82
87
 
83
88
  ## Which client should I use?
84
89
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module WebRisk
23
23
  module V1
24
- VERSION = "0.4.5"
24
+ VERSION = "0.6.0"
25
25
  end
26
26
  end
27
27
  end
@@ -80,7 +80,7 @@ module Google
80
80
  initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
81
81
  }
82
82
 
83
- default_config.rpcs.create_submission.timeout = 60.0
83
+ default_config.rpcs.create_submission.timeout = 600.0
84
84
 
85
85
  default_config
86
86
  end
@@ -186,7 +186,9 @@ module Google
186
186
  # the default parameter values, pass an empty Hash as a request object (see above).
187
187
  #
188
188
  # @param threat_type [::Google::Cloud::WebRisk::V1::ThreatType]
189
- # Required. The threat list to update. Only a single ThreatType should be specified.
189
+ # Required. The threat list to update. Only a single ThreatType should be specified
190
+ # per request. If you want to handle multiple ThreatTypes, you must make one
191
+ # request per ThreatType.
190
192
  # @param version_token [::String]
191
193
  # The current version token of the client for the requested list (the
192
194
  # client version that was received from the last successful diff).
@@ -360,6 +362,8 @@ module Google
360
362
  # @param hash_prefix [::String]
361
363
  # A hash prefix, consisting of the most significant 4-32 bytes of a SHA256
362
364
  # hash. For JSON requests, this field is base64-encoded.
365
+ # Note that if this parameter is provided by a URI, it must be encoded using
366
+ # the web safe base64 variant (RFC 4648).
363
367
  # @param threat_types [::Array<::Google::Cloud::WebRisk::V1::ThreatType>]
364
368
  # Required. The ThreatLists to search in. Multiple ThreatLists may be specified.
365
369
  #
@@ -425,7 +429,8 @@ module Google
425
429
  # content, the site will be added to the [Google's Social Engineering
426
430
  # lists](https://support.google.com/webmasters/answer/6350487/) in order to
427
431
  # protect users that could get exposed to this threat in the future. Only
428
- # projects with CREATE_SUBMISSION_USERS visibility can use this method.
432
+ # allowlisted projects can use this method during Early Access. Please reach
433
+ # out to Sales or your customer engineer to obtain access.
429
434
  #
430
435
  # @overload create_submission(request, options = nil)
431
436
  # Pass arguments to `create_submission` via a request object, either of type
@@ -25,6 +25,8 @@ module Google
25
25
  ##
26
26
  # To load this package, including all its services, and instantiate a client:
27
27
  #
28
+ # @example
29
+ #
28
30
  # require "google/cloud/web_risk/v1"
29
31
  # client = ::Google::Cloud::WebRisk::V1::WebRiskService::Client.new
30
32
  #
@@ -1,12 +1,13 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/webrisk/v1/webrisk.proto
3
3
 
4
+ require 'google/protobuf'
5
+
4
6
  require 'google/api/annotations_pb'
5
7
  require 'google/api/client_pb'
6
8
  require 'google/api/field_behavior_pb'
7
9
  require 'google/api/resource_pb'
8
10
  require 'google/protobuf/timestamp_pb'
9
- require 'google/protobuf'
10
11
 
11
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
13
  add_file("google/cloud/webrisk/v1/webrisk.proto", :syntax => :proto3) do
@@ -93,6 +94,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
93
94
  value :MALWARE, 1
94
95
  value :SOCIAL_ENGINEERING, 2
95
96
  value :UNWANTED_SOFTWARE, 3
97
+ value :SOCIAL_ENGINEERING_EXTENDED_COVERAGE, 4
96
98
  end
97
99
  add_enum "google.cloud.webrisk.v1.CompressionType" do
98
100
  value :COMPRESSION_TYPE_UNSPECIFIED, 0
@@ -58,7 +58,8 @@ module Google
58
58
  # content, the site will be added to the [Google's Social Engineering
59
59
  # lists](https://support.google.com/webmasters/answer/6350487/) in order to
60
60
  # protect users that could get exposed to this threat in the future. Only
61
- # projects with CREATE_SUBMISSION_USERS visibility can use this method.
61
+ # allowlisted projects can use this method during Early Access. Please reach
62
+ # out to Sales or your customer engineer to obtain access.
62
63
  rpc :CreateSubmission, ::Google::Cloud::WebRisk::V1::CreateSubmissionRequest, ::Google::Cloud::WebRisk::V1::Submission
63
64
  end
64
65
 
@@ -24,7 +24,9 @@ module Google
24
24
  # Describes an API diff request.
25
25
  # @!attribute [rw] threat_type
26
26
  # @return [::Google::Cloud::WebRisk::V1::ThreatType]
27
- # Required. The threat list to update. Only a single ThreatType should be specified.
27
+ # Required. The threat list to update. Only a single ThreatType should be specified
28
+ # per request. If you want to handle multiple ThreatTypes, you must make one
29
+ # request per ThreatType.
28
30
  # @!attribute [rw] version_token
29
31
  # @return [::String]
30
32
  # The current version token of the client for the requested list (the
@@ -130,7 +132,7 @@ module Google
130
132
 
131
133
  # @!attribute [rw] threat
132
134
  # @return [::Google::Cloud::WebRisk::V1::SearchUrisResponse::ThreatUri]
133
- # The threat list matches. This may be empty if the URI is on no list.
135
+ # The threat list matches. This might be empty if the URI is on no list.
134
136
  class SearchUrisResponse
135
137
  include ::Google::Protobuf::MessageExts
136
138
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -154,6 +156,8 @@ module Google
154
156
  # @return [::String]
155
157
  # A hash prefix, consisting of the most significant 4-32 bytes of a SHA256
156
158
  # hash. For JSON requests, this field is base64-encoded.
159
+ # Note that if this parameter is provided by a URI, it must be encoded using
160
+ # the web safe base64 variant (RFC 4648).
157
161
  # @!attribute [rw] threat_types
158
162
  # @return [::Array<::Google::Cloud::WebRisk::V1::ThreatType>]
159
163
  # Required. The ThreatLists to search in. Multiple ThreatLists may be specified.
@@ -280,10 +284,10 @@ module Google
280
284
  extend ::Google::Protobuf::MessageExts::ClassMethods
281
285
  end
282
286
 
283
- # Wraps a URI that might be displaying phishing content.
287
+ # Wraps a URI that might be displaying malicious content.
284
288
  # @!attribute [rw] uri
285
289
  # @return [::String]
286
- # Required. The URI that is being reported for phishing content to be analyzed.
290
+ # Required. The URI that is being reported for malicious content to be analyzed.
287
291
  class Submission
288
292
  include ::Google::Protobuf::MessageExts
289
293
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -302,10 +306,10 @@ module Google
302
306
  extend ::Google::Protobuf::MessageExts::ClassMethods
303
307
  end
304
308
 
305
- # The type of threat. This maps dirrectly to the threat list a threat may
309
+ # The type of threat. This maps directly to the threat list a threat may
306
310
  # belong to.
307
311
  module ThreatType
308
- # Unknown.
312
+ # No entries should match this threat type. This threat type is unused.
309
313
  THREAT_TYPE_UNSPECIFIED = 0
310
314
 
311
315
  # Malware targeting any platform.
@@ -316,6 +320,10 @@ module Google
316
320
 
317
321
  # Unwanted software targeting any platform.
318
322
  UNWANTED_SOFTWARE = 3
323
+
324
+ # A list of extended coverage social engineering URIs targeting any
325
+ # platform.
326
+ SOCIAL_ENGINEERING_EXTENDED_COVERAGE = 4
319
327
  end
320
328
 
321
329
  # The ways in which threat entry sets can be compressed.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-web_risk-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5
4
+ version: 0.6.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: 2022-01-11 00:00:00.000000000 Z
11
+ date: 2022-10-19 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.7'
19
+ version: '0.12'
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.7'
29
+ version: '0.12'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -50,28 +50,28 @@ dependencies:
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: 1.25.1
53
+ version: 1.26.1
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: 1.25.1
60
+ version: 1.26.1
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: minitest
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '5.14'
67
+ version: '5.16'
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '5.14'
74
+ version: '5.16'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: minitest-focus
77
77
  requirement: !ruby/object:Gem::Requirement
@@ -106,14 +106,14 @@ dependencies:
106
106
  requirements:
107
107
  - - ">="
108
108
  - !ruby/object:Gem::Version
109
- version: '12.0'
109
+ version: '13.0'
110
110
  type: :development
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
114
  - - ">="
115
115
  - !ruby/object:Gem::Version
116
- version: '12.0'
116
+ version: '13.0'
117
117
  - !ruby/object:Gem::Dependency
118
118
  name: redcarpet
119
119
  requirement: !ruby/object:Gem::Requirement
@@ -196,14 +196,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
196
196
  requirements:
197
197
  - - ">="
198
198
  - !ruby/object:Gem::Version
199
- version: '2.5'
199
+ version: '2.6'
200
200
  required_rubygems_version: !ruby/object:Gem::Requirement
201
201
  requirements:
202
202
  - - ">="
203
203
  - !ruby/object:Gem::Version
204
204
  version: '0'
205
205
  requirements: []
206
- rubygems_version: 3.3.4
206
+ rubygems_version: 3.3.14
207
207
  signing_key:
208
208
  specification_version: 4
209
209
  summary: API Client library for the Web Risk V1 API