class Google::Apis::PartnersV2::RequestMetadata

Common data that is in each API request.

Attributes

experiment_ids[RW]

Experiment IDs the current request belongs to. Corresponds to the JSON property `experimentIds` @return [Array<String>]

locale[RW]

Locale to use for the current request. Corresponds to the JSON property `locale` @return [String]

partners_session_id[RW]

Google Partners session ID. Corresponds to the JSON property `partnersSessionId` @return [String]

traffic_source[RW]

Source of traffic for the current request. Corresponds to the JSON property `trafficSource` @return [Google::Apis::PartnersV2::TrafficSource]

user_overrides[RW]

Values to use instead of the user's respective defaults. These are only honored by whitelisted products. Corresponds to the JSON property `userOverrides` @return [Google::Apis::PartnersV2::UserOverrides]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/partners_v2/classes.rb, line 116
def update!(**args)
  @user_overrides = args[:user_overrides] if args.key?(:user_overrides)
  @locale = args[:locale] if args.key?(:locale)
  @partners_session_id = args[:partners_session_id] if args.key?(:partners_session_id)
  @experiment_ids = args[:experiment_ids] if args.key?(:experiment_ids)
  @traffic_source = args[:traffic_source] if args.key?(:traffic_source)
end