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



165
166
167
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 165

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



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

def client
  @client
end

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

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



163
164
165
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 163

def list_update_requests
  @list_update_requests
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



170
171
172
173
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 170

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