class Azure::ServiceFabric::V6_2_0_9::Models::BackupPolicyDescription

Describes a backup policy for configuring periodic backup.

Attributes

auto_restore_on_data_loss[RW]

@return [Boolean] Specifies whether to trigger restore automatically using the latest available backup in case the partition experiences a data loss event.

max_incremental_backups[RW]

@return [Integer] Defines the maximum number of incremental backups to be taken between two full backups. This is just the upper limit. A full backup may be taken before specified number of incremental backups are completed in one of the following conditions

  • The replica has never taken a full backup since it has become

primary,

  • Some of the log records since the last backup has been truncated, or

  • Replica passed the MaxAccumulatedBackupLogSizeInMB limit.

name[RW]

@return [String] The unique name identifying this backup policy.

schedule[RW]

@return [BackupScheduleDescription] Describes the backup schedule parameters.

storage[RW]

@return [BackupStorageDescription] Describes the details of backup storage where to store the periodic backups.

Public Class Methods

mapper() click to toggle source

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

# File lib/6.2.0.9/generated/azure_service_fabric/models/backup_policy_description.rb, line 46
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'BackupPolicyDescription',
    type: {
      name: 'Composite',
      class_name: 'BackupPolicyDescription',
      model_properties: {
        name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'Name',
          type: {
            name: 'String'
          }
        },
        auto_restore_on_data_loss: {
          client_side_validation: true,
          required: true,
          serialized_name: 'AutoRestoreOnDataLoss',
          type: {
            name: 'Boolean'
          }
        },
        max_incremental_backups: {
          client_side_validation: true,
          required: true,
          serialized_name: 'MaxIncrementalBackups',
          constraints: {
            InclusiveMaximum: 255,
            InclusiveMinimum: 0
          },
          type: {
            name: 'Number'
          }
        },
        schedule: {
          client_side_validation: true,
          required: true,
          serialized_name: 'Schedule',
          type: {
            name: 'Composite',
            polymorphic_discriminator: 'ScheduleKind',
            uber_parent: 'BackupScheduleDescription',
            class_name: 'BackupScheduleDescription'
          }
        },
        storage: {
          client_side_validation: true,
          required: true,
          serialized_name: 'Storage',
          type: {
            name: 'Composite',
            polymorphic_discriminator: 'StorageKind',
            uber_parent: 'BackupStorageDescription',
            class_name: 'BackupStorageDescription'
          }
        }
      }
    }
  }
end