Class: Azure::Mysql::Mgmt::V2017_12_01::Models::ServerPropertiesForRestore
- Inherits:
-
ServerPropertiesForCreate
- Object
- ServerPropertiesForCreate
- Azure::Mysql::Mgmt::V2017_12_01::Models::ServerPropertiesForRestore
- Includes:
- MsRestAzure
- Defined in:
- lib/2017-12-01/generated/azure_mgmt_mysql/models/server_properties_for_restore.rb
Overview
The properties used to create a new server by restoring from a backup.
Instance Attribute Summary collapse
-
#createMode ⇒ Object
Returns the value of attribute createMode.
-
#restore_point_in_time ⇒ DateTime
specifying the time to restore from.
-
#source_server_id ⇒ String
The source server id to restore from.
Attributes inherited from ServerPropertiesForCreate
#ssl_enforcement, #storage_profile, #version
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ServerPropertiesForRestore class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ ServerPropertiesForRestore
constructor
A new instance of ServerPropertiesForRestore.
Constructor Details
#initialize ⇒ ServerPropertiesForRestore
Returns a new instance of ServerPropertiesForRestore.
16 17 18 |
# File 'lib/2017-12-01/generated/azure_mgmt_mysql/models/server_properties_for_restore.rb', line 16 def initialize @createMode = "PointInTimeRestore" end |
Instance Attribute Details
#createMode ⇒ Object
Returns the value of attribute createMode.
20 21 22 |
# File 'lib/2017-12-01/generated/azure_mgmt_mysql/models/server_properties_for_restore.rb', line 20 def createMode @createMode end |
#restore_point_in_time ⇒ DateTime
specifying the time to restore from.
27 28 29 |
# File 'lib/2017-12-01/generated/azure_mgmt_mysql/models/server_properties_for_restore.rb', line 27 def restore_point_in_time @restore_point_in_time end |
#source_server_id ⇒ String
Returns The source server id to restore from.
23 24 25 |
# File 'lib/2017-12-01/generated/azure_mgmt_mysql/models/server_properties_for_restore.rb', line 23 def source_server_id @source_server_id end |
Class Method Details
.mapper ⇒ Object
Mapper for ServerPropertiesForRestore class as Ruby Hash. This will be used for serialization/deserialization.
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 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/2017-12-01/generated/azure_mgmt_mysql/models/server_properties_for_restore.rb', line 34 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'PointInTimeRestore', type: { name: 'Composite', class_name: 'ServerPropertiesForRestore', model_properties: { version: { client_side_validation: true, required: false, serialized_name: 'version', type: { name: 'String' } }, ssl_enforcement: { client_side_validation: true, required: false, serialized_name: 'sslEnforcement', type: { name: 'Enum', module: 'SslEnforcementEnum' } }, storage_profile: { client_side_validation: true, required: false, serialized_name: 'storageProfile', type: { name: 'Composite', class_name: 'StorageProfile' } }, createMode: { client_side_validation: true, required: true, serialized_name: 'createMode', type: { name: 'String' } }, source_server_id: { client_side_validation: true, required: true, serialized_name: 'sourceServerId', type: { name: 'String' } }, restore_point_in_time: { client_side_validation: true, required: true, serialized_name: 'restorePointInTime', type: { name: 'DateTime' } } } } } end |