Represents an ApiKeys
Inheritance
$protobuf.rpc.Service > protos.google.api.apikeys.v2.ApiKeysPackage
@google-cloud/apikeysConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new ApiKeys 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): ApiKeys;
Creates new ApiKeys 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 |
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.
Name | Description |
request |
ICreateKeyRequest
CreateKeyRequest message or plain object |
callback |
google.api.apikeys.v2.ApiKeys.CreateKeyCallback
Node-style callback called with the error, if any, and Operation |
Type | Description |
void |
createKey(request)
public createKey(request: google.api.apikeys.v2.ICreateKeyRequest): Promise<google.longrunning.Operation>;
Calls CreateKey.
Name | Description |
request |
ICreateKeyRequest
CreateKeyRequest message or plain object |
Type | Description |
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.
Name | Description |
request |
google.api.apikeys.v2.IDeleteKeyRequest
DeleteKeyRequest message or plain object |
callback |
google.api.apikeys.v2.ApiKeys.DeleteKeyCallback
Node-style callback called with the error, if any, and Operation |
Type | Description |
void |
deleteKey(request)
public deleteKey(request: google.api.apikeys.v2.IDeleteKeyRequest): Promise<google.longrunning.Operation>;
Calls DeleteKey.
Name | Description |
request |
google.api.apikeys.v2.IDeleteKeyRequest
DeleteKeyRequest message or plain object |
Type | Description |
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.
Name | Description |
request |
IGetKeyRequest
GetKeyRequest message or plain object |
callback |
google.api.apikeys.v2.ApiKeys.GetKeyCallback
Node-style callback called with the error, if any, and Key |
Type | Description |
void |
getKey(request)
public getKey(request: google.api.apikeys.v2.IGetKeyRequest): Promise<google.api.apikeys.v2.Key>;
Calls GetKey.
Name | Description |
request |
IGetKeyRequest
GetKeyRequest message or plain object |
Type | Description |
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.
Name | Description |
request |
IGetKeyStringRequest
GetKeyStringRequest message or plain object |
callback |
google.api.apikeys.v2.ApiKeys.GetKeyStringCallback
Node-style callback called with the error, if any, and GetKeyStringResponse |
Type | Description |
void |
getKeyString(request)
public getKeyString(request: google.api.apikeys.v2.IGetKeyStringRequest): Promise<google.api.apikeys.v2.GetKeyStringResponse>;
Calls GetKeyString.
Name | Description |
request |
IGetKeyStringRequest
GetKeyStringRequest message or plain object |
Type | Description |
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.
Name | Description |
request |
IListKeysRequest
ListKeysRequest message or plain object |
callback |
google.api.apikeys.v2.ApiKeys.ListKeysCallback
Node-style callback called with the error, if any, and ListKeysResponse |
Type | Description |
void |
listKeys(request)
public listKeys(request: google.api.apikeys.v2.IListKeysRequest): Promise<google.api.apikeys.v2.ListKeysResponse>;
Calls ListKeys.
Name | Description |
request |
IListKeysRequest
ListKeysRequest message or plain object |
Type | Description |
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.
Name | Description |
request |
ILookupKeyRequest
LookupKeyRequest message or plain object |
callback |
google.api.apikeys.v2.ApiKeys.LookupKeyCallback
Node-style callback called with the error, if any, and LookupKeyResponse |
Type | Description |
void |
lookupKey(request)
public lookupKey(request: google.api.apikeys.v2.ILookupKeyRequest): Promise<google.api.apikeys.v2.LookupKeyResponse>;
Calls LookupKey.
Name | Description |
request |
ILookupKeyRequest
LookupKeyRequest message or plain object |
Type | Description |
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.
Name | Description |
request |
IUndeleteKeyRequest
UndeleteKeyRequest message or plain object |
callback |
google.api.apikeys.v2.ApiKeys.UndeleteKeyCallback
Node-style callback called with the error, if any, and Operation |
Type | Description |
void |
undeleteKey(request)
public undeleteKey(request: google.api.apikeys.v2.IUndeleteKeyRequest): Promise<google.longrunning.Operation>;
Calls UndeleteKey.
Name | Description |
request |
IUndeleteKeyRequest
UndeleteKeyRequest message or plain object |
Type | Description |
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.
Name | Description |
request |
IUpdateKeyRequest
UpdateKeyRequest message or plain object |
callback |
google.api.apikeys.v2.ApiKeys.UpdateKeyCallback
Node-style callback called with the error, if any, and Operation |
Type | Description |
void |
updateKey(request)
public updateKey(request: google.api.apikeys.v2.IUpdateKeyRequest): Promise<google.longrunning.Operation>;
Calls UpdateKey.
Name | Description |
request |
IUpdateKeyRequest
UpdateKeyRequest message or plain object |
Type | Description |
Promise<google.longrunning.Operation> | Promise |