Class: Google::Apis::AdexchangebuyerV1_4::AddOrderDealsRequest

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

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


186
187
188
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 186

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

Instance Attribute Details

#dealsArray<Google::Apis::AdexchangebuyerV1_4::MarketplaceDeal>

The list of deals to add Corresponds to the JSON property deals


174
175
176
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 174

def deals
  @deals
end

#proposal_revision_numberString

The last known proposal revision number. Corresponds to the JSON property proposalRevisionNumber


179
180
181
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 179

def proposal_revision_number
  @proposal_revision_number
end

#update_actionString

Indicates an optional action to take on the proposal Corresponds to the JSON property updateAction


184
185
186
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 184

def update_action
  @update_action
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


191
192
193
194
195
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 191

def update!(**args)
  @deals = args[:deals] if args.key?(:deals)
  @proposal_revision_number = args[:proposal_revision_number] if args.key?(:proposal_revision_number)
  @update_action = args[:update_action] if args.key?(:update_action)
end