Class: Azure::Postgresql::Mgmt::V2017_12_01::Models::ServerPropertiesForReplica
- Inherits:
-
ServerPropertiesForCreate
- Object
- ServerPropertiesForCreate
- Azure::Postgresql::Mgmt::V2017_12_01::Models::ServerPropertiesForReplica
- Includes:
- MsRestAzure
- Defined in:
- lib/2017-12-01/generated/azure_mgmt_postgresql/models/server_properties_for_replica.rb
Overview
The properties to create a new replica.
Instance Attribute Summary collapse
-
#createMode ⇒ Object
Returns the value of attribute createMode.
-
#source_server_id ⇒ String
The master server id to create replica from.
Attributes inherited from ServerPropertiesForCreate
#ssl_enforcement, #storage_profile, #version
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ServerPropertiesForReplica class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ ServerPropertiesForReplica
constructor
A new instance of ServerPropertiesForReplica.
Constructor Details
#initialize ⇒ ServerPropertiesForReplica
Returns a new instance of ServerPropertiesForReplica.
16 17 18 |
# File 'lib/2017-12-01/generated/azure_mgmt_postgresql/models/server_properties_for_replica.rb', line 16 def initialize @createMode = "Replica" end |
Instance Attribute Details
#createMode ⇒ Object
Returns the value of attribute createMode.
20 21 22 |
# File 'lib/2017-12-01/generated/azure_mgmt_postgresql/models/server_properties_for_replica.rb', line 20 def createMode @createMode end |
#source_server_id ⇒ String
Returns The master server id to create replica from.
23 24 25 |
# File 'lib/2017-12-01/generated/azure_mgmt_postgresql/models/server_properties_for_replica.rb', line 23 def source_server_id @source_server_id end |
Class Method Details
.mapper ⇒ Object
Mapper for ServerPropertiesForReplica 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 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 |
# File 'lib/2017-12-01/generated/azure_mgmt_postgresql/models/server_properties_for_replica.rb', line 30 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Replica', type: { name: 'Composite', class_name: 'ServerPropertiesForReplica', 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 |