StorageCollection
Class that holds the StorageCollection resource. StorageCollections contain Storage objects
which can be used to persist data in Oracle Mobile Cloud Enterprise.
Members
description :String
The description of the StorageCollection.
Type:
- String
- Deprecated:
- Will be deleted in next version. Use StorageCollection#getDescription instead.
- 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. |
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. |
Returns:
- Type
- Promise.<NetworkResponse>
getData() → {object}
Get data.
Returns data for current storage collection.
Returns:
storage object data for current storage collection.
- Type
- object
getDescription() → {String}
Get description.
The description of the StorageCollection.
Returns:
- Type
- String
getStorage()
Returns storage object for current storage collection.
Returns:
storage object data for current storage collection.
getUserId() → {string}
Get user id.
Returns user ID for current storage collection.
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. |
Returns:
- Type
- Promise.<(NetworkStorageObject|NetworkResponse)>