class Apcera::FileListing
Attributes
name[RW]
size[RW]
Public Class Methods
attribute_map()
click to toggle source
attribute mapping from ruby-style variable name to JSON key
# File lib/apcera/models/file_listing.rb, line 6 def self.attribute_map { # Name of the file or directory in the target path. Directory names are suffixed by a trailing forward slash (for example, `/app`). :'name' => :'name', # Size of the file resource; not calculated for directories. :'size' => :'size' } end
new(attributes = {})
click to toggle source
# File lib/apcera/models/file_listing.rb, line 27 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[:'name'] self.name = attributes[:'name'] end if attributes[:'size'] self.size = attributes[:'size'] end end
swagger_types()
click to toggle source
attribute type
# File lib/apcera/models/file_listing.rb, line 19 def self.swagger_types { :'name' => :'String', :'size' => :'Float' } end