class Azure::Compute::Mgmt::V2020_09_30::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', 'Upload'
@return [ImageDiskReference] Required if creating from a Gallery Image. The id of the ImageDiskReference
will be the ARM id of the shared galley image version from which to create a disk.
@return [ImageDiskReference] Disk
source information.
@return [Integer] Logical sector size in bytes for Ultra disks. Supported values are 512 ad 4096. 4096 is the default.
@return [String] If createOption is Copy, this is the ARM id of the source snapshot or disk.
@return [String] If this field is set, this is the unique id identifying the source of this resource.
@return [String] If createOption is Import, this is the URI of a blob to be imported into a managed disk.
@return [Integer] If createOption is Upload, this is the size of the contents of the upload including the VHD footer. This value should be between 20972032 (20 MiB + 512 bytes for the VHD footer) and 35183298347520 bytes (32 TiB + 512 bytes for the VHD footer).
Private Class Methods
Mapper for CreationData
class as Ruby Hash. This will be used for serialization/deserialization.
# File lib/2020-09-30/generated/azure_mgmt_compute/models/creation_data.rb, line 60 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' } }, gallery_image_reference: { client_side_validation: true, required: false, serialized_name: 'galleryImageReference', 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' } }, source_unique_id: { client_side_validation: true, required: false, read_only: true, serialized_name: 'sourceUniqueId', type: { name: 'String' } }, upload_size_bytes: { client_side_validation: true, required: false, serialized_name: 'uploadSizeBytes', type: { name: 'Number' } }, logical_sector_size: { client_side_validation: true, required: false, serialized_name: 'logicalSectorSize', type: { name: 'Number' } } } } } end