Sha256: 1ecc117c9ebb4f0ffb599d8cbc0d151d8ddf2aef7b40e5d2a04a959ac0e351cd

Contents?: true

Size: 1.29 KB

Versions: 3

Compression:

Stored size: 1.29 KB

Contents

module ApiStub
  module Requests
    module Sql
      # Mock class for Sql Server
      class SqlServer
        def self.create_sql_server_response
          '{
            "location" : "{server-location}",
            "properties" : {
              "version" : "{server-version}",
              "administratorLogin" : "{admin-name}",
              "administratorLoginPassword" : "{admin-password}"
            }
          }'
        end

        def self.list_sql_server_response
          '{
            "value": [{
              "name" : "{database-name}",
              "server_name" : "{server-name}",
              "location" : "{database-location}",
              "properties" : {
                "version" : "{server-version}",
                "administratorLogin" : "{admin-name}",
                "administratorLoginPassword" : "{admin-password}"
              }
            }]
          }'
        end

        def self.sql_server_hash
          {
            resource_group: 'resource_group',
            name: 'name',
            version: 'version',
            location: 'location',
            administrator_login: 'administrator_login',
            administrator_login_password: 'administrator_login_password'
          }
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fog-azure-rm-0.1.1 test/api_stub/requests/sql/sql_server.rb
fog-azure-rm-0.1.0 test/api_stub/requests/sql/sql_server.rb
fog-azure-rm-0.0.9 test/api_stub/requests/sql/sql_server.rb