Class: Google::Apis::WebriskV1::GoogleCloudWebriskV1SearchUrisResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudWebriskV1SearchUrisResponse

Returns a new instance of GoogleCloudWebriskV1SearchUrisResponse.



269
270
271
# File 'lib/google/apis/webrisk_v1/classes.rb', line 269

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

Instance Attribute Details

#threatGoogle::Apis::WebriskV1::GoogleCloudWebriskV1SearchUrisResponseThreatUri

Contains threat information on a matching uri. Corresponds to the JSON property threat



267
268
269
# File 'lib/google/apis/webrisk_v1/classes.rb', line 267

def threat
  @threat
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



274
275
276
# File 'lib/google/apis/webrisk_v1/classes.rb', line 274

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