Permalink
Cannot retrieve contributors at this time
46 lines (46 sloc)
1.56 KB
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
codeql-action/node_modules/@azure/ms-rest-js/es/lib/credentials/apiKeyCredentials.d.ts
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { WebResourceLike } from "../webResource"; | |
import { ServiceClientCredentials } from "./serviceClientCredentials"; | |
/** | |
* @interface ApiKeyCredentialOptions | |
* Describes the options to be provided while creating an instance of ApiKeyCredentials | |
*/ | |
export interface ApiKeyCredentialOptions { | |
/** | |
* A key value pair of the header parameters that need to be applied to the request. | |
*/ | |
inHeader?: { | |
[x: string]: any; | |
}; | |
/** | |
* A key value pair of the query parameters that need to be applied to the request. | |
*/ | |
inQuery?: { | |
[x: string]: any; | |
}; | |
} | |
/** | |
* Authenticates to a service using an API key. | |
*/ | |
export declare class ApiKeyCredentials implements ServiceClientCredentials { | |
/** | |
* A key value pair of the header parameters that need to be applied to the request. | |
*/ | |
private readonly inHeader?; | |
/** | |
* A key value pair of the query parameters that need to be applied to the request. | |
*/ | |
private readonly inQuery?; | |
/** | |
* @constructor | |
* @param {object} options Specifies the options to be provided for auth. Either header or query needs to be provided. | |
*/ | |
constructor(options: ApiKeyCredentialOptions); | |
/** | |
* Signs a request with the values provided in the inHeader and inQuery parameter. | |
* | |
* @param {WebResource} webResource The WebResource to be signed. | |
* @returns {Promise<WebResource>} The signed request object. | |
*/ | |
signRequest(webResource: WebResourceLike): Promise<WebResourceLike>; | |
} | |
//# sourceMappingURL=apiKeyCredentials.d.ts.map |