def _generate_urls(self):
        """This method creates the URL each time a read or write operation is performed.

        By its nature, it allows the schema (http/https) to be changed e.g. if it's desired for testing.
        """
        if self.ssl is True:
            self.schema = "https"
        else:
            self.schema = "http"
        self.read_url     = "{0}://{1}:{2}/api/v1/datapoints/query".format(self.schema, self.server, self.port)
        self.read_tag_url = "{0}://{1}:{2}/api/v1/datapoints/query/tags".format(self.schema, self.server, self.port)
        self.write_url    = "{0}://{1}:{2}/api/v1/datapoints".format(self.schema, self.server, self.port)
        self.delete_dps_url = "{0}://{1}:{2}/api/v1/datapoints/delete".format(self.schema, self.server, self.port)
        self.delete_metric_url = "{0}://{1}:{2}/api/v1/metric/".format(self.schema, self.server, self.port)
dataset/ETHPy150Open pcn/pyKairosDB/pyKairosDB/connection.py/KairosDBConnection._generate_urls/original