class Google::Apis::ServicecontrolV1::RequestMetadata

Metadata about the request.

Attributes

caller_ip[RW]

The IP address of the caller. For caller from internet, this will be public IPv4 or IPv6 address. For caller from a Compute Engine VM with external IP address, this will be the VM's external IP address. For caller from a Compute Engine VM without external IP address, if the VM is in the same organization ( or project) as the accessed resource, `caller_ip` will be the VM's internal IPv4 address, otherwise the `caller_ip` will be redacted to “gce-internal-ip”. See cloud.google.com/compute/docs/vpc/ for more information. Corresponds to the JSON property `callerIp` @return [String]

caller_network[RW]

The network of the caller. Set only if the network host project is part of the same GCP organization (or project) as the accessed resource. See cloud. google.com/compute/docs/vpc/ for more information. This is a scheme-less URI full resource name. For example: “//compute.googleapis.com/projects/PROJECT_ID/ global/networks/NETWORK_ID” Corresponds to the JSON property `callerNetwork` @return [String]

caller_supplied_user_agent[RW]

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; (+code.google.com/ appengine; appid: s~my-project`: The request was made from the `my-project` App Engine app. NOLINT Corresponds to the JSON property `callerSuppliedUserAgent` @return [String]

destination_attributes[RW]

This message defines attributes for a node that handles a network request. The node can be either a service or an application that sends, forwards, or receives the request. Service peers should fill in `principal` and `labels` as appropriate. Corresponds to the JSON property `destinationAttributes` @return [Google::Apis::ServicecontrolV1::Peer]

request_attributes[RW]

This message defines attributes for an HTTP request. If the actual request is not an HTTP request, the runtime system should try to map the actual request to an equivalent HTTP request. Corresponds to the JSON property `requestAttributes` @return [Google::Apis::ServicecontrolV1::Request]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/servicecontrol_v1/classes.rb, line 1991
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/servicecontrol_v1/classes.rb, line 1996
def update!(**args)
  @caller_ip = args[:caller_ip] if args.key?(:caller_ip)
  @caller_network = args[:caller_network] if args.key?(:caller_network)
  @caller_supplied_user_agent = args[:caller_supplied_user_agent] if args.key?(:caller_supplied_user_agent)
  @destination_attributes = args[:destination_attributes] if args.key?(:destination_attributes)
  @request_attributes = args[:request_attributes] if args.key?(:request_attributes)
end