Class protos.google.cloud.redis.v1.CloudRedis (3.1.5)

Represents a CloudRedis

Inheritance

$protobuf.rpc.Service > protos.google.cloud.redis.v1.CloudRedis

Package

@google-cloud/redis

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

Creates new CloudRedis 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
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

createInstance(request)

public createInstance(request: google.cloud.redis.v1.ICreateInstanceRequest): Promise<google.longrunning.Operation>;

Calls CreateInstance.

Parameter
NameDescription
request google.cloud.redis.v1.ICreateInstanceRequest

CreateInstanceRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

deleteInstance(request)

public deleteInstance(request: google.cloud.redis.v1.IDeleteInstanceRequest): Promise<google.longrunning.Operation>;

Calls DeleteInstance.

Parameter
NameDescription
request google.cloud.redis.v1.IDeleteInstanceRequest

DeleteInstanceRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

exportInstance(request)

public exportInstance(request: google.cloud.redis.v1.IExportInstanceRequest): Promise<google.longrunning.Operation>;

Calls ExportInstance.

Parameter
NameDescription
request google.cloud.redis.v1.IExportInstanceRequest

ExportInstanceRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

failoverInstance(request)

public failoverInstance(request: google.cloud.redis.v1.IFailoverInstanceRequest): Promise<google.longrunning.Operation>;

Calls FailoverInstance.

Parameter
NameDescription
request google.cloud.redis.v1.IFailoverInstanceRequest

FailoverInstanceRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

getInstance(request)

public getInstance(request: google.cloud.redis.v1.IGetInstanceRequest): Promise<google.cloud.redis.v1.Instance>;

Calls GetInstance.

Parameter
NameDescription
request IGetInstanceRequest

GetInstanceRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

getInstanceAuthString(request)

public getInstanceAuthString(request: google.cloud.redis.v1.IGetInstanceAuthStringRequest): Promise<google.cloud.redis.v1.InstanceAuthString>;

Calls GetInstanceAuthString.

Parameter
NameDescription
request google.cloud.redis.v1.IGetInstanceAuthStringRequest

GetInstanceAuthStringRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

importInstance(request)

public importInstance(request: google.cloud.redis.v1.IImportInstanceRequest): Promise<google.longrunning.Operation>;

Calls ImportInstance.

Parameter
NameDescription
request IImportInstanceRequest

ImportInstanceRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

listInstances(request)

public listInstances(request: google.cloud.redis.v1.IListInstancesRequest): Promise<google.cloud.redis.v1.ListInstancesResponse>;

Calls ListInstances.

Parameter
NameDescription
request google.cloud.redis.v1.IListInstancesRequest

ListInstancesRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

rescheduleMaintenance(request)

public rescheduleMaintenance(request: google.cloud.redis.v1.IRescheduleMaintenanceRequest): Promise<google.longrunning.Operation>;

Calls RescheduleMaintenance.

Parameter
NameDescription
request google.cloud.redis.v1.IRescheduleMaintenanceRequest

RescheduleMaintenanceRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

updateInstance(request)

public updateInstance(request: google.cloud.redis.v1.IUpdateInstanceRequest): Promise<google.longrunning.Operation>;

Calls UpdateInstance.

Parameter
NameDescription
request google.cloud.redis.v1.IUpdateInstanceRequest

UpdateInstanceRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

upgradeInstance(request)

public upgradeInstance(request: google.cloud.redis.v1.IUpgradeInstanceRequest): Promise<google.longrunning.Operation>;

Calls UpgradeInstance.

Parameter
NameDescription
request IUpgradeInstanceRequest

UpgradeInstanceRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise