Class: Azure::BatchAI::Mgmt::V2018_03_01::Models::File

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-03-01/generated/azure_mgmt_batchai/models/file.rb

Overview

Properties of the file or directory.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#content_lengthInteger

Returns The file size. The file size.

Returns:

  • (Integer)

    The file size. The file size.



30
31
32
# File 'lib/2018-03-01/generated/azure_mgmt_batchai/models/file.rb', line 30

def content_length
  @content_length
end

#download_urlString

file. The downloadUrl is not returned for directories.

Returns:

  • (String)

    Will contain an URL to download the corresponding



23
24
25
# File 'lib/2018-03-01/generated/azure_mgmt_batchai/models/file.rb', line 23

def download_url
  @download_url
end

#is_directoryBoolean

Returns Indicates if the file is a directory.

Returns:

  • (Boolean)

    Indicates if the file is a directory.



19
20
21
# File 'lib/2018-03-01/generated/azure_mgmt_batchai/models/file.rb', line 19

def is_directory
  @is_directory
end

#last_modifiedDateTime

time at which the file was last modified.

Returns:

  • (DateTime)

    The time at which the file was last modified. The



27
28
29
# File 'lib/2018-03-01/generated/azure_mgmt_batchai/models/file.rb', line 27

def last_modified
  @last_modified
end

#nameString

Returns Name of the file.

Returns:

  • (String)

    Name of the file.



16
17
18
# File 'lib/2018-03-01/generated/azure_mgmt_batchai/models/file.rb', line 16

def name
  @name
end

Class Method Details

.mapperObject

Mapper for File class as Ruby Hash. This will be used for serialization/deserialization.



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
# File 'lib/2018-03-01/generated/azure_mgmt_batchai/models/file.rb', line 37

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: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        is_directory: {
          client_side_validation: true,
          required: true,
          serialized_name: 'isDirectory',
          type: {
            name: 'Boolean'
          }
        },
        download_url: {
          client_side_validation: true,
          required: false,
          serialized_name: 'downloadUrl',
          type: {
            name: 'String'
          }
        },
        last_modified: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.lastModified',
          type: {
            name: 'DateTime'
          }
        },
        content_length: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.contentLength',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end