Represents a CloudRedis
Inheritance
$protobuf.rpc.Service > protos.google.cloud.redis.v1beta1.CloudRedisPackage
@google-cloud/redisConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new CloudRedis 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): CloudRedis;
Creates new CloudRedis 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 |
CloudRedis | RPC service. Useful where requests and/or responses are streamed. |
createInstance(request, callback)
public createInstance(request: google.cloud.redis.v1beta1.ICreateInstanceRequest, callback: google.cloud.redis.v1beta1.CloudRedis.CreateInstanceCallback): void;
Calls CreateInstance.
Name | Description |
request |
google.cloud.redis.v1beta1.ICreateInstanceRequest
CreateInstanceRequest message or plain object |
callback |
google.cloud.redis.v1beta1.CloudRedis.CreateInstanceCallback
Node-style callback called with the error, if any, and Operation |
Type | Description |
void |
createInstance(request)
public createInstance(request: google.cloud.redis.v1beta1.ICreateInstanceRequest): Promise<google.longrunning.Operation>;
Calls CreateInstance.
Name | Description |
request |
google.cloud.redis.v1beta1.ICreateInstanceRequest
CreateInstanceRequest message or plain object |
Type | Description |
Promise<google.longrunning.Operation> | Promise |
deleteInstance(request, callback)
public deleteInstance(request: google.cloud.redis.v1beta1.IDeleteInstanceRequest, callback: google.cloud.redis.v1beta1.CloudRedis.DeleteInstanceCallback): void;
Calls DeleteInstance.
Name | Description |
request |
IDeleteInstanceRequest
DeleteInstanceRequest message or plain object |
callback |
google.cloud.redis.v1beta1.CloudRedis.DeleteInstanceCallback
Node-style callback called with the error, if any, and Operation |
Type | Description |
void |
deleteInstance(request)
public deleteInstance(request: google.cloud.redis.v1beta1.IDeleteInstanceRequest): Promise<google.longrunning.Operation>;
Calls DeleteInstance.
Name | Description |
request |
IDeleteInstanceRequest
DeleteInstanceRequest message or plain object |
Type | Description |
Promise<google.longrunning.Operation> | Promise |
exportInstance(request, callback)
public exportInstance(request: google.cloud.redis.v1beta1.IExportInstanceRequest, callback: google.cloud.redis.v1beta1.CloudRedis.ExportInstanceCallback): void;
Calls ExportInstance.
Name | Description |
request |
IExportInstanceRequest
ExportInstanceRequest message or plain object |
callback |
google.cloud.redis.v1beta1.CloudRedis.ExportInstanceCallback
Node-style callback called with the error, if any, and Operation |
Type | Description |
void |
exportInstance(request)
public exportInstance(request: google.cloud.redis.v1beta1.IExportInstanceRequest): Promise<google.longrunning.Operation>;
Calls ExportInstance.
Name | Description |
request |
IExportInstanceRequest
ExportInstanceRequest message or plain object |
Type | Description |
Promise<google.longrunning.Operation> | Promise |
failoverInstance(request, callback)
public failoverInstance(request: google.cloud.redis.v1beta1.IFailoverInstanceRequest, callback: google.cloud.redis.v1beta1.CloudRedis.FailoverInstanceCallback): void;
Calls FailoverInstance.
Name | Description |
request |
IFailoverInstanceRequest
FailoverInstanceRequest message or plain object |
callback |
google.cloud.redis.v1beta1.CloudRedis.FailoverInstanceCallback
Node-style callback called with the error, if any, and Operation |
Type | Description |
void |
failoverInstance(request)
public failoverInstance(request: google.cloud.redis.v1beta1.IFailoverInstanceRequest): Promise<google.longrunning.Operation>;
Calls FailoverInstance.
Name | Description |
request |
IFailoverInstanceRequest
FailoverInstanceRequest message or plain object |
Type | Description |
Promise<google.longrunning.Operation> | Promise |
getInstance(request, callback)
public getInstance(request: google.cloud.redis.v1beta1.IGetInstanceRequest, callback: google.cloud.redis.v1beta1.CloudRedis.GetInstanceCallback): void;
Calls GetInstance.
Name | Description |
request |
IGetInstanceRequest
GetInstanceRequest message or plain object |
callback |
google.cloud.redis.v1beta1.CloudRedis.GetInstanceCallback
Node-style callback called with the error, if any, and Instance |
Type | Description |
void |
getInstance(request)
public getInstance(request: google.cloud.redis.v1beta1.IGetInstanceRequest): Promise<google.cloud.redis.v1beta1.Instance>;
Calls GetInstance.
Name | Description |
request |
IGetInstanceRequest
GetInstanceRequest message or plain object |
Type | Description |
Promise<google.cloud.redis.v1beta1.Instance> | Promise |
importInstance(request, callback)
public importInstance(request: google.cloud.redis.v1beta1.IImportInstanceRequest, callback: google.cloud.redis.v1beta1.CloudRedis.ImportInstanceCallback): void;
Calls ImportInstance.
Name | Description |
request |
IImportInstanceRequest
ImportInstanceRequest message or plain object |
callback |
google.cloud.redis.v1beta1.CloudRedis.ImportInstanceCallback
Node-style callback called with the error, if any, and Operation |
Type | Description |
void |
importInstance(request)
public importInstance(request: google.cloud.redis.v1beta1.IImportInstanceRequest): Promise<google.longrunning.Operation>;
Calls ImportInstance.
Name | Description |
request |
IImportInstanceRequest
ImportInstanceRequest message or plain object |
Type | Description |
Promise<google.longrunning.Operation> | Promise |
listInstances(request, callback)
public listInstances(request: google.cloud.redis.v1beta1.IListInstancesRequest, callback: google.cloud.redis.v1beta1.CloudRedis.ListInstancesCallback): void;
Calls ListInstances.
Name | Description |
request |
google.cloud.redis.v1beta1.IListInstancesRequest
ListInstancesRequest message or plain object |
callback |
google.cloud.redis.v1beta1.CloudRedis.ListInstancesCallback
Node-style callback called with the error, if any, and ListInstancesResponse |
Type | Description |
void |
listInstances(request)
public listInstances(request: google.cloud.redis.v1beta1.IListInstancesRequest): Promise<google.cloud.redis.v1beta1.ListInstancesResponse>;
Calls ListInstances.
Name | Description |
request |
google.cloud.redis.v1beta1.IListInstancesRequest
ListInstancesRequest message or plain object |
Type | Description |
Promise<google.cloud.redis.v1beta1.ListInstancesResponse> | Promise |
updateInstance(request, callback)
public updateInstance(request: google.cloud.redis.v1beta1.IUpdateInstanceRequest, callback: google.cloud.redis.v1beta1.CloudRedis.UpdateInstanceCallback): void;
Calls UpdateInstance.
Name | Description |
request |
google.cloud.redis.v1beta1.IUpdateInstanceRequest
UpdateInstanceRequest message or plain object |
callback |
google.cloud.redis.v1beta1.CloudRedis.UpdateInstanceCallback
Node-style callback called with the error, if any, and Operation |
Type | Description |
void |
updateInstance(request)
public updateInstance(request: google.cloud.redis.v1beta1.IUpdateInstanceRequest): Promise<google.longrunning.Operation>;
Calls UpdateInstance.
Name | Description |
request |
google.cloud.redis.v1beta1.IUpdateInstanceRequest
UpdateInstanceRequest message or plain object |
Type | Description |
Promise<google.longrunning.Operation> | Promise |
upgradeInstance(request, callback)
public upgradeInstance(request: google.cloud.redis.v1beta1.IUpgradeInstanceRequest, callback: google.cloud.redis.v1beta1.CloudRedis.UpgradeInstanceCallback): void;
Calls UpgradeInstance.
Name | Description |
request |
IUpgradeInstanceRequest
UpgradeInstanceRequest message or plain object |
callback |
google.cloud.redis.v1beta1.CloudRedis.UpgradeInstanceCallback
Node-style callback called with the error, if any, and Operation |
Type | Description |
void |
upgradeInstance(request)
public upgradeInstance(request: google.cloud.redis.v1beta1.IUpgradeInstanceRequest): Promise<google.longrunning.Operation>;
Calls UpgradeInstance.
Name | Description |
request |
IUpgradeInstanceRequest
UpgradeInstanceRequest message or plain object |
Type | Description |
Promise<google.longrunning.Operation> | Promise |