class Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequestConstraints

The constraints for this update.

Attributes

device_location[RW]

A client's physical location, expressed as a ISO 31166-1 alpha-2 region code. Corresponds to the JSON property `deviceLocation` @return [String]

language[RW]

Requests the lists for a specific language. Expects ISO 639 alpha-2 format. Corresponds to the JSON property `language` @return [String]

max_database_entries[RW]

Sets the maximum number of entries that the client is willing to have in the local database for the specified list. This should be a power of 2 between 2** 10 and 2**20. If zero, no database size limit is set. Corresponds to the JSON property `maxDatabaseEntries` @return [Fixnum]

max_update_entries[RW]

The maximum size in number of entries. The update will not contain more entries than this value. This should be a power of 2 between 2**10 and 2**20. If zero, no update size limit is set. Corresponds to the JSON property `maxUpdateEntries` @return [Fixnum]

region[RW]

Requests the list for a specific geographic location. If not set the server may pick that value based on the user's IP address. Expects ISO 3166-1 alpha-2 format. Corresponds to the JSON property `region` @return [String]

supported_compressions[RW]

The compression types supported by the client. Corresponds to the JSON property `supportedCompressions` @return [Array<String>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/safebrowsing_v4/classes.rb, line 202
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/safebrowsing_v4/classes.rb, line 207
def update!(**args)
  @device_location = args[:device_location] if args.key?(:device_location)
  @language = args[:language] if args.key?(:language)
  @max_database_entries = args[:max_database_entries] if args.key?(:max_database_entries)
  @max_update_entries = args[:max_update_entries] if args.key?(:max_update_entries)
  @region = args[:region] if args.key?(:region)
  @supported_compressions = args[:supported_compressions] if args.key?(:supported_compressions)
end