Class: Azure::Storage::Mgmt::V2021_01_01::Models::ManagementPolicySchema

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2021-01-01/generated/azure_mgmt_storage/models/management_policy_schema.rb

Overview

The Storage Account ManagementPolicies Rules. See more details in: docs.microsoft.com/en-us/azure/storage/common/storage-lifecycle-managment-concepts.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#rulesArray<ManagementPolicyRule>

Returns:



19
20
21
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/management_policy_schema.rb', line 19

def rules
  @rules
end

Class Method Details

.mapperObject

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



26
27
28
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
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/management_policy_schema.rb', line 26

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ManagementPolicySchema',
    type: {
      name: 'Composite',
      class_name: 'ManagementPolicySchema',
      model_properties: {
        rules: {
          client_side_validation: true,
          required: true,
          serialized_name: 'rules',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ManagementPolicyRuleElementType',
                type: {
                  name: 'Composite',
                  class_name: 'ManagementPolicyRule'
                }
            }
          }
        }
      }
    }
  }
end