class Azure::Compute::Mgmt::V2018_06_01::Models::GalleryDiskImage

This is the disk image base class.

Attributes

host_caching[RW]

@return [HostCaching] The host caching of the disk. Valid values are 'None', 'ReadOnly', and 'ReadWrite'. Possible values include: 'None', 'ReadOnly', 'ReadWrite'

size_in_gb[RW]

@return [Integer] This property indicates the size of the VHD to be created.

Public Class Methods

mapper() click to toggle source

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

# File lib/2018-06-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