Class: Azure::Cosmosdb::Mgmt::V2020_09_01::Models::BackupPolicy

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/backup_policy.rb

Overview

The object representing the policy for taking backups on an account.

Constant Summary collapse

@@discriminatorMap =
Hash.new

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBackupPolicy



19
20
21
# File 'lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/backup_policy.rb', line 19

def initialize
  @type = "BackupPolicy"
end

Instance Attribute Details

#typeObject

Returns the value of attribute type.



23
24
25
# File 'lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/backup_policy.rb', line 23

def type
  @type
end

Class Method Details

.mapperObject

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



30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/2020-09-01/generated/azure_mgmt_cosmosdb/models/backup_policy.rb', line 30

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'BackupPolicy',
    type: {
      name: 'Composite',
      polymorphic_discriminator: 'type',
      uber_parent: 'BackupPolicy',
      class_name: 'BackupPolicy',
      model_properties: {
      }
    }
  }
end