Class: Azure::BatchAI::Mgmt::V2018_03_01::Models::File
- Inherits:
-
Object
- Object
- Azure::BatchAI::Mgmt::V2018_03_01::Models::File
- 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
-
#content_length ⇒ Integer
The file size.
-
#download_url ⇒ String
file.
-
#is_directory ⇒ Boolean
Indicates if the file is a directory.
-
#last_modified ⇒ DateTime
time at which the file was last modified.
-
#name ⇒ String
Name of the file.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for File class as Ruby Hash.
Instance Attribute Details
#content_length ⇒ Integer
Returns 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_url ⇒ String
file. The downloadUrl is not returned for directories.
23 24 25 |
# File 'lib/2018-03-01/generated/azure_mgmt_batchai/models/file.rb', line 23 def download_url @download_url end |
#is_directory ⇒ Boolean
Returns 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_modified ⇒ DateTime
time at which the file was last modified.
27 28 29 |
# File 'lib/2018-03-01/generated/azure_mgmt_batchai/models/file.rb', line 27 def last_modified @last_modified end |
#name ⇒ String
Returns 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
.mapper ⇒ Object
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 |