Class: Google::Apis::SafebrowsingV4::Constraints
- Inherits:
-
Object
- Object
- Google::Apis::SafebrowsingV4::Constraints
- 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
-
#max_database_entries ⇒ Fixnum
Sets the maximum number of entries that the client is willing to have in the local database.
-
#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) ⇒ Constraints
constructor
A new instance of Constraints.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Constraints
Returns a new instance of Constraints
102 103 104 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 102 def initialize(**args) update!(**args) end |
Instance Attribute Details
#max_database_entries ⇒ Fixnum
Sets the maximum number of entries that the client is willing to have
in the local database. 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
81 82 83 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 81 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
88 89 90 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 88 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
95 96 97 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 95 def region @region end |
#supported_compressions ⇒ Array<String>
The compression types supported by the client.
Corresponds to the JSON property supportedCompressions
100 101 102 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 100 def supported_compressions @supported_compressions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
107 108 109 110 111 112 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 107 def update!(**args) @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 |