Class: Google::Apis::AuthorizedbuyersmarketplaceV1::UpdateDealRequest

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

Overview

Request message for updating the deal at the given revision number.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UpdateDealRequest

Returns a new instance of UpdateDealRequest.



2294
2295
2296
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 2294

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

Instance Attribute Details

#dealGoogle::Apis::AuthorizedbuyersmarketplaceV1::Deal

A deal represents a segment of inventory for displaying ads that contains the terms and targeting information that is used for serving as well as the deal stats and status. Note: A proposal may contain multiple deals. Corresponds to the JSON property deal



2279
2280
2281
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 2279

def deal
  @deal
end

#update_maskString

List of fields to be updated. If empty or unspecified, the service will update all fields populated in the update request excluding the output only fields and primitive fields with default value. Note that explicit field mask is required in order to reset a primitive field back to its default value, for example, false for boolean fields, 0 for integer fields. A special field mask consisting of a single path "*" can be used to indicate full replacement(the equivalent of PUT method), updatable fields unset or unspecified in the input will be cleared or set to default value. Output only fields will be ignored regardless of the value of updateMask. Corresponds to the JSON property updateMask

Returns:

  • (String)


2292
2293
2294
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 2292

def update_mask
  @update_mask
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2299
2300
2301
2302
# File 'lib/google/apis/authorizedbuyersmarketplace_v1/classes.rb', line 2299

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