CloudMemcache

google.cloud.memcache.v1beta2. CloudMemcache

Represents a CloudMemcache

Constructor

new CloudMemcache(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new CloudMemcache service.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

Extends

  • $protobuf.rpc.Service

Methods

(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {CloudMemcache}

Creates new CloudMemcache service using the specified rpc implementation.

Parameters:
Name Type Attributes Default Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean <optional>
false

Whether requests are length-delimited

responseDelimited boolean <optional>
false

Whether responses are length-delimited

applyParameters(request, callback) → {undefined}

Calls ApplyParameters.

Parameters:
Name Type Description
request google.cloud.memcache.v1beta2.IApplyParametersRequest

ApplyParametersRequest message or plain object

callback google.cloud.memcache.v1beta2.CloudMemcache.ApplyParametersCallback

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

applyParameters(request) → {Promise.<google.longrunning.Operation>}

Calls ApplyParameters.

Parameters:
Name Type Description
request google.cloud.memcache.v1beta2.IApplyParametersRequest

ApplyParametersRequest message or plain object

createInstance(request, callback) → {undefined}

Calls CreateInstance.

Parameters:
Name Type Description
request google.cloud.memcache.v1beta2.ICreateInstanceRequest

CreateInstanceRequest message or plain object

callback google.cloud.memcache.v1beta2.CloudMemcache.CreateInstanceCallback

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

createInstance(request) → {Promise.<google.longrunning.Operation>}

Calls CreateInstance.

Parameters:
Name Type Description
request google.cloud.memcache.v1beta2.ICreateInstanceRequest

CreateInstanceRequest message or plain object

deleteInstance(request, callback) → {undefined}

Calls DeleteInstance.

Parameters:
Name Type Description
request google.cloud.memcache.v1beta2.IDeleteInstanceRequest

DeleteInstanceRequest message or plain object

callback google.cloud.memcache.v1beta2.CloudMemcache.DeleteInstanceCallback

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

deleteInstance(request) → {Promise.<google.longrunning.Operation>}

Calls DeleteInstance.

Parameters:
Name Type Description
request google.cloud.memcache.v1beta2.IDeleteInstanceRequest

DeleteInstanceRequest message or plain object

getInstance(request, callback) → {undefined}

Calls GetInstance.

Parameters:
Name Type Description
request google.cloud.memcache.v1beta2.IGetInstanceRequest

GetInstanceRequest message or plain object

callback google.cloud.memcache.v1beta2.CloudMemcache.GetInstanceCallback

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

getInstance(request) → {Promise.<google.cloud.memcache.v1beta2.Instance>}

Calls GetInstance.

Parameters:
Name Type Description
request google.cloud.memcache.v1beta2.IGetInstanceRequest

GetInstanceRequest message or plain object

listInstances(request, callback) → {undefined}

Calls ListInstances.

Parameters:
Name Type Description
request google.cloud.memcache.v1beta2.IListInstancesRequest

ListInstancesRequest message or plain object

callback google.cloud.memcache.v1beta2.CloudMemcache.ListInstancesCallback

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

listInstances(request) → {Promise.<google.cloud.memcache.v1beta2.ListInstancesResponse>}

Calls ListInstances.

Parameters:
Name Type Description
request google.cloud.memcache.v1beta2.IListInstancesRequest

ListInstancesRequest message or plain object

updateInstance(request, callback) → {undefined}

Calls UpdateInstance.

Parameters:
Name Type Description
request google.cloud.memcache.v1beta2.IUpdateInstanceRequest

UpdateInstanceRequest message or plain object

callback google.cloud.memcache.v1beta2.CloudMemcache.UpdateInstanceCallback

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

updateInstance(request) → {Promise.<google.longrunning.Operation>}

Calls UpdateInstance.

Parameters:
Name Type Description
request google.cloud.memcache.v1beta2.IUpdateInstanceRequest

UpdateInstanceRequest message or plain object

updateParameters(request, callback) → {undefined}

Calls UpdateParameters.

Parameters:
Name Type Description
request google.cloud.memcache.v1beta2.IUpdateParametersRequest

UpdateParametersRequest message or plain object

callback google.cloud.memcache.v1beta2.CloudMemcache.UpdateParametersCallback

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

updateParameters(request) → {Promise.<google.longrunning.Operation>}

Calls UpdateParameters.

Parameters:
Name Type Description
request google.cloud.memcache.v1beta2.IUpdateParametersRequest

UpdateParametersRequest message or plain object

Type Definitions

ApplyParametersCallback(error, responseopt)

Callback as used by google.cloud.memcache.v1beta2.CloudMemcache#applyParameters.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

CreateInstanceCallback(error, responseopt)

Callback as used by google.cloud.memcache.v1beta2.CloudMemcache#createInstance.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

DeleteInstanceCallback(error, responseopt)

Callback as used by google.cloud.memcache.v1beta2.CloudMemcache#deleteInstance.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

GetInstanceCallback(error, responseopt)

Callback as used by google.cloud.memcache.v1beta2.CloudMemcache#getInstance.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.memcache.v1beta2.Instance <optional>

Instance

ListInstancesCallback(error, responseopt)

Callback as used by google.cloud.memcache.v1beta2.CloudMemcache#listInstances.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.cloud.memcache.v1beta2.ListInstancesResponse <optional>

ListInstancesResponse

UpdateInstanceCallback(error, responseopt)

Callback as used by google.cloud.memcache.v1beta2.CloudMemcache#updateInstance.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

UpdateParametersCallback(error, responseopt)

Callback as used by google.cloud.memcache.v1beta2.CloudMemcache#updateParameters.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation