# 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::V2017_03_01
  module Models
    #
    # The parameters for updating a container registry.
    #
    class RegistryUpdateParameters

      include MsRestAzure

      # @return [Hash{String => String}] The tags for the container registry.
      attr_accessor :tags

      # @return [Boolean] The value that indicates whether the admin user is
      # enabled.
      attr_accessor :admin_user_enabled

      # @return [StorageAccountParameters] The parameters of a storage account
      # for the container registry. If specified, the storage account must be
      # in the same physical location as the container registry.
      attr_accessor :storage_account


      #
      # Mapper for RegistryUpdateParameters class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'RegistryUpdateParameters',
          type: {
            name: 'Composite',
            class_name: 'RegistryUpdateParameters',
            model_properties: {
              tags: {
                client_side_validation: true,
                required: false,
                serialized_name: 'tags',
                type: {
                  name: 'Dictionary',
                  value: {
                      client_side_validation: true,
                      required: false,
                      serialized_name: 'StringElementType',
                      type: {
                        name: 'String'
                      }
                  }
                }
              },
              admin_user_enabled: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.adminUserEnabled',
                type: {
                  name: 'Boolean'
                }
              },
              storage_account: {
                client_side_validation: true,
                required: false,
                serialized_name: 'properties.storageAccount',
                type: {
                  name: 'Composite',
                  class_name: 'StorageAccountParameters'
                }
              }
            }
          }
        }
      end
    end
  end
end
