Class: Azure::Compute::Mgmt::V2018_06_01::Models::GalleryOSDiskImage

Inherits:
GalleryDiskImage
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_osdisk_image.rb

Overview

This is the OS disk image.

Instance Attribute Summary

Attributes inherited from GalleryDiskImage

#host_caching, #size_in_gb

Class Method Summary collapse

Class Method Details

.mapperObject

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



20
21
22
23
24
25
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
# File 'lib/2018-06-01/generated/azure_mgmt_compute/models/gallery_osdisk_image.rb', line 20

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