# 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 queue build parameters based on a build task.
    #
    class BuildTaskBuildRequest < QueueBuildRequest

      include MsRestAzure


      def initialize
        @type = "BuildTask"
      end

      attr_accessor :type

      # @return [String] The name of build task against which build has to be
      # queued.
      attr_accessor :build_task_name


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