Class: Azure::Storage::Mgmt::V2021_01_01::Models::ManagementPolicyDefinition
- Inherits:
-
Object
- Object
- Azure::Storage::Mgmt::V2021_01_01::Models::ManagementPolicyDefinition
- Includes:
- MsRestAzure
- Defined in:
- lib/2021-01-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
-
#actions ⇒ ManagementPolicyAction
An object that defines the action set.
-
#filters ⇒ ManagementPolicyFilter
An object that defines the filter set.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ManagementPolicyDefinition class as Ruby Hash.
Instance Attribute Details
#actions ⇒ ManagementPolicyAction
Returns An object that defines the action set.
17 18 19 |
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/management_policy_definition.rb', line 17 def actions @actions end |
#filters ⇒ ManagementPolicyFilter
Returns An object that defines the filter set.
20 21 22 |
# File 'lib/2021-01-01/generated/azure_mgmt_storage/models/management_policy_definition.rb', line 20 def filters @filters end |
Class Method Details
.mapper ⇒ Object
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/2021-01-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 |