Class: Azure::Batch::Mgmt::V2017_09_01::Models::ResourceFile
- Inherits:
-
Object
- Object
- Azure::Batch::Mgmt::V2017_09_01::Models::ResourceFile
- Includes:
- MsRestAzure
- Defined in:
- lib/2017-09-01/generated/azure_mgmt_batch/models/resource_file.rb
Overview
A file to be downloaded from Azure blob storage to a compute node.
Instance Attribute Summary collapse
-
#blob_source ⇒ String
URL must be readable using anonymous access; that is, the Batch service does not present any credentials when downloading the blob.
-
#file_mode ⇒ String
This property applies only to files being downloaded to Linux compute nodes.
-
#file_path ⇒ String
the file, relative to the task’s working directory.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ResourceFile class as Ruby Hash.
Instance Attribute Details
#blob_source ⇒ String
URL must be readable using anonymous access; that is, the Batch service does not present any credentials when downloading the blob. There are two ways to get such a URL for a blob in Azure storage: include a Shared Access Signature (SAS) granting read permissions on the blob, or set the ACL for the blob or its container to allow public access.
22 23 24 |
# File 'lib/2017-09-01/generated/azure_mgmt_batch/models/resource_file.rb', line 22 def blob_source @blob_source end |
#file_mode ⇒ String
This property applies only to files being downloaded to Linux compute nodes. It will be ignored if it is specified for a resourceFile which will be downloaded to a Windows node. If this property is not specified for a Linux node, then a default value of 0770 is applied to the file.
33 34 35 |
# File 'lib/2017-09-01/generated/azure_mgmt_batch/models/resource_file.rb', line 33 def file_mode @file_mode end |
#file_path ⇒ String
the file, relative to the task’s working directory.
26 27 28 |
# File 'lib/2017-09-01/generated/azure_mgmt_batch/models/resource_file.rb', line 26 def file_path @file_path end |
Class Method Details
.mapper ⇒ Object
Mapper for ResourceFile class as Ruby Hash. This will be used for serialization/deserialization.
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 |
# File 'lib/2017-09-01/generated/azure_mgmt_batch/models/resource_file.rb', line 40 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ResourceFile', type: { name: 'Composite', class_name: 'ResourceFile', model_properties: { blob_source: { client_side_validation: true, required: true, serialized_name: 'blobSource', type: { name: 'String' } }, file_path: { client_side_validation: true, required: true, serialized_name: 'filePath', type: { name: 'String' } }, file_mode: { client_side_validation: true, required: false, serialized_name: 'fileMode', type: { name: 'String' } } } } } end |