Class: Zm::Client::DataSource
- Inherits:
-
Base::Object
- Object
- Base::Object
- Zm::Client::DataSource
- Defined in:
- lib/zm/client/datasource/datasource.rb
Overview
class account data source
Constant Summary collapse
- TYPES =
%i[cal caldav yab gal imap pop3 rss unknown]
Instance Attribute Summary collapse
-
#a ⇒ Object
Returns the value of attribute a.
-
#cconnectionType ⇒ Object
Returns the value of attribute cconnectionType.
-
#cdefaultSignature ⇒ Object
Returns the value of attribute cdefaultSignature.
-
#cemailAddress ⇒ Object
Returns the value of attribute cemailAddress.
-
#cfailingSince ⇒ Object
Returns the value of attribute cfailingSince.
-
#cforwardReplySignature ⇒ Object
Returns the value of attribute cforwardReplySignature.
-
#cfromDisplay ⇒ Object
Returns the value of attribute cfromDisplay.
-
#chost ⇒ Object
Returns the value of attribute chost.
-
#cid ⇒ Object
Returns the value of attribute cid.
-
#cimportClass ⇒ Object
Returns the value of attribute cimportClass.
-
#cimportOnly ⇒ Object
Returns the value of attribute cimportOnly.
-
#cisEnabled ⇒ Object
Returns the value of attribute cisEnabled.
-
#cl ⇒ Object
Returns the value of attribute cl.
-
#clientId ⇒ Object
Returns the value of attribute clientId.
-
#clientSecret ⇒ Object
Returns the value of attribute clientSecret.
-
#cname ⇒ Object
Returns the value of attribute cname.
-
#connectionType ⇒ Object
Returns the value of attribute connectionType.
-
#cpassword ⇒ Object
Returns the value of attribute cpassword.
-
#cpollingInterval ⇒ Object
Returns the value of attribute cpollingInterval.
-
#cport ⇒ Object
Returns the value of attribute cport.
-
#crefreshToken ⇒ Object
Returns the value of attribute crefreshToken.
-
#crefreshTokenUrl ⇒ Object
Returns the value of attribute crefreshTokenUrl.
-
#creplyToAddress ⇒ Object
Returns the value of attribute creplyToAddress.
-
#creplyToDisplay ⇒ Object
Returns the value of attribute creplyToDisplay.
-
#csmtpAuthRequired ⇒ Object
Returns the value of attribute csmtpAuthRequired.
-
#csmtpConnectionType ⇒ Object
Returns the value of attribute csmtpConnectionType.
-
#csmtpEnabled ⇒ Object
Returns the value of attribute csmtpEnabled.
-
#csmtpHost ⇒ Object
Returns the value of attribute csmtpHost.
-
#csmtpPassword ⇒ Object
Returns the value of attribute csmtpPassword.
-
#csmtpPort ⇒ Object
Returns the value of attribute csmtpPort.
-
#csmtpUsername ⇒ Object
Returns the value of attribute csmtpUsername.
-
#cuseAddressForForwardReply ⇒ Object
Returns the value of attribute cuseAddressForForwardReply.
-
#cusername ⇒ Object
Returns the value of attribute cusername.
-
#defaultSignature ⇒ Object
Returns the value of attribute defaultSignature.
-
#emailAddress ⇒ Object
Returns the value of attribute emailAddress.
-
#failingSince ⇒ Object
Returns the value of attribute failingSince.
-
#forwardReplySignature ⇒ Object
Returns the value of attribute forwardReplySignature.
-
#fromDisplay ⇒ Object
Returns the value of attribute fromDisplay.
-
#host ⇒ Object
Returns the value of attribute host.
-
#id ⇒ Object
Returns the value of attribute id.
-
#importClass ⇒ Object
Returns the value of attribute importClass.
-
#importOnly ⇒ Object
Returns the value of attribute importOnly.
-
#isEnabled ⇒ Object
Returns the value of attribute isEnabled.
-
#l ⇒ Object
Returns the value of attribute l.
-
#lastError ⇒ Object
Returns the value of attribute lastError.
-
#leaveOnServer ⇒ Object
Returns the value of attribute leaveOnServer.
-
#name ⇒ Object
Returns the value of attribute name.
-
#oauthToken ⇒ Object
Returns the value of attribute oauthToken.
-
#password ⇒ Object
Returns the value of attribute password.
-
#pollingInterval ⇒ Object
Returns the value of attribute pollingInterval.
-
#port ⇒ Object
Returns the value of attribute port.
-
#refreshToken ⇒ Object
Returns the value of attribute refreshToken.
-
#refreshTokenUrl ⇒ Object
Returns the value of attribute refreshTokenUrl.
-
#replyToAddress ⇒ Object
Returns the value of attribute replyToAddress.
-
#replyToDisplay ⇒ Object
Returns the value of attribute replyToDisplay.
-
#smtpAuthRequired ⇒ Object
Returns the value of attribute smtpAuthRequired.
-
#smtpConnectionType ⇒ Object
Returns the value of attribute smtpConnectionType.
-
#smtpEnabled ⇒ Object
Returns the value of attribute smtpEnabled.
-
#smtpHost ⇒ Object
Returns the value of attribute smtpHost.
-
#smtpPassword ⇒ Object
Returns the value of attribute smtpPassword.
-
#smtpPort ⇒ Object
Returns the value of attribute smtpPort.
-
#smtpUsername ⇒ Object
Returns the value of attribute smtpUsername.
-
#test ⇒ Object
Returns the value of attribute test.
-
#type ⇒ Object
Returns the value of attribute type.
-
#useAddressForForwardReply ⇒ Object
Returns the value of attribute useAddressForForwardReply.
-
#username ⇒ Object
Returns the value of attribute username.
Attributes inherited from Base::Object
Instance Method Summary collapse
- #create! ⇒ Object
- #delete! ⇒ Object
-
#initialize(parent, data_source_type) ⇒ DataSource
constructor
A new instance of DataSource.
- #modify! ⇒ Object
- #rename!(new_name) ⇒ Object
- #update!(hash) ⇒ Object
Methods inherited from Base::Object
#clone, #inspect, #instance_variables_map, #logger, #recorded?, #save!, #to_h, #to_s, #update_attribute
Constructor Details
#initialize(parent, data_source_type) ⇒ DataSource
Returns a new instance of DataSource.
22 23 24 25 |
# File 'lib/zm/client/datasource/datasource.rb', line 22 def initialize(parent, data_source_type) @type = data_source_type super(parent) end |
Instance Attribute Details
#a ⇒ Object
Returns the value of attribute a.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def a @a end |
#cconnectionType ⇒ Object
Returns the value of attribute cconnectionType.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def cconnectionType @cconnectionType end |
#cdefaultSignature ⇒ Object
Returns the value of attribute cdefaultSignature.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def cdefaultSignature @cdefaultSignature end |
#cemailAddress ⇒ Object
Returns the value of attribute cemailAddress.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def cemailAddress @cemailAddress end |
#cfailingSince ⇒ Object
Returns the value of attribute cfailingSince.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def cfailingSince @cfailingSince end |
#cforwardReplySignature ⇒ Object
Returns the value of attribute cforwardReplySignature.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def cforwardReplySignature @cforwardReplySignature end |
#cfromDisplay ⇒ Object
Returns the value of attribute cfromDisplay.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def cfromDisplay @cfromDisplay end |
#chost ⇒ Object
Returns the value of attribute chost.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def chost @chost end |
#cid ⇒ Object
Returns the value of attribute cid.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def cid @cid end |
#cimportClass ⇒ Object
Returns the value of attribute cimportClass.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def cimportClass @cimportClass end |
#cimportOnly ⇒ Object
Returns the value of attribute cimportOnly.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def cimportOnly @cimportOnly end |
#cisEnabled ⇒ Object
Returns the value of attribute cisEnabled.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def cisEnabled @cisEnabled end |
#cl ⇒ Object
Returns the value of attribute cl.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def cl @cl end |
#clientId ⇒ Object
Returns the value of attribute clientId.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def clientId @clientId end |
#clientSecret ⇒ Object
Returns the value of attribute clientSecret.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def clientSecret @clientSecret end |
#cname ⇒ Object
Returns the value of attribute cname.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def cname @cname end |
#connectionType ⇒ Object
Returns the value of attribute connectionType.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def connectionType @connectionType end |
#cpassword ⇒ Object
Returns the value of attribute cpassword.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def cpassword @cpassword end |
#cpollingInterval ⇒ Object
Returns the value of attribute cpollingInterval.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def cpollingInterval @cpollingInterval end |
#cport ⇒ Object
Returns the value of attribute cport.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def cport @cport end |
#crefreshToken ⇒ Object
Returns the value of attribute crefreshToken.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def crefreshToken @crefreshToken end |
#crefreshTokenUrl ⇒ Object
Returns the value of attribute crefreshTokenUrl.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def crefreshTokenUrl @crefreshTokenUrl end |
#creplyToAddress ⇒ Object
Returns the value of attribute creplyToAddress.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def creplyToAddress @creplyToAddress end |
#creplyToDisplay ⇒ Object
Returns the value of attribute creplyToDisplay.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def creplyToDisplay @creplyToDisplay end |
#csmtpAuthRequired ⇒ Object
Returns the value of attribute csmtpAuthRequired.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def csmtpAuthRequired @csmtpAuthRequired end |
#csmtpConnectionType ⇒ Object
Returns the value of attribute csmtpConnectionType.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def csmtpConnectionType @csmtpConnectionType end |
#csmtpEnabled ⇒ Object
Returns the value of attribute csmtpEnabled.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def csmtpEnabled @csmtpEnabled end |
#csmtpHost ⇒ Object
Returns the value of attribute csmtpHost.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def csmtpHost @csmtpHost end |
#csmtpPassword ⇒ Object
Returns the value of attribute csmtpPassword.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def csmtpPassword @csmtpPassword end |
#csmtpPort ⇒ Object
Returns the value of attribute csmtpPort.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def csmtpPort @csmtpPort end |
#csmtpUsername ⇒ Object
Returns the value of attribute csmtpUsername.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def csmtpUsername @csmtpUsername end |
#cuseAddressForForwardReply ⇒ Object
Returns the value of attribute cuseAddressForForwardReply.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def cuseAddressForForwardReply @cuseAddressForForwardReply end |
#cusername ⇒ Object
Returns the value of attribute cusername.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def cusername @cusername end |
#defaultSignature ⇒ Object
Returns the value of attribute defaultSignature.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def defaultSignature @defaultSignature end |
#emailAddress ⇒ Object
Returns the value of attribute emailAddress.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def emailAddress @emailAddress end |
#failingSince ⇒ Object
Returns the value of attribute failingSince.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def failingSince @failingSince end |
#forwardReplySignature ⇒ Object
Returns the value of attribute forwardReplySignature.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def forwardReplySignature @forwardReplySignature end |
#fromDisplay ⇒ Object
Returns the value of attribute fromDisplay.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def fromDisplay @fromDisplay end |
#host ⇒ Object
Returns the value of attribute host.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def host @host end |
#id ⇒ Object
Returns the value of attribute id.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def id @id end |
#importClass ⇒ Object
Returns the value of attribute importClass.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def importClass @importClass end |
#importOnly ⇒ Object
Returns the value of attribute importOnly.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def importOnly @importOnly end |
#isEnabled ⇒ Object
Returns the value of attribute isEnabled.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def isEnabled @isEnabled end |
#l ⇒ Object
Returns the value of attribute l.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def l @l end |
#lastError ⇒ Object
Returns the value of attribute lastError.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def lastError @lastError end |
#leaveOnServer ⇒ Object
Returns the value of attribute leaveOnServer.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def leaveOnServer @leaveOnServer end |
#name ⇒ Object
Returns the value of attribute name.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def name @name end |
#oauthToken ⇒ Object
Returns the value of attribute oauthToken.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def oauthToken @oauthToken end |
#password ⇒ Object
Returns the value of attribute password.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def password @password end |
#pollingInterval ⇒ Object
Returns the value of attribute pollingInterval.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def pollingInterval @pollingInterval end |
#port ⇒ Object
Returns the value of attribute port.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def port @port end |
#refreshToken ⇒ Object
Returns the value of attribute refreshToken.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def refreshToken @refreshToken end |
#refreshTokenUrl ⇒ Object
Returns the value of attribute refreshTokenUrl.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def refreshTokenUrl @refreshTokenUrl end |
#replyToAddress ⇒ Object
Returns the value of attribute replyToAddress.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def replyToAddress @replyToAddress end |
#replyToDisplay ⇒ Object
Returns the value of attribute replyToDisplay.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def replyToDisplay @replyToDisplay end |
#smtpAuthRequired ⇒ Object
Returns the value of attribute smtpAuthRequired.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def smtpAuthRequired @smtpAuthRequired end |
#smtpConnectionType ⇒ Object
Returns the value of attribute smtpConnectionType.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def smtpConnectionType @smtpConnectionType end |
#smtpEnabled ⇒ Object
Returns the value of attribute smtpEnabled.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def smtpEnabled @smtpEnabled end |
#smtpHost ⇒ Object
Returns the value of attribute smtpHost.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def smtpHost @smtpHost end |
#smtpPassword ⇒ Object
Returns the value of attribute smtpPassword.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def smtpPassword @smtpPassword end |
#smtpPort ⇒ Object
Returns the value of attribute smtpPort.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def smtpPort @smtpPort end |
#smtpUsername ⇒ Object
Returns the value of attribute smtpUsername.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def smtpUsername @smtpUsername end |
#test ⇒ Object
Returns the value of attribute test.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def test @test end |
#type ⇒ Object
Returns the value of attribute type.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def type @type end |
#useAddressForForwardReply ⇒ Object
Returns the value of attribute useAddressForForwardReply.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def useAddressForForwardReply @useAddressForForwardReply end |
#username ⇒ Object
Returns the value of attribute username.
9 10 11 |
# File 'lib/zm/client/datasource/datasource.rb', line 9 def username @username end |
Instance Method Details
#create! ⇒ Object
27 28 29 |
# File 'lib/zm/client/datasource/datasource.rb', line 27 def create! raise NotImplementedError end |
#delete! ⇒ Object
51 52 53 54 55 56 |
# File 'lib/zm/client/datasource/datasource.rb', line 51 def delete! return false if @id.nil? @parent.sacc.invoke(jsns_builder.to_delete) @id = nil end |
#modify! ⇒ Object
31 32 33 |
# File 'lib/zm/client/datasource/datasource.rb', line 31 def modify! raise NotImplementedError end |
#rename!(new_name) ⇒ Object
47 48 49 |
# File 'lib/zm/client/datasource/datasource.rb', line 47 def rename!(new_name) raise NotImplementedError end |
#update!(hash) ⇒ Object
35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/zm/client/datasource/datasource.rb', line 35 def update!(hash) return false if hash.delete_if { |k, v| v.nil? || !respond_to?(k) }.empty? do_update!(hash) hash.each do |key, value| update_attribute(key, value) end true end |