Represents a CloudRedis
Inheritance
$protobuf.rpc.Service > protos.google.cloud.redis.v1.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.v1.ICreateInstanceRequest, callback: google.cloud.redis.v1.CloudRedis.CreateInstanceCallback): void;
Calls CreateInstance.
Name | Description |
request |
google.cloud.redis.v1.ICreateInstanceRequest
CreateInstanceRequest message or plain object |
callback |
google.cloud.redis.v1.CloudRedis.CreateInstanceCallback
Node-style callback called with the error, if any, and Operation |
Type | Description |
void |
createInstance(request)
public createInstance(request: google.cloud.redis.v1.ICreateInstanceRequest): Promise<google.longrunning.Operation>;
Calls CreateInstance.
Name | Description |
request |
google.cloud.redis.v1.ICreateInstanceRequest
CreateInstanceRequest message or plain object |
Type | Description |
Promise<google.longrunning.Operation> | Promise |
deleteInstance(request, callback)
public deleteInstance(request: google.cloud.redis.v1.IDeleteInstanceRequest, callback: google.cloud.redis.v1.CloudRedis.DeleteInstanceCallback): void;
Calls DeleteInstance.
Name | Description |
request |
google.cloud.redis.v1.IDeleteInstanceRequest
DeleteInstanceRequest message or plain object |
callback |
google.cloud.redis.v1.CloudRedis.DeleteInstanceCallback
Node-style callback called with the error, if any, and Operation |
Type | Description |
void |
deleteInstance(request)
public deleteInstance(request: google.cloud.redis.v1.IDeleteInstanceRequest): Promise<google.longrunning.Operation>;
Calls DeleteInstance.
Name | Description |
request |
google.cloud.redis.v1.IDeleteInstanceRequest
DeleteInstanceRequest message or plain object |
Type | Description |
Promise<google.longrunning.Operation> | Promise |
exportInstance(request, callback)
public exportInstance(request: google.cloud.redis.v1.IExportInstanceRequest, callback: google.cloud.redis.v1.CloudRedis.ExportInstanceCallback): void;
Calls ExportInstance.
Name | Description |
request |
google.cloud.redis.v1.IExportInstanceRequest
ExportInstanceRequest message or plain object |
callback |
google.cloud.redis.v1.CloudRedis.ExportInstanceCallback
Node-style callback called with the error, if any, and Operation |
Type | Description |
void |
exportInstance(request)
public exportInstance(request: google.cloud.redis.v1.IExportInstanceRequest): Promise<google.longrunning.Operation>;
Calls ExportInstance.
Name | Description |
request |
google.cloud.redis.v1.IExportInstanceRequest
ExportInstanceRequest message or plain object |
Type | Description |
Promise<google.longrunning.Operation> | Promise |
failoverInstance(request, callback)
public failoverInstance(request: google.cloud.redis.v1.IFailoverInstanceRequest, callback: google.cloud.redis.v1.CloudRedis.FailoverInstanceCallback): void;
Calls FailoverInstance.
Name | Description |
request |
google.cloud.redis.v1.IFailoverInstanceRequest
FailoverInstanceRequest message or plain object |
callback |
google.cloud.redis.v1.CloudRedis.FailoverInstanceCallback
Node-style callback called with the error, if any, and Operation |
Type | Description |
void |
failoverInstance(request)
public failoverInstance(request: google.cloud.redis.v1.IFailoverInstanceRequest): Promise<google.longrunning.Operation>;
Calls FailoverInstance.
Name | Description |
request |
google.cloud.redis.v1.IFailoverInstanceRequest
FailoverInstanceRequest message or plain object |
Type | Description |
Promise<google.longrunning.Operation> | Promise |
getInstance(request, callback)
public getInstance(request: google.cloud.redis.v1.IGetInstanceRequest, callback: google.cloud.redis.v1.CloudRedis.GetInstanceCallback): void;
Calls GetInstance.
Name | Description |
request |
IGetInstanceRequest
GetInstanceRequest message or plain object |
callback |
google.cloud.redis.v1.CloudRedis.GetInstanceCallback
Node-style callback called with the error, if any, and Instance |
Type | Description |
void |
getInstance(request)
public getInstance(request: google.cloud.redis.v1.IGetInstanceRequest): Promise<google.cloud.redis.v1.Instance>;
Calls GetInstance.
Name | Description |
request |
IGetInstanceRequest
GetInstanceRequest message or plain object |
Type | Description |
Promise<google.cloud.redis.v1.Instance> | Promise |
getInstanceAuthString(request, callback)
public getInstanceAuthString(request: google.cloud.redis.v1.IGetInstanceAuthStringRequest, callback: google.cloud.redis.v1.CloudRedis.GetInstanceAuthStringCallback): void;
Calls GetInstanceAuthString.
Name | Description |
request |
google.cloud.redis.v1.IGetInstanceAuthStringRequest
GetInstanceAuthStringRequest message or plain object |
callback |
google.cloud.redis.v1.CloudRedis.GetInstanceAuthStringCallback
Node-style callback called with the error, if any, and InstanceAuthString |
Type | Description |
void |
getInstanceAuthString(request)
public getInstanceAuthString(request: google.cloud.redis.v1.IGetInstanceAuthStringRequest): Promise<google.cloud.redis.v1.InstanceAuthString>;
Calls GetInstanceAuthString.
Name | Description |
request |
google.cloud.redis.v1.IGetInstanceAuthStringRequest
GetInstanceAuthStringRequest message or plain object |
Type | Description |
Promise<google.cloud.redis.v1.InstanceAuthString> | Promise |
importInstance(request, callback)
public importInstance(request: google.cloud.redis.v1.IImportInstanceRequest, callback: google.cloud.redis.v1.CloudRedis.ImportInstanceCallback): void;
Calls ImportInstance.
Name | Description |
request |
IImportInstanceRequest
ImportInstanceRequest message or plain object |
callback |
google.cloud.redis.v1.CloudRedis.ImportInstanceCallback
Node-style callback called with the error, if any, and Operation |
Type | Description |
void |
importInstance(request)
public importInstance(request: google.cloud.redis.v1.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.v1.IListInstancesRequest, callback: google.cloud.redis.v1.CloudRedis.ListInstancesCallback): void;
Calls ListInstances.
Name | Description |
request |
google.cloud.redis.v1.IListInstancesRequest
ListInstancesRequest message or plain object |
callback |
google.cloud.redis.v1.CloudRedis.ListInstancesCallback
Node-style callback called with the error, if any, and ListInstancesResponse |
Type | Description |
void |
listInstances(request)
public listInstances(request: google.cloud.redis.v1.IListInstancesRequest): Promise<google.cloud.redis.v1.ListInstancesResponse>;
Calls ListInstances.
Name | Description |
request |
google.cloud.redis.v1.IListInstancesRequest
ListInstancesRequest message or plain object |
Type | Description |
Promise<google.cloud.redis.v1.ListInstancesResponse> | Promise |
rescheduleMaintenance(request, callback)
public rescheduleMaintenance(request: google.cloud.redis.v1.IRescheduleMaintenanceRequest, callback: google.cloud.redis.v1.CloudRedis.RescheduleMaintenanceCallback): void;
Calls RescheduleMaintenance.
Name | Description |
request |
google.cloud.redis.v1.IRescheduleMaintenanceRequest
RescheduleMaintenanceRequest message or plain object |
callback |
google.cloud.redis.v1.CloudRedis.RescheduleMaintenanceCallback
Node-style callback called with the error, if any, and Operation |
Type | Description |
void |
rescheduleMaintenance(request)
public rescheduleMaintenance(request: google.cloud.redis.v1.IRescheduleMaintenanceRequest): Promise<google.longrunning.Operation>;
Calls RescheduleMaintenance.
Name | Description |
request |
google.cloud.redis.v1.IRescheduleMaintenanceRequest
RescheduleMaintenanceRequest message or plain object |
Type | Description |
Promise<google.longrunning.Operation> | Promise |
updateInstance(request, callback)
public updateInstance(request: google.cloud.redis.v1.IUpdateInstanceRequest, callback: google.cloud.redis.v1.CloudRedis.UpdateInstanceCallback): void;
Calls UpdateInstance.
Name | Description |
request |
google.cloud.redis.v1.IUpdateInstanceRequest
UpdateInstanceRequest message or plain object |
callback |
google.cloud.redis.v1.CloudRedis.UpdateInstanceCallback
Node-style callback called with the error, if any, and Operation |
Type | Description |
void |
updateInstance(request)
public updateInstance(request: google.cloud.redis.v1.IUpdateInstanceRequest): Promise<google.longrunning.Operation>;
Calls UpdateInstance.
Name | Description |
request |
google.cloud.redis.v1.IUpdateInstanceRequest
UpdateInstanceRequest message or plain object |
Type | Description |
Promise<google.longrunning.Operation> | Promise |
upgradeInstance(request, callback)
public upgradeInstance(request: google.cloud.redis.v1.IUpgradeInstanceRequest, callback: google.cloud.redis.v1.CloudRedis.UpgradeInstanceCallback): void;
Calls UpgradeInstance.
Name | Description |
request |
IUpgradeInstanceRequest
UpgradeInstanceRequest message or plain object |
callback |
google.cloud.redis.v1.CloudRedis.UpgradeInstanceCallback
Node-style callback called with the error, if any, and Operation |
Type | Description |
void |
upgradeInstance(request)
public upgradeInstance(request: google.cloud.redis.v1.IUpgradeInstanceRequest): Promise<google.longrunning.Operation>;
Calls UpgradeInstance.
Name | Description |
request |
IUpgradeInstanceRequest
UpgradeInstanceRequest message or plain object |
Type | Description |
Promise<google.longrunning.Operation> | Promise |