Class: Google::Apis::AdexchangebuyerV1_4::MarketplaceNote
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::AdexchangebuyerV1_4::MarketplaceNote
 
- 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
Overview
A proposal is associated with a bunch of notes which may optionally be associated with a deal and/or revision number.
Instance Attribute Summary collapse
- 
  
    
      #creator_role  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The role of the person (buyer/seller) creating the note. 
- 
  
    
      #deal_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Notes can optionally be associated with a deal. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Identifies what kind of resource this is. 
- 
  
    
      #note  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The actual note to attach. 
- 
  
    
      #note_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The unique id for the note. 
- 
  
    
      #proposal_id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The proposalId that a note is attached to. 
- 
  
    
      #proposal_revision_number  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    If the note is associated with a proposal revision number, then store that here. 
- 
  
    
      #timestamp_ms  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The timestamp (ms since epoch) that this note was created. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ MarketplaceNote 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of MarketplaceNote. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ MarketplaceNote
Returns a new instance of MarketplaceNote
| 2172 2173 2174 | # File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2172 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#creator_role ⇒ String
The role of the person (buyer/seller) creating the note. (readonly)
Corresponds to the JSON property creatorRole
| 2133 2134 2135 | # File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2133 def creator_role @creator_role end | 
#deal_id ⇒ String
Notes can optionally be associated with a deal. (readonly, except on create)
Corresponds to the JSON property dealId
| 2138 2139 2140 | # File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2138 def deal_id @deal_id end | 
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "
adexchangebuyer#marketplaceNote".
Corresponds to the JSON property kind
| 2144 2145 2146 | # File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2144 def kind @kind end | 
#note ⇒ String
The actual note to attach. (readonly, except on create)
Corresponds to the JSON property note
| 2149 2150 2151 | # File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2149 def note @note end | 
#note_id ⇒ String
The unique id for the note. (readonly)
Corresponds to the JSON property noteId
| 2154 2155 2156 | # File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2154 def note_id @note_id end | 
#proposal_id ⇒ String
The proposalId that a note is attached to. (readonly)
Corresponds to the JSON property proposalId
| 2159 2160 2161 | # File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2159 def proposal_id @proposal_id end | 
#proposal_revision_number ⇒ Fixnum
If the note is associated with a proposal revision number, then store that
here. (readonly, except on create)
Corresponds to the JSON property proposalRevisionNumber
| 2165 2166 2167 | # File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2165 def proposal_revision_number @proposal_revision_number end | 
#timestamp_ms ⇒ Fixnum
The timestamp (ms since epoch) that this note was created. (readonly)
Corresponds to the JSON property timestampMs
| 2170 2171 2172 | # File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2170 def @timestamp_ms end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 | # File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2177 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 |