Class: Azure::BatchAI::Mgmt::V2017_09_01_preview::Models::LocalDataVolume

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/local_data_volume.rb

Overview

Represents mapping of host directories to directories in the container.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#host_pathString

directory in the container.

Returns:

  • (String)

    The path on the host that is to be mounted as a



17
18
19
# File 'lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/local_data_volume.rb', line 17

def host_path
  @host_path
end

#local_pathString

mounted.

Returns:

  • (String)

    The container local path where the host directory is



21
22
23
# File 'lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/local_data_volume.rb', line 21

def local_path
  @local_path
end

Class Method Details

.mapperObject

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



28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# File 'lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/local_data_volume.rb', line 28

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'LocalDataVolume',
    type: {
      name: 'Composite',
      class_name: 'LocalDataVolume',
      model_properties: {
        host_path: {
          client_side_validation: true,
          required: true,
          serialized_name: 'hostPath',
          type: {
            name: 'String'
          }
        },
        local_path: {
          client_side_validation: true,
          required: true,
          serialized_name: 'localPath',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end