Represents a IAMCredentials
Inheritance
$protobuf.rpc.Service > protos.google.iam.credentials.v1.IAMCredentialsPackage
@google-cloud/iam-credentialsConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new IAMCredentials service.
Name | Description |
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.
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Type | Description |
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.
Name | Description |
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 |
Type | Description |
void |
generateAccessToken(request)
public generateAccessToken(request: google.iam.credentials.v1.IGenerateAccessTokenRequest): Promise<google.iam.credentials.v1.GenerateAccessTokenResponse>;
Calls GenerateAccessToken.
Name | Description |
request |
IGenerateAccessTokenRequest
GenerateAccessTokenRequest message or plain object |
Type | Description |
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.
Name | Description |
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 |
Type | Description |
void |
generateIdToken(request)
public generateIdToken(request: google.iam.credentials.v1.IGenerateIdTokenRequest): Promise<google.iam.credentials.v1.GenerateIdTokenResponse>;
Calls GenerateIdToken.
Name | Description |
request |
IGenerateIdTokenRequest
GenerateIdTokenRequest message or plain object |
Type | Description |
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.
Name | Description |
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 |
Type | Description |
void |
signBlob(request)
public signBlob(request: google.iam.credentials.v1.ISignBlobRequest): Promise<google.iam.credentials.v1.SignBlobResponse>;
Calls SignBlob.
Name | Description |
request |
ISignBlobRequest
SignBlobRequest message or plain object |
Type | Description |
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.
Name | Description |
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 |
Type | Description |
void |
signJwt(request)
public signJwt(request: google.iam.credentials.v1.ISignJwtRequest): Promise<google.iam.credentials.v1.SignJwtResponse>;
Calls SignJwt.
Name | Description |
request |
ISignJwtRequest
SignJwtRequest message or plain object |
Type | Description |
Promise<google.iam.credentials.v1.SignJwtResponse> | Promise |