# 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::ARM::Web module Models # # Details about app recovery operation. # class SnapshotRecoveryRequest < ProxyOnlyResource include MsRestAzure include MsRest::JSONable # @return [String] Point in time in which the app recovery should be # attempted, formatted as a DateTime string. attr_accessor :snapshot_time # @return [SnapshotRecoveryTarget] Specifies the web app that snapshot # contents will be written to. attr_accessor :recovery_target # @return [Boolean] If true the recovery operation can # overwrite source app; otherwise, false. attr_accessor :overwrite # @return [Boolean] If true, site configuration, in addition to content, # will be reverted. attr_accessor :recover_configuration # @return [Boolean] If true, custom hostname conflicts will be ignored # when recovering to a target web app. # This setting is only necessary when RecoverConfiguration is enabled. attr_accessor :ignore_conflicting_host_names # # Mapper for SnapshotRecoveryRequest class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { required: false, serialized_name: 'SnapshotRecoveryRequest', type: { name: 'Composite', class_name: 'SnapshotRecoveryRequest', model_properties: { id: { required: false, read_only: true, serialized_name: 'id', type: { name: 'String' } }, name: { required: false, read_only: true, serialized_name: 'name', type: { name: 'String' } }, kind: { required: false, serialized_name: 'kind', type: { name: 'String' } }, type: { required: false, read_only: true, serialized_name: 'type', type: { name: 'String' } }, snapshot_time: { required: false, serialized_name: 'properties.snapshotTime', type: { name: 'String' } }, recovery_target: { required: false, serialized_name: 'properties.recoveryTarget', type: { name: 'Composite', class_name: 'SnapshotRecoveryTarget' } }, overwrite: { required: false, serialized_name: 'properties.overwrite', type: { name: 'Boolean' } }, recover_configuration: { required: false, serialized_name: 'properties.recoverConfiguration', type: { name: 'Boolean' } }, ignore_conflicting_host_names: { required: false, serialized_name: 'properties.ignoreConflictingHostNames', type: { name: 'Boolean' } } } } } end end end end