Class: Evernote::EDAM::UserStore::BootstrapSettings

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

Overview

<dl>

<dt>serviceHost:</dt>
  <dd>
  The hostname and optional port for composing Evernote web service URLs.
  This URL can be used to access the UserStore and related services,
  but must not be used to compose the NoteStore URL. Client applications
  must handle serviceHost values that include only the hostname
  (e.g. www.evernote.com) or both the hostname and port (e.g. www.evernote.com:8080).
  If no port is specified, or if port 443 is specified, client applications must
  use the scheme "https" when composing URLs. Otherwise, a client must use the
  scheme "http".
</dd>
<dt>marketingUrl:</dt>
  <dd>
  The URL stem for the Evernote corporate marketing website, e.g. http://www.evernote.com.
  This stem can be used to compose website URLs. For example, the URL of the Evernote
  Trunk is composed by appending "/about/trunk/" to the value of marketingUrl.
  </dd>
<dt>supportUrl:</dt>
  <dd>
  The full URL for the Evernote customer support website, e.g. https://support.evernote.com.
  </dd>
<dt>accountEmailDomain:</dt>
  <dd>
  The domain used for an Evernote user's incoming email address, which allows notes to
  be emailed into an account. E.g. m.evernote.com.
  </dd>
<dt>enableFacebookSharing:</dt>
  <dd>
  Whether the client application should enable sharing of notes on Facebook.
  </dd>
<dt>enableGiftSubscriptions:</dt>
  <dd>
  Whether the client application should enable gift subscriptions.
  </dd>
<dt>enableSupportTickets:</dt>
  <dd>
  Whether the client application should enable in-client creation of support tickets.
  </dd>
<dt>enableSharedNotebooks:</dt>
  <dd>
  Whether the client application should enable shared notebooks.
  </dd>
<dt>enableSingleNoteSharing:</dt>
  <dd>
  Whether the client application should enable single note sharing.
  </dd>
<dt>enableSponsoredAccounts:</dt>
  <dd>
  Whether the client application should enable sponsored accounts.
  </dd>
<dt>enableTwitterSharing:</dt>
  <dd>
  Whether the client application should enable sharing of notes on Twitter.
  </dd>
</dl>

Constant Summary collapse

SERVICEHOST =
1
MARKETINGURL =
2
SUPPORTURL =
3
ACCOUNTEMAILDOMAIN =
4
ENABLEFACEBOOKSHARING =
5
ENABLEGIFTSUBSCRIPTIONS =
6
ENABLESUPPORTTICKETS =
7
ENABLESHAREDNOTEBOOKS =
8
ENABLESINGLENOTESHARING =
9
ENABLESPONSOREDACCOUNTS =
10
ENABLETWITTERSHARING =
11
ENABLELINKEDINSHARING =
12
ENABLEPUBLICNOTEBOOKS =
13
FIELDS =
{
  SERVICEHOST => {:type => ::Thrift::Types::STRING, :name => 'serviceHost'},
  MARKETINGURL => {:type => ::Thrift::Types::STRING, :name => 'marketingUrl'},
  SUPPORTURL => {:type => ::Thrift::Types::STRING, :name => 'supportUrl'},
  ACCOUNTEMAILDOMAIN => {:type => ::Thrift::Types::STRING, :name => 'accountEmailDomain'},
  ENABLEFACEBOOKSHARING => {:type => ::Thrift::Types::BOOL, :name => 'enableFacebookSharing', :optional => true},
  ENABLEGIFTSUBSCRIPTIONS => {:type => ::Thrift::Types::BOOL, :name => 'enableGiftSubscriptions', :optional => true},
  ENABLESUPPORTTICKETS => {:type => ::Thrift::Types::BOOL, :name => 'enableSupportTickets', :optional => true},
  ENABLESHAREDNOTEBOOKS => {:type => ::Thrift::Types::BOOL, :name => 'enableSharedNotebooks', :optional => true},
  ENABLESINGLENOTESHARING => {:type => ::Thrift::Types::BOOL, :name => 'enableSingleNoteSharing', :optional => true},
  ENABLESPONSOREDACCOUNTS => {:type => ::Thrift::Types::BOOL, :name => 'enableSponsoredAccounts', :optional => true},
  ENABLETWITTERSHARING => {:type => ::Thrift::Types::BOOL, :name => 'enableTwitterSharing', :optional => true},
  ENABLELINKEDINSHARING => {:type => ::Thrift::Types::BOOL, :name => 'enableLinkedInSharing', :optional => true},
  ENABLEPUBLICNOTEBOOKS => {:type => ::Thrift::Types::BOOL, :name => 'enablePublicNotebooks', :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



271
# File 'lib/Evernote/EDAM/user_store_types.rb', line 271

def struct_fields; FIELDS; end

#validateObject



273
274
275
276
277
278
# File 'lib/Evernote/EDAM/user_store_types.rb', line 273

def validate
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field serviceHost is unset!') unless @serviceHost
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field marketingUrl is unset!') unless @marketingUrl
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field supportUrl is unset!') unless @supportUrl
  raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field accountEmailDomain is unset!') unless @accountEmailDomain
end