# 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::V2021_01_01 module Models # # Filters limit rule actions to a subset of blobs within the storage # account. If multiple filters are defined, a logical AND is performed on # all filters. # class ManagementPolicyFilter include MsRestAzure # @return [Array] An array of strings for prefixes to be match. attr_accessor :prefix_match # @return [Array] An array of predefined enum values. Currently # blockBlob supports all tiering and delete actions. Only delete actions # are supported for appendBlob. attr_accessor :blob_types # @return [Array] An array of blob index tag based filters, # there can be at most 10 tag filters attr_accessor :blob_index_match # # Mapper for ManagementPolicyFilter class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ManagementPolicyFilter', type: { name: 'Composite', class_name: 'ManagementPolicyFilter', model_properties: { prefix_match: { client_side_validation: true, required: false, serialized_name: 'prefixMatch', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, blob_types: { client_side_validation: true, required: true, serialized_name: 'blobTypes', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'StringElementType', type: { name: 'String' } } } }, blob_index_match: { client_side_validation: true, required: false, serialized_name: 'blobIndexMatch', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'TagFilterElementType', type: { name: 'Composite', class_name: 'TagFilter' } } } } } } } end end end end