Class: Google::Apis::PartnersV2::UserOverrides

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

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

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) ⇒ UserOverrides

Returns a new instance of UserOverrides



2121
2122
2123
# File 'generated/google/apis/partners_v2/classes.rb', line 2121

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

Instance Attribute Details

#ip_addressString

IP address to use instead of the user's geo-located IP address. Corresponds to the JSON property ipAddress

Returns:

  • (String)


2114
2115
2116
# File 'generated/google/apis/partners_v2/classes.rb', line 2114

def ip_address
  @ip_address
end

#user_idString

Logged-in user ID to impersonate instead of the user's ID. Corresponds to the JSON property userId

Returns:

  • (String)


2119
2120
2121
# File 'generated/google/apis/partners_v2/classes.rb', line 2119

def user_id
  @user_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2126
2127
2128
2129
# File 'generated/google/apis/partners_v2/classes.rb', line 2126

def update!(**args)
  @ip_address = args[:ip_address] if args.key?(:ip_address)
  @user_id = args[:user_id] if args.key?(:user_id)
end