Class protos.google.api.apikeys.v2.ApiKeys (1.2.0)

Represents an ApiKeys

Inheritance

$protobuf.rpc.Service > protos.google.api.apikeys.v2.ApiKeys

Package

@google-cloud/apikeys

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new ApiKeys 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): ApiKeys;

Creates new ApiKeys 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
ApiKeys

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

createKey(request, callback)

public createKey(request: google.api.apikeys.v2.ICreateKeyRequest, callback: google.api.apikeys.v2.ApiKeys.CreateKeyCallback): void;

Calls CreateKey.

Parameters
NameDescription
request ICreateKeyRequest

CreateKeyRequest message or plain object

callback CreateKeyCallback

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

Returns
TypeDescription
void

createKey(request)

public createKey(request: google.api.apikeys.v2.ICreateKeyRequest): Promise<google.longrunning.Operation>;

Calls CreateKey.

Parameter
NameDescription
request ICreateKeyRequest

CreateKeyRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

deleteKey(request, callback)

public deleteKey(request: google.api.apikeys.v2.IDeleteKeyRequest, callback: google.api.apikeys.v2.ApiKeys.DeleteKeyCallback): void;

Calls DeleteKey.

Parameters
NameDescription
request IDeleteKeyRequest

DeleteKeyRequest message or plain object

callback DeleteKeyCallback

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

Returns
TypeDescription
void

deleteKey(request)

public deleteKey(request: google.api.apikeys.v2.IDeleteKeyRequest): Promise<google.longrunning.Operation>;

Calls DeleteKey.

Parameter
NameDescription
request IDeleteKeyRequest

DeleteKeyRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

getKey(request, callback)

public getKey(request: google.api.apikeys.v2.IGetKeyRequest, callback: google.api.apikeys.v2.ApiKeys.GetKeyCallback): void;

Calls GetKey.

Parameters
NameDescription
request IGetKeyRequest

GetKeyRequest message or plain object

callback GetKeyCallback

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

Returns
TypeDescription
void

getKey(request)

public getKey(request: google.api.apikeys.v2.IGetKeyRequest): Promise<google.api.apikeys.v2.Key>;

Calls GetKey.

Parameter
NameDescription
request IGetKeyRequest

GetKeyRequest message or plain object

Returns
TypeDescription
Promise<google.api.apikeys.v2.Key>

Promise

getKeyString(request, callback)

public getKeyString(request: google.api.apikeys.v2.IGetKeyStringRequest, callback: google.api.apikeys.v2.ApiKeys.GetKeyStringCallback): void;

Calls GetKeyString.

Parameters
NameDescription
request IGetKeyStringRequest

GetKeyStringRequest message or plain object

callback GetKeyStringCallback

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

Returns
TypeDescription
void

getKeyString(request)

public getKeyString(request: google.api.apikeys.v2.IGetKeyStringRequest): Promise<google.api.apikeys.v2.GetKeyStringResponse>;

Calls GetKeyString.

Parameter
NameDescription
request IGetKeyStringRequest

GetKeyStringRequest message or plain object

Returns
TypeDescription
Promise<google.api.apikeys.v2.GetKeyStringResponse>

Promise

listKeys(request, callback)

public listKeys(request: google.api.apikeys.v2.IListKeysRequest, callback: google.api.apikeys.v2.ApiKeys.ListKeysCallback): void;

Calls ListKeys.

Parameters
NameDescription
request IListKeysRequest

ListKeysRequest message or plain object

callback ListKeysCallback

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

Returns
TypeDescription
void

listKeys(request)

public listKeys(request: google.api.apikeys.v2.IListKeysRequest): Promise<google.api.apikeys.v2.ListKeysResponse>;

Calls ListKeys.

Parameter
NameDescription
request IListKeysRequest

ListKeysRequest message or plain object

Returns
TypeDescription
Promise<google.api.apikeys.v2.ListKeysResponse>

Promise

lookupKey(request, callback)

public lookupKey(request: google.api.apikeys.v2.ILookupKeyRequest, callback: google.api.apikeys.v2.ApiKeys.LookupKeyCallback): void;

Calls LookupKey.

Parameters
NameDescription
request ILookupKeyRequest

LookupKeyRequest message or plain object

callback LookupKeyCallback

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

Returns
TypeDescription
void

lookupKey(request)

public lookupKey(request: google.api.apikeys.v2.ILookupKeyRequest): Promise<google.api.apikeys.v2.LookupKeyResponse>;

Calls LookupKey.

Parameter
NameDescription
request ILookupKeyRequest

LookupKeyRequest message or plain object

Returns
TypeDescription
Promise<google.api.apikeys.v2.LookupKeyResponse>

Promise

undeleteKey(request, callback)

public undeleteKey(request: google.api.apikeys.v2.IUndeleteKeyRequest, callback: google.api.apikeys.v2.ApiKeys.UndeleteKeyCallback): void;

Calls UndeleteKey.

Parameters
NameDescription
request IUndeleteKeyRequest

UndeleteKeyRequest message or plain object

callback UndeleteKeyCallback

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

Returns
TypeDescription
void

undeleteKey(request)

public undeleteKey(request: google.api.apikeys.v2.IUndeleteKeyRequest): Promise<google.longrunning.Operation>;

Calls UndeleteKey.

Parameter
NameDescription
request IUndeleteKeyRequest

UndeleteKeyRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

updateKey(request, callback)

public updateKey(request: google.api.apikeys.v2.IUpdateKeyRequest, callback: google.api.apikeys.v2.ApiKeys.UpdateKeyCallback): void;

Calls UpdateKey.

Parameters
NameDescription
request IUpdateKeyRequest

UpdateKeyRequest message or plain object

callback UpdateKeyCallback

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

Returns
TypeDescription
void

updateKey(request)

public updateKey(request: google.api.apikeys.v2.IUpdateKeyRequest): Promise<google.longrunning.Operation>;

Calls UpdateKey.

Parameter
NameDescription
request IUpdateKeyRequest

UpdateKeyRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise