RequestMetadata
class RequestMetadata extends Message
Metadata about the request.
Generated from protobuf message google.cloud.audit.RequestMetadata
Methods
Constructor.
The IP address of the caller.
The IP address of the caller.
The user agent of the caller.
The user agent of the caller.
Details
at line 59
__construct(array $data = NULL)
Constructor.
at line 70
string
getCallerIp()
The IP address of the caller.
Generated from protobuf field string caller_ip = 1;
at line 82
$this
setCallerIp(string $var)
The IP address of the caller.
Generated from protobuf field string caller_ip = 1;
at line 104
string
getCallerSuppliedUserAgent()
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 the my-project
App Engine app.
Generated from protobuf field string caller_supplied_user_agent = 2;
at line 124
$this
setCallerSuppliedUserAgent(string $var)
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 the my-project
App Engine app.
Generated from protobuf field string caller_supplied_user_agent = 2;