# 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_09_01
  module Models
    #
    # Base properties for updating any task step.
    #
    class TaskStepUpdateParameters

      include MsRestAzure

      @@discriminatorMap = Hash.new
      @@discriminatorMap["Docker"] = "DockerBuildStepUpdateParameters"
      @@discriminatorMap["FileTask"] = "FileTaskStepUpdateParameters"
      @@discriminatorMap["EncodedTask"] = "EncodedTaskStepUpdateParameters"

      def initialize
        @type = "TaskStepUpdateParameters"
      end

      attr_accessor :type

      # @return [String] The URL(absolute or relative) of the source context
      # for the task step.
      attr_accessor :context_path

      # @return [String] The token (git PAT or SAS token of storage account
      # blob) associated with the context for a step.
      attr_accessor :context_access_token


      #
      # Mapper for TaskStepUpdateParameters class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'TaskStepUpdateParameters',
          type: {
            name: 'Composite',
            polymorphic_discriminator: 'type',
            uber_parent: 'TaskStepUpdateParameters',
            class_name: 'TaskStepUpdateParameters',
            model_properties: {
              context_path: {
                client_side_validation: true,
                required: false,
                serialized_name: 'contextPath',
                type: {
                  name: 'String'
                }
              },
              context_access_token: {
                client_side_validation: true,
                required: false,
                serialized_name: 'contextAccessToken',
                type: {
                  name: 'String'
                }
              }
            }
          }
        }
      end
    end
  end
end
