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.



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

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



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

def client
  @client
end

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

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



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

def list_update_requests
  @list_update_requests
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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