class Azure::Compute::Mgmt::V2018_06_01::Models::SnapshotUpdate

Snapshot update resource.

Attributes

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'

sku[RW]

@return [SnapshotSku]

tags[RW]

@return [Hash{String => String}] Resource tags

Public Class Methods

mapper() click to toggle source

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

# File lib/2018-06-01/generated/azure_mgmt_compute/models/snapshot_update.rb, line 40
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'SnapshotUpdate',
    type: {
      name: 'Composite',
      class_name: 'SnapshotUpdate',
      model_properties: {
        os_type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.osType',
          type: {
            name: 'Enum',
            module: 'OperatingSystemTypes'
          }
        },
        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'
          }
        },
        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'
                }
            }
          }
        },
        sku: {
          client_side_validation: true,
          required: false,
          serialized_name: 'sku',
          type: {
            name: 'Composite',
            class_name: 'SnapshotSku'
          }
        }
      }
    }
  }
end