Class: AsposeEmailCloud::FileApi

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

Overview

FileApi operations.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_invoker) ⇒ FileApi

Initializes a new instance of the FileApi class.

Parameters:



45
46
47
# File 'lib/aspose-email-cloud/api/file_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/file_api.rb', line 31

def api_invoker
  @api_invoker
end

Instance Method Details

#copy_file(request) ⇒ nil

Copy file

Parameters:

Returns:

  • (nil)


52
53
54
55
56
# File 'lib/aspose-email-cloud/api/file_api.rb', line 52

def copy_file(request)
  http_request = request.to_http_info(@api_invoker.api_client)
  @api_invoker.make_request(http_request, :PUT, nil)
  nil
end

#delete_file(request) ⇒ nil

Delete file

Parameters:

Returns:

  • (nil)


61
62
63
64
65
# File 'lib/aspose-email-cloud/api/file_api.rb', line 61

def delete_file(request)
  http_request = request.to_http_info(@api_invoker.api_client)
  @api_invoker.make_request(http_request, :DELETE, nil)
  nil
end

#download_file(request) ⇒ File

Download file

Parameters:

Returns:

  • (File)


70
71
72
73
# File 'lib/aspose-email-cloud/api/file_api.rb', line 70

def download_file(request)
  http_request = request.to_http_info(@api_invoker.api_client)
  @api_invoker.make_request(http_request, :GET, 'File')
end

#move_file(request) ⇒ nil

Move file

Parameters:

Returns:

  • (nil)


78
79
80
81
82
# File 'lib/aspose-email-cloud/api/file_api.rb', line 78

def move_file(request)
  http_request = request.to_http_info(@api_invoker.api_client)
  @api_invoker.make_request(http_request, :PUT, nil)
  nil
end

#upload_file(request) ⇒ FilesUploadResult

Upload file

Parameters:

Returns:



87
88
89
90
# File 'lib/aspose-email-cloud/api/file_api.rb', line 87

def upload_file(request)
  http_request = request.to_http_info(@api_invoker.api_client)
  @api_invoker.make_request(http_request, :PUT, 'FilesUploadResult')
end