Class protos.google.iam.credentials.v1.IAMCredentials (1.2.0)

Represents a IAMCredentials

Inheritance

$protobuf.rpc.Service > protos.google.iam.credentials.v1.IAMCredentials

Package

@google-cloud/iam-credentials

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new IAMCredentials service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): IAMCredentials;

Creates new IAMCredentials service using the specified rpc implementation.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
IAMCredentials

RPC service. Useful where requests and/or responses are streamed.

generateAccessToken(request, callback)

public generateAccessToken(request: google.iam.credentials.v1.IGenerateAccessTokenRequest, callback: google.iam.credentials.v1.IAMCredentials.GenerateAccessTokenCallback): void;

Calls GenerateAccessToken.

Parameters
NameDescription
request IGenerateAccessTokenRequest

GenerateAccessTokenRequest message or plain object

callback google.iam.credentials.v1.IAMCredentials.GenerateAccessTokenCallback

Node-style callback called with the error, if any, and GenerateAccessTokenResponse

Returns
TypeDescription
void

generateAccessToken(request)

public generateAccessToken(request: google.iam.credentials.v1.IGenerateAccessTokenRequest): Promise<google.iam.credentials.v1.GenerateAccessTokenResponse>;

Calls GenerateAccessToken.

Parameter
NameDescription
request IGenerateAccessTokenRequest

GenerateAccessTokenRequest message or plain object

Returns
TypeDescription
Promise<google.iam.credentials.v1.GenerateAccessTokenResponse>

Promise

generateIdToken(request, callback)

public generateIdToken(request: google.iam.credentials.v1.IGenerateIdTokenRequest, callback: google.iam.credentials.v1.IAMCredentials.GenerateIdTokenCallback): void;

Calls GenerateIdToken.

Parameters
NameDescription
request IGenerateIdTokenRequest

GenerateIdTokenRequest message or plain object

callback google.iam.credentials.v1.IAMCredentials.GenerateIdTokenCallback

Node-style callback called with the error, if any, and GenerateIdTokenResponse

Returns
TypeDescription
void

generateIdToken(request)

public generateIdToken(request: google.iam.credentials.v1.IGenerateIdTokenRequest): Promise<google.iam.credentials.v1.GenerateIdTokenResponse>;

Calls GenerateIdToken.

Parameter
NameDescription
request IGenerateIdTokenRequest

GenerateIdTokenRequest message or plain object

Returns
TypeDescription
Promise<google.iam.credentials.v1.GenerateIdTokenResponse>

Promise

signBlob(request, callback)

public signBlob(request: google.iam.credentials.v1.ISignBlobRequest, callback: google.iam.credentials.v1.IAMCredentials.SignBlobCallback): void;

Calls SignBlob.

Parameters
NameDescription
request ISignBlobRequest

SignBlobRequest message or plain object

callback google.iam.credentials.v1.IAMCredentials.SignBlobCallback

Node-style callback called with the error, if any, and SignBlobResponse

Returns
TypeDescription
void

signBlob(request)

public signBlob(request: google.iam.credentials.v1.ISignBlobRequest): Promise<google.iam.credentials.v1.SignBlobResponse>;

Calls SignBlob.

Parameter
NameDescription
request ISignBlobRequest

SignBlobRequest message or plain object

Returns
TypeDescription
Promise<google.iam.credentials.v1.SignBlobResponse>

Promise

signJwt(request, callback)

public signJwt(request: google.iam.credentials.v1.ISignJwtRequest, callback: google.iam.credentials.v1.IAMCredentials.SignJwtCallback): void;

Calls SignJwt.

Parameters
NameDescription
request ISignJwtRequest

SignJwtRequest message or plain object

callback google.iam.credentials.v1.IAMCredentials.SignJwtCallback

Node-style callback called with the error, if any, and SignJwtResponse

Returns
TypeDescription
void

signJwt(request)

public signJwt(request: google.iam.credentials.v1.ISignJwtRequest): Promise<google.iam.credentials.v1.SignJwtResponse>;

Calls SignJwt.

Parameter
NameDescription
request ISignJwtRequest

SignJwtRequest message or plain object

Returns
TypeDescription
Promise<google.iam.credentials.v1.SignJwtResponse>

Promise