Class: Google::Apis::SafebrowsingV4::GoogleSecuritySafebrowsingV4ClientInfo

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

Overview

The client metadata associated with Safe Browsing API requests.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleSecuritySafebrowsingV4ClientInfo

Returns a new instance of GoogleSecuritySafebrowsingV4ClientInfo.



77
78
79
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 77

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)


70
71
72
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 70

def client_id
  @client_id
end

#client_versionString

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

Returns:

  • (String)


75
76
77
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 75

def client_version
  @client_version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



82
83
84
85
# File 'lib/google/apis/safebrowsing_v4/classes.rb', line 82

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