Class: Azure::BatchAI::Mgmt::V2017_09_01_preview::Models::FileServerReference

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-09-01-preview/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/2017-09-01-preview/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.



30
31
32
# File 'lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/file_server_reference.rb', line 30

def mount_options
  @mount_options
end

#relative_mount_pathString

the File Server will be mounted. Note that all file shares will be mounted under $AZ_BATCHAI_MOUNT_ROOT location.

Returns:

  • (String)

    Specifies the relative path on the compute node where



27
28
29
# File 'lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/file_server_reference.rb', line 27

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/2017-09-01-preview/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.



37
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_server_reference.rb', line 37

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