class Azure::Compute::Mgmt::V2016_04_30_preview::Models::CreationData
Data used when creating a disk.
Attributes
@return [DiskCreateOption] This enumerates the possible sources of a disk's creation. Possible values include: 'Empty', 'Attach', 'FromImage', 'Import', 'Copy', 'Restore'
@return [ImageDiskReference] Disk
source information.
@return [String] If createOption is Copy, this is the ARM id of the source snapshot or disk. If createOption is Restore, this is the ARM-like id of the source disk restore point.
@return [String] If createOption is Import, this is a SAS URI to a blob to be imported into a managed disk. If createOption is Copy, this is a relative Uri containing the id of the source snapshot to be copied into a managed disk.
Public Class Methods
Mapper for CreationData
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2016-04-30-preview/generated/azure_mgmt_compute/models/creation_data.rb, line 44 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'CreationData', type: { name: 'Composite', class_name: 'CreationData', model_properties: { create_option: { client_side_validation: true, required: true, serialized_name: 'createOption', type: { name: 'Enum', module: 'DiskCreateOption' } }, storage_account_id: { client_side_validation: true, required: false, serialized_name: 'storageAccountId', type: { name: 'String' } }, image_reference: { client_side_validation: true, required: false, serialized_name: 'imageReference', type: { name: 'Composite', class_name: 'ImageDiskReference' } }, source_uri: { client_side_validation: true, required: false, serialized_name: 'sourceUri', type: { name: 'String' } }, source_resource_id: { client_side_validation: true, required: false, serialized_name: 'sourceResourceId', type: { name: 'String' } } } } } end