Class: Google::Apis::PartnersV2::UserOverrides
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::PartnersV2::UserOverrides
 
- 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
- 
  
    
      #ip_address  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    IP address to use instead of the user's geo-located IP address. 
- 
  
    
      #user_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Logged-in user ID to impersonate instead of the user's ID. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ UserOverrides 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of UserOverrides. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ UserOverrides
Returns a new instance of UserOverrides
| 2130 2131 2132 | # File 'generated/google/apis/partners_v2/classes.rb', line 2130 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#ip_address ⇒ String
IP address to use instead of the user's geo-located IP address.
Corresponds to the JSON property ipAddress
| 2123 2124 2125 | # File 'generated/google/apis/partners_v2/classes.rb', line 2123 def ip_address @ip_address end | 
#user_id ⇒ String
Logged-in user ID to impersonate instead of the user's ID.
Corresponds to the JSON property userId
| 2128 2129 2130 | # File 'generated/google/apis/partners_v2/classes.rb', line 2128 def user_id @user_id end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 2135 2136 2137 2138 | # File 'generated/google/apis/partners_v2/classes.rb', line 2135 def update!(**args) @ip_address = args[:ip_address] if args.key?(:ip_address) @user_id = args[:user_id] if args.key?(:user_id) end |