# 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::Web::Mgmt::V2020_09_01
  module Models
    #
    # Copy deployment slot parameters.
    #
    class CsmCopySlotEntity

      include MsRestAzure

      # @return [String] Destination deployment slot during copy operation.
      attr_accessor :target_slot

      # @return [SiteConfig] The site object which will be merged with the
      # source slot site
      # to produce new destination slot site object.
      # <code>null</code> to just copy source slot content. Otherwise a
      # <code>Site</code>
      # object with properties to override source slot site.
      attr_accessor :site_config


      #
      # Mapper for CsmCopySlotEntity class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'CsmCopySlotEntity',
          type: {
            name: 'Composite',
            class_name: 'CsmCopySlotEntity',
            model_properties: {
              target_slot: {
                client_side_validation: true,
                required: true,
                serialized_name: 'targetSlot',
                type: {
                  name: 'String'
                }
              },
              site_config: {
                client_side_validation: true,
                required: true,
                serialized_name: 'siteConfig',
                type: {
                  name: 'Composite',
                  class_name: 'SiteConfig'
                }
              }
            }
          }
        }
      end
    end
  end
end
