# 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_07_01 module Models # # The ImmutabilityPolicy property of a blob container, including Id, # resource name, resource type, Etag. # class ImmutabilityPolicy < AzureEntityResource include MsRestAzure # @return [Integer] The immutability period for the blobs in the # container since the policy creation, in days. attr_accessor :immutability_period_since_creation_in_days # @return [ImmutabilityPolicyState] The ImmutabilityPolicy state of a # blob container, possible values include: Locked and Unlocked. Possible # values include: 'Locked', 'Unlocked' attr_accessor :state # # Mapper for ImmutabilityPolicy class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ImmutabilityPolicy', type: { name: 'Composite', class_name: 'ImmutabilityPolicy', 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' } }, etag: { client_side_validation: true, required: false, read_only: true, serialized_name: 'etag', type: { name: 'String' } }, immutability_period_since_creation_in_days: { client_side_validation: true, required: true, serialized_name: 'properties.immutabilityPeriodSinceCreationInDays', type: { name: 'Number' } }, state: { client_side_validation: true, required: false, read_only: true, serialized_name: 'properties.state', type: { name: 'String' } } } } } end end end end