# encoding: utf-8 # Code generated by Microsoft (R) AutoRest Code Generator. # Changes may cause incorrect behavior and will be lost if the code is # regenerated. module Azure::ServiceFabric::V6_2_0_9 module Models # # Specifies the parameters needed to trigger a restore of a specific # partition. # class RestorePartitionDescription include MsRestAzure # @return Unique backup ID. attr_accessor :backup_id # @return [String] Location of the backup relative to the backup storage # specified/ configured. attr_accessor :backup_location # @return [BackupStorageDescription] Location of the backup from where # the partition will be restored. attr_accessor :backup_storage # # Mapper for RestorePartitionDescription class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'RestorePartitionDescription', type: { name: 'Composite', class_name: 'RestorePartitionDescription', model_properties: { backup_id: { client_side_validation: true, required: true, serialized_name: 'BackupId', type: { name: 'String' } }, backup_location: { client_side_validation: true, required: true, serialized_name: 'BackupLocation', type: { name: 'String' } }, backup_storage: { client_side_validation: true, required: false, serialized_name: 'BackupStorage', type: { name: 'Composite', polymorphic_discriminator: 'StorageKind', uber_parent: 'BackupStorageDescription', class_name: 'BackupStorageDescription' } } } } } end end end end