Class: NVX::SDS::APICommand
- Inherits:
-
Object
- Object
- NVX::SDS::APICommand
- Defined in:
- lib/nvx/sds/apicommand.rb
Overview
The APICommand object defines all the namespaces and methods in the Nirvanix services. in the future this could be split into multiple namespaces but for now there are no collisions.
Constant Summary collapse
- @@logincmd =
Authentication Namespace
nil
- @@logoutcmd =
nil
- @@changepasswordcmd =
nil
- @@setchildaccountpasswordcmd =
nil
- @@listfoldercmd =
IMFS Namespace
nil
- @@createfolderscmd =
nil
- @@deletefolderscmd =
nil
- @@copyfolderscmd =
nil
- @@movefolderscmd =
nil
- @@copyfilescmd =
nil
- @@movefilescmd =
nil
- @@renamefoldercmd =
nil
- @@renamefilecmd =
nil
- @@deletefilescmd =
nil
- @@getdownloadnodescmd =
nil
- @@getuploadnodecmd =
nil
- @@getdownloadlinkscmd =
nil
- @@searchfilesystemcmd =
nil
- @@sideloadcmd =
nil
- @@deleteallmetadatacmd =
MetaData Namespace
nil
nil
- @@deletemetadatacmd =
nil
nil
- @@getmetadatacmd =
nil
nil
- @@setmetadatacmd =
nil
nil
- @@searchmetadatacmd =
nil
nil
- @@imageresizecmd =
Image Namespace
nil
- @@imagerotateflipcmd =
nil
- @@createhosteditemcmd =
Sharing Namespace
nil
- @@removehosteditemcmd =
nil
- @@listhosteditemscmd =
nil
- @@audiotranscodecmd =
Audio Namespace
nil
- @@videotranscodecmd =
Video Namespace
nil
- @@extractvideoframescmd =
nil
- @@createchildaccountcmd =
Accounting Namespace
nil
- @@deletechildaccountcmd =
nil
- @@getaccountinfocmd =
nil
- @@getaccountnotescmd =
nil
- @@getaccountlimitscmd =
nil
- @@getaccountusagecmd =
nil
- @@listchildaccountscmd =
nil
- @@setaccountinfocmd =
nil
- @@setaccountlimitscmd =
nil
- @@setaccountnotescmd =
nil
Class Method Summary collapse
- .AudioTranscode ⇒ Object
- .ChangePassword ⇒ Object
- .CopyFiles ⇒ Object
- .CopyFolders ⇒ Object
- .CreateChildAccount ⇒ Object
- .CreateFolders ⇒ Object
- .CreateHostedItem ⇒ Object
- .DeleteAllMetadata ⇒ Object
- .DeleteAllTags ⇒ Object
- .DeleteChildAccount ⇒ Object
- .DeleteFiles ⇒ Object
- .DeleteFolders ⇒ Object
- .DeleteMetadata ⇒ Object
- .DeleteTags ⇒ Object
- .ExtractVideoFrames ⇒ Object
- .GetAccountInfo ⇒ Object
- .GetAccountLimits ⇒ Object
- .GetAccountNotes ⇒ Object
- .GetAccountUsage ⇒ Object
- .GetDownloadLinks ⇒ Object
- .GetDownloadNodes ⇒ Object
- .GetMetadata ⇒ Object
- .GetTags ⇒ Object
- .GetUploadNode ⇒ Object
- .ImageResize ⇒ Object
- .ImageRotateFlip ⇒ Object
- .ListChildAccounts ⇒ Object
- .ListFolder ⇒ Object
- .ListHostedItems ⇒ Object
- .Login ⇒ Object
- .Logout ⇒ Object
- .MoveFiles ⇒ Object
- .MoveFolders ⇒ Object
- .RemoveHostedItem ⇒ Object
- .RenameFile ⇒ Object
- .RenameFolder ⇒ Object
- .SearchFileSystem ⇒ Object
- .SearchMetadata ⇒ Object
- .SearchTags ⇒ Object
- .SetAccountInfo ⇒ Object
- .SetAccountLimits ⇒ Object
- .SetAccountNotes ⇒ Object
- .SetChildAccountPassword ⇒ Object
- .SetMetadata ⇒ Object
- .SetTags ⇒ Object
- .Sideload ⇒ Object
- .VideoTranscode ⇒ Object
Instance Method Summary collapse
-
#command_path ⇒ Object
The namespace/path of the command.
-
#initialize(command_path, is_secure) ⇒ APICommand
constructor
Initialize method sets the command and if its to be executed via SSL.
-
#is_secure? ⇒ Boolean
Used to determine if a command is using SSL.
Constructor Details
#initialize(command_path, is_secure) ⇒ APICommand
Initialize method sets the command and if its to be executed via SSL. You can change the method to be secure for any call but currently only the Login command is marked as secure.
17 18 19 20 |
# File 'lib/nvx/sds/apicommand.rb', line 17 def initialize(command_path, is_secure) @command_path = command_path @is_secure = is_secure end |
Class Method Details
.AudioTranscode ⇒ Object
249 250 251 252 |
# File 'lib/nvx/sds/apicommand.rb', line 249 def APICommand.AudioTranscode @@audiotranscodecmd = new("Audio/Transcode.ashx", false) unless @@audiotranscodecmd @@audiotranscodecmd end |
.ChangePassword ⇒ Object
48 49 50 51 |
# File 'lib/nvx/sds/apicommand.rb', line 48 def APICommand.ChangePassword @@changepasswordcmd = new("Authentication/ChangePassword.ashx", false) unless @@changepasswordcmd @@changepasswordcmd end |
.CopyFiles ⇒ Object
92 93 94 95 |
# File 'lib/nvx/sds/apicommand.rb', line 92 def APICommand.CopyFiles @@copyfilescmd = new("IMFS/CopyFiles.ashx", false) unless @@copyfilescmd @@copyfilescmd end |
.CopyFolders ⇒ Object
80 81 82 83 |
# File 'lib/nvx/sds/apicommand.rb', line 80 def APICommand.CopyFolders @@copyfolderscmd = new("IMFS/CopyFolders.ashx", false) unless @@copyfolderscmd @@copyfolderscmd end |
.CreateChildAccount ⇒ Object
271 272 273 274 |
# File 'lib/nvx/sds/apicommand.rb', line 271 def APICommand.CreateChildAccount @@createchildaccountcmd = new("Accounting/CreateChildAccount.ashx", false) unless @@createchildaccountcmd @@createchildaccountcmd end |
.CreateFolders ⇒ Object
68 69 70 71 |
# File 'lib/nvx/sds/apicommand.rb', line 68 def APICommand.CreateFolders @@createfolderscmd = new("IMFS/CreateFolders.ashx", false) unless @@createfolderscmd @@createfolderscmd end |
.CreateHostedItem ⇒ Object
229 230 231 232 |
# File 'lib/nvx/sds/apicommand.rb', line 229 def APICommand.CreateHostedItem @@createhosteditemcmd = new("Sharing/CreateHostedItem.ashx", false) unless @@createhosteditemcmd @@createhosteditemcmd end |
.DeleteAllMetadata ⇒ Object
154 155 156 157 |
# File 'lib/nvx/sds/apicommand.rb', line 154 def APICommand.DeleteAllMetadata @@deleteallmetadatacmd = new("Metadata/DeleteAllMetadata.ashx", false) unless @@deleteallmetadatacmd @@deleteallmetadatacmd end |
.DeleteAllTags ⇒ Object
160 161 162 163 |
# File 'lib/nvx/sds/apicommand.rb', line 160 def APICommand.DeleteAllTags @@deletealltagscmd = new("Metadata/DeleteAllTags.ashx", false) unless @@deletealltagscmd @@deletealltagscmd end |
.DeleteChildAccount ⇒ Object
277 278 279 280 |
# File 'lib/nvx/sds/apicommand.rb', line 277 def APICommand.DeleteChildAccount @@deletechildaccountcmd = new("Accounting/DeleteChildAccount.ashx", false) unless @@deletechildaccountcmd @@deletechildaccountcmd end |
.DeleteFiles ⇒ Object
116 117 118 119 |
# File 'lib/nvx/sds/apicommand.rb', line 116 def APICommand.DeleteFiles @@deletefilescmd = new("IMFS/DeleteFiles.ashx", false) unless @@deletefilescmd @@deletefilescmd end |
.DeleteFolders ⇒ Object
74 75 76 77 |
# File 'lib/nvx/sds/apicommand.rb', line 74 def APICommand.DeleteFolders @@deletefolderscmd = new("IMFS/DeleteFolders.ashx", false) unless @@deletefolderscmd @@deletefolderscmd end |
.DeleteMetadata ⇒ Object
166 167 168 169 |
# File 'lib/nvx/sds/apicommand.rb', line 166 def APICommand.DeleteMetadata @@deletemetadatacmd = new("Metadata/DeleteMetadata.ashx", false) unless @@deletemetadatacmd @@deletemetadatacmd end |
.DeleteTags ⇒ Object
172 173 174 175 |
# File 'lib/nvx/sds/apicommand.rb', line 172 def APICommand.DeleteTags @@deletetagscmd = new("Metadata/DeleteTags.ashx", false) unless @@deletetagscmd @@deletetagscmd end |
.ExtractVideoFrames ⇒ Object
263 264 265 266 |
# File 'lib/nvx/sds/apicommand.rb', line 263 def APICommand.ExtractVideoFrames @@extractvideoframescmd = new("Video/ExtractFrames.ashx", false) unless @@extractvideoframescmd @@extractvideoframescmd end |
.GetAccountInfo ⇒ Object
283 284 285 286 |
# File 'lib/nvx/sds/apicommand.rb', line 283 def APICommand.GetAccountInfo @@getaccountinfocmd = new("Accounting/GetAccountInfo.ashx", false) unless @@getaccountinfocmd @@getaccountinfocmd end |
.GetAccountLimits ⇒ Object
295 296 297 298 |
# File 'lib/nvx/sds/apicommand.rb', line 295 def APICommand.GetAccountLimits @@getaccountlimitscmd = new("Accounting/GetAccountLimits.ashx", false) unless @@getaccountlimitscmd @@getaccountlimitscmd end |
.GetAccountNotes ⇒ Object
289 290 291 292 |
# File 'lib/nvx/sds/apicommand.rb', line 289 def APICommand.GetAccountNotes @@getaccountnotescmd = new("Accounting/GetAccountNotes.ashx", false) unless @@getaccountnotescmd @@getaccountnotescmd end |
.GetAccountUsage ⇒ Object
301 302 303 304 |
# File 'lib/nvx/sds/apicommand.rb', line 301 def APICommand.GetAccountUsage @@getaccountusagecmd = new("Accounting/GetAccountUsage.ashx", false) unless @@getaccountusagecmd @@getaccountusagecmd end |
.GetDownloadLinks ⇒ Object
134 135 136 137 |
# File 'lib/nvx/sds/apicommand.rb', line 134 def APICommand.GetDownloadLinks @@getdownloadlinkscmd = new("IMFS/GetDownloadLinks.ashx", false) unless @@getdownloadlinkscmd @@getdownloadlinkscmd end |
.GetDownloadNodes ⇒ Object
122 123 124 125 |
# File 'lib/nvx/sds/apicommand.rb', line 122 def APICommand.GetDownloadNodes @@getdownloadnodescmd = new("IMFS/GetDownloadNodes.ashx", false) unless @@getdownloadnodescmd @@getdownloadnodescmd end |
.GetMetadata ⇒ Object
178 179 180 181 |
# File 'lib/nvx/sds/apicommand.rb', line 178 def APICommand.GetMetadata @@getmetadatacmd = new("Metadata/GetMetadata.ashx", false) unless @@getmetadatacmd @@getmetadatacmd end |
.GetTags ⇒ Object
184 185 186 187 |
# File 'lib/nvx/sds/apicommand.rb', line 184 def APICommand.GetTags @@gettagscmd = new("Metadata/GetTags.ashx", false) unless @@gettagscmd @@gettagscmd end |
.GetUploadNode ⇒ Object
128 129 130 131 |
# File 'lib/nvx/sds/apicommand.rb', line 128 def APICommand.GetUploadNode @@getuploadnodecmd = new("IMFS/GetUploadNode.ashx", false) unless @@getuploadnodecmd @@getuploadnodecmd end |
.ImageResize ⇒ Object
215 216 217 218 |
# File 'lib/nvx/sds/apicommand.rb', line 215 def APICommand.ImageResize @@imageresizecmd = new("Image/Resize.ashx", false) unless @@imageresizecmd @@imageresizecmd end |
.ImageRotateFlip ⇒ Object
221 222 223 224 |
# File 'lib/nvx/sds/apicommand.rb', line 221 def APICommand.ImageRotateFlip @@imagerotateflipcmd = new("Image/RotateFlip.ashx", false) unless @@imagerotateflipcmd @@imagerotateflipcmd end |
.ListChildAccounts ⇒ Object
307 308 309 310 |
# File 'lib/nvx/sds/apicommand.rb', line 307 def APICommand.ListChildAccounts @@listchildaccountscmd = new("Accounting/ListChildAccounts.ashx", false) unless @@listchildaccountscmd @@listchildaccountscmd end |
.ListFolder ⇒ Object
62 63 64 65 |
# File 'lib/nvx/sds/apicommand.rb', line 62 def APICommand.ListFolder @@listfoldercmd = new("IMFS/ListFolder.ashx", false) unless @@listfoldercmd @@listfoldercmd end |
.ListHostedItems ⇒ Object
241 242 243 244 |
# File 'lib/nvx/sds/apicommand.rb', line 241 def APICommand.ListHostedItems @@listhosteditemscmd = new("Sharing/ListHostedItems.ashx", false) unless @@listhosteditemscmd @@listhosteditemscmd end |
.Login ⇒ Object
36 37 38 39 |
# File 'lib/nvx/sds/apicommand.rb', line 36 def APICommand.Login @@logincmd = new("Authentication/Login.ashx", true) unless @@logincmd @@logincmd end |
.Logout ⇒ Object
42 43 44 45 |
# File 'lib/nvx/sds/apicommand.rb', line 42 def APICommand.Logout @@logoutcmd = new("Authentication/Logout.ashx", false) unless @@logoutcmd @@logoutcmd end |
.MoveFiles ⇒ Object
98 99 100 101 |
# File 'lib/nvx/sds/apicommand.rb', line 98 def APICommand.MoveFiles @@movefilescmd = new("IMFS/MoveFiles.ashx", false) unless @@movefilescmd @@movefilescmd end |
.MoveFolders ⇒ Object
86 87 88 89 |
# File 'lib/nvx/sds/apicommand.rb', line 86 def APICommand.MoveFolders @@movefolderscmd = new("IMFS/MoveFolders.ashx", false) unless @@movefolderscmd @@movefolderscmd end |
.RemoveHostedItem ⇒ Object
235 236 237 238 |
# File 'lib/nvx/sds/apicommand.rb', line 235 def APICommand.RemoveHostedItem @@removehosteditemcmd = new("Sharing/RemoveHostedItem.ashx", false) unless @@removehosteditemcmd @@removehosteditemcmd end |
.RenameFile ⇒ Object
110 111 112 113 |
# File 'lib/nvx/sds/apicommand.rb', line 110 def APICommand.RenameFile @@renamefilecmd = new("IMFS/RenameFile.ashx", false) unless @@renamefilecmd @@renamefilecmd end |
.RenameFolder ⇒ Object
104 105 106 107 |
# File 'lib/nvx/sds/apicommand.rb', line 104 def APICommand.RenameFolder @@renamefoldercmd = new("IMFS/RenameFolder.ashx", false) unless @@renamefoldercmd @@renamefoldercmd end |
.SearchFileSystem ⇒ Object
140 141 142 143 |
# File 'lib/nvx/sds/apicommand.rb', line 140 def APICommand.SearchFileSystem @@searchfilesystemcmd = new("IMFS/SearchFileSystem.ashx", false) unless @@searchfilesystemcmd @@searchfilesystemcmd end |
.SearchMetadata ⇒ Object
202 203 204 205 |
# File 'lib/nvx/sds/apicommand.rb', line 202 def APICommand.SearchMetadata @@searchmetadatacmd = new("Metadata/SearchMetadata.ashx", false) unless @@searchmetadatacmd @@searchmetadatacmd end |
.SearchTags ⇒ Object
208 209 210 211 |
# File 'lib/nvx/sds/apicommand.rb', line 208 def APICommand.SearchTags @@searchtagscmd = new("Metadata/SearchTags.ashx", false) unless @@searchtagscmd @@searchtagscmd end |
.SetAccountInfo ⇒ Object
313 314 315 316 |
# File 'lib/nvx/sds/apicommand.rb', line 313 def APICommand.SetAccountInfo @@setaccountinfocmd = new("Accounting/SetAccountInfo.ashx", false) unless @@setaccountinfocmd @@setaccountinfocmd end |
.SetAccountLimits ⇒ Object
319 320 321 322 |
# File 'lib/nvx/sds/apicommand.rb', line 319 def APICommand.SetAccountLimits @@setaccountlimitscmd = new("Accounting/SetAccountLimits.ashx", false) unless @@setaccountlimitscmd @@setaccountlimitscmd end |
.SetAccountNotes ⇒ Object
325 326 327 328 |
# File 'lib/nvx/sds/apicommand.rb', line 325 def APICommand.SetAccountNotes @@setaccountnotescmd = new("Accounting/SetAccountNotes.ashx", false) unless @@setaccountnotescmd @@setaccountnotescmd end |
.SetChildAccountPassword ⇒ Object
54 55 56 57 |
# File 'lib/nvx/sds/apicommand.rb', line 54 def APICommand.SetChildAccountPassword @@setchildaccountpasswordcmd = new("Authentication/SetChildAccountPassword.ashx", false) unless @@setchildaccountpasswordcmd @@setchildaccountpasswordcmd end |
.SetMetadata ⇒ Object
190 191 192 193 |
# File 'lib/nvx/sds/apicommand.rb', line 190 def APICommand.SetMetadata @@setmetadatacmd = new("Metadata/SetMetadata.ashx", false) unless @@setmetadatacmd @@setmetadatacmd end |
.SetTags ⇒ Object
196 197 198 199 |
# File 'lib/nvx/sds/apicommand.rb', line 196 def APICommand.SetTags @@settagscmd = new("Metadata/SetTags.ashx", false) unless @@settagscmd @@settagscmd end |
.Sideload ⇒ Object
146 147 148 149 |
# File 'lib/nvx/sds/apicommand.rb', line 146 def APICommand.Sideload @@sideloadcmd = new("IMFS/Sideload.ashx", false) unless @@sideloadcmd @@sideloadcmd end |
.VideoTranscode ⇒ Object
257 258 259 260 |
# File 'lib/nvx/sds/apicommand.rb', line 257 def APICommand.VideoTranscode @@videotranscodecmd = new("Video/Transcode.ashx", false) unless @@videotranscodecmd @@videotranscodecmd end |
Instance Method Details
#command_path ⇒ Object
The namespace/path of the command.
28 29 30 |
# File 'lib/nvx/sds/apicommand.rb', line 28 def command_path @command_path end |
#is_secure? ⇒ Boolean
Used to determine if a command is using SSL.
23 24 25 |
# File 'lib/nvx/sds/apicommand.rb', line 23 def is_secure? @is_secure end |