class Azure::Compute::Mgmt::V2016_04_30_preview::Models::Snapshot

Snapshot resource.

Attributes

account_type[RW]

@return [StorageAccountTypes] the storage account type of the disk. Possible values include: 'Standard_LRS', 'Premium_LRS'

creation_data[RW]

@return [CreationData] Disk source information. CreationData information cannot be changed after the disk has been created.

disk_size_gb[RW]

@return [Integer] If creationData.createOption is Empty, this field is mandatory and it indicates the size of the VHD to create. If this field is present for updates or creation with other options, it indicates a resize. Resizes are only allowed if the disk is not attached to a running VM, and can only increase the disk's size.

encryption_settings[RW]

@return [EncryptionSettings] Encryption settings for disk or snapshot

os_type[RW]

@return [OperatingSystemTypes] The Operating System type. Possible values include: 'Windows', 'Linux'

owner_id[RW]

@return [String] A relative URI containing the VM id that has the disk attached.

provisioning_state[RW]

@return [String] The disk provisioning state.

time_created[RW]

@return [DateTime] The time when the disk was created.

Public Class Methods

mapper() click to toggle source

Mapper for Snapshot class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2016-04-30-preview/generated/azure_mgmt_compute/models/snapshot.rb, line 51
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Snapshot',
    type: {
      name: 'Composite',
      class_name: 'Snapshot',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        location: {
          client_side_validation: true,
          required: true,
          serialized_name: 'location',
          type: {
            name: 'String'
          }
        },
        tags: {
          client_side_validation: true,
          required: false,
          serialized_name: 'tags',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'StringElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        account_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.accountType',
          type: {
            name: 'Enum',
            module: 'StorageAccountTypes'
          }
        },
        time_created: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.timeCreated',
          type: {
            name: 'DateTime'
          }
        },
        os_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.osType',
          type: {
            name: 'Enum',
            module: 'OperatingSystemTypes'
          }
        },
        creation_data: {
          client_side_validation: true,
          required: true,
          serialized_name: 'properties.creationData',
          type: {
            name: 'Composite',
            class_name: 'CreationData'
          }
        },
        disk_size_gb: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.diskSizeGB',
          type: {
            name: 'Number'
          }
        },
        encryption_settings: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.encryptionSettings',
          type: {
            name: 'Composite',
            class_name: 'EncryptionSettings'
          }
        },
        owner_id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.ownerId',
          type: {
            name: 'String'
          }
        },
        provisioning_state: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.provisioningState',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end