class Azure::Compute::Mgmt::V2018_04_01::Models::CreationData
Data used when creating a disk.
Attributes
create_option[RW]
@return [DiskCreateOption] This enumerates the possible sources of a disk's creation. Possible values include: 'Empty', 'Attach', 'FromImage', 'Import', 'Copy', 'Restore'
image_reference[RW]
@return [ImageDiskReference] Disk
source information.
source_resource_id[RW]
@return [String] If createOption is Copy, this is the ARM id of the source snapshot or disk.
source_uri[RW]
@return [String] If createOption is Import, this is the URI of a blob to be imported into a managed disk.
Public Class Methods
mapper()
click to toggle source
Mapper for CreationData
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2018-04-01/generated/azure_mgmt_compute/models/creation_data.rb, line 41 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: 'String' } }, 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