Class Evernote::EDAM::Type::Tag
In: ruby/lib/Evernote/EDAM/types_types.rb
Parent: Object
 A tag within a user's account is a unique name which may be organized
 a simple hierarchy.

<dl>

 <dt>guid</dt>
   <dd>The unique identifier of this tag. Will be set by the service,
   so may be omitted by the client when creating the Tag.
   <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 tag's identifier.
   Case is preserved, but is ignored for comparisons.
   This means that an account may only have one tag with a given name, via
   case-insensitive comparison, so an account may not have both "food" and
   "Food" tags.
   May not contain a comma (','), and may not begin or end with a space.
   <br/>
   Length:  EDAM_TAG_NAME_LEN_MIN - EDAM_TAG_NAME_LEN_MAX
   <br/>
   Regex:  EDAM_TAG_NAME_REGEX
   </dd>

 <dt>parentGuid</dt>
   <dd>If this is set, then this is the GUID of the tag that
   holds this tag within the tag organizational heirarchy.  If this is
   not set, then the tag has no parent and it is a "top level" tag.
   Cycles are not allowed (e.g. a->parent->parent == a) and will be
   rejected by the service.
   <br/>
   Length:  EDAM_GUID_LEN_MIN - EDAM_GUID_LEN_MAX
   <br/>
   Regex:  EDAM_GUID_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>
 </dl>

Methods

Included Modules

::Thrift::Struct ::Thrift::Struct_Union

Constants

GUID = 1
NAME = 2
PARENTGUID = 3
UPDATESEQUENCENUM = 4
FIELDS = { GUID => {:type => ::Thrift::Types::STRING, :name => 'guid', :optional => true}, NAME => {:type => ::Thrift::Types::STRING, :name => 'name', :optional => true}, PARENTGUID => {:type => ::Thrift::Types::STRING, :name => 'parentGuid', :optional => true}, UPDATESEQUENCENUM => {:type => ::Thrift::Types::I32, :name => 'updateSequenceNum', :optional => true}

Public Instance methods

[Source]

     # File ruby/lib/Evernote/EDAM/types_types.rb, line 628
628:               def struct_fields; FIELDS; end

[Source]

     # File ruby/lib/Evernote/EDAM/types_types.rb, line 630
630:               def validate
631:               end

[Validate]