Class: Azure::Compute::Mgmt::V2019_12_01::Models::GalleryDataDiskImage

Inherits:
GalleryDiskImage
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_data_disk_image.rb

Overview

This is the data disk image.

Instance Attribute Summary collapse

Attributes inherited from GalleryDiskImage

#host_caching, #size_in_gb, #source

Class Method Summary collapse

Instance Attribute Details

#lunInteger

the data disk. This value is used to identify data disks within the Virtual Machine and therefore must be unique for each data disk attached to the Virtual Machine.

Returns:

  • (Integer)

    This property specifies the logical unit number of



19
20
21
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_data_disk_image.rb', line 19

def lun
  @lun
end

Class Method Details

.mapperObject

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



26
27
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# File 'lib/2019-12-01/generated/azure_mgmt_compute/models/gallery_data_disk_image.rb', line 26

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'GalleryDataDiskImage',
    type: {
      name: 'Composite',
      class_name: 'GalleryDataDiskImage',
      model_properties: {
        size_in_gb: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'sizeInGB',
          type: {
            name: 'Number'
          }
        },
        host_caching: {
          client_side_validation: true,
          required: false,
          serialized_name: 'hostCaching',
          type: {
            name: 'Enum',
            module: 'HostCaching'
          }
        },
        source: {
          client_side_validation: true,
          required: false,
          serialized_name: 'source',
          type: {
            name: 'Composite',
            class_name: 'GalleryArtifactVersionSource'
          }
        },
        lun: {
          client_side_validation: true,
          required: true,
          serialized_name: 'lun',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end