class Azure::BatchAI::Mgmt::V2018_05_01::Models::File
Properties of the file or directory.
Attributes
content_length[RW]
@return [Integer] Content length. The file of the size.
download_url[RW]
@return [String] Download URL. URL to download the corresponding file. The downloadUrl is not returned for directories.
file_type[RW]
@return [FileType] File
type. Type of the file. Possible values are file and directory. Possible values include: 'file', 'directory'
last_modified[RW]
@return [DateTime] Last modified time. The time at which the file was last modified.
name[RW]
@return [String] Name. Name of the file.
Private Class Methods
mapper()
click to toggle source
Mapper for File
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2018-05-01/generated/azure_mgmt_batchai/models/file.rb, line 38 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'File', type: { name: 'Composite', class_name: 'File', model_properties: { name: { client_side_validation: true, required: false, read_only: true, serialized_name: 'name', type: { name: 'String' } }, file_type: { client_side_validation: true, required: false, read_only: true, serialized_name: 'fileType', type: { name: 'String' } }, download_url: { client_side_validation: true, required: false, read_only: true, serialized_name: 'downloadUrl', type: { name: 'String' } }, last_modified: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.lastModified', type: { name: 'DateTime' } }, content_length: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.contentLength', type: { name: 'Number' } } } } } end