UNPKG

623 BTypeScriptView Raw
1export interface RequestMetadata {
2 'x-goog-iam-authority-selector': string;
3 'x-goog-iam-authorization-token': string;
4}
5export declare class IAMAuth {
6 selector: string;
7 token: string;
8 /**
9 * IAM credentials.
10 *
11 * @param selector the iam authority selector
12 * @param token the token
13 * @constructor
14 */
15 constructor(selector: string, token: string);
16 /**
17 * Acquire the HTTP headers required to make an authenticated request.
18 */
19 getRequestHeaders(): {
20 'x-goog-iam-authority-selector': string;
21 'x-goog-iam-authorization-token': string;
22 };
23}