Class: Azure::BatchAI::Mgmt::V2017_09_01_preview::Models::File
- Inherits:
-
Object
- Object
- Azure::BatchAI::Mgmt::V2017_09_01_preview::Models::File
- Includes:
- MsRestAzure
- Defined in:
- lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/file.rb
Overview
Properties of the file.
Instance Attribute Summary collapse
-
#content_length ⇒ Integer
The file size.
- #download_url ⇒ String
-
#last_modified ⇒ DateTime
time at which the file was last modified.
-
#name ⇒ String
File name.
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.
31 32 33 |
# File 'lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/file.rb', line 31 def content_length @content_length end |
#download_url ⇒ String
mystg.blob.core.windows.net/mycontainer/myModel_1.dnn. This will be returned only if the model has been archived. During job run, this won’t be returned and customers can use SSH tunneling to download. Users can use Get Remote Login Information API to get the IP address and port information of all the compute nodes running the job.
24 25 26 |
# File 'lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/file.rb', line 24 def download_url @download_url end |
#last_modified ⇒ DateTime
time at which the file was last modified.
28 29 30 |
# File 'lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/file.rb', line 28 def last_modified @last_modified end |
#name ⇒ String
Returns file name.
16 17 18 |
# File 'lib/2017-09-01-preview/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.
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 |
# File 'lib/2017-09-01-preview/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: true, serialized_name: 'name', type: { name: 'String' } }, download_url: { client_side_validation: true, required: true, 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 |