Class: Azure::Compute::Mgmt::V2019_03_01::Models::GalleryDiskImage

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

Overview

This is the disk image base class.

Direct Known Subclasses

GalleryDataDiskImage, GalleryOSDiskImage

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#host_cachingHostCaching

'None', 'ReadOnly', and 'ReadWrite'. Possible values include: 'None', 'ReadOnly', 'ReadWrite'

Returns:

  • (HostCaching)

    The host caching of the disk. Valid values are



22
23
24
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/gallery_disk_image.rb', line 22

def host_caching
  @host_caching
end

#size_in_gbInteger

created.

Returns:

  • (Integer)

    This property indicates the size of the VHD to be



17
18
19
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/gallery_disk_image.rb', line 17

def size_in_gb
  @size_in_gb
end

Class Method Details

.mapperObject

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



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
# File 'lib/2019-03-01/generated/azure_mgmt_compute/models/gallery_disk_image.rb', line 29

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'GalleryDiskImage',
    type: {
      name: 'Composite',
      class_name: 'GalleryDiskImage',
      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,
          read_only: true,
          serialized_name: 'hostCaching',
          type: {
            name: 'Enum',
            module: 'HostCaching'
          }
        }
      }
    }
  }
end