Class: Google::Apis::PartnersV2::RequestMetadata

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/partners_v2/classes.rb,
generated/google/apis/partners_v2/representations.rb,
generated/google/apis/partners_v2/representations.rb

Overview

Common data that is in each API request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ RequestMetadata

Returns a new instance of RequestMetadata.


111
112
113
# File 'generated/google/apis/partners_v2/classes.rb', line 111

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#experiment_idsArray<String>

Experiment IDs the current request belongs to. Corresponds to the JSON property experimentIds

Returns:

  • (Array<String>)

104
105
106
# File 'generated/google/apis/partners_v2/classes.rb', line 104

def experiment_ids
  @experiment_ids
end

#localeString

Locale to use for the current request. Corresponds to the JSON property locale

Returns:

  • (String)

94
95
96
# File 'generated/google/apis/partners_v2/classes.rb', line 94

def locale
  @locale
end

#partners_session_idString

Google Partners session ID. Corresponds to the JSON property partnersSessionId

Returns:

  • (String)

99
100
101
# File 'generated/google/apis/partners_v2/classes.rb', line 99

def partners_session_id
  @partners_session_id
end

#traffic_sourceGoogle::Apis::PartnersV2::TrafficSource

Source of traffic for the current request. Corresponds to the JSON property trafficSource


109
110
111
# File 'generated/google/apis/partners_v2/classes.rb', line 109

def traffic_source
  @traffic_source
end

#user_overridesGoogle::Apis::PartnersV2::UserOverrides

Values to use instead of the user's respective defaults. These are only honored by whitelisted products. Corresponds to the JSON property userOverrides


89
90
91
# File 'generated/google/apis/partners_v2/classes.rb', line 89

def user_overrides
  @user_overrides
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


116
117
118
119
120
121
122
# 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