Class: Azure::Cosmosdb::Mgmt::V2021_01_15::Models::PeriodicModeProperties

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2021-01-15/generated/azure_mgmt_cosmosdb/models/periodic_mode_properties.rb

Overview

Configuration values for periodic mode backup

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#backup_interval_in_minutesInteger

between two backups

Returns:

  • (Integer)

    An integer representing the interval in minutes



17
18
19
# File 'lib/2021-01-15/generated/azure_mgmt_cosmosdb/models/periodic_mode_properties.rb', line 17

def backup_interval_in_minutes
  @backup_interval_in_minutes
end

#backup_retention_interval_in_hoursInteger

backup is retained

Returns:

  • (Integer)

    An integer representing the time (in hours) that each



21
22
23
# File 'lib/2021-01-15/generated/azure_mgmt_cosmosdb/models/periodic_mode_properties.rb', line 21

def backup_retention_interval_in_hours
  @backup_retention_interval_in_hours
end

Class Method Details

.mapperObject

Mapper for PeriodicModeProperties 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
59
60
61
62
# File 'lib/2021-01-15/generated/azure_mgmt_cosmosdb/models/periodic_mode_properties.rb', line 28

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'PeriodicModeProperties',
    type: {
      name: 'Composite',
      class_name: 'PeriodicModeProperties',
      model_properties: {
        backup_interval_in_minutes: {
          client_side_validation: true,
          required: false,
          serialized_name: 'backupIntervalInMinutes',
          constraints: {
            InclusiveMinimum: 0
          },
          type: {
            name: 'Number'
          }
        },
        backup_retention_interval_in_hours: {
          client_side_validation: true,
          required: false,
          serialized_name: 'backupRetentionIntervalInHours',
          constraints: {
            InclusiveMinimum: 0
          },
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end