static async Configuration({
    configUrl,
    region
  }) {
    const httpClient = new HttpClient([configUrl]);
    const fabricInfo = await ResponseToJson(
      httpClient.Request({
        method: "GET",
        path: "/config",
        queryParams: region ? {elvgeo: region} : ""
      })
    );

    // If any HTTPS urls present, throw away HTTP urls so only HTTPS will be used
    const filterHTTPS = uri => uri.toLowerCase().startsWith("https");

    let fabricURIs = fabricInfo.network.seed_nodes.fabric_api;
    if(fabricURIs.find(filterHTTPS)) {
      fabricURIs = fabricURIs.filter(filterHTTPS);
    }

    let ethereumURIs = fabricInfo.network.seed_nodes.ethereum_api;
    if(ethereumURIs.find(filterHTTPS)) {
      ethereumURIs = ethereumURIs.filter(filterHTTPS);
    }

    return {
      nodeId: fabricInfo.node_id,
      contentSpaceId: fabricInfo.qspace.id,
      fabricURIs,
      ethereumURIs
    };
  }
/**
   * Retrieve content space info and preferred fabric and blockchain URLs from the fabric
   *
   * @methodGroup Constructor
   * @namedParams
   * @param {string} configUrl - Full URL to the config endpoint
   * @param {string=} region - Preferred region - the fabric will auto-detect the best region if not specified
   * - Available regions: na-west-north na-west-south na-east eu-west
   *
   * @return {Promise<Object>} - Object containing content space ID and fabric and ethereum URLs
   */


@return {Promise} - Object containing content space ID and fabric and ethereum URLs
@return { Promise } - Object containing content space ID and fabric and ethereum URLs
static async Configuration({
    configUrl,
    region
  }) {
    const httpClient = new HttpClient([configUrl]);
    const fabricInfo = await ResponseToJson(
      httpClient.Request({
        method: "GET",
        path: "/config",
        queryParams: region ? {elvgeo: region} : ""
      })
    );
    const filterHTTPS = uri => uri.toLowerCase().startsWith("https");
    let fabricURIs = fabricInfo.network.seed_nodes.fabric_api;
    if(fabricURIs.find(filterHTTPS)) {
      fabricURIs = fabricURIs.filter(filterHTTPS);
    }
    let ethereumURIs = fabricInfo.network.seed_nodes.ethereum_api;
    if(ethereumURIs.find(filterHTTPS)) {
      ethereumURIs = ethereumURIs.filter(filterHTTPS);
    }
    return {
      nodeId: fabricInfo.node_id,
      contentSpaceId: fabricInfo.qspace.id,
      fabricURIs,
      ethereumURIs
    };
  }
static async Configuration ( { configUrl , region } ) { const httpClient = new HttpClient ( [ configUrl ] ) ; const fabricInfo = await ResponseToJson ( httpClient . Request ( { method : "GET" , path : "/config" , queryParams : region ? { elvgeo : region } : "" } ) ) ; const filterHTTPS = uri => uri . toLowerCase ( ) . startsWith ( "https" ) ; let fabricURIs = fabricInfo . network . seed_nodes . fabric_api ; if ( fabricURIs . find ( filterHTTPS ) ) { fabricURIs = fabricURIs . filter ( filterHTTPS ) ; } let ethereumURIs = fabricInfo . network . seed_nodes . ethereum_api ; if ( ethereumURIs . find ( filterHTTPS ) ) { ethereumURIs = ethereumURIs . filter ( filterHTTPS ) ; } return { nodeId : fabricInfo . node_id , contentSpaceId : fabricInfo . qspace . id , fabricURIs , ethereumURIs } ; }
Retrieve content space info and preferred fabric and blockchain URLs from the fabric
 @methodGroup Constructor
 @namedParams
 @param {string} configUrl - Full URL to the config endpoint
 @param {string=} region - Preferred region - the fabric will auto-detect the best region if not specified
 - Available regions: na-west-north na-west-south na-east eu-west
Retrieve content space info and preferred fabric and blockchain URLs from the fabric @methodGroup Constructor @namedParams @param { string } configUrl - Full URL to the config endpoint @param { string = } region - Preferred region - the fabric will auto - detect the best region if not specified - Available regions : na - west - north na - west - south na - east eu - west
// If any HTTPS urls present, throw away HTTP urls so only HTTPS will be used