Class: Azure::ServiceFabric::V6_3_0_9::Models::ContainerVolume

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/6.3.0.9/generated/azure_service_fabric/models/container_volume.rb

Overview

Describes how a volume is attached to a container.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#destination_pathString

should be mounted. Only valid path characters are allowed.

Returns:

  • (String)

    The path within the container at which the volume



24
25
26
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/container_volume.rb', line 24

def destination_path
  @destination_path
end

#nameString

Returns Name of the volume.

Returns:

  • (String)

    Name of the volume.



16
17
18
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/container_volume.rb', line 16

def name
  @name
end

#read_onlyBoolean

Default is ‘false’.

Returns:

  • (Boolean)

    The flag indicating whether the volume is read only.



20
21
22
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/container_volume.rb', line 20

def read_only
  @read_only
end

Class Method Details

.mapperObject

Mapper for ContainerVolume 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/6.3.0.9/generated/azure_service_fabric/models/container_volume.rb', line 31

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