C# Класс Syncano.Net.Api.FolderSyncanoClient

Class with Folder management api.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Authorize ( string apiClientId, Permissions permission, string projectId, string folderName, string collectionId = null, string collectionKey = null ) : Task

Adds container-level permission to specified User API client. Requires Backend API key with Admin permission role. The collection_id/collection_key parameter means that one can use either one of them - collection_id or collection_key.

Deauthorize ( string apiClientId, Permissions permission, string projectId, string folderName, string collectionId = null, string collectionKey = null ) : Task

Removes container-level permission from specified User API client. Requires Backend API key with Admin permission role. The collection_id/collection_key parameter means that one can use either one of them - collection_id or collection_key.

Delete ( string projectId, string name, string collectionId = null, string collectionKey = null ) : Task

Permanently delete specified folder and all associated data. The collection_id/collection_key parameter means that one can use either one of them - collection_id or collection_key.

FolderSyncanoClient ( ISyncanoClient syncanoClient ) : System

Creates FolderSyncanoClient object.

Get ( string projectId, string collectionId = null, string collectionKey = null ) : Task>

Get folders for a specified collection. The collection_id/collection_key parameter means that one can use either one of them - collection_id or collection_key. User API key usage permitted. Returns only collections that have``read_data`` permission added through folder.authorize(), collection.authorize() or project.authorize().

GetOne ( string projectId, string folderName, string collectionId = null, string collectionKey = null ) : Task

Get folder for a specified collection and folder name. The collection_id/collection_key parameter means that one can use either one of them - collection_id or collection_key. User API key usage permitted if read_data permission is added to specified folder through folder.authorize(), collection.authorize() or project.authorize().

New ( string projectId, string name, string collectionId = null, string collectionKey = null ) : Task

Create new folder within a specified collection.

The collection_id/collection_key parameter means that one can use either one of them - collection_id or collection_key.

Update ( string projectId, string name, string collectionId = null, string collectionKey = null, string newName = null, string sourceId = null ) : Task

Create existing folder. The collection_id/collection_key parameter means that one can use either one of them - collection_id or collection_key.

Описание методов

Authorize() публичный Метод

Adds container-level permission to specified User API client. Requires Backend API key with Admin permission role. The collection_id/collection_key parameter means that one can use either one of them - collection_id or collection_key.
public Authorize ( string apiClientId, Permissions permission, string projectId, string folderName, string collectionId = null, string collectionKey = null ) : Task
apiClientId string User API client id.
permission Permissions User API client's permission to add.
projectId string Project containing specified container.
folderName string Folder name defining folder that permission will be added to.
collectionId string Collection containing specified container.
collectionKey string Collection containing specified container.
Результат Task

Deauthorize() публичный Метод

Removes container-level permission from specified User API client. Requires Backend API key with Admin permission role. The collection_id/collection_key parameter means that one can use either one of them - collection_id or collection_key.
public Deauthorize ( string apiClientId, Permissions permission, string projectId, string folderName, string collectionId = null, string collectionKey = null ) : Task
apiClientId string User API client id.
permission Permissions User API client's permission to remove.
projectId string Project containing specified container.
folderName string Folder name defining folder that permission will be removed from.
collectionId string Collection containing specified container.
collectionKey string Collection containing specified container.
Результат Task

Delete() публичный Метод

Permanently delete specified folder and all associated data. The collection_id/collection_key parameter means that one can use either one of them - collection_id or collection_key.
public Delete ( string projectId, string name, string collectionId = null, string collectionKey = null ) : Task
projectId string Project id.
name string Folder name to delete.
collectionId string Collection id defining collection where folder exists.
collectionKey string Collection key defining collection where folder exists.
Результат Task

FolderSyncanoClient() публичный Метод

Creates FolderSyncanoClient object.
public FolderSyncanoClient ( ISyncanoClient syncanoClient ) : System
syncanoClient ISyncanoClient Object implementing ISyncanoClient interface. Provides means for connecting to Syncano.
Результат System

Get() публичный Метод

Get folders for a specified collection. The collection_id/collection_key parameter means that one can use either one of them - collection_id or collection_key. User API key usage permitted. Returns only collections that have``read_data`` permission added through folder.authorize(), collection.authorize() or project.authorize().
public Get ( string projectId, string collectionId = null, string collectionKey = null ) : Task>
projectId string Project id.
collectionId string Collection id defining the collection for which folders will be returned.
collectionKey string Collection key defining the collection for which folders will be returned.
Результат Task>

GetOne() публичный Метод

Get folder for a specified collection and folder name. The collection_id/collection_key parameter means that one can use either one of them - collection_id or collection_key. User API key usage permitted if read_data permission is added to specified folder through folder.authorize(), collection.authorize() or project.authorize().
public GetOne ( string projectId, string folderName, string collectionId = null, string collectionKey = null ) : Task
projectId string Project id.
folderName string Folder name defining folder.
collectionId string Collection id defining a collection for which the folder will be returned.
collectionKey string Collection key defining a collection for which the folder will be returned.
Результат Task

New() публичный Метод

Create new folder within a specified collection.
The collection_id/collection_key parameter means that one can use either one of them - collection_id or collection_key.
public New ( string projectId, string name, string collectionId = null, string collectionKey = null ) : Task
projectId string Project id.
name string Folder name.
collectionId string Collection id defining collection where folder will be created.
collectionKey string Collection key defining collection where folder will be created.
Результат Task

Update() публичный Метод

Create existing folder. The collection_id/collection_key parameter means that one can use either one of them - collection_id or collection_key.
public Update ( string projectId, string name, string collectionId = null, string collectionKey = null, string newName = null, string sourceId = null ) : Task
projectId string Project id.
name string Current folder name.
collectionId string Collection id defining collection where folder exists.
collectionKey string Collection key defining collection where folder exists.
newName string New folder name.
sourceId string New source id, can be used for mapping folders to external source.
Результат Task