Class protos.google.cloud.memorystore.v1beta.Memorystore (0.1.0)

Represents a Memorystore

Inheritance

$protobuf.rpc.Service > protos.google.cloud.memorystore.v1beta.Memorystore

Package

@google-cloud/memorystore

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new Memorystore service.

Parameters
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): Memorystore;

Creates new Memorystore service using the specified rpc implementation.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
Type Description
Memorystore

RPC service. Useful where requests and/or responses are streamed.

createInstance(request, callback)

public createInstance(request: google.cloud.memorystore.v1beta.ICreateInstanceRequest, callback: google.cloud.memorystore.v1beta.Memorystore.CreateInstanceCallback): void;

Calls CreateInstance.

Parameters
Name Description
request ICreateInstanceRequest

CreateInstanceRequest message or plain object

callback CreateInstanceCallback

Node-style callback called with the error, if any, and Operation

Returns
Type Description
void

createInstance(request)

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

Calls CreateInstance.

Parameter
Name Description
request ICreateInstanceRequest

CreateInstanceRequest message or plain object

Returns
Type Description
Promise<google.longrunning.Operation>

Promise

deleteInstance(request, callback)

public deleteInstance(request: google.cloud.memorystore.v1beta.IDeleteInstanceRequest, callback: google.cloud.memorystore.v1beta.Memorystore.DeleteInstanceCallback): void;

Calls DeleteInstance.

Parameters
Name Description
request IDeleteInstanceRequest

DeleteInstanceRequest message or plain object

callback DeleteInstanceCallback

Node-style callback called with the error, if any, and Operation

Returns
Type Description
void

deleteInstance(request)

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

Calls DeleteInstance.

Parameter
Name Description
request IDeleteInstanceRequest

DeleteInstanceRequest message or plain object

Returns
Type Description
Promise<google.longrunning.Operation>

Promise

getCertificateAuthority(request, callback)

public getCertificateAuthority(request: google.cloud.memorystore.v1beta.IGetCertificateAuthorityRequest, callback: google.cloud.memorystore.v1beta.Memorystore.GetCertificateAuthorityCallback): void;

Calls GetCertificateAuthority.

Parameters
Name Description
request IGetCertificateAuthorityRequest

GetCertificateAuthorityRequest message or plain object

callback GetCertificateAuthorityCallback

Node-style callback called with the error, if any, and CertificateAuthority

Returns
Type Description
void

getCertificateAuthority(request)

public getCertificateAuthority(request: google.cloud.memorystore.v1beta.IGetCertificateAuthorityRequest): Promise<google.cloud.memorystore.v1beta.CertificateAuthority>;

Calls GetCertificateAuthority.

Parameter
Name Description
request IGetCertificateAuthorityRequest

GetCertificateAuthorityRequest message or plain object

Returns
Type Description
Promise<google.cloud.memorystore.v1beta.CertificateAuthority>

Promise

getInstance(request, callback)

public getInstance(request: google.cloud.memorystore.v1beta.IGetInstanceRequest, callback: google.cloud.memorystore.v1beta.Memorystore.GetInstanceCallback): void;

Calls GetInstance.

Parameters
Name Description
request IGetInstanceRequest

GetInstanceRequest message or plain object

callback GetInstanceCallback

Node-style callback called with the error, if any, and Instance

Returns
Type Description
void

getInstance(request)

public getInstance(request: google.cloud.memorystore.v1beta.IGetInstanceRequest): Promise<google.cloud.memorystore.v1beta.Instance>;

Calls GetInstance.

Parameter
Name Description
request IGetInstanceRequest

GetInstanceRequest message or plain object

Returns
Type Description
Promise<google.cloud.memorystore.v1beta.Instance>

Promise

listInstances(request, callback)

public listInstances(request: google.cloud.memorystore.v1beta.IListInstancesRequest, callback: google.cloud.memorystore.v1beta.Memorystore.ListInstancesCallback): void;

Calls ListInstances.

Parameters
Name Description
request IListInstancesRequest

ListInstancesRequest message or plain object

callback ListInstancesCallback

Node-style callback called with the error, if any, and ListInstancesResponse

Returns
Type Description
void

listInstances(request)

public listInstances(request: google.cloud.memorystore.v1beta.IListInstancesRequest): Promise<google.cloud.memorystore.v1beta.ListInstancesResponse>;

Calls ListInstances.

Parameter
Name Description
request IListInstancesRequest

ListInstancesRequest message or plain object

Returns
Type Description
Promise<google.cloud.memorystore.v1beta.ListInstancesResponse>

Promise

updateInstance(request, callback)

public updateInstance(request: google.cloud.memorystore.v1beta.IUpdateInstanceRequest, callback: google.cloud.memorystore.v1beta.Memorystore.UpdateInstanceCallback): void;

Calls UpdateInstance.

Parameters
Name Description
request IUpdateInstanceRequest

UpdateInstanceRequest message or plain object

callback UpdateInstanceCallback

Node-style callback called with the error, if any, and Operation

Returns
Type Description
void

updateInstance(request)

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

Calls UpdateInstance.

Parameter
Name Description
request IUpdateInstanceRequest

UpdateInstanceRequest message or plain object

Returns
Type Description
Promise<google.longrunning.Operation>

Promise