Class: Google::Apis::SafebrowsingV4::ListUpdateRequest

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

A single list update request.

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) ⇒ ListUpdateRequest

Returns a new instance of ListUpdateRequest.



369
370
371
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 369

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

Instance Attribute Details

#constraintsGoogle::Apis::SafebrowsingV4::Constraints

The constraints for this update. Corresponds to the JSON property constraints



345
346
347
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 345

def constraints
  @constraints
end

#platform_typeString

The type of platform at risk by entries present in the list. Corresponds to the JSON property platformType

Returns:

  • (String)


350
351
352
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 350

def platform_type
  @platform_type
end

#stateString

The current state of the client for the requested list (the encrypted client state that was received from the last successful list update). Corresponds to the JSON property state NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


357
358
359
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 357

def state
  @state
end

#threat_entry_typeString

The types of entries present in the list. Corresponds to the JSON property threatEntryType

Returns:

  • (String)


362
363
364
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 362

def threat_entry_type
  @threat_entry_type
end

#threat_typeString

The type of threat posed by entries present in the list. Corresponds to the JSON property threatType

Returns:

  • (String)


367
368
369
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 367

def threat_type
  @threat_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



374
375
376
377
378
379
380
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 374

def update!(**args)
  @constraints = args[:constraints] if args.key?(:constraints)
  @platform_type = args[:platform_type] if args.key?(:platform_type)
  @state = args[:state] if args.key?(:state)
  @threat_entry_type = args[:threat_entry_type] if args.key?(:threat_entry_type)
  @threat_type = args[:threat_type] if args.key?(:threat_type)
end