Class: Google::Apis::WebriskV1::GoogleCloudWebriskV1ComputeThreatListDiffResponse

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#additionsGoogle::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

#checksumGoogle::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_tokenString

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.

Returns:

  • (String)


46
47
48
# File 'lib/google/apis/webrisk_v1/classes.rb', line 46

def new_version_token
  @new_version_token
end

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

Returns:

  • (String)


54
55
56
# File 'lib/google/apis/webrisk_v1/classes.rb', line 54

def recommended_next_diff
  @recommended_next_diff
end

#removalsGoogle::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_typeString

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

Returns:

  • (String)


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