Class: Google::Apis::AdexchangebuyerV1_4::EditAllOrderDealsRequest
- Inherits:
-
Object
- Object
- Google::Apis::AdexchangebuyerV1_4::EditAllOrderDealsRequest
- 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
-
#deals ⇒ Array<Google::Apis::AdexchangebuyerV1_4::MarketplaceDeal>
List of deals to edit.
-
#proposal ⇒ Google::Apis::AdexchangebuyerV1_4::Proposal
Represents a proposal in the marketplace.
-
#proposal_revision_number ⇒ Fixnum
The last known revision number for the proposal.
-
#update_action ⇒ String
Indicates an optional action to take on the proposal Corresponds to the JSON property
updateAction
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EditAllOrderDealsRequest
constructor
A new instance of EditAllOrderDealsRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ EditAllOrderDealsRequest
Returns a new instance of EditAllOrderDealsRequest
1784 1785 1786 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1784 def initialize(**args) update!(**args) end |
Instance Attribute Details
#deals ⇒ Array<Google::Apis::AdexchangebuyerV1_4::MarketplaceDeal>
List of deals to edit. Service may perform 3 different operations based on
comparison of deals in this list vs deals already persisted in database: 1.
Add new deal to proposal If a deal in this list does not exist in the proposal,
the service will create a new deal and add it to the proposal. Validation
will follow AddOrderDealsRequest. 2. Update existing deal in the proposal If a
deal in this list already exist in the proposal, the service will update that
existing deal to this new deal in the request. Validation will follow
UpdateOrderDealsRequest. 3. Delete deals from the proposal (just need the id)
If a existing deal in the proposal is not present in this list, the service
will delete that deal from the proposal. Validation will follow
DeleteOrderDealsRequest.
Corresponds to the JSON property deals
1761 1762 1763 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1761 def deals @deals end |
#proposal ⇒ Google::Apis::AdexchangebuyerV1_4::Proposal
Represents a proposal in the marketplace. A proposal is the unit of
negotiation between a seller and a buyer and contains deals which are served.
Each field in a proposal can have one of the following setting:
(readonly) - It is an error to try and set this field. (buyer-readonly) - Only
the seller can set this field. (seller-readonly) - Only the buyer can set this
field. (updatable) - The field is updatable at all times by either buyer or
the seller.
Corresponds to the JSON property proposal
1772 1773 1774 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1772 def proposal @proposal end |
#proposal_revision_number ⇒ Fixnum
The last known revision number for the proposal.
Corresponds to the JSON property proposalRevisionNumber
1777 1778 1779 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1777 def proposal_revision_number @proposal_revision_number end |
#update_action ⇒ String
Indicates an optional action to take on the proposal
Corresponds to the JSON property updateAction
1782 1783 1784 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1782 def update_action @update_action end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1789 1790 1791 1792 1793 1794 |
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 1789 def update!(**args) @deals = args[:deals] if args.key?(:deals) @proposal = args[:proposal] if args.key?(:proposal) @proposal_revision_number = args[:proposal_revision_number] if args.key?(:proposal_revision_number) @update_action = args[:update_action] if args.key?(:update_action) end |