Class: Google::Apis::PartnersV2::RequestMetadata
- Inherits:
-
Object
- Object
- Google::Apis::PartnersV2::RequestMetadata
- 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
-
#experiment_ids ⇒ Array<String>
Experiment IDs the current request belongs to.
-
#locale ⇒ String
Locale to use for the current request.
-
#partners_session_id ⇒ String
Google Partners session ID.
-
#traffic_source ⇒ Google::Apis::PartnersV2::TrafficSource
Source of traffic for the current request.
-
#user_overrides ⇒ Google::Apis::PartnersV2::UserOverrides
Values to use instead of the user's respective defaults.
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
960 961 962 |
# File 'generated/google/apis/partners_v2/classes.rb', line 960 def initialize(**args) update!(**args) end |
Instance Attribute Details
#experiment_ids ⇒ Array<String>
Experiment IDs the current request belongs to.
Corresponds to the JSON property experimentIds
958 959 960 |
# File 'generated/google/apis/partners_v2/classes.rb', line 958 def experiment_ids @experiment_ids end |
#locale ⇒ String
Locale to use for the current request.
Corresponds to the JSON property locale
937 938 939 |
# File 'generated/google/apis/partners_v2/classes.rb', line 937 def locale @locale end |
#partners_session_id ⇒ String
Google Partners session ID.
Corresponds to the JSON property partnersSessionId
942 943 944 |
# File 'generated/google/apis/partners_v2/classes.rb', line 942 def partners_session_id @partners_session_id end |
#traffic_source ⇒ Google::Apis::PartnersV2::TrafficSource
Source of traffic for the current request.
Corresponds to the JSON property trafficSource
953 954 955 |
# File 'generated/google/apis/partners_v2/classes.rb', line 953 def traffic_source @traffic_source end |
#user_overrides ⇒ Google::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
948 949 950 |
# File 'generated/google/apis/partners_v2/classes.rb', line 948 def user_overrides @user_overrides end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
965 966 967 968 969 970 971 |
# File 'generated/google/apis/partners_v2/classes.rb', line 965 def update!(**args) @locale = args[:locale] if args.key?(:locale) @partners_session_id = args[:partners_session_id] if args.key?(:partners_session_id) @user_overrides = args[:user_overrides] if args.key?(:user_overrides) @traffic_source = args[:traffic_source] if args.key?(:traffic_source) @experiment_ids = args[:experiment_ids] if args.key?(:experiment_ids) end |