Class: GroupDocsComparisonCloud::DeleteFileRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/groupdocs_comparison_cloud/api/file_api.rb

Overview

Request model for delete_file operation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, storage_name = nil, version_id = nil) ⇒ DeleteFileRequest

Initializes a new instance.

Parameters:

  • path

    File path e.g. ‘/folder/file.ext’

  • storage_name (defaults to: nil)

    Storage name

  • version_id (defaults to: nil)

    File version ID to delete



556
557
558
559
560
# File 'lib/groupdocs_comparison_cloud/api/file_api.rb', line 556

def initialize(path, storage_name = nil, version_id = nil)
   self.path = path
   self.storage_name = storage_name
   self.version_id = version_id
end

Instance Attribute Details

#pathObject

File path e.g. ‘/folder/file.ext’



545
546
547
# File 'lib/groupdocs_comparison_cloud/api/file_api.rb', line 545

def path
  @path
end

#storage_nameObject

Storage name



547
548
549
# File 'lib/groupdocs_comparison_cloud/api/file_api.rb', line 547

def storage_name
  @storage_name
end

#version_idObject

File version ID to delete



549
550
551
# File 'lib/groupdocs_comparison_cloud/api/file_api.rb', line 549

def version_id
  @version_id
end