Class protos.google.cloud.redis.v1beta1.CloudRedis (2.3.1)

Represents a CloudRedis

Inheritance

$protobuf.rpc.Service > protos.google.cloud.redis.v1beta1.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.v1beta1.ICreateInstanceRequest, callback: google.cloud.redis.v1beta1.CloudRedis.CreateInstanceCallback): void;

Calls CreateInstance.

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

Returns
TypeDescription
void

createInstance(request)

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

Calls CreateInstance.

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

CreateInstanceRequest message or plain object

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

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

Returns
TypeDescription
void

deleteInstance(request)

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

Calls DeleteInstance.

Parameter
NameDescription
request IDeleteInstanceRequest

DeleteInstanceRequest message or plain object

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

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

Returns
TypeDescription
void

exportInstance(request)

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

Calls ExportInstance.

Parameter
NameDescription
request IExportInstanceRequest

ExportInstanceRequest message or plain object

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

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

Returns
TypeDescription
void

failoverInstance(request)

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

Calls FailoverInstance.

Parameter
NameDescription
request IFailoverInstanceRequest

FailoverInstanceRequest message or plain object

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

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

Returns
TypeDescription
void

getInstance(request)

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

Calls GetInstance.

Parameter
NameDescription
request IGetInstanceRequest

GetInstanceRequest message or plain object

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

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

Returns
TypeDescription
void

importInstance(request)

public importInstance(request: google.cloud.redis.v1beta1.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.v1beta1.IListInstancesRequest, callback: google.cloud.redis.v1beta1.CloudRedis.ListInstancesCallback): void;

Calls ListInstances.

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

Returns
TypeDescription
void

listInstances(request)

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

Calls ListInstances.

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

ListInstancesRequest message or plain object

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

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

Returns
TypeDescription
void

updateInstance(request)

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

Calls UpdateInstance.

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

UpdateInstanceRequest message or plain object

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

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

Returns
TypeDescription
void

upgradeInstance(request)

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

Calls UpgradeInstance.

Parameter
NameDescription
request IUpgradeInstanceRequest

UpgradeInstanceRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise