Class: Azure::Compute::Mgmt::V2018_04_01::Models::ImageStorageProfile

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

Overview

Describes a storage profile.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#data_disksArray<ImageDataDisk>

to add a data disk to a virtual machine.
For more information about disks, see [About disks and VHDs for Azure virtual machines](docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).

Returns:

  • (Array<ImageDataDisk>)

    Specifies the parameters that are used



25
26
27
# File 'lib/2018-04-01/generated/azure_mgmt_compute/models/image_storage_profile.rb', line 25

def data_disks
  @data_disks
end

#os_diskImageOSDisk

disk used by the virtual machine.
For more information about disks, see [About disks and VHDs for Azure virtual machines](docs.microsoft.com/azure/virtual-machines/virtual-machines-windows-about-disks-vhds?toc=%2fazure%2fvirtual-machines%2fwindows%2ftoc.json).

Returns:

  • (ImageOSDisk)

    Specifies information about the operating system



19
20
21
# File 'lib/2018-04-01/generated/azure_mgmt_compute/models/image_storage_profile.rb', line 19

def os_disk
  @os_disk
end

#zone_resilientBoolean

Default is false. Zone resilient images can be created only in regions that provide Zone Redundant Storage (ZRS).

Returns:

  • (Boolean)

    Specifies whether an image is zone resilient or not.



30
31
32
# File 'lib/2018-04-01/generated/azure_mgmt_compute/models/image_storage_profile.rb', line 30

def zone_resilient
  @zone_resilient
end

Class Method Details

.mapperObject

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



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
74
75
76
77
78
79
80
81
82
83
# File 'lib/2018-04-01/generated/azure_mgmt_compute/models/image_storage_profile.rb', line 37

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ImageStorageProfile',
    type: {
      name: 'Composite',
      class_name: 'ImageStorageProfile',
      model_properties: {
        os_disk: {
          client_side_validation: true,
          required: false,
          serialized_name: 'osDisk',
          type: {
            name: 'Composite',
            class_name: 'ImageOSDisk'
          }
        },
        data_disks: {
          client_side_validation: true,
          required: false,
          serialized_name: 'dataDisks',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ImageDataDiskElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ImageDataDisk'
                }
            }
          }
        },
        zone_resilient: {
          client_side_validation: true,
          required: false,
          serialized_name: 'zoneResilient',
          type: {
            name: 'Boolean'
          }
        }
      }
    }
  }
end