Class: Evernote::EDAM::Type::Notebook

Inherits:
Object
  • Object
show all
Includes:
Thrift::Struct, Thrift::Struct_Union
Defined in:
lib/Evernote/EDAM/types_types.rb

Overview

A unique container for a set of notes. <dl> <dt>guid</dt>

<dd>The unique identifier of this notebook.
<br/>
Length:  EDAM_GUID_LEN_MIN - EDAM_GUID_LEN_MAX
<br/>
Regex:  EDAM_GUID_REGEX
</dd>

<dt>name</dt>

<dd>A sequence of characters representing the name of the
notebook.  May be changed by clients, but the account may not contain two
notebooks with names that are equal via a case-insensitive comparison.
Can't begin or end with a space.
<br/>
Length:  EDAM_NOTEBOOK_NAME_LEN_MIN - EDAM_NOTEBOOK_NAME_LEN_MAX
<br/>
Regex:  EDAM_NOTEBOOK_NAME_REGEX
</dd>

<dt>updateSequenceNum</dt>

<dd>A number identifying the last transaction to
modify the state of this object.  The USN values are sequential within an
account, and can be used to compare the order of modifications within the
service.
</dd>

<dt>defaultNotebook</dt>

<dd>If true, this notebook should be used for new notes
whenever the user has not (or cannot) specify a desired target notebook.
For example, if a note is submitted via SMTP email.
The service will maintain at most one defaultNotebook per account.
If a second notebook is created or updated with defaultNotebook set to
true, the service will automatically update the prior notebook's
defaultNotebook field to false.  If the default notebook is deleted
(i.e. "active" set to false), the "defaultNotebook" field will be
set to false by the service.  If the account has no default notebook
set, the service will use the most recent notebook as the default.
</dd>

<dt>serviceCreated</dt>

<dd>The time when this notebook was created on the
service. This will be set on the service during creation, and the service
will provide this value when it returns a Notebook to a client.
The service will ignore this value if it is sent by clients.
</dd>

<dt>serviceUpdated</dt>

<dd>The time when this notebook was last modified on the
service.  This will be set on the service during creation, and the service
will provide this value when it returns a Notebook to a client.
The service will ignore this value if it is sent by clients.
</dd>

<dt>publishing</dt>

<dd>If the Notebook has been opened for public access (i.e.
if 'published' is set to true), then this will point to the set of
publishing information for the Notebook (URI, description, etc.).  A
Notebook cannot be published without providing this information, but it
will persist for later use if publishing is ever disabled on the Notebook.
Clients that do not wish to change the publishing behavior of a Notebook
should not set this value when calling NoteStore.updateNotebook().
</dd>

<dt>published</dt>

<dd>If this is set to true, then the Notebook will be
accessible to the public via the 'publishing' specification, which must
also be set.  If this is set to false, the Notebook will not be available
to the public.
Clients that do not wish to change the publishing behavior of a Notebook
should not set this value when calling NoteStore.updateNotebook().
</dd>

<dt>stack</dt>

<dd>If this is set, then the notebook is visually contained within a stack
of notebooks with this name.  All notebooks in the same account with the
same 'stack' field are considered to be in the same stack.
Notebooks with no stack set are "top level" and not contained within a
stack.
</dd>

<dt>sharedNotebookIds</dt>

<dd><i>DEPRECATED</i> - replaced by sharedNotebooks.</dd>

<dt>sharedNotebooks</dt>

<dd>The list of recipients to whom this notebook has been shared
(one SharedNotebook object per recipient email address). This field will
be unset if you do not have permission to access this data. If you are
accessing the notebook as the owner or via a shared notebook that is
modifiable, then you have access to this data and the value will be set.
This field is read-only. Clients may not make changes to shared notebooks
via this field.
</dd>

</dl>

Constant Summary collapse

GUID =
1
NAME =
2
UPDATESEQUENCENUM =
5
DEFAULTNOTEBOOK =
6
SERVICECREATED =
7
SERVICEUPDATED =
8
PUBLISHING =
10
PUBLISHED =
11
STACK =
12
SHAREDNOTEBOOKIDS =
13
SHAREDNOTEBOOKS =
14
FIELDS =
{
  GUID => {:type => ::Thrift::Types::STRING, :name => 'guid', :optional => true},
  NAME => {:type => ::Thrift::Types::STRING, :name => 'name', :optional => true},
  UPDATESEQUENCENUM => {:type => ::Thrift::Types::I32, :name => 'updateSequenceNum', :optional => true},
  DEFAULTNOTEBOOK => {:type => ::Thrift::Types::BOOL, :name => 'defaultNotebook', :optional => true},
  SERVICECREATED => {:type => ::Thrift::Types::I64, :name => 'serviceCreated', :optional => true},
  SERVICEUPDATED => {:type => ::Thrift::Types::I64, :name => 'serviceUpdated', :optional => true},
  PUBLISHING => {:type => ::Thrift::Types::STRUCT, :name => 'publishing', :class => Evernote::EDAM::Type::Publishing, :optional => true},
  PUBLISHED => {:type => ::Thrift::Types::BOOL, :name => 'published', :optional => true},
  STACK => {:type => ::Thrift::Types::STRING, :name => 'stack', :optional => true},
  SHAREDNOTEBOOKIDS => {:type => ::Thrift::Types::LIST, :name => 'sharedNotebookIds', :element => {:type => ::Thrift::Types::I64}, :optional => true},
  SHAREDNOTEBOOKS => {:type => ::Thrift::Types::LIST, :name => 'sharedNotebooks', :element => {:type => ::Thrift::Types::STRUCT, :class => Evernote::EDAM::Type::SharedNotebook}, :optional => true}
}

Constants included from Thrift::Struct_Union

Thrift::Struct_Union::CONTAINER_TYPES

Instance Method Summary collapse

Methods included from Thrift::Struct

#<=>, #==, #differences, #eql?, field_accessor, #fields_with_default_values, generate_accessors, #hash, #initialize, #inspect, qmark_isset_method, #read, #write

Methods included from Thrift::Struct_Union

#each_field, #field_info, #inspect_collection, #inspect_field, #is_container?, #name_to_id, #read_field, #sorted_field_ids, #write_container, #write_data

Instance Method Details

#struct_fieldsObject



1694
# File 'lib/Evernote/EDAM/types_types.rb', line 1694

def struct_fields; FIELDS; end

#validateObject



1696
1697
# File 'lib/Evernote/EDAM/types_types.rb', line 1696

def validate
end