Sha256: 2dd9738344edc2850dcb1d444d01e13f4bd1af8ce8dbe12d68cde7a0592274d6

Contents?: true

Size: 1.7 KB

Versions: 12

Compression:

Stored size: 1.7 KB

Contents

# 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::V2019_06_01
  module Models
    #
    # An object that defines the Lifecycle rule. Each definition is made up
    # with a filters set and an actions set.
    #
    class ManagementPolicyDefinition

      include MsRestAzure

      # @return [ManagementPolicyAction] An object that defines the action set.
      attr_accessor :actions

      # @return [ManagementPolicyFilter] An object that defines the filter set.
      attr_accessor :filters


      #
      # Mapper for ManagementPolicyDefinition class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      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
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
azure_mgmt_storage-0.23.0 lib/2019-06-01/generated/azure_mgmt_storage/models/management_policy_definition.rb
azure_mgmt_storage-0.22.0 lib/2019-06-01/generated/azure_mgmt_storage/models/management_policy_definition.rb
azure_mgmt_storage-0.21.2 lib/2019-06-01/generated/azure_mgmt_storage/models/management_policy_definition.rb
azure_mgmt_storage-0.21.1 lib/2019-06-01/generated/azure_mgmt_storage/models/management_policy_definition.rb
azure_mgmt_storage-0.21.0 lib/2019-06-01/generated/azure_mgmt_storage/models/management_policy_definition.rb
azure_mgmt_storage-0.20.1 lib/2019-06-01/generated/azure_mgmt_storage/models/management_policy_definition.rb
azure_mgmt_storage-0.20.0 lib/2019-06-01/generated/azure_mgmt_storage/models/management_policy_definition.rb
azure_mgmt_storage-0.19.3 lib/2019-06-01/generated/azure_mgmt_storage/models/management_policy_definition.rb
azure_mgmt_storage-0.19.2 lib/2019-06-01/generated/azure_mgmt_storage/models/management_policy_definition.rb
azure_mgmt_storage-0.19.1 lib/2019-06-01/generated/azure_mgmt_storage/models/management_policy_definition.rb
azure_mgmt_storage-0.19.0 lib/2019-06-01/generated/azure_mgmt_storage/models/management_policy_definition.rb
azure_mgmt_storage-0.18.2 lib/2019-06-01/generated/azure_mgmt_storage/models/management_policy_definition.rb