Sha256: 1e543484d552b6d9de2f8e54d30b12fe883997a074f09949f615b1d5fc08642b

Contents?: true

Size: 1.61 KB

Versions: 26

Compression:

Stored size: 1.61 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::Network::Mgmt::V2018_10_01
  module Models
    #
    # Parameters that define the retention policy for flow log.
    #
    class RetentionPolicyParameters

      include MsRestAzure

      # @return [Integer] Number of days to retain flow log records. Default
      # value: 0 .
      attr_accessor :days

      # @return [Boolean] Flag to enable/disable retention. Default value:
      # false .
      attr_accessor :enabled


      #
      # Mapper for RetentionPolicyParameters class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          client_side_validation: true,
          required: false,
          serialized_name: 'RetentionPolicyParameters',
          type: {
            name: 'Composite',
            class_name: 'RetentionPolicyParameters',
            model_properties: {
              days: {
                client_side_validation: true,
                required: false,
                serialized_name: 'days',
                default_value: 0,
                type: {
                  name: 'Number'
                }
              },
              enabled: {
                client_side_validation: true,
                required: false,
                serialized_name: 'enabled',
                default_value: false,
                type: {
                  name: 'Boolean'
                }
              }
            }
          }
        }
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
azure_mgmt_network-0.18.6 lib/2018-10-01/generated/azure_mgmt_network/models/retention_policy_parameters.rb
azure_mgmt_network-0.18.5 lib/2018-10-01/generated/azure_mgmt_network/models/retention_policy_parameters.rb
azure_mgmt_network-0.18.4 lib/2018-10-01/generated/azure_mgmt_network/models/retention_policy_parameters.rb
azure_mgmt_network-0.18.3 lib/2018-10-01/generated/azure_mgmt_network/models/retention_policy_parameters.rb
azure_mgmt_network-0.18.2 lib/2018-10-01/generated/azure_mgmt_network/models/retention_policy_parameters.rb
azure_mgmt_network-0.18.1 lib/2018-10-01/generated/azure_mgmt_network/models/retention_policy_parameters.rb