# 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::Mysql::Mgmt::V2017_12_01_preview module Models # # The properties used to create a new server. # class ServerPropertiesForDefaultCreate < ServerPropertiesForCreate include MsRestAzure def initialize @createMode = "Default" end attr_accessor :createMode # @return [String] The administrator's login name of a server. Can only # be specified when the server is being created (and is required for # creation). attr_accessor :administrator_login # @return [String] The password of the administrator login. attr_accessor :administrator_login_password # # Mapper for ServerPropertiesForDefaultCreate class as Ruby Hash. # This will be used for serialization/deserialization. # def self.mapper() { client_side_validation: true, required: false, serialized_name: 'Default', type: { name: 'Composite', class_name: 'ServerPropertiesForDefaultCreate', 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' } }, administrator_login: { client_side_validation: true, required: true, serialized_name: 'administratorLogin', type: { name: 'String' } }, administrator_login_password: { client_side_validation: true, required: true, serialized_name: 'administratorLoginPassword', type: { name: 'String' } } } } } end end end end