Class: Azure::MariaDB::Mgmt::V2018_06_01::Models::ServerPropertiesForGeoRestore
- Inherits:
-
ServerPropertiesForCreate
- Object
- ServerPropertiesForCreate
- Azure::MariaDB::Mgmt::V2018_06_01::Models::ServerPropertiesForGeoRestore
- Includes:
- MsRestAzure
- Defined in:
- lib/2018-06-01/generated/azure_mgmt_mariadb/models/server_properties_for_geo_restore.rb
Overview
The properties used to create a new server by restoring to a different region from a geo replicated backup.
Instance Attribute Summary collapse
-
#createMode ⇒ Object
Returns the value of attribute createMode.
-
#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 ServerPropertiesForGeoRestore class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ ServerPropertiesForGeoRestore
constructor
A new instance of ServerPropertiesForGeoRestore.
Constructor Details
#initialize ⇒ ServerPropertiesForGeoRestore
Returns a new instance of ServerPropertiesForGeoRestore.
17 18 19 |
# File 'lib/2018-06-01/generated/azure_mgmt_mariadb/models/server_properties_for_geo_restore.rb', line 17 def initialize @createMode = "GeoRestore" end |
Instance Attribute Details
#createMode ⇒ Object
Returns the value of attribute createMode.
21 22 23 |
# File 'lib/2018-06-01/generated/azure_mgmt_mariadb/models/server_properties_for_geo_restore.rb', line 21 def createMode @createMode end |
#source_server_id ⇒ String
Returns The source server id to restore from.
24 25 26 |
# File 'lib/2018-06-01/generated/azure_mgmt_mariadb/models/server_properties_for_geo_restore.rb', line 24 def source_server_id @source_server_id end |
Class Method Details
.mapper ⇒ Object
Mapper for ServerPropertiesForGeoRestore class as Ruby Hash. This will be used for serialization/deserialization.
31 32 33 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 |
# File 'lib/2018-06-01/generated/azure_mgmt_mariadb/models/server_properties_for_geo_restore.rb', line 31 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'GeoRestore', type: { name: 'Composite', class_name: 'ServerPropertiesForGeoRestore', 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' } } } } } end |