Class: Google::Apis::SafebrowsingV4::ClientInfo

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

The client metadata associated with Safe Browsing API requests.

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

Returns a new instance of ClientInfo.



61
62
63
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 61

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

Instance Attribute Details

#client_idString

A client ID that (hopefully) uniquely identifies the client implementation of the Safe Browsing API. Corresponds to the JSON property clientId

Returns:

  • (String)


54
55
56
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 54

def client_id
  @client_id
end

#client_versionString

The version of the client implementation. Corresponds to the JSON property clientVersion

Returns:

  • (String)


59
60
61
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 59

def client_version
  @client_version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



66
67
68
69
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 66

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