Class: AsposeEmailCloud::FolderApi

Inherits:
Object
  • Object
show all
Defined in:
lib/aspose-email-cloud/api/folder_api.rb

Overview

FolderApi operations.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_invoker) ⇒ FolderApi

Initializes a new instance of the FolderApi class.

Parameters:



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_invokerObject (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

Parameters:

Returns:

  • (nil)


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

Parameters:

Returns:

  • (nil)


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

Parameters:

Returns:

  • (nil)


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

Parameters:

Returns:



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

Parameters:

Returns:

  • (nil)


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