1 | import { GaxiosError } from 'gaxios';
|
2 | import { GetTokenResponse, OAuth2Client, OAuth2ClientOptions } from './oauth2client';
|
3 | export interface ComputeOptions extends OAuth2ClientOptions {
|
4 | |
5 |
|
6 |
|
7 |
|
8 | serviceAccountEmail?: string;
|
9 | |
10 |
|
11 |
|
12 |
|
13 |
|
14 | scopes?: string | string[];
|
15 | }
|
16 | export declare class Compute extends OAuth2Client {
|
17 | readonly serviceAccountEmail: string;
|
18 | scopes: string[];
|
19 | |
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 | constructor(options?: ComputeOptions);
|
26 | /**
|
27 | * Refreshes the access token.
|
28 | * @param refreshToken Unused parameter
|
29 | */
|
30 | protected refreshTokenNoCache(refreshToken?: string | null): Promise<GetTokenResponse>;
|
31 | /**
|
32 | * Fetches an ID token.
|
33 | * @param targetAudience the audience for the fetched ID token.
|
34 | */
|
35 | fetchIdToken(targetAudience: string): Promise<string>;
|
36 | protected wrapError(e: GaxiosError): void;
|
37 | }
|