Class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/safebrowsing_v4/classes.rb,
lib/google/apis/safebrowsing_v4/representations.rb,
lib/google/apis/safebrowsing_v4/representations.rb

Overview

Describes a Safe Browsing API update request. Clients can request updates for multiple lists in a single request. The server may not respond to all requests, if the server has no updates for that list. NOTE: Field index 2 is unused. NEXT: 5

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequest

Returns a new instance of GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequest.



106
107
108
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 106

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#clientGoogle::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ClientInfo

The client metadata associated with Safe Browsing API requests. Corresponds to the JSON property client



99
100
101
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 99

def client
  @client
end

#list_update_requestsArray<Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4FetchThreatListUpdatesRequestListUpdateRequest>

The requested threat list updates. Corresponds to the JSON property listUpdateRequests



104
105
106
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 104

def list_update_requests
  @list_update_requests
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



111
112
113
114
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 111

def update!(**args)
  @client = args[:client] if args.key?(:client)
  @list_update_requests = args[:list_update_requests] if args.key?(:list_update_requests)
end