Class: Azure::Network::Mgmt::V2019_11_01::Models::RetentionPolicyParameters

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-11-01/generated/azure_mgmt_network/models/retention_policy_parameters.rb

Overview

Parameters that define the retention policy for flow log.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#daysInteger

value: 0 .

Returns:

  • (Integer)

    Number of days to retain flow log records. Default


17
18
19
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/retention_policy_parameters.rb', line 17

def days
  @days
end

#enabledBoolean

false .

Returns:

  • (Boolean)

    Flag to enable/disable retention. Default value:


21
22
23
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/retention_policy_parameters.rb', line 21

def enabled
  @enabled
end

Class Method Details

.mapperObject

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


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
58
# File 'lib/2019-11-01/generated/azure_mgmt_network/models/retention_policy_parameters.rb', line 28

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