# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::DevTestLabs::Mgmt::V2018_09_15
  module Models
    #
    # Properties for creating a custom image from a virtual machine.
    #
    class CustomImagePropertiesFromVmFragment

      include MsRestAzure

      # @return [String] The source vm identifier.
      attr_accessor :source_vm_id

      # @return [WindowsOsInfoFragment] The Windows OS information of the VM.
      attr_accessor :windows_os_info

      # @return [LinuxOsInfoFragment] The Linux OS information of the VM.
      attr_accessor :linux_os_info


      #
      # Mapper for CustomImagePropertiesFromVmFragment class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      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
    end
  end
end
