Class: StorageCollection

Class: StorageCollection

StorageCollection

Class that holds the StorageCollection resource. StorageCollections contain Storage objects which can be used to persist data in Oracle Mobile Cloud Enterprise.

Constructor

new StorageCollection()

Source:

Members

description :String

The description of the StorageCollection.
Type:
  • String
Deprecated:
Source:

Methods

contains(id) → {Promise.<NetworkResponse>}

Checks the service if a StorageObject with the given ID exists in the collection.
Parameters:
Name Type Description
id String The ID of the StorageObject to check.
Source:
Returns:
Type
Promise.<NetworkResponse>

deleteObject(id) → {Promise.<NetworkResponse>}

Deletes a StorageObject from a collection.
Parameters:
Name Type Description
id String The ID of the StorageObject to delete.
Source:
Returns:
Type
Promise.<NetworkResponse>

getData() → {object}

Get data. Returns data for current storage collection.
Source:
Returns:
storage object data for current storage collection.
Type
object

getDescription() → {String}

Get description. The description of the StorageCollection.
Source:
Returns:
Type
String

getStorage()

Returns storage object for current storage collection.
Source:
Returns:
storage object data for current storage collection.

getUserId() → {string}

Get user id. Returns user ID for current storage collection.
Source:
Returns:
user ID for current storage collection.
Type
string

putObject(storageObject) → {Promise.<(NetworkStorageObject|NetworkResponse)>}

Updates an existing StorageObject in the collection.
Parameters:
Name Type Description
storageObject StorageObject The StorageObject to update.
Source:
Returns:
Type
Promise.<(NetworkStorageObject|NetworkResponse)>