class Azure::Batch::Mgmt::V2017_09_01::Models::ResourceFile

A file to be downloaded from Azure blob storage to a compute node.

Attributes

blob_source[RW]

@return [String] The URL of the file within Azure Blob Storage. This 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.

file_mode[RW]

@return [String] The file permission mode attribute in octal format. 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.

file_path[RW]

@return [String] The location on the compute node to which to download the file, relative to the task's working directory.

Public Class Methods

mapper() click to toggle source

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

# 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