Sha256: afbeea913f8fb3b8fa29aabe4d16f7e1864bcbd11a0da34380551e57a913cb7f

Contents?: true

Size: 1.86 KB

Versions: 2

Compression:

Stored size: 1.86 KB

Contents

module AsposeStorageCloud
  # 
  class FileVersion < BaseObject
    attr_accessor :version_id, :is_latest, :name, :is_folder, :modified_date, :size, :path
    # attribute mapping from ruby-style variable name to JSON key
    def self.attribute_map
      {
        
        # 
        :'version_id' => :'VersionId',
        
        # 
        :'is_latest' => :'IsLatest',
        
        # 
        :'name' => :'Name',
        
        # 
        :'is_folder' => :'IsFolder',
        
        # 
        :'modified_date' => :'ModifiedDate',
        
        # 
        :'size' => :'Size',
        
        # 
        :'path' => :'Path'
        
      }
    end

    # attribute type
    def self.swagger_types
      {
        :'version_id' => :'String',
        :'is_latest' => :'BOOLEAN',
        :'name' => :'String',
        :'is_folder' => :'BOOLEAN',
        :'modified_date' => :'String',
        :'size' => :'Integer',
        :'path' => :'String'
        
      }
    end

    def initialize(attributes = {})
      return if !attributes.is_a?(Hash) || attributes.empty?

      # convert string to symbol for hash key
      attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}

      
      if attributes[:'VersionId']
        self.version_id = attributes[:'VersionId']
      end
      
      if attributes[:'IsLatest']
        self.is_latest = attributes[:'IsLatest']
      end
      
      if attributes[:'Name']
        self.name = attributes[:'Name']
      end
      
      if attributes[:'IsFolder']
        self.is_folder = attributes[:'IsFolder']
      end
      
      if attributes[:'ModifiedDate']
        self.modified_date = attributes[:'ModifiedDate']
      end
      
      if attributes[:'Size']
        self.size = attributes[:'Size']
      end
      
      if attributes[:'Path']
        self.path = attributes[:'Path']
      end
      
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
aspose_storage_cloud-1.0.1 lib/aspose_storage_cloud/models/file_version.rb
aspose_storage_cloud-1.0.0 lib/aspose_storage_cloud/models/file_version.rb