Class: Azure::Compute::Mgmt::V2018_04_01::Models::VirtualMachineScaleSetDataDisk
- Inherits:
- 
      Object
      
        - Object
- Azure::Compute::Mgmt::V2018_04_01::Models::VirtualMachineScaleSetDataDisk
 
- Includes:
- MsRestAzure
- Defined in:
- lib/2018-04-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb
Overview
Describes a virtual machine scale set data disk.
Instance Attribute Summary collapse
- 
  
    
      #caching  ⇒ CachingTypes 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Possible values are: 
 *None*
 *ReadOnly*
 *ReadWrite*
 Default: **None for Standard storage.
- 
  
    
      #create_option  ⇒ DiskCreateOptionTypes 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    include: 'FromImage', 'Empty', 'Attach'. 
- 
  
    
      #disk_size_gb  ⇒ Integer 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    gigabytes. 
- 
  
    
      #lun  ⇒ Integer 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM. 
- 
  
    
      #managed_disk  ⇒ VirtualMachineScaleSetManagedDiskParameters 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    parameters. 
- 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The disk name. 
- 
  
    
      #write_accelerator_enabled  ⇒ Boolean 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    or disabled on the disk. 
Class Method Summary collapse
- 
  
    
      .mapper  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Mapper for VirtualMachineScaleSetDataDisk class as Ruby Hash. 
Instance Attribute Details
#caching ⇒ CachingTypes
Possible values are: 
 *None* 
 *ReadOnly* 
 *ReadWrite* 
 Default: **None for Standard storage. ReadOnly for Premium storage**. Possible values include: 'None', 'ReadOnly', 'ReadWrite'
| 28 29 30 | # File 'lib/2018-04-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb', line 28 def caching @caching end | 
#create_option ⇒ DiskCreateOptionTypes
include: 'FromImage', 'Empty', 'Attach'
| 36 37 38 | # File 'lib/2018-04-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb', line 36 def create_option @create_option end | 
#disk_size_gb ⇒ Integer
gigabytes. This element can be used to overwrite the size of the disk in a virtual machine image. 
 This value cannot be larger than 1023 GB
| 42 43 44 | # File 'lib/2018-04-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb', line 42 def disk_size_gb @disk_size_gb end | 
#lun ⇒ Integer
This value is used to identify data disks within the VM and therefore must be unique for each data disk attached to a VM.
| 21 22 23 | # File 'lib/2018-04-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb', line 21 def lun @lun end | 
#managed_disk ⇒ VirtualMachineScaleSetManagedDiskParameters
parameters.
| 46 47 48 | # File 'lib/2018-04-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb', line 46 def managed_disk @managed_disk end | 
#name ⇒ String
Returns The disk name.
| 16 17 18 | # File 'lib/2018-04-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb', line 16 def name @name end | 
#write_accelerator_enabled ⇒ Boolean
or disabled on the disk.
| 32 33 34 | # File 'lib/2018-04-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb', line 32 def write_accelerator_enabled @write_accelerator_enabled end | 
Class Method Details
.mapper ⇒ Object
Mapper for VirtualMachineScaleSetDataDisk class as Ruby Hash. This will be used for serialization/deserialization.
| 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 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 | # File 'lib/2018-04-01/generated/azure_mgmt_compute/models/virtual_machine_scale_set_data_disk.rb', line 53 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'VirtualMachineScaleSetDataDisk', type: { name: 'Composite', class_name: 'VirtualMachineScaleSetDataDisk', model_properties: { name: { client_side_validation: true, required: false, serialized_name: 'name', type: { name: 'String' } }, lun: { client_side_validation: true, required: true, serialized_name: 'lun', type: { name: 'Number' } }, caching: { client_side_validation: true, required: false, serialized_name: 'caching', type: { name: 'Enum', module: 'CachingTypes' } }, write_accelerator_enabled: { client_side_validation: true, required: false, serialized_name: 'writeAcceleratorEnabled', type: { name: 'Boolean' } }, create_option: { client_side_validation: true, required: true, serialized_name: 'createOption', type: { name: 'String' } }, disk_size_gb: { client_side_validation: true, required: false, serialized_name: 'diskSizeGB', type: { name: 'Number' } }, managed_disk: { client_side_validation: true, required: false, serialized_name: 'managedDisk', type: { name: 'Composite', class_name: 'VirtualMachineScaleSetManagedDiskParameters' } } } } } end |