Class: Azure::Batch::Mgmt::V2017_09_01::Models::ResourceFile

Inherits:
Object
  • Object
show all
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

Class Method Summary collapse

Instance Attribute Details

#blob_sourceString

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.

Returns:

  • (String)

    The URL of the file within Azure Blob Storage. This



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_modeString

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.

Returns:

  • (String)

    The file permission mode attribute in octal format.



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_pathString

the file, relative to the task’s working directory.

Returns:

  • (String)

    The location on the compute node to which to download



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

.mapperObject

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