Class: Azure::Compute::Mgmt::V2018_04_01::Models::ImageDiskReference
- Inherits:
-
Object
- Object
- Azure::Compute::Mgmt::V2018_04_01::Models::ImageDiskReference
- Includes:
- MsRestAzure
- Defined in:
- lib/2018-04-01/generated/azure_mgmt_compute/models/image_disk_reference.rb
Overview
The source image used for creating the disk.
Instance Attribute Summary collapse
-
#id ⇒ String
Repository or user image reference.
-
#lun ⇒ Integer
this is an index that indicates which of the data disks in the image to use.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ImageDiskReference class as Ruby Hash.
Instance Attribute Details
#id ⇒ String
Repository or user image reference.
17 18 19 |
# File 'lib/2018-04-01/generated/azure_mgmt_compute/models/image_disk_reference.rb', line 17 def id @id end |
#lun ⇒ Integer
this is an index that indicates which of the data disks in the image to use. For OS disks, this field is null.
22 23 24 |
# File 'lib/2018-04-01/generated/azure_mgmt_compute/models/image_disk_reference.rb', line 22 def lun @lun end |
Class Method Details
.mapper ⇒ Object
Mapper for ImageDiskReference 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 |
# File 'lib/2018-04-01/generated/azure_mgmt_compute/models/image_disk_reference.rb', line 29 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ImageDiskReference', type: { name: 'Composite', class_name: 'ImageDiskReference', model_properties: { id: { client_side_validation: true, required: true, serialized_name: 'id', type: { name: 'String' } }, lun: { client_side_validation: true, required: false, serialized_name: 'lun', type: { name: 'Number' } } } } } end |