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

Returns a new instance of AddOrderDealsRequest



199
200
201
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 199

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



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

def deals
  @deals
end

#proposal_revision_numberFixnum

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

Returns:

  • (Fixnum)


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

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

Returns:

  • (String)


197
198
199
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 197

def update_action
  @update_action
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



204
205
206
207
208
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 204

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