DatastoreAdmin

google.datastore.admin.v1. DatastoreAdmin

Represents a DatastoreAdmin

Constructor

new DatastoreAdmin(rpcImpl, requestDelimitedopt, responseDelimitedopt)

Constructs a new DatastoreAdmin 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) → {DatastoreAdmin}

Creates new DatastoreAdmin 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

exportEntities(request, callback) → {undefined}

Calls ExportEntities.

Parameters:
Name Type Description
request google.datastore.admin.v1.IExportEntitiesRequest

ExportEntitiesRequest message or plain object

callback google.datastore.admin.v1.DatastoreAdmin.ExportEntitiesCallback

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

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

Calls ExportEntities.

Parameters:
Name Type Description
request google.datastore.admin.v1.IExportEntitiesRequest

ExportEntitiesRequest message or plain object

getIndex(request, callback) → {undefined}

Calls GetIndex.

Parameters:
Name Type Description
request google.datastore.admin.v1.IGetIndexRequest

GetIndexRequest message or plain object

callback google.datastore.admin.v1.DatastoreAdmin.GetIndexCallback

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

getIndex(request) → {Promise.<google.datastore.admin.v1.Index>}

Calls GetIndex.

Parameters:
Name Type Description
request google.datastore.admin.v1.IGetIndexRequest

GetIndexRequest message or plain object

importEntities(request, callback) → {undefined}

Calls ImportEntities.

Parameters:
Name Type Description
request google.datastore.admin.v1.IImportEntitiesRequest

ImportEntitiesRequest message or plain object

callback google.datastore.admin.v1.DatastoreAdmin.ImportEntitiesCallback

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

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

Calls ImportEntities.

Parameters:
Name Type Description
request google.datastore.admin.v1.IImportEntitiesRequest

ImportEntitiesRequest message or plain object

listIndexes(request, callback) → {undefined}

Calls ListIndexes.

Parameters:
Name Type Description
request google.datastore.admin.v1.IListIndexesRequest

ListIndexesRequest message or plain object

callback google.datastore.admin.v1.DatastoreAdmin.ListIndexesCallback

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

listIndexes(request) → {Promise.<google.datastore.admin.v1.ListIndexesResponse>}

Calls ListIndexes.

Parameters:
Name Type Description
request google.datastore.admin.v1.IListIndexesRequest

ListIndexesRequest message or plain object

Type Definitions

ExportEntitiesCallback(error, responseopt)

Callback as used by google.datastore.admin.v1.DatastoreAdmin#exportEntities.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

GetIndexCallback(error, responseopt)

Callback as used by google.datastore.admin.v1.DatastoreAdmin#getIndex.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.datastore.admin.v1.Index <optional>

Index

ImportEntitiesCallback(error, responseopt)

Callback as used by google.datastore.admin.v1.DatastoreAdmin#importEntities.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.longrunning.Operation <optional>

Operation

ListIndexesCallback(error, responseopt)

Callback as used by google.datastore.admin.v1.DatastoreAdmin#listIndexes.

Parameters:
Name Type Attributes Description
error Error | null

Error, if any

response google.datastore.admin.v1.ListIndexesResponse <optional>

ListIndexesResponse