(endpoint, credential, options = {})
| 77192 | } else if (isKeyCredential2(credential)) { |
| 77193 | if (!((_c2 = clientOptions === null || clientOptions === void 0 ? void 0 : clientOptions.credentials) === null || _c2 === void 0 ? void 0 : _c2.apiKeyHeaderName)) { |
| 77194 | throw new Error(`Missing API Key Header Name`); |
| 77195 | } |
| 77196 | const keyPolicy = keyCredentialAuthenticationPolicy(credential, (_d2 = clientOptions === null || clientOptions === void 0 ? void 0 : clientOptions.credentials) === null || _d2 === void 0 ? void 0 : _d2.apiKeyHeaderName); |
| 77197 | pipeline.addPolicy(keyPolicy); |
| 77198 | } |
| 77199 | } |
| 77200 | function createDefaultPipeline(endpoint, credential, options = {}) { |
| 77201 | const pipeline = createPipelineFromOptions(options); |
| 77202 | pipeline.addPolicy(apiVersionPolicy(options)); |
no test coverage detected
searching dependent graphs…