google-apis-safebrowsing_v4 0.15.0 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -70,18 +70,18 @@ module Google
70
70
  # Request-specific options
71
71
  #
72
72
  # @yield [result, err] Result & error if block supplied
73
- # @yieldparam result [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FindFullHashesResponse] parsed result object
73
+ # @yieldparam result [Google::Apis::SafebrowsingV4::FindFullHashesResponse] parsed result object
74
74
  # @yieldparam err [StandardError] error object if request failed
75
75
  #
76
- # @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FindFullHashesResponse]
76
+ # @return [Google::Apis::SafebrowsingV4::FindFullHashesResponse]
77
77
  #
78
78
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
79
79
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
80
80
  # @raise [Google::Apis::AuthorizationError] Authorization is required
81
81
  def get_encoded_full_hash(encoded_request, client_id: nil, client_version: nil, fields: nil, quota_user: nil, options: nil, &block)
82
82
  command = make_simple_command(:get, 'v4/encodedFullHashes/{encodedRequest}', options)
83
- command.response_representation = Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FindFullHashesResponse::Representation
84
- command.response_class = Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FindFullHashesResponse
83
+ command.response_representation = Google::Apis::SafebrowsingV4::FindFullHashesResponse::Representation
84
+ command.response_class = Google::Apis::SafebrowsingV4::FindFullHashesResponse
85
85
  command.params['encodedRequest'] = encoded_request unless encoded_request.nil?
86
86
  command.query['clientId'] = client_id unless client_id.nil?
87
87
  command.query['clientVersion'] = client_version unless client_version.nil?
@@ -107,18 +107,18 @@ module Google
107
107
  # Request-specific options
108
108
  #
109
109
  # @yield [result, err] Result & error if block supplied
110
- # @yieldparam result [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse] parsed result object
110
+ # @yieldparam result [Google::Apis::SafebrowsingV4::FetchThreatListUpdatesResponse] parsed result object
111
111
  # @yieldparam err [StandardError] error object if request failed
112
112
  #
113
- # @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse]
113
+ # @return [Google::Apis::SafebrowsingV4::FetchThreatListUpdatesResponse]
114
114
  #
115
115
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
116
116
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
117
117
  # @raise [Google::Apis::AuthorizationError] Authorization is required
118
118
  def get_encoded_update(encoded_request, client_id: nil, client_version: nil, fields: nil, quota_user: nil, options: nil, &block)
119
119
  command = make_simple_command(:get, 'v4/encodedUpdates/{encodedRequest}', options)
120
- command.response_representation = Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse::Representation
121
- command.response_class = Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse
120
+ command.response_representation = Google::Apis::SafebrowsingV4::FetchThreatListUpdatesResponse::Representation
121
+ command.response_class = Google::Apis::SafebrowsingV4::FetchThreatListUpdatesResponse
122
122
  command.params['encodedRequest'] = encoded_request unless encoded_request.nil?
123
123
  command.query['clientId'] = client_id unless client_id.nil?
124
124
  command.query['clientVersion'] = client_version unless client_version.nil?
@@ -128,7 +128,7 @@ module Google
128
128
  end
129
129
 
130
130
  # Finds the full hashes that match the requested hash prefixes.
131
- # @param [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FindFullHashesRequest] google_security_safebrowsing_v4_find_full_hashes_request_object
131
+ # @param [Google::Apis::SafebrowsingV4::FindFullHashesRequest] find_full_hashes_request_object
132
132
  # @param [String] fields
133
133
  # Selector specifying which fields to include in a partial response.
134
134
  # @param [String] quota_user
@@ -138,20 +138,20 @@ module Google
138
138
  # Request-specific options
139
139
  #
140
140
  # @yield [result, err] Result & error if block supplied
141
- # @yieldparam result [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FindFullHashesResponse] parsed result object
141
+ # @yieldparam result [Google::Apis::SafebrowsingV4::FindFullHashesResponse] parsed result object
142
142
  # @yieldparam err [StandardError] error object if request failed
143
143
  #
144
- # @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FindFullHashesResponse]
144
+ # @return [Google::Apis::SafebrowsingV4::FindFullHashesResponse]
145
145
  #
146
146
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
147
147
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
148
148
  # @raise [Google::Apis::AuthorizationError] Authorization is required
149
- def find_full_hashes(google_security_safebrowsing_v4_find_full_hashes_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
149
+ def find_full_hashes(find_full_hashes_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
150
150
  command = make_simple_command(:post, 'v4/fullHashes:find', options)
151
- command.request_representation = Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FindFullHashesRequest::Representation
152
- command.request_object = google_security_safebrowsing_v4_find_full_hashes_request_object
153
- command.response_representation = Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FindFullHashesResponse::Representation
154
- command.response_class = Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FindFullHashesResponse
151
+ command.request_representation = Google::Apis::SafebrowsingV4::FindFullHashesRequest::Representation
152
+ command.request_object = find_full_hashes_request_object
153
+ command.response_representation = Google::Apis::SafebrowsingV4::FindFullHashesResponse::Representation
154
+ command.response_class = Google::Apis::SafebrowsingV4::FindFullHashesResponse
155
155
  command.query['fields'] = fields unless fields.nil?
156
156
  command.query['quotaUser'] = quota_user unless quota_user.nil?
157
157
  execute_or_queue_command(command, &block)
@@ -159,7 +159,7 @@ module Google
159
159
 
160
160
  # Reports a Safe Browsing threat list hit to Google. Only projects with
161
161
  # TRUSTED_REPORTER visibility can use this method.
162
- # @param [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatHit] google_security_safebrowsing_v4_threat_hit_object
162
+ # @param [Google::Apis::SafebrowsingV4::ThreatHit] threat_hit_object
163
163
  # @param [String] fields
164
164
  # Selector specifying which fields to include in a partial response.
165
165
  # @param [String] quota_user
@@ -169,20 +169,20 @@ module Google
169
169
  # Request-specific options
170
170
  #
171
171
  # @yield [result, err] Result & error if block supplied
172
- # @yieldparam result [Google::Apis::SafebrowsingV4::GoogleProtobufEmpty] parsed result object
172
+ # @yieldparam result [Google::Apis::SafebrowsingV4::Empty] parsed result object
173
173
  # @yieldparam err [StandardError] error object if request failed
174
174
  #
175
- # @return [Google::Apis::SafebrowsingV4::GoogleProtobufEmpty]
175
+ # @return [Google::Apis::SafebrowsingV4::Empty]
176
176
  #
177
177
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
178
178
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
179
179
  # @raise [Google::Apis::AuthorizationError] Authorization is required
180
- def create_threat_hit(google_security_safebrowsing_v4_threat_hit_object = nil, fields: nil, quota_user: nil, options: nil, &block)
180
+ def create_threat_hit(threat_hit_object = nil, fields: nil, quota_user: nil, options: nil, &block)
181
181
  command = make_simple_command(:post, 'v4/threatHits', options)
182
- command.request_representation = Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatHit::Representation
183
- command.request_object = google_security_safebrowsing_v4_threat_hit_object
184
- command.response_representation = Google::Apis::SafebrowsingV4::GoogleProtobufEmpty::Representation
185
- command.response_class = Google::Apis::SafebrowsingV4::GoogleProtobufEmpty
182
+ command.request_representation = Google::Apis::SafebrowsingV4::ThreatHit::Representation
183
+ command.request_object = threat_hit_object
184
+ command.response_representation = Google::Apis::SafebrowsingV4::Empty::Representation
185
+ command.response_class = Google::Apis::SafebrowsingV4::Empty
186
186
  command.query['fields'] = fields unless fields.nil?
187
187
  command.query['quotaUser'] = quota_user unless quota_user.nil?
188
188
  execute_or_queue_command(command, &block)
@@ -190,7 +190,7 @@ module Google
190
190
 
191
191
  # Fetches the most recent threat list updates. A client can request updates for
192
192
  # multiple lists at once.
193
- # @param [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequest] google_security_safebrowsing_v4_fetch_threat_list_updates_request_object
193
+ # @param [Google::Apis::SafebrowsingV4::FetchThreatListUpdatesRequest] fetch_threat_list_updates_request_object
194
194
  # @param [String] fields
195
195
  # Selector specifying which fields to include in a partial response.
196
196
  # @param [String] quota_user
@@ -200,20 +200,20 @@ module Google
200
200
  # Request-specific options
201
201
  #
202
202
  # @yield [result, err] Result & error if block supplied
203
- # @yieldparam result [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse] parsed result object
203
+ # @yieldparam result [Google::Apis::SafebrowsingV4::FetchThreatListUpdatesResponse] parsed result object
204
204
  # @yieldparam err [StandardError] error object if request failed
205
205
  #
206
- # @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse]
206
+ # @return [Google::Apis::SafebrowsingV4::FetchThreatListUpdatesResponse]
207
207
  #
208
208
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
209
209
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
210
210
  # @raise [Google::Apis::AuthorizationError] Authorization is required
211
- def fetch_threat_list_updates(google_security_safebrowsing_v4_fetch_threat_list_updates_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
211
+ def fetch_threat_list_updates(fetch_threat_list_updates_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
212
212
  command = make_simple_command(:post, 'v4/threatListUpdates:fetch', options)
213
- command.request_representation = Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequest::Representation
214
- command.request_object = google_security_safebrowsing_v4_fetch_threat_list_updates_request_object
215
- command.response_representation = Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse::Representation
216
- command.response_class = Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponse
213
+ command.request_representation = Google::Apis::SafebrowsingV4::FetchThreatListUpdatesRequest::Representation
214
+ command.request_object = fetch_threat_list_updates_request_object
215
+ command.response_representation = Google::Apis::SafebrowsingV4::FetchThreatListUpdatesResponse::Representation
216
+ command.response_class = Google::Apis::SafebrowsingV4::FetchThreatListUpdatesResponse
217
217
  command.query['fields'] = fields unless fields.nil?
218
218
  command.query['quotaUser'] = quota_user unless quota_user.nil?
219
219
  execute_or_queue_command(command, &block)
@@ -229,25 +229,25 @@ module Google
229
229
  # Request-specific options
230
230
  #
231
231
  # @yield [result, err] Result & error if block supplied
232
- # @yieldparam result [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ListThreatListsResponse] parsed result object
232
+ # @yieldparam result [Google::Apis::SafebrowsingV4::ListThreatListsResponse] parsed result object
233
233
  # @yieldparam err [StandardError] error object if request failed
234
234
  #
235
- # @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ListThreatListsResponse]
235
+ # @return [Google::Apis::SafebrowsingV4::ListThreatListsResponse]
236
236
  #
237
237
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
238
238
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
239
239
  # @raise [Google::Apis::AuthorizationError] Authorization is required
240
240
  def list_threat_lists(fields: nil, quota_user: nil, options: nil, &block)
241
241
  command = make_simple_command(:get, 'v4/threatLists', options)
242
- command.response_representation = Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ListThreatListsResponse::Representation
243
- command.response_class = Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ListThreatListsResponse
242
+ command.response_representation = Google::Apis::SafebrowsingV4::ListThreatListsResponse::Representation
243
+ command.response_class = Google::Apis::SafebrowsingV4::ListThreatListsResponse
244
244
  command.query['fields'] = fields unless fields.nil?
245
245
  command.query['quotaUser'] = quota_user unless quota_user.nil?
246
246
  execute_or_queue_command(command, &block)
247
247
  end
248
248
 
249
249
  # Finds the threat entries that match the Safe Browsing lists.
250
- # @param [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FindThreatMatchesRequest] google_security_safebrowsing_v4_find_threat_matches_request_object
250
+ # @param [Google::Apis::SafebrowsingV4::FindThreatMatchesRequest] find_threat_matches_request_object
251
251
  # @param [String] fields
252
252
  # Selector specifying which fields to include in a partial response.
253
253
  # @param [String] quota_user
@@ -257,20 +257,20 @@ module Google
257
257
  # Request-specific options
258
258
  #
259
259
  # @yield [result, err] Result & error if block supplied
260
- # @yieldparam result [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FindThreatMatchesResponse] parsed result object
260
+ # @yieldparam result [Google::Apis::SafebrowsingV4::FindThreatMatchesResponse] parsed result object
261
261
  # @yieldparam err [StandardError] error object if request failed
262
262
  #
263
- # @return [Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FindThreatMatchesResponse]
263
+ # @return [Google::Apis::SafebrowsingV4::FindThreatMatchesResponse]
264
264
  #
265
265
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
266
266
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
267
267
  # @raise [Google::Apis::AuthorizationError] Authorization is required
268
- def find_threat_matches(google_security_safebrowsing_v4_find_threat_matches_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
268
+ def find_threat_matches(find_threat_matches_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
269
269
  command = make_simple_command(:post, 'v4/threatMatches:find', options)
270
- command.request_representation = Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FindThreatMatchesRequest::Representation
271
- command.request_object = google_security_safebrowsing_v4_find_threat_matches_request_object
272
- command.response_representation = Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FindThreatMatchesResponse::Representation
273
- command.response_class = Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FindThreatMatchesResponse
270
+ command.request_representation = Google::Apis::SafebrowsingV4::FindThreatMatchesRequest::Representation
271
+ command.request_object = find_threat_matches_request_object
272
+ command.response_representation = Google::Apis::SafebrowsingV4::FindThreatMatchesResponse::Representation
273
+ command.response_class = Google::Apis::SafebrowsingV4::FindThreatMatchesResponse
274
274
  command.query['fields'] = fields unless fields.nil?
275
275
  command.query['quotaUser'] = quota_user unless quota_user.nil?
276
276
  execute_or_queue_command(command, &block)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-safebrowsing_v4
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.16.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-10-31 00:00:00.000000000 Z
11
+ date: 2023-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-safebrowsing_v4/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-safebrowsing_v4/v0.15.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-safebrowsing_v4/v0.16.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-safebrowsing_v4
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.14
78
+ rubygems_version: 3.4.2
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Safe Browsing API V4