# 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::DeploymentManager::Mgmt::V2019_11_01_preview
  module Models
    #
    # Defines the properties to access the artifacts using an Azure Storage SAS
    # URI.
    #
    class SasAuthentication < Authentication

      include MsRestAzure


      def initialize
        @type = "Sas"
      end

      attr_accessor :type

      # @return [String] The SAS URI to the Azure Storage blob container. Any
      # offset from the root of the container to where the artifacts are
      # located can be defined in the artifactRoot.
      attr_accessor :sas_uri


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