* @param {Request} request * @param {Client} client * @param {LoadBalancingPolicy} lbp * @param {RetryPolicy} [retry] * @param {Boolean} [isIdempotent] * @param {Host} [host] * @returns {RequestHandler}
(request, client, lbp, retry, isIdempotent, host)
| 481 | * @returns {RequestHandler} |
| 482 | */ |
| 483 | function newInstance(request, client, lbp, retry, isIdempotent, host) { |
| 484 | client = client || newClient(null, lbp); |
| 485 | const options = { |
| 486 | executionProfile: new ExecutionProfile('abc', { loadBalancing: lbp }), retry: retry, isIdempotent: isIdempotent, host: host |
| 487 | }; |
| 488 | const execOptions = new DefaultExecutionOptions(options, client); |
| 489 | |
| 490 | return new RequestHandler(request, execOptions, client); |
| 491 | } |
| 492 | |
| 493 | function newClient(metadata, lbp) { |
| 494 | const options = defaultOptions(); |
no test coverage detected