Class: Azure::ServiceFabric::V6_4_0_36::Models::BasicRetentionPolicyDescription

Inherits:
RetentionPolicyDescription show all
Includes:
MsRestAzure
Defined in:
lib/6.4.0.36/generated/azure_service_fabric/models/basic_retention_policy_description.rb

Overview

Describes basic retention policy.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBasicRetentionPolicyDescription

Returns a new instance of BasicRetentionPolicyDescription.



16
17
18
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/basic_retention_policy_description.rb', line 16

def initialize
  @RetentionPolicyType = "Basic"
end

Instance Attribute Details

#minimum_number_of_backupsInteger

any point of time. If specified with a non zero value, backups will not be deleted even if the backups have gone past retention duration and have number of backups less than or equal to it.

Returns:

  • (Integer)

    It is the minimum number of backups to be retained at



31
32
33
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/basic_retention_policy_description.rb', line 31

def minimum_number_of_backups
  @minimum_number_of_backups
end

#retention_durationDuration

created, will remain stored in the storage and might get deleted after that span of time. It should be specified in ISO8601 format.

Returns:

  • (Duration)

    It is the minimum duration for which a backup



25
26
27
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/basic_retention_policy_description.rb', line 25

def retention_duration
  @retention_duration
end

#RetentionPolicyTypeObject

Returns the value of attribute RetentionPolicyType.



20
21
22
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/basic_retention_policy_description.rb', line 20

def RetentionPolicyType
  @RetentionPolicyType
end

Class Method Details

.mapperObject

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



38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# File 'lib/6.4.0.36/generated/azure_service_fabric/models/basic_retention_policy_description.rb', line 38

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Basic',
    type: {
      name: 'Composite',
      class_name: 'BasicRetentionPolicyDescription',
      model_properties: {
        RetentionPolicyType: {
          client_side_validation: true,
          required: true,
          serialized_name: 'RetentionPolicyType',
          type: {
            name: 'String'
          }
        },
        retention_duration: {
          client_side_validation: true,
          required: true,
          serialized_name: 'RetentionDuration',
          type: {
            name: 'TimeSpan'
          }
        },
        minimum_number_of_backups: {
          client_side_validation: true,
          required: false,
          serialized_name: 'MinimumNumberOfBackups',
          constraints: {
            InclusiveMinimum: 0
          },
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end