class Google::Apis::KeepV1::Note
A single note.
Attributes
Output only. The attachments attached to this note. Corresponds to the JSON property `attachments` @return [Array<Google::Apis::KeepV1::Attachment>]
The content of the note. Corresponds to the JSON property `body` @return [Google::Apis::KeepV1::Section]
Output only. When this note was created. Corresponds to the JSON property `createTime` @return [String]
Output only. The resource name of this note. See general note on identifiers in KeepService
. Corresponds to the JSON property `name` @return [String]
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>]
The title of the note. Length must be less than 1,000 characters. Corresponds to the JSON property `title` @return [String]
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]
Output only. `true` if this note has been trashed. If trashed, the note is eventually deleted. Corresponds to the JSON property `trashed` @return [Boolean]
Output only. `true` if this note has been trashed. If trashed, the note is eventually deleted. Corresponds to the JSON property `trashed` @return [Boolean]
Output only. When this note was last modified. Corresponds to the JSON property `updateTime` @return [String]
Public Class Methods
# File lib/google/apis/keep_v1/classes.rb, line 320 def initialize(**args) update!(**args) end
Public Instance Methods
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