Class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponseListUpdateResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/safebrowsing_v4/classes.rb,
lib/google/apis/safebrowsing_v4/representations.rb,
lib/google/apis/safebrowsing_v4/representations.rb

Overview

An update to an individual list.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponseListUpdateResponse

Returns a new instance of GoogleSecuritySafebrowsingV4FetchThreatListUpdatesResponseListUpdateResponse.



292
293
294
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 292

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#additionsArray<Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntrySet>

A set of entries to add to a local threat type's list. Repeated to allow for a combination of compressed and raw data to be sent in a single response. Corresponds to the JSON property additions



252
253
254
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 252

def additions
  @additions
end

#checksumGoogle::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4Checksum

The expected state of a client's local database. Corresponds to the JSON property checksum



257
258
259
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 257

def checksum
  @checksum
end

#new_client_stateString

The new client state, in encrypted format. Opaque to clients. Corresponds to the JSON property newClientState NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


263
264
265
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 263

def new_client_state
  @new_client_state
end

#platform_typeString

The platform type for which data is returned. Corresponds to the JSON property platformType

Returns:

  • (String)


268
269
270
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 268

def platform_type
  @platform_type
end

#removalsArray<Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ThreatEntrySet>

A set of entries to remove from a local threat type's list. In practice, this field is empty or contains exactly one ThreatEntrySet. Corresponds to the JSON property removals



274
275
276
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 274

def removals
  @removals
end

#response_typeString

The type of response. This may indicate that an action is required by the client when the response is received. Corresponds to the JSON property responseType

Returns:

  • (String)


280
281
282
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 280

def response_type
  @response_type
end

#threat_entry_typeString

The format of the threats. Corresponds to the JSON property threatEntryType

Returns:

  • (String)


285
286
287
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 285

def threat_entry_type
  @threat_entry_type
end

#threat_typeString

The threat type for which data is returned. Corresponds to the JSON property threatType

Returns:

  • (String)


290
291
292
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 290

def threat_type
  @threat_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



297
298
299
300
301
302
303
304
305
306
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 297

def update!(**args)
  @additions = args[:additions] if args.key?(:additions)
  @checksum = args[:checksum] if args.key?(:checksum)
  @new_client_state = args[:new_client_state] if args.key?(:new_client_state)
  @platform_type = args[:platform_type] if args.key?(:platform_type)
  @removals = args[:removals] if args.key?(:removals)
  @response_type = args[:response_type] if args.key?(:response_type)
  @threat_entry_type = args[:threat_entry_type] if args.key?(:threat_entry_type)
  @threat_type = args[:threat_type] if args.key?(:threat_type)
end