Class: Google::Apis::Adexchangebuyer2V2beta1::Note

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

Overview

A proposal may be associated to several notes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Note

Returns a new instance of Note.



2911
2912
2913
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2911

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

Instance Attribute Details

#create_timeString

Output only. The timestamp for when this note was created. Corresponds to the JSON property createTime

Returns:

  • (String)


2887
2888
2889
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2887

def create_time
  @create_time
end

#creator_roleString

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

Returns:

  • (String)


2892
2893
2894
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2892

def creator_role
  @creator_role
end

#noteString

The actual note to attach. (max-length: 1024 unicode code units) Note: This field may be set only when creating the resource. Modifying this field while updating the resource will result in an error. Corresponds to the JSON property note

Returns:

  • (String)


2899
2900
2901
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2899

def note
  @note
end

#note_idString

Output only. The unique ID for the note. Corresponds to the JSON property noteId

Returns:

  • (String)


2904
2905
2906
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2904

def note_id
  @note_id
end

#proposal_revisionFixnum

Output only. The revision number of the proposal when the note is created. Corresponds to the JSON property proposalRevision

Returns:

  • (Fixnum)


2909
2910
2911
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2909

def proposal_revision
  @proposal_revision
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2916
2917
2918
2919
2920
2921
2922
# File 'generated/google/apis/adexchangebuyer2_v2beta1/classes.rb', line 2916

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @creator_role = args[:creator_role] if args.key?(:creator_role)
  @note = args[:note] if args.key?(:note)
  @note_id = args[:note_id] if args.key?(:note_id)
  @proposal_revision = args[:proposal_revision] if args.key?(:proposal_revision)
end