Class: Azure::Storage::Mgmt::V2018_11_01::Models::ManagementPolicyFilter

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-11-01/generated/azure_mgmt_storage/models/management_policy_filter.rb

Overview

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.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#blob_typesArray<String>

blockBlob is supported.

Returns:

  • (Array<String>)

    An array of predefined enum values. Only



22
23
24
# File 'lib/2018-11-01/generated/azure_mgmt_storage/models/management_policy_filter.rb', line 22

def blob_types
  @blob_types
end

#prefix_matchArray<String>

Returns An array of strings for prefixes to be match.

Returns:

  • (Array<String>)

    An array of strings for prefixes to be match.



18
19
20
# File 'lib/2018-11-01/generated/azure_mgmt_storage/models/management_policy_filter.rb', line 18

def prefix_match
  @prefix_match
end

Class Method Details

.mapperObject

Mapper for ManagementPolicyFilter class as Ruby Hash. This will be used for serialization/deserialization.



29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# File 'lib/2018-11-01/generated/azure_mgmt_storage/models/management_policy_filter.rb', line 29

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'
                }
            }
          }
        }
      }
    }
  }
end