# 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::V2019_05_01_preview
  module Models
    #
    # The properties for updating the scope map.
    #
    class ScopeMapUpdateParameters

      include MsRestAzure

      # @return [String] The user friendly description of the scope map.
      attr_accessor :description

      # @return [Array<String>] The list of scope permissions for registry
      # artifacts.
      # E.g. repositories/repository-name/pull,
      # repositories/repository-name/delete
      attr_accessor :actions


      #
      # Mapper for ScopeMapUpdateParameters class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ScopeMapUpdateParameters',
          type: {
            name: 'Composite',
            class_name: 'ScopeMapUpdateParameters',
            model_properties: {
              description: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.description',
                type: {
                  name: 'String'
                }
              },
              actions: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.actions',
                type: {
                  name: 'Sequence',
                  element: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'StringElementType',
                      type: {
                        name: 'String'
                      }
                  }
                }
              }
            }
          }
        }
      end
    end
  end
end
