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

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

Constructor Details

#initialize(**args) ⇒ GoogleSecuritySafebrowsingV4ClientInfo

Returns a new instance of GoogleSecuritySafebrowsingV4ClientInfo.



78
79
80
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 78

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)


71
72
73
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 71

def client_id
  @client_id
end

#client_versionString

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

Returns:

  • (String)


76
77
78
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 76

def client_version
  @client_version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



83
84
85
86
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 83

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