Class: Azure::Mysql::Mgmt::V2017_12_01::Models::ServerPropertiesForCreate
- Inherits:
-
Object
- Object
- Azure::Mysql::Mgmt::V2017_12_01::Models::ServerPropertiesForCreate
- Includes:
- MsRestAzure
- Defined in:
- lib/2017-12-01/generated/azure_mgmt_mysql/models/server_properties_for_create.rb
Overview
The properties used to create a new server.
Direct Known Subclasses
ServerPropertiesForDefaultCreate, ServerPropertiesForGeoRestore, ServerPropertiesForReplica, ServerPropertiesForRestore
Constant Summary collapse
- @@discriminatorMap =
Hash.new
Instance Attribute Summary collapse
-
#createMode ⇒ Object
Returns the value of attribute createMode.
-
#ssl_enforcement ⇒ SslEnforcementEnum
to server.
-
#storage_profile ⇒ StorageProfile
Storage profile of a server.
-
#version ⇒ ServerVersion
'5.7'.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ServerPropertiesForCreate class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ ServerPropertiesForCreate
constructor
A new instance of ServerPropertiesForCreate.
Constructor Details
#initialize ⇒ ServerPropertiesForCreate
Returns a new instance of ServerPropertiesForCreate.
21 22 23 |
# File 'lib/2017-12-01/generated/azure_mgmt_mysql/models/server_properties_for_create.rb', line 21 def initialize @createMode = "ServerPropertiesForCreate" end |
Instance Attribute Details
#createMode ⇒ Object
Returns the value of attribute createMode.
25 26 27 |
# File 'lib/2017-12-01/generated/azure_mgmt_mysql/models/server_properties_for_create.rb', line 25 def createMode @createMode end |
#ssl_enforcement ⇒ SslEnforcementEnum
to server. Possible values include: 'Enabled', 'Disabled'
33 34 35 |
# File 'lib/2017-12-01/generated/azure_mgmt_mysql/models/server_properties_for_create.rb', line 33 def ssl_enforcement @ssl_enforcement end |
#storage_profile ⇒ StorageProfile
Returns Storage profile of a server.
36 37 38 |
# File 'lib/2017-12-01/generated/azure_mgmt_mysql/models/server_properties_for_create.rb', line 36 def storage_profile @storage_profile end |
#version ⇒ ServerVersion
'5.7'
29 30 31 |
# File 'lib/2017-12-01/generated/azure_mgmt_mysql/models/server_properties_for_create.rb', line 29 def version @version end |
Class Method Details
.mapper ⇒ Object
Mapper for ServerPropertiesForCreate class as Ruby Hash. This will be used for serialization/deserialization.
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 |
# File 'lib/2017-12-01/generated/azure_mgmt_mysql/models/server_properties_for_create.rb', line 43 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ServerPropertiesForCreate', type: { name: 'Composite', polymorphic_discriminator: 'createMode', uber_parent: 'ServerPropertiesForCreate', class_name: 'ServerPropertiesForCreate', 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' } } } } } end |