C# 클래스 Syncano.Net.Api.ProjectSyncanoClient

Class with Project management api.
파일 보기 프로젝트 열기: Syncano/syncano-dotnet 1 사용 예제들

공개 메소드들

메소드 설명
Authorize ( string apiClientId, Permissions permission, string projectId ) : Task

Adds container-level permission to specified User API client. Requires Backend API key with Admin permission role.

Deauthorize ( string apiClientId, Permissions permission, string projectId ) : Task

Removes container-level permission from specified User API client. Requires Backend API key with Admin permission role.

Delete ( string projectId ) : Task

Delete (permanently) project with specified project_id.

Get ( ) : Task>

Get projects

User API key usage permitted. Returns only projects that have``read_data`` permission added through project.authorize().

GetOne ( string projectId ) : Task

Get one project.

User API key usage permitted if read_data permission is added to specified folder through project.authorize().

New ( string name, string description = null ) : Task

Create a new project.

ProjectSyncanoClient ( ISyncanoClient syncanoClient ) : System

Creates ProjectSyncanoClient object.

Update ( string projectId, string name = null, string description = null ) : Task

Update existing project.

메소드 상세

Authorize() 공개 메소드

Adds container-level permission to specified User API client. Requires Backend API key with Admin permission role.
public Authorize ( string apiClientId, Permissions permission, string projectId ) : Task
apiClientId string User API client id.
permission Permissions User API client's permission to add.
projectId string Project id defining project that permission will be added to.
리턴 Task

Deauthorize() 공개 메소드

Removes container-level permission from specified User API client. Requires Backend API key with Admin permission role.
public Deauthorize ( string apiClientId, Permissions permission, string projectId ) : Task
apiClientId string User API client id.
permission Permissions User API client's permission to remove.
projectId string Project id defining project that permission will be removed from.
리턴 Task

Delete() 공개 메소드

Delete (permanently) project with specified project_id.
public Delete ( string projectId ) : Task
projectId string Project id defining project to be deleted.
리턴 Task

Get() 공개 메소드

Get projects
User API key usage permitted. Returns only projects that have``read_data`` permission added through project.authorize().
public Get ( ) : Task>
리턴 Task>

GetOne() 공개 메소드

Get one project.
User API key usage permitted if read_data permission is added to specified folder through project.authorize().
public GetOne ( string projectId ) : Task
projectId string Project id defining project.
리턴 Task

New() 공개 메소드

Create a new project.
public New ( string name, string description = null ) : Task
name string New project's name.
description string New project's description.
리턴 Task

ProjectSyncanoClient() 공개 메소드

Creates ProjectSyncanoClient object.
public ProjectSyncanoClient ( ISyncanoClient syncanoClient ) : System
syncanoClient ISyncanoClient Object implementing ISyncanoClient interface. Provides means for connecting to Syncano.
리턴 System

Update() 공개 메소드

Update existing project.
public Update ( string projectId, string name = null, string description = null ) : Task
projectId string Existing project's id.
name string New name of specified project.
description string New description of specified project.
리턴 Task