Class: Azure::Storage::Mgmt::V2019_04_01::Models::ManagementPolicyDefinition

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-04-01/generated/azure_mgmt_storage/models/management_policy_definition.rb

Overview

An object that defines the Lifecycle rule. Each definition is made up with a filters set and an actions set.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#actionsManagementPolicyAction

Returns An object that defines the action set.

Returns:



17
18
19
# File 'lib/2019-04-01/generated/azure_mgmt_storage/models/management_policy_definition.rb', line 17

def actions
  @actions
end

#filtersManagementPolicyFilter

Returns An object that defines the filter set.

Returns:



20
21
22
# File 'lib/2019-04-01/generated/azure_mgmt_storage/models/management_policy_definition.rb', line 20

def filters
  @filters
end

Class Method Details

.mapperObject

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



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
56
57
# File 'lib/2019-04-01/generated/azure_mgmt_storage/models/management_policy_definition.rb', line 27

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ManagementPolicyDefinition',
    type: {
      name: 'Composite',
      class_name: 'ManagementPolicyDefinition',
      model_properties: {
        actions: {
          client_side_validation: true,
          required: true,
          serialized_name: 'actions',
          type: {
            name: 'Composite',
            class_name: 'ManagementPolicyAction'
          }
        },
        filters: {
          client_side_validation: true,
          required: false,
          serialized_name: 'filters',
          type: {
            name: 'Composite',
            class_name: 'ManagementPolicyFilter'
          }
        }
      }
    }
  }
end