Class: Google::Apis::ServicecontrolV1::RequestMetadata
- Inherits:
-
Object
- Object
- Google::Apis::ServicecontrolV1::RequestMetadata
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/servicecontrol_v1/classes.rb,
generated/google/apis/servicecontrol_v1/representations.rb,
generated/google/apis/servicecontrol_v1/representations.rb
Overview
Metadata about the request.
Instance Attribute Summary collapse
-
#caller_ip ⇒ String
The IP address of the caller.
-
#caller_supplied_user_agent ⇒ String
The user agent of the caller.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RequestMetadata
constructor
A new instance of RequestMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ RequestMetadata
Returns a new instance of RequestMetadata
160 161 162 |
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 160 def initialize(**args) update!(**args) end |
Instance Attribute Details
#caller_ip ⇒ String
The IP address of the caller.
Corresponds to the JSON property callerIp
158 159 160 |
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 158 def caller_ip @caller_ip end |
#caller_supplied_user_agent ⇒ String
The user agent of the caller. This information is not authenticated and should be treated accordingly. For example:
-
google-api-python-client/1.4.0
: The request was made by the Google API client for Python. -
Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62
: The request was made by the Google Cloud SDK CLI (gcloud). -
AppEngine-Google; (+http://code.google.com/appengine; appid: s~my-project
: The request was made from themy-project
App Engine app. NOLINT Corresponds to the JSON propertycallerSuppliedUserAgent
153 154 155 |
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 153 def caller_supplied_user_agent @caller_supplied_user_agent end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
165 166 167 168 |
# File 'generated/google/apis/servicecontrol_v1/classes.rb', line 165 def update!(**args) @caller_supplied_user_agent = args[:caller_supplied_user_agent] if args.key?(:caller_supplied_user_agent) @caller_ip = args[:caller_ip] if args.key?(:caller_ip) end |