Class: Azure::ServiceFabric::V6_5_0_36::Models::VolumeReference

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

Overview

Describes a reference to a volume resource.

Direct Known Subclasses

ApplicationScopedVolume

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.5.0.36/generated/azure_service_fabric/models/volume_reference.rb', line 24

def destination_path
  @destination_path
end

#nameString

Returns Name of the volume being referenced.

Returns:

  • (String)

    Name of the volume being referenced.



16
17
18
# File 'lib/6.5.0.36/generated/azure_service_fabric/models/volume_reference.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.5.0.36/generated/azure_service_fabric/models/volume_reference.rb', line 20

def read_only
  @read_only
end

Class Method Details

.mapperObject

Mapper for VolumeReference 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.5.0.36/generated/azure_service_fabric/models/volume_reference.rb', line 31

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'VolumeReference',
    type: {
      name: 'Composite',
      class_name: 'VolumeReference',
      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