class Google::Apis::AdexchangebuyerV1_4::MarketplaceNote

A proposal is associated with a bunch of notes which may optionally be associated with a deal and/or revision number.

Attributes

creator_role[RW]

The role of the person (buyer/seller) creating the note. (readonly) Corresponds to the JSON property `creatorRole` @return [String]

deal_id[RW]

Notes can optionally be associated with a deal. (readonly, except on create) Corresponds to the JSON property `dealId` @return [String]

kind[RW]

Identifies what kind of resource this is. Value: the fixed string “ adexchangebuyer#marketplaceNote”. Corresponds to the JSON property `kind` @return [String]

note[RW]

The actual note to attach. (readonly, except on create) Corresponds to the JSON property `note` @return [String]

note_id[RW]

The unique id for the note. (readonly) Corresponds to the JSON property `noteId` @return [String]

proposal_id[RW]

The proposalId that a note is attached to. (readonly) Corresponds to the JSON property `proposalId` @return [String]

proposal_revision_number[RW]

If the note is associated with a proposal revision number, then store that here. (readonly, except on create) Corresponds to the JSON property `proposalRevisionNumber` @return [Fixnum]

timestamp_ms[RW]

The timestamp (ms since epoch) that this note was created. (readonly) Corresponds to the JSON property `timestampMs` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/adexchangebuyer_v1_4/classes.rb, line 2230
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/adexchangebuyer_v1_4/classes.rb, line 2235
def update!(**args)
  @creator_role = args[:creator_role] if args.key?(:creator_role)
  @deal_id = args[:deal_id] if args.key?(:deal_id)
  @kind = args[:kind] if args.key?(:kind)
  @note = args[:note] if args.key?(:note)
  @note_id = args[:note_id] if args.key?(:note_id)
  @proposal_id = args[:proposal_id] if args.key?(:proposal_id)
  @proposal_revision_number = args[:proposal_revision_number] if args.key?(:proposal_revision_number)
  @timestamp_ms = args[:timestamp_ms] if args.key?(:timestamp_ms)
end