Class: Google::Apis::SafebrowsingV4::FetchThreatListUpdatesRequest

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

Describes a Safe Browsing API update request. Clients can request updates for multiple lists in a single request. NOTE: Field index 2 is unused. NEXT: 5

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ FetchThreatListUpdatesRequest

Returns a new instance of FetchThreatListUpdatesRequest



151
152
153
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 151

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

Instance Attribute Details

#clientGoogle::Apis::SafebrowsingV4::ClientInfo

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



144
145
146
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 144

def client
  @client
end

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

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



149
150
151
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 149

def list_update_requests
  @list_update_requests
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



156
157
158
159
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 156

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