# 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::Storage::Mgmt::V2018_11_01
  module Models
    #
    # The Get Storage Account ManagementPolicies operation response.
    #
    class ManagementPolicy < Resource

      include MsRestAzure

      # @return [DateTime] Returns the date and time the ManagementPolicies was
      # last modified.
      attr_accessor :last_modified_time

      # @return [ManagementPolicySchema] The Storage Account ManagementPolicy,
      # in JSON format. See more details in:
      # https://docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.
      attr_accessor :policy


      #
      # Mapper for ManagementPolicy class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'ManagementPolicy',
          type: {
            name: 'Composite',
            class_name: 'ManagementPolicy',
            model_properties: {
              id: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'id',
                type: {
                  name: 'String'
                }
              },
              name: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              },
              type: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'type',
                type: {
                  name: 'String'
                }
              },
              last_modified_time: {
                client_side_validation: true,
                required: false,
                read_only: true,
                serialized_name: 'properties.lastModifiedTime',
                type: {
                  name: 'DateTime'
                }
              },
              policy: {
                client_side_validation: true,
                required: true,
                serialized_name: 'properties.policy',
                type: {
                  name: 'Composite',
                  class_name: 'ManagementPolicySchema'
                }
              }
            }
          }
        }
      end
    end
  end
end
