Class: Google::Apis::WebriskV1::GoogleCloudWebriskV1ComputeThreatListDiffResponse
- Inherits:
-
Object
- Object
- Google::Apis::WebriskV1::GoogleCloudWebriskV1ComputeThreatListDiffResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/webrisk_v1/classes.rb,
lib/google/apis/webrisk_v1/representations.rb,
lib/google/apis/webrisk_v1/representations.rb
Instance Attribute Summary collapse
-
#additions ⇒ Google::Apis::WebriskV1::GoogleCloudWebriskV1ThreatEntryAdditions
Contains the set of entries to add to a local database.
-
#checksum ⇒ Google::Apis::WebriskV1::GoogleCloudWebriskV1ComputeThreatListDiffResponseChecksum
The expected state of a client's local database.
-
#new_version_token ⇒ String
The new opaque client version token.
-
#recommended_next_diff ⇒ String
The soonest the client should wait before issuing any diff request.
-
#removals ⇒ Google::Apis::WebriskV1::GoogleCloudWebriskV1ThreatEntryRemovals
Contains the set of entries to remove from a local database.
-
#response_type ⇒ String
The type of response.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudWebriskV1ComputeThreatListDiffResponse
constructor
A new instance of GoogleCloudWebriskV1ComputeThreatListDiffResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudWebriskV1ComputeThreatListDiffResponse
Returns a new instance of GoogleCloudWebriskV1ComputeThreatListDiffResponse.
67 68 69 |
# File 'lib/google/apis/webrisk_v1/classes.rb', line 67 def initialize(**args) update!(**args) end |
Instance Attribute Details
#additions ⇒ Google::Apis::WebriskV1::GoogleCloudWebriskV1ThreatEntryAdditions
Contains the set of entries to add to a local database. May contain a
combination of compressed and raw data in a single response.
Corresponds to the JSON property additions
33 34 35 |
# File 'lib/google/apis/webrisk_v1/classes.rb', line 33 def additions @additions end |
#checksum ⇒ Google::Apis::WebriskV1::GoogleCloudWebriskV1ComputeThreatListDiffResponseChecksum
The expected state of a client's local database.
Corresponds to the JSON property checksum
38 39 40 |
# File 'lib/google/apis/webrisk_v1/classes.rb', line 38 def checksum @checksum end |
#new_version_token ⇒ String
The new opaque client version token. This should be retained by the client and
passed into the next call of ComputeThreatListDiff as 'version_token'. A
separate version token should be stored and used for each threatList.
Corresponds to the JSON property newVersionToken
NOTE: Values are automatically base64 encoded/decoded in the client library.
46 47 48 |
# File 'lib/google/apis/webrisk_v1/classes.rb', line 46 def new_version_token @new_version_token end |
#recommended_next_diff ⇒ String
The soonest the client should wait before issuing any diff request. Querying
sooner is unlikely to produce a meaningful diff. Waiting longer is acceptable
considering the use case. If this field is not set clients may update as soon
as they want.
Corresponds to the JSON property recommendedNextDiff
54 55 56 |
# File 'lib/google/apis/webrisk_v1/classes.rb', line 54 def recommended_next_diff @recommended_next_diff end |
#removals ⇒ Google::Apis::WebriskV1::GoogleCloudWebriskV1ThreatEntryRemovals
Contains the set of entries to remove from a local database.
Corresponds to the JSON property removals
59 60 61 |
# File 'lib/google/apis/webrisk_v1/classes.rb', line 59 def removals @removals end |
#response_type ⇒ String
The type of response. This may indicate that an action must be taken by the
client when the response is received.
Corresponds to the JSON property responseType
65 66 67 |
# File 'lib/google/apis/webrisk_v1/classes.rb', line 65 def response_type @response_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
72 73 74 75 76 77 78 79 |
# File 'lib/google/apis/webrisk_v1/classes.rb', line 72 def update!(**args) @additions = args[:additions] if args.key?(:additions) @checksum = args[:checksum] if args.key?(:checksum) @new_version_token = args[:new_version_token] if args.key?(:new_version_token) @recommended_next_diff = args[:recommended_next_diff] if args.key?(:recommended_next_diff) @removals = args[:removals] if args.key?(:removals) @response_type = args[:response_type] if args.key?(:response_type) end |