Class: Google::Apis::AdexchangebuyerV1_4::MarketplaceNote

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

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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ MarketplaceNote

Returns a new instance of MarketplaceNote.



2117
2118
2119
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2117

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

Instance Attribute Details

#creator_roleString

The role of the person (buyer/seller) creating the note. (readonly) Corresponds to the JSON property creatorRole

Returns:

  • (String)


2078
2079
2080
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2078

def creator_role
  @creator_role
end

#deal_idString

Notes can optionally be associated with a deal. (readonly, except on create) Corresponds to the JSON property dealId

Returns:

  • (String)


2083
2084
2085
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2083

def deal_id
  @deal_id
end

#kindString

Identifies what kind of resource this is. Value: the fixed string " adexchangebuyer#marketplaceNote". Corresponds to the JSON property kind

Returns:

  • (String)


2089
2090
2091
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2089

def kind
  @kind
end

#noteString

The actual note to attach. (readonly, except on create) Corresponds to the JSON property note

Returns:

  • (String)


2094
2095
2096
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2094

def note
  @note
end

#note_idString

The unique id for the note. (readonly) Corresponds to the JSON property noteId

Returns:

  • (String)


2099
2100
2101
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2099

def note_id
  @note_id
end

#proposal_idString

The proposalId that a note is attached to. (readonly) Corresponds to the JSON property proposalId

Returns:

  • (String)


2104
2105
2106
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2104

def proposal_id
  @proposal_id
end

#proposal_revision_numberString

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

Returns:

  • (String)


2110
2111
2112
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2110

def proposal_revision_number
  @proposal_revision_number
end

#timestamp_msString

The timestamp (ms since epoch) that this note was created. (readonly) Corresponds to the JSON property timestampMs

Returns:

  • (String)


2115
2116
2117
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2115

def timestamp_ms
  @timestamp_ms
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
# File 'generated/google/apis/adexchangebuyer_v1_4/classes.rb', line 2122

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