Class: AsposeEmailCloud::FolderApi
- Inherits:
-
Object
- Object
- AsposeEmailCloud::FolderApi
- Defined in:
- lib/aspose-email-cloud/api/folder_api.rb
Overview
FolderApi operations.
Instance Attribute Summary collapse
-
#api_invoker ⇒ Object
readonly
Returns the value of attribute api_invoker.
Instance Method Summary collapse
-
#copy_folder(request) ⇒ nil
Copy folder.
-
#create_folder(request) ⇒ nil
Create the folder.
-
#delete_folder(request) ⇒ nil
Delete folder.
-
#get_files_list(request) ⇒ FilesList
Get all files and folders within a folder.
-
#initialize(api_invoker) ⇒ FolderApi
constructor
Initializes a new instance of the FolderApi class.
-
#move_folder(request) ⇒ nil
Move folder.
Constructor Details
#initialize(api_invoker) ⇒ FolderApi
Initializes a new instance of the FolderApi class.
45 46 47 |
# File 'lib/aspose-email-cloud/api/folder_api.rb', line 45 def initialize(api_invoker) @api_invoker = api_invoker end |
Instance Attribute Details
#api_invoker ⇒ Object (readonly)
Returns the value of attribute api_invoker.
31 32 33 |
# File 'lib/aspose-email-cloud/api/folder_api.rb', line 31 def api_invoker @api_invoker end |
Instance Method Details
#copy_folder(request) ⇒ nil
Copy folder
52 53 54 55 56 |
# File 'lib/aspose-email-cloud/api/folder_api.rb', line 52 def copy_folder(request) http_request = request.to_http_info(@api_invoker.api_client) @api_invoker.make_request(http_request, :PUT, nil) nil end |
#create_folder(request) ⇒ nil
Create the folder
61 62 63 64 65 |
# File 'lib/aspose-email-cloud/api/folder_api.rb', line 61 def create_folder(request) http_request = request.to_http_info(@api_invoker.api_client) @api_invoker.make_request(http_request, :PUT, nil) nil end |
#delete_folder(request) ⇒ nil
Delete folder
70 71 72 73 74 |
# File 'lib/aspose-email-cloud/api/folder_api.rb', line 70 def delete_folder(request) http_request = request.to_http_info(@api_invoker.api_client) @api_invoker.make_request(http_request, :DELETE, nil) nil end |
#get_files_list(request) ⇒ FilesList
Get all files and folders within a folder
79 80 81 82 |
# File 'lib/aspose-email-cloud/api/folder_api.rb', line 79 def get_files_list(request) http_request = request.to_http_info(@api_invoker.api_client) @api_invoker.make_request(http_request, :GET, 'FilesList') end |
#move_folder(request) ⇒ nil
Move folder
87 88 89 90 91 |
# File 'lib/aspose-email-cloud/api/folder_api.rb', line 87 def move_folder(request) http_request = request.to_http_info(@api_invoker.api_client) @api_invoker.make_request(http_request, :PUT, nil) nil end |