Class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequestConstraints
- Inherits:
-
Object
- Object
- Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequestConstraints
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/safebrowsing_v4/classes.rb,
generated/google/apis/safebrowsing_v4/representations.rb,
generated/google/apis/safebrowsing_v4/representations.rb
Overview
The constraints for this update.
Instance Attribute Summary collapse
-
#device_location ⇒ String
A client's physical location, expressed as a ISO 31166-1 alpha-2 region code.
-
#language ⇒ String
Requests the lists for a specific language.
-
#max_database_entries ⇒ Fixnum
Sets the maximum number of entries that the client is willing to have in the local database for the specified list.
-
#max_update_entries ⇒ Fixnum
The maximum size in number of entries.
-
#region ⇒ String
Requests the list for a specific geographic location.
-
#supported_compressions ⇒ Array<String>
The compression types supported by the client.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequestConstraints
constructor
A new instance of GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequestConstraints.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequestConstraints
Returns a new instance of GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequestConstraints.
200 201 202 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 200 def initialize(**args) update!(**args) end |
Instance Attribute Details
#device_location ⇒ String
A client's physical location, expressed as a ISO 31166-1 alpha-2 region code.
Corresponds to the JSON property deviceLocation
167 168 169 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 167 def device_location @device_location end |
#language ⇒ String
Requests the lists for a specific language. Expects ISO 639 alpha-2 format.
Corresponds to the JSON property language
172 173 174 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 172 def language @language end |
#max_database_entries ⇒ Fixnum
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
179 180 181 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 179 def max_database_entries @max_database_entries end |
#max_update_entries ⇒ Fixnum
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
186 187 188 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 186 def max_update_entries @max_update_entries end |
#region ⇒ String
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
193 194 195 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 193 def region @region end |
#supported_compressions ⇒ Array<String>
The compression types supported by the client.
Corresponds to the JSON property supportedCompressions
198 199 200 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 198 def supported_compressions @supported_compressions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
205 206 207 208 209 210 211 212 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 205 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 |