class Azure::DevTestLabs::Mgmt::V2018_09_15::Models::CustomImagePropertiesFromVmFragment

Properties for creating a custom image from a virtual machine.

Attributes

linux_os_info[RW]

@return [LinuxOsInfoFragment] The Linux OS information of the VM.

source_vm_id[RW]

@return [String] The source vm identifier.

windows_os_info[RW]

@return [WindowsOsInfoFragment] The Windows OS information of the VM.

Private Class Methods

mapper() click to toggle source

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

# File lib/2018-09-15/generated/azure_mgmt_devtestlabs/models/custom_image_properties_from_vm_fragment.rb, line 29
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'CustomImagePropertiesFromVmFragment',
    type: {
      name: 'Composite',
      class_name: 'CustomImagePropertiesFromVmFragment',
      model_properties: {
        source_vm_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'sourceVmId',
          type: {
            name: 'String'
          }
        },
        windows_os_info: {
          client_side_validation: true,
          required: false,
          serialized_name: 'windowsOsInfo',
          type: {
            name: 'Composite',
            class_name: 'WindowsOsInfoFragment'
          }
        },
        linux_os_info: {
          client_side_validation: true,
          required: false,
          serialized_name: 'linuxOsInfo',
          type: {
            name: 'Composite',
            class_name: 'LinuxOsInfoFragment'
          }
        }
      }
    }
  }
end