Class: Azure::BatchAI::Mgmt::V2018_03_01::Models::FileServerReference

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-03-01/generated/azure_mgmt_batchai/models/file_server_reference.rb

Overview

Provides required information, for the service to be able to mount Azure FileShare on the cluster nodes.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#file_serverResourceId

Returns Reference to the file server resource.

Returns:

  • (ResourceId)

    Reference to the file server resource.



17
18
19
# File 'lib/2018-03-01/generated/azure_mgmt_batchai/models/file_server_reference.rb', line 17

def file_server
  @file_server
end

#mount_optionsString

Returns Specifies the mount options for File Server.

Returns:

  • (String)

    Specifies the mount options for File Server.



31
32
33
# File 'lib/2018-03-01/generated/azure_mgmt_batchai/models/file_server_reference.rb', line 31

def mount_options
  @mount_options
end

#relative_mount_pathString

the File Server will be mounted. Note that all cluster level file servers will be mounted under $AZ_BATCHAI_MOUNT_ROOT location and job level file servers will be mounted under $AZ_BATCHAI_JOB_MOUNT_ROOT.

Returns:

  • (String)

    Specifies the relative path on the compute node where



28
29
30
# File 'lib/2018-03-01/generated/azure_mgmt_batchai/models/file_server_reference.rb', line 28

def relative_mount_path
  @relative_mount_path
end

#source_directoryString

needs to be mounted. If this property is not specified, the entire File Server will be mounted.

Returns:

  • (String)

    Specifies the source directory in File Server that



22
23
24
# File 'lib/2018-03-01/generated/azure_mgmt_batchai/models/file_server_reference.rb', line 22

def source_directory
  @source_directory
end

Class Method Details

.mapperObject

Mapper for FileServerReference 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
83
# File 'lib/2018-03-01/generated/azure_mgmt_batchai/models/file_server_reference.rb', line 38

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'FileServerReference',
    type: {
      name: 'Composite',
      class_name: 'FileServerReference',
      model_properties: {
        file_server: {
          client_side_validation: true,
          required: true,
          serialized_name: 'fileServer',
          type: {
            name: 'Composite',
            class_name: 'ResourceId'
          }
        },
        source_directory: {
          client_side_validation: true,
          required: false,
          serialized_name: 'sourceDirectory',
          type: {
            name: 'String'
          }
        },
        relative_mount_path: {
          client_side_validation: true,
          required: true,
          serialized_name: 'relativeMountPath',
          type: {
            name: 'String'
          }
        },
        mount_options: {
          client_side_validation: true,
          required: false,
          serialized_name: 'mountOptions',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end