Method | Description | |
---|---|---|
AddChild ( string projectId, string dataId, string childId, string collectionId = null, string collectionKey = null, bool removeOther = false ) : Task |
Adds additional child to data with specified data_id. If remove_other is True, all other children of specified Data Object will be removed.
|
|
AddParent ( string projectId, string dataId, string parentId, string collectionId = null, string collectionKey = null, bool removeOther = false ) : Task |
Adds additional parent to data with specified data_id. If remove_other is True, all other parents of specified Data Object will be removed.
|
|
Copy (
|
Copies data with a specified data_id. Copies have their data_key cleared.
|
|
Count ( |
Counts data of specified criteria.
|
|
DataObjectSyncanoClient ( ISyncanoClient syncanoClient ) : System |
Creates DataObjectSyncanoClient object.
|
|
Delete ( |
Deletes a Data Object. If no filters are specified, will process all Data Objects in defined collection(s) (up to defined limit).
|
|
Get (
|
Get data from collection(s) or whole project with optional additional filtering. All filters, unless explicitly noted otherwise, affect all hierarchy levels. To paginate and to get more data, use since parameter.
|
|
GetOne ( string projectId, string collectionId = null, string collectionKey = null, string dataId = null, string dataKey = null, bool includeChildren = false, int depth = null, int childrenLimit = 100 ) : Task |
Get data by data_id or data_key. Either data_id or data_key has to be specified.
|
|
Merge ( |
Updates an existing Data Object if data with a specified data_id or data_key already exists. Will not delete/empty previously set data but merge it instead with new data.
|
|
Move ( |
Moves data to a folder and/or state.
|
|
New ( |
Creates a new Data Object.
|
|
RemoveChild ( string projectId, string dataId, string childId = null, string collectionId = null, string collectionKey = null ) : Task |
Removes a child (or children) from data with specified data_id.
|
|
RemoveParent ( string projectId, string dataId, string parentId = null, string collectionId = null, string collectionKey = null ) : Task |
Removes a parent (or parents) from data with specified data_id.
|
|
ToString ( ) : string | ||
Update ( |
Updates an existing Data Object if data with a specified data_id or data_key already exists. Will delete all Data Object fields and create a new one in its place (no previous data will remain).
|
Method | Description | |
---|---|---|
AssertAditionals ( string>.Dictionary |
public AddChild ( string projectId, string dataId, string childId, string collectionId = null, string collectionKey = null, bool removeOther = false ) : Task |
||
projectId | string | Project id. |
dataId | string | Data Object id. |
childId | string | Child id to add. |
collectionId | string | Collection id defining collection containing data. |
collectionKey | string | Collection key defining collection containing data. |
removeOther | bool | If true, will remove all other children. Default value: False. |
return | Task |
public AddParent ( string projectId, string dataId, string parentId, string collectionId = null, string collectionKey = null, bool removeOther = false ) : Task |
||
projectId | string | Project id. |
dataId | string | Data Object id. |
parentId | string | Parent id to add. |
collectionId | string | Collection id defining collection containing data. |
collectionKey | string | Collection key defining collection containing data. |
removeOther | bool | If true, will remove all other parents. Default value: False. |
return | Task |
public Copy (
|
||
request | Request for querying DataObjects. | |
return | Task
|
public Count ( |
||
request | Request for counting DataObjects. | |
return | Task |
public DataObjectSyncanoClient ( ISyncanoClient syncanoClient ) : System | ||
syncanoClient | ISyncanoClient | Object implementing ISyncanoClient interface. Provides means for connecting to Syncano. |
return | System |
public Delete ( |
||
request | Request for querying DataObjects. | |
return | Task |
public Get (
|
||
request | Request for querying data objects. | |
return | Task
|
public GetOne ( string projectId, string collectionId = null, string collectionKey = null, string dataId = null, string dataKey = null, bool includeChildren = false, int depth = null, int childrenLimit = 100 ) : Task |
||
projectId | string | Project id. |
collectionId | string | Collection idy defining a collection for which data will be returned. |
collectionKey | string | Collection key defining a collection for which data will be returned. |
dataId | string | Data Object's id. |
dataKey | string | Data Object's key. |
includeChildren | bool | If true, include Data Object children as well (recursively). Default value: False. Max 100 of children are shown in one request. |
depth | int | Max depth of children to follow. If not specified, will follow all levels until children limit is reached. |
childrenLimit | int | Limit of children to show (if include_children is True). Default and max value: 100 (some children levels may be incomplete if there are more than this limit). |
return | Task |
public Merge ( |
||
request | Request for defining new data object properties. | |
dataId | string | Data id. If both id and key are specified, will use id for getting object while data_key will be updated with provided new value. data_key has to be unique within collection. |
return | Task |
public Move ( |
||
request | Request for querying DataObjects. | |
newFolder | string | Destination folder where data will be moved. If not specified, leaves folder as is. |
newState | DataObjectState | State to be set data for specified data. Accepted values: Pending, Moderated. If not specified, leaves state as is. |
return | Task |
public New ( |
||
request | Request defining new object. | |
return | Task |
public RemoveChild ( string projectId, string dataId, string childId = null, string collectionId = null, string collectionKey = null ) : Task |
||
projectId | string | Project id. |
dataId | string | Data Object id. |
childId | string | Child id to remove. If not specified, will remove all Data Object children. |
collectionId | string | Collection id defining collection containing data. |
collectionKey | string | Collection key defining collection containing data. |
return | Task |
public RemoveParent ( string projectId, string dataId, string parentId = null, string collectionId = null, string collectionKey = null ) : Task |
||
projectId | string | Project id. |
dataId | string | Data Object id. |
parentId | string | Parent id to remove. If not specified, will remove all Data Object parents. |
collectionId | string | Collection id defining collection containing data. |
collectionKey | string | Collection key defining collection containing data. |
return | Task |
public Update ( |
||
request | Request for defining new data object properties. | |
dataId | string | Data id. If both id and key are specified, will use id for getting object while data_key will be updated with provided new value. data_key has to be unique within collection. |
return | Task |