Class: Azure::ContainerInstance::Mgmt::V2018_10_01::Models::VolumeMount

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-10-01/generated/azure_mgmt_container_instance/models/volume_mount.rb

Overview

The properties of the volume mount.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#mount_pathString

be mounted. Must not contain colon (:).

Returns:

  • (String)

    The path within the container where the volume should



20
21
22
# File 'lib/2018-10-01/generated/azure_mgmt_container_instance/models/volume_mount.rb', line 20

def mount_path
  @mount_path
end

#nameString

Returns The name of the volume mount.

Returns:

  • (String)

    The name of the volume mount.



16
17
18
# File 'lib/2018-10-01/generated/azure_mgmt_container_instance/models/volume_mount.rb', line 16

def name
  @name
end

#read_onlyBoolean

read-only.

Returns:

  • (Boolean)

    The flag indicating whether the volume mount is



24
25
26
# File 'lib/2018-10-01/generated/azure_mgmt_container_instance/models/volume_mount.rb', line 24

def read_only
  @read_only
end

Class Method Details

.mapperObject

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



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
57
58
59
60
61
62
63
64
65
66
67
# File 'lib/2018-10-01/generated/azure_mgmt_container_instance/models/volume_mount.rb', line 31

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'VolumeMount',
    type: {
      name: 'Composite',
      class_name: 'VolumeMount',
      model_properties: {
        name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        mount_path: {
          client_side_validation: true,
          required: true,
          serialized_name: 'mountPath',
          type: {
            name: 'String'
          }
        },
        read_only: {
          client_side_validation: true,
          required: false,
          serialized_name: 'readOnly',
          type: {
            name: 'Boolean'
          }
        }
      }
    }
  }
end