code: def GetDatabaseAccount(self, url_connection=None):
          
          if url_connection is None:
              url_connection = self.url_connection
  
          initial_headers = dict(self.default_headers)
          headers = base.GetHeaders(self,
                                    initial_headers,
                                    'get',
                                    '',  # path
                                    '',  # id
                                    '',  # type
                                    {})
  
          request = request_object._RequestObject('databaseaccount', documents._OperationType.Read, url_connection)
          result, self.last_response_headers = self.__Get('',
                                                          request,
                                                          headers)
          database_account = documents.DatabaseAccount()
          database_account.DatabasesLink = '/dbs/'
          database_account.MediaLink = '/media/'
          if (http_constants.HttpHeaders.MaxMediaStorageUsageInMB in
              self.last_response_headers):
              database_account.MaxMediaStorageUsageInMB = (
                  self.last_response_headers[
                      http_constants.HttpHeaders.MaxMediaStorageUsageInMB])
          if (http_constants.HttpHeaders.CurrentMediaStorageUsageInMB in
              self.last_response_headers):
              database_account.CurrentMediaStorageUsageInMB = (
                  self.last_response_headers[
                      http_constants.HttpHeaders.CurrentMediaStorageUsageInMB])
          database_account.ConsistencyPolicy = result.get(constants._Constants.UserConsistencyPolicy)
  
          # WritableLocations and ReadableLocations fields will be available only for geo-replicated database accounts
          if constants._Constants.WritableLocations in result:
              database_account._WritableLocations = result[constants._Constants.WritableLocations]
          if constants._Constants.ReadableLocations in result:
              database_account._ReadableLocations = result[constants._Constants.ReadableLocations]
          if constants._Constants.EnableMultipleWritableLocations in result:
              database_account._EnableMultipleWritableLocations = result[constants._Constants.EnableMultipleWritableLocations]
  
          self._useMultipleWriteLocations = self.connection_policy.UseMultipleWriteLocations and database_account._EnableMultipleWritableLocations
          return database_account
docs: Gets database account info.
  
          :return:
              The Database Account.
          :rtype:
              documents.DatabaseAccount