Class: Google::Apis::SafebrowsingV4::ClientInfo
- Inherits:
-
Object
- Object
- Google::Apis::SafebrowsingV4::ClientInfo
- 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
-
#client_id ⇒ String
A client ID that (hopefully) uniquely identifies the client implementation of the Safe Browsing API.
-
#client_version ⇒ String
The version of the client implementation.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ClientInfo
constructor
A new instance of ClientInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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_id ⇒ String
A client ID that (hopefully) uniquely identifies the client implementation
of the Safe Browsing API.
Corresponds to the JSON property clientId
54 55 56 |
# File 'generated/google/apis/safebrowsing_v4/classes.rb', line 54 def client_id @client_id end |
#client_version ⇒ String
The version of the client implementation.
Corresponds to the JSON property clientVersion
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 |