# 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::ContainerRegistry::Mgmt::V2018_02_01_preview
  module Models
    #
    # The properties of a response to source upload request.
    #
    class SourceUploadDefinition

      include MsRestAzure

      # @return [String] The URL where the client can upload the source.
      attr_accessor :upload_url

      # @return [String] The relative path to the source. This is used to
      # submit the subsequent queue build request.
      attr_accessor :relative_path


      #
      # Mapper for SourceUploadDefinition class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'SourceUploadDefinition',
          type: {
            name: 'Composite',
            class_name: 'SourceUploadDefinition',
            model_properties: {
              upload_url: {
                client_side_validation: true,
                required: false,
                serialized_name: 'uploadUrl',
                type: {
                  name: 'String'
                }
              },
              relative_path: {
                client_side_validation: true,
                required: false,
                serialized_name: 'relativePath',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
