class Google::Apis::KeepV1::Note

A single note.

Attributes

attachments[RW]

Output only. The attachments attached to this note. Corresponds to the JSON property `attachments` @return [Array<Google::Apis::KeepV1::Attachment>]

body[RW]

The content of the note. Corresponds to the JSON property `body` @return [Google::Apis::KeepV1::Section]

create_time[RW]

Output only. When this note was created. Corresponds to the JSON property `createTime` @return [String]

name[RW]

Output only. The resource name of this note. See general note on identifiers in KeepService. Corresponds to the JSON property `name` @return [String]

permissions[RW]

Output only. The list of permissions set on the note. Contains at least one entry for the note owner. Corresponds to the JSON property `permissions` @return [Array<Google::Apis::KeepV1::Permission>]

title[RW]

The title of the note. Length must be less than 1,000 characters. Corresponds to the JSON property `title` @return [String]

trash_time[RW]

Output only. When this note was trashed. If `trashed`, the note is eventually deleted. If the note is not trashed, this field is not set (and the trashed field is `false`). Corresponds to the JSON property `trashTime` @return [String]

trashed[RW]

Output only. `true` if this note has been trashed. If trashed, the note is eventually deleted. Corresponds to the JSON property `trashed` @return [Boolean]

trashed?[RW]

Output only. `true` if this note has been trashed. If trashed, the note is eventually deleted. Corresponds to the JSON property `trashed` @return [Boolean]

update_time[RW]

Output only. When this note was last modified. Corresponds to the JSON property `updateTime` @return [String]

Public Class Methods

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

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/keep_v1/classes.rb, line 325
def update!(**args)
  @attachments = args[:attachments] if args.key?(:attachments)
  @body = args[:body] if args.key?(:body)
  @create_time = args[:create_time] if args.key?(:create_time)
  @name = args[:name] if args.key?(:name)
  @permissions = args[:permissions] if args.key?(:permissions)
  @title = args[:title] if args.key?(:title)
  @trash_time = args[:trash_time] if args.key?(:trash_time)
  @trashed = args[:trashed] if args.key?(:trashed)
  @update_time = args[:update_time] if args.key?(:update_time)
end