diff --git a/C#/README.md b/C#/README.md
index 1ede481..d9a139d 100644
--- a/C#/README.md
+++ b/C#/README.md
@@ -4,7 +4,7 @@ This API provides a way to retrive & interact with data about DagsHub repositori
This C# SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
-- API version: 1.0.2
+- API version: 1.0.3
- SDK version: 1.0.3
- Build package: io.swagger.codegen.v3.generators.dotnet.CSharpClientCodegen
@@ -77,19 +77,21 @@ namespace Example
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("token", "Bearer");
- var apiInstance = new BranchesApi();
+ var apiInstance = new AnnotationsApi();
var owner = owner_example; // string | owner of the repository
var repo = repo_example; // string | name of the repository
- var branch = branch_example; // string | branch of the repository
+ var teamid = 789; // long? | Team ID
+ var projectId = 789; // long? | Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
try
{
- // Get Branch
- apiInstance.GetBranch(owner, repo, branch);
+ // Get team access level for annotation projects
+ LabelStudioProjectAccess result = apiInstance.GetLabelStudioTeamAccess(owner, repo, teamid, projectId);
+ Debug.WriteLine(result);
}
catch (Exception e)
{
- Debug.Print("Exception when calling BranchesApi.GetBranch: " + e.Message );
+ Debug.Print("Exception when calling AnnotationsApi.GetLabelStudioTeamAccess: " + e.Message );
}
}
}
@@ -103,6 +105,14 @@ All URIs are relative to *https://dagshub.com/api/v1*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
+*AnnotationsApi* | [**GetLabelStudioTeamAccess**](docs/AnnotationsApi.md#getlabelstudioteamaccess) | **GET** /repos/{owner}/{repo}/annotations/access/teams/{teamid} | Get team access level for annotation projects
+*AnnotationsApi* | [**GetLabelStudioUserAccess**](docs/AnnotationsApi.md#getlabelstudiouseraccess) | **GET** /repos/{owner}/{repo}/annotations/access/users/{userid} | Get user access level for annotation projects
+*AnnotationsApi* | [**GrantLabelStudioTeamAccess**](docs/AnnotationsApi.md#grantlabelstudioteamaccess) | **PUT** /repos/{owner}/{repo}/annotations/access/teams/{teamid} | Grant team access to annotation projects
+*AnnotationsApi* | [**GrantLabelStudioUserAccess**](docs/AnnotationsApi.md#grantlabelstudiouseraccess) | **PUT** /repos/{owner}/{repo}/annotations/access/users/{userid} | Grant user access to annotation projects
+*AnnotationsApi* | [**ListLabelStudioTeamAccess**](docs/AnnotationsApi.md#listlabelstudioteamaccess) | **GET** /repos/{owner}/{repo}/annotations/access/teams | List team access entries for annotation projects
+*AnnotationsApi* | [**ListLabelStudioUserAccess**](docs/AnnotationsApi.md#listlabelstudiouseraccess) | **GET** /repos/{owner}/{repo}/annotations/access/users | List user access entries for annotation projects
+*AnnotationsApi* | [**RevokeLabelStudioTeamAccess**](docs/AnnotationsApi.md#revokelabelstudioteamaccess) | **DELETE** /repos/{owner}/{repo}/annotations/access/teams/{teamid} | Revoke team access to annotation projects
+*AnnotationsApi* | [**RevokeLabelStudioUserAccess**](docs/AnnotationsApi.md#revokelabelstudiouseraccess) | **DELETE** /repos/{owner}/{repo}/annotations/access/users/{userid} | Revoke user access to annotation projects
*BranchesApi* | [**GetBranch**](docs/BranchesApi.md#getbranch) | **GET** /repos/{owner}/{repo}/branches/{branch} | Get Branch
*BranchesApi* | [**ListBranches**](docs/BranchesApi.md#listbranches) | **GET** /repos/{owner}/{repo}/branches | List Branches
*CollaboratorsApi* | [**AddCollaborator**](docs/CollaboratorsApi.md#addcollaborator) | **PUT** /repos/{owner}/{repo}/collaborators/{collaborator} | Add user as a collaborator
@@ -123,6 +133,7 @@ Class | Method | HTTP request | Description
*IssuesApi* | [**EditIssue**](docs/IssuesApi.md#editissue) | **PATCH** /repos/{owner}/{repo}/issues | Edit an issue
*IssuesApi* | [**GetIssue**](docs/IssuesApi.md#getissue) | **GET** /repos/{owner}/{repo}/issues/{index} | Get a single issue
*IssuesApi* | [**ListRepoIssues**](docs/IssuesApi.md#listrepoissues) | **GET** /repos/{owner}/{repo}/issues | List issues for a repository
+*OrganizationsApi* | [**CreateOrgTeam**](docs/OrganizationsApi.md#createorgteam) | **POST** /admin/orgs/{orgname}/teams | Create an organization team
*ReleasesApi* | [**ListReleases**](docs/ReleasesApi.md#listreleases) | **GET** /repos/{owner}/{repo}/releases | List Releases
*RepositoryApi* | [**CreateOrgRepo**](docs/RepositoryApi.md#createorgrepo) | **POST** /org/{orgname}/repos | Create in organization
*RepositoryApi* | [**CreateRepo**](docs/RepositoryApi.md#createrepo) | **POST** /user/repos | Create
@@ -146,13 +157,16 @@ Class | Method | HTTP request | Description
## Documentation for Models
- [Model.CollaboratorsCollaboratorBody](docs/CollaboratorsCollaboratorBody.md)
+ - [Model.CreateAnnotatorTeam](docs/CreateAnnotatorTeam.md)
- [Model.CreateRepo](docs/CreateRepo.md)
- [Model.EditExperimentPost](docs/EditExperimentPost.md)
- [Model.ExperimentKeys](docs/ExperimentKeys.md)
- [Model.File](docs/File.md)
- [Model.Files](docs/Files.md)
- [Model.Files1](docs/Files1.md)
+ - [Model.GrantLabelStudioAccess](docs/GrantLabelStudioAccess.md)
- [Model.HooksIdBody](docs/HooksIdBody.md)
+ - [Model.InlineResponse200](docs/InlineResponse200.md)
- [Model.Integration](docs/Integration.md)
- [Model.IntegrationInner](docs/IntegrationInner.md)
- [Model.Issue](docs/Issue.md)
@@ -160,6 +174,7 @@ Class | Method | HTTP request | Description
- [Model.IssueLabels](docs/IssueLabels.md)
- [Model.IssueMilestone](docs/IssueMilestone.md)
- [Model.Issues](docs/Issues.md)
+ - [Model.LabelStudioProjectAccess](docs/LabelStudioProjectAccess.md)
- [Model.Labels](docs/Labels.md)
- [Model.MigrateRepo](docs/MigrateRepo.md)
- [Model.PatchIssue](docs/PatchIssue.md)
diff --git a/C#/dagshub_api.sln b/C#/dagshub_api.sln
index 1485d6a..741a78a 100644
--- a/C#/dagshub_api.sln
+++ b/C#/dagshub_api.sln
@@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012
VisualStudioVersion = 12.0.0.0
MinimumVisualStudioVersion = 10.0.0.1
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "dagshub_api", "src\dagshub_api\dagshub_api.csproj", "{BB7FDD9F-1657-4C83-B5E3-E416BEC4C698}"
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "dagshub_api", "src\dagshub_api\dagshub_api.csproj", "{DC4E8379-1DB2-416F-B33C-82A82758E481}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "dagshub_api.Test", "src\dagshub_api.Test\dagshub_api.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}"
EndProject
@@ -12,10 +12,10 @@ Global
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {BB7FDD9F-1657-4C83-B5E3-E416BEC4C698}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {BB7FDD9F-1657-4C83-B5E3-E416BEC4C698}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {BB7FDD9F-1657-4C83-B5E3-E416BEC4C698}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {BB7FDD9F-1657-4C83-B5E3-E416BEC4C698}.Release|Any CPU.Build.0 = Release|Any CPU
+ {DC4E8379-1DB2-416F-B33C-82A82758E481}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {DC4E8379-1DB2-416F-B33C-82A82758E481}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {DC4E8379-1DB2-416F-B33C-82A82758E481}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {DC4E8379-1DB2-416F-B33C-82A82758E481}.Release|Any CPU.Build.0 = Release|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU
diff --git a/C#/docs/AnnotationsApi.md b/C#/docs/AnnotationsApi.md
new file mode 100644
index 0000000..c0f12d1
--- /dev/null
+++ b/C#/docs/AnnotationsApi.md
@@ -0,0 +1,599 @@
+# dagshub_api.Api.AnnotationsApi
+
+All URIs are relative to *https://dagshub.com/api/v1*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**GetLabelStudioTeamAccess**](AnnotationsApi.md#getlabelstudioteamaccess) | **GET** /repos/{owner}/{repo}/annotations/access/teams/{teamid} | Get team access level for annotation projects
+[**GetLabelStudioUserAccess**](AnnotationsApi.md#getlabelstudiouseraccess) | **GET** /repos/{owner}/{repo}/annotations/access/users/{userid} | Get user access level for annotation projects
+[**GrantLabelStudioTeamAccess**](AnnotationsApi.md#grantlabelstudioteamaccess) | **PUT** /repos/{owner}/{repo}/annotations/access/teams/{teamid} | Grant team access to annotation projects
+[**GrantLabelStudioUserAccess**](AnnotationsApi.md#grantlabelstudiouseraccess) | **PUT** /repos/{owner}/{repo}/annotations/access/users/{userid} | Grant user access to annotation projects
+[**ListLabelStudioTeamAccess**](AnnotationsApi.md#listlabelstudioteamaccess) | **GET** /repos/{owner}/{repo}/annotations/access/teams | List team access entries for annotation projects
+[**ListLabelStudioUserAccess**](AnnotationsApi.md#listlabelstudiouseraccess) | **GET** /repos/{owner}/{repo}/annotations/access/users | List user access entries for annotation projects
+[**RevokeLabelStudioTeamAccess**](AnnotationsApi.md#revokelabelstudioteamaccess) | **DELETE** /repos/{owner}/{repo}/annotations/access/teams/{teamid} | Revoke team access to annotation projects
+[**RevokeLabelStudioUserAccess**](AnnotationsApi.md#revokelabelstudiouseraccess) | **DELETE** /repos/{owner}/{repo}/annotations/access/users/{userid} | Revoke user access to annotation projects
+
+
+# **GetLabelStudioTeamAccess**
+> LabelStudioProjectAccess GetLabelStudioTeamAccess (string owner, string repo, long? teamid, long? projectId = null)
+
+Get team access level for annotation projects
+
+Get the access level for a specific team and project (or all projects)
+
+### Example
+```csharp
+using System;
+using System.Diagnostics;
+using dagshub_api.Api;
+using dagshub_api.Client;
+using dagshub_api.Model;
+
+namespace Example
+{
+ public class GetLabelStudioTeamAccessExample
+ {
+ public void main()
+ {
+ // Configure HTTP basic authorization: basicAuth
+ Configuration.Default.Username = "YOUR_USERNAME";
+ Configuration.Default.Password = "YOUR_PASSWORD";
+ // Configure API key authorization: tokenAuth
+ Configuration.Default.AddApiKey("token", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // Configuration.Default.AddApiKeyPrefix("token", "Bearer");
+
+ var apiInstance = new AnnotationsApi();
+ var owner = owner_example; // string | owner of the repository
+ var repo = repo_example; // string | name of the repository
+ var teamid = 789; // long? | Team ID
+ var projectId = 789; // long? | Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+
+ try
+ {
+ // Get team access level for annotation projects
+ LabelStudioProjectAccess result = apiInstance.GetLabelStudioTeamAccess(owner, repo, teamid, projectId);
+ Debug.WriteLine(result);
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling AnnotationsApi.GetLabelStudioTeamAccess: " + e.Message );
+ }
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **string**| owner of the repository |
+ **repo** | **string**| name of the repository |
+ **teamid** | **long?**| Team ID |
+ **projectId** | **long?**| Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. | [optional]
+
+### Return type
+
+[**LabelStudioProjectAccess**](LabelStudioProjectAccess.md)
+
+### Authorization
+
+[basicAuth](../README.md#basicAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **GetLabelStudioUserAccess**
+> InlineResponse200 GetLabelStudioUserAccess (string owner, string repo, long? userid, long? projectId = null)
+
+Get user access level for annotation projects
+
+Get the access level for a specific user and project (or all projects)
+
+### Example
+```csharp
+using System;
+using System.Diagnostics;
+using dagshub_api.Api;
+using dagshub_api.Client;
+using dagshub_api.Model;
+
+namespace Example
+{
+ public class GetLabelStudioUserAccessExample
+ {
+ public void main()
+ {
+ // Configure HTTP basic authorization: basicAuth
+ Configuration.Default.Username = "YOUR_USERNAME";
+ Configuration.Default.Password = "YOUR_PASSWORD";
+ // Configure API key authorization: tokenAuth
+ Configuration.Default.AddApiKey("token", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // Configuration.Default.AddApiKeyPrefix("token", "Bearer");
+
+ var apiInstance = new AnnotationsApi();
+ var owner = owner_example; // string | owner of the repository
+ var repo = repo_example; // string | name of the repository
+ var userid = 789; // long? | User ID
+ var projectId = 789; // long? | Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+
+ try
+ {
+ // Get user access level for annotation projects
+ InlineResponse200 result = apiInstance.GetLabelStudioUserAccess(owner, repo, userid, projectId);
+ Debug.WriteLine(result);
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling AnnotationsApi.GetLabelStudioUserAccess: " + e.Message );
+ }
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **string**| owner of the repository |
+ **repo** | **string**| name of the repository |
+ **userid** | **long?**| User ID |
+ **projectId** | **long?**| Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. | [optional]
+
+### Return type
+
+[**InlineResponse200**](InlineResponse200.md)
+
+### Authorization
+
+[basicAuth](../README.md#basicAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **GrantLabelStudioTeamAccess**
+> void GrantLabelStudioTeamAccess (GrantLabelStudioAccess body, string owner, string repo, long? teamid)
+
+Grant team access to annotation projects
+
+Grant a team access to specific Label Studio annotation projects (organization repositories only)
+
+### Example
+```csharp
+using System;
+using System.Diagnostics;
+using dagshub_api.Api;
+using dagshub_api.Client;
+using dagshub_api.Model;
+
+namespace Example
+{
+ public class GrantLabelStudioTeamAccessExample
+ {
+ public void main()
+ {
+ // Configure HTTP basic authorization: basicAuth
+ Configuration.Default.Username = "YOUR_USERNAME";
+ Configuration.Default.Password = "YOUR_PASSWORD";
+ // Configure API key authorization: tokenAuth
+ Configuration.Default.AddApiKey("token", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // Configuration.Default.AddApiKeyPrefix("token", "Bearer");
+
+ var apiInstance = new AnnotationsApi();
+ var body = new GrantLabelStudioAccess(); // GrantLabelStudioAccess |
+ var owner = owner_example; // string | owner of the repository
+ var repo = repo_example; // string | name of the repository
+ var teamid = 789; // long? | Team ID
+
+ try
+ {
+ // Grant team access to annotation projects
+ apiInstance.GrantLabelStudioTeamAccess(body, owner, repo, teamid);
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling AnnotationsApi.GrantLabelStudioTeamAccess: " + e.Message );
+ }
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**GrantLabelStudioAccess**](GrantLabelStudioAccess.md)| |
+ **owner** | **string**| owner of the repository |
+ **repo** | **string**| name of the repository |
+ **teamid** | **long?**| Team ID |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[basicAuth](../README.md#basicAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **GrantLabelStudioUserAccess**
+> void GrantLabelStudioUserAccess (GrantLabelStudioAccess body, string owner, string repo, long? userid)
+
+Grant user access to annotation projects
+
+Grant a user access to specific Label Studio annotation projects. User must be an organization member if the repo is owned by an organization.
+
+### Example
+```csharp
+using System;
+using System.Diagnostics;
+using dagshub_api.Api;
+using dagshub_api.Client;
+using dagshub_api.Model;
+
+namespace Example
+{
+ public class GrantLabelStudioUserAccessExample
+ {
+ public void main()
+ {
+ // Configure HTTP basic authorization: basicAuth
+ Configuration.Default.Username = "YOUR_USERNAME";
+ Configuration.Default.Password = "YOUR_PASSWORD";
+ // Configure API key authorization: tokenAuth
+ Configuration.Default.AddApiKey("token", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // Configuration.Default.AddApiKeyPrefix("token", "Bearer");
+
+ var apiInstance = new AnnotationsApi();
+ var body = new GrantLabelStudioAccess(); // GrantLabelStudioAccess |
+ var owner = owner_example; // string | owner of the repository
+ var repo = repo_example; // string | name of the repository
+ var userid = 789; // long? | User ID
+
+ try
+ {
+ // Grant user access to annotation projects
+ apiInstance.GrantLabelStudioUserAccess(body, owner, repo, userid);
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling AnnotationsApi.GrantLabelStudioUserAccess: " + e.Message );
+ }
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**GrantLabelStudioAccess**](GrantLabelStudioAccess.md)| |
+ **owner** | **string**| owner of the repository |
+ **repo** | **string**| name of the repository |
+ **userid** | **long?**| User ID |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[basicAuth](../README.md#basicAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **ListLabelStudioTeamAccess**
+> List ListLabelStudioTeamAccess (string owner, string repo, long? projectId = null)
+
+List team access entries for annotation projects
+
+Get a list of teams with access to Label Studio annotation projects in the repository (organization repositories only)
+
+### Example
+```csharp
+using System;
+using System.Diagnostics;
+using dagshub_api.Api;
+using dagshub_api.Client;
+using dagshub_api.Model;
+
+namespace Example
+{
+ public class ListLabelStudioTeamAccessExample
+ {
+ public void main()
+ {
+ // Configure HTTP basic authorization: basicAuth
+ Configuration.Default.Username = "YOUR_USERNAME";
+ Configuration.Default.Password = "YOUR_PASSWORD";
+ // Configure API key authorization: tokenAuth
+ Configuration.Default.AddApiKey("token", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // Configuration.Default.AddApiKeyPrefix("token", "Bearer");
+
+ var apiInstance = new AnnotationsApi();
+ var owner = owner_example; // string | owner of the repository
+ var repo = repo_example; // string | name of the repository
+ var projectId = 789; // long? | Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+
+ try
+ {
+ // List team access entries for annotation projects
+ List<LabelStudioProjectAccess> result = apiInstance.ListLabelStudioTeamAccess(owner, repo, projectId);
+ Debug.WriteLine(result);
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling AnnotationsApi.ListLabelStudioTeamAccess: " + e.Message );
+ }
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **string**| owner of the repository |
+ **repo** | **string**| name of the repository |
+ **projectId** | **long?**| Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. | [optional]
+
+### Return type
+
+[**List**](LabelStudioProjectAccess.md)
+
+### Authorization
+
+[basicAuth](../README.md#basicAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **ListLabelStudioUserAccess**
+> List ListLabelStudioUserAccess (string owner, string repo, long? projectId = null)
+
+List user access entries for annotation projects
+
+Get a list of users with access to Label Studio annotation projects in the repository
+
+### Example
+```csharp
+using System;
+using System.Diagnostics;
+using dagshub_api.Api;
+using dagshub_api.Client;
+using dagshub_api.Model;
+
+namespace Example
+{
+ public class ListLabelStudioUserAccessExample
+ {
+ public void main()
+ {
+ // Configure HTTP basic authorization: basicAuth
+ Configuration.Default.Username = "YOUR_USERNAME";
+ Configuration.Default.Password = "YOUR_PASSWORD";
+ // Configure API key authorization: tokenAuth
+ Configuration.Default.AddApiKey("token", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // Configuration.Default.AddApiKeyPrefix("token", "Bearer");
+
+ var apiInstance = new AnnotationsApi();
+ var owner = owner_example; // string | owner of the repository
+ var repo = repo_example; // string | name of the repository
+ var projectId = 789; // long? | Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+
+ try
+ {
+ // List user access entries for annotation projects
+ List<LabelStudioProjectAccess> result = apiInstance.ListLabelStudioUserAccess(owner, repo, projectId);
+ Debug.WriteLine(result);
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling AnnotationsApi.ListLabelStudioUserAccess: " + e.Message );
+ }
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **string**| owner of the repository |
+ **repo** | **string**| name of the repository |
+ **projectId** | **long?**| Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. | [optional]
+
+### Return type
+
+[**List**](LabelStudioProjectAccess.md)
+
+### Authorization
+
+[basicAuth](../README.md#basicAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **RevokeLabelStudioTeamAccess**
+> void RevokeLabelStudioTeamAccess (string owner, string repo, long? teamid, long? projectId = null)
+
+Revoke team access to annotation projects
+
+Revoke a team's access to Label Studio annotation projects
+
+### Example
+```csharp
+using System;
+using System.Diagnostics;
+using dagshub_api.Api;
+using dagshub_api.Client;
+using dagshub_api.Model;
+
+namespace Example
+{
+ public class RevokeLabelStudioTeamAccessExample
+ {
+ public void main()
+ {
+ // Configure HTTP basic authorization: basicAuth
+ Configuration.Default.Username = "YOUR_USERNAME";
+ Configuration.Default.Password = "YOUR_PASSWORD";
+ // Configure API key authorization: tokenAuth
+ Configuration.Default.AddApiKey("token", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // Configuration.Default.AddApiKeyPrefix("token", "Bearer");
+
+ var apiInstance = new AnnotationsApi();
+ var owner = owner_example; // string | owner of the repository
+ var repo = repo_example; // string | name of the repository
+ var teamid = 789; // long? | Team ID
+ var projectId = 789; // long? | Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+
+ try
+ {
+ // Revoke team access to annotation projects
+ apiInstance.RevokeLabelStudioTeamAccess(owner, repo, teamid, projectId);
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling AnnotationsApi.RevokeLabelStudioTeamAccess: " + e.Message );
+ }
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **string**| owner of the repository |
+ **repo** | **string**| name of the repository |
+ **teamid** | **long?**| Team ID |
+ **projectId** | **long?**| Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. | [optional]
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[basicAuth](../README.md#basicAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **RevokeLabelStudioUserAccess**
+> void RevokeLabelStudioUserAccess (string owner, string repo, long? userid, long? projectId = null)
+
+Revoke user access to annotation projects
+
+Revoke a user's access to Label Studio annotation projects
+
+### Example
+```csharp
+using System;
+using System.Diagnostics;
+using dagshub_api.Api;
+using dagshub_api.Client;
+using dagshub_api.Model;
+
+namespace Example
+{
+ public class RevokeLabelStudioUserAccessExample
+ {
+ public void main()
+ {
+ // Configure HTTP basic authorization: basicAuth
+ Configuration.Default.Username = "YOUR_USERNAME";
+ Configuration.Default.Password = "YOUR_PASSWORD";
+ // Configure API key authorization: tokenAuth
+ Configuration.Default.AddApiKey("token", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // Configuration.Default.AddApiKeyPrefix("token", "Bearer");
+
+ var apiInstance = new AnnotationsApi();
+ var owner = owner_example; // string | owner of the repository
+ var repo = repo_example; // string | name of the repository
+ var userid = 789; // long? | User ID
+ var projectId = 789; // long? | Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+
+ try
+ {
+ // Revoke user access to annotation projects
+ apiInstance.RevokeLabelStudioUserAccess(owner, repo, userid, projectId);
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling AnnotationsApi.RevokeLabelStudioUserAccess: " + e.Message );
+ }
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **string**| owner of the repository |
+ **repo** | **string**| name of the repository |
+ **userid** | **long?**| User ID |
+ **projectId** | **long?**| Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. | [optional]
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[basicAuth](../README.md#basicAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
diff --git a/C#/docs/CreateAnnotatorTeam.md b/C#/docs/CreateAnnotatorTeam.md
new file mode 100644
index 0000000..07cc06c
--- /dev/null
+++ b/C#/docs/CreateAnnotatorTeam.md
@@ -0,0 +1,12 @@
+# dagshub_api.Model.CreateAnnotatorTeam
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Name** | **string** | Team name |
+**Description** | **string** | Team description | [optional]
+**TeamType** | **string** | Type of team - normal teams have repository access, annotator teams only have annotation project access | [optional] [default to TeamTypeEnum.Normal]
+**Permission** | **string** | Repository permission level (required for normal teams, ignored for annotator teams) | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
diff --git a/C#/docs/Files1.md b/C#/docs/Files1.md
index ce8739d..349f969 100644
--- a/C#/docs/Files1.md
+++ b/C#/docs/Files1.md
@@ -4,8 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Entries** | **List<System.IO.Stream>** | | [optional]
-**Limit** | **int?** | | [optional]
-**NextToken** | **string** | | [optional]
+**NextToken** | **string** | Next token to continue pagination from | [optional]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/C#/docs/GrantLabelStudioAccess.md b/C#/docs/GrantLabelStudioAccess.md
new file mode 100644
index 0000000..febe523
--- /dev/null
+++ b/C#/docs/GrantLabelStudioAccess.md
@@ -0,0 +1,10 @@
+# dagshub_api.Model.GrantLabelStudioAccess
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**ProjectId** | **long?** | Project ID, -1 for wildcard access to all projects |
+**AccessLevel** | **string** | Access level to grant | [optional] [default to AccessLevelEnum.Annotator]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
diff --git a/C#/docs/InlineResponse200.md b/C#/docs/InlineResponse200.md
new file mode 100644
index 0000000..32469cb
--- /dev/null
+++ b/C#/docs/InlineResponse200.md
@@ -0,0 +1,11 @@
+# dagshub_api.Model.InlineResponse200
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**UserId** | **long?** | | [optional]
+**ProjectId** | **long?** | | [optional]
+**AccessLevel** | **string** | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
diff --git a/C#/docs/LabelStudioProjectAccess.md b/C#/docs/LabelStudioProjectAccess.md
new file mode 100644
index 0000000..00af554
--- /dev/null
+++ b/C#/docs/LabelStudioProjectAccess.md
@@ -0,0 +1,16 @@
+# dagshub_api.Model.LabelStudioProjectAccess
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Id** | **long?** | | [optional]
+**RepoId** | **long?** | | [optional]
+**ProjectId** | **long?** | Project ID, -1 means wildcard access to all projects | [optional]
+**UserId** | **long?** | User ID (present for user access entries) | [optional]
+**TeamId** | **long?** | Team ID (present for team access entries) | [optional]
+**AccessLevel** | **string** | | [optional]
+**CreatedUnix** | **long?** | | [optional]
+**User** | [**User**](User.md) | | [optional]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
diff --git a/C#/docs/OrganizationsApi.md b/C#/docs/OrganizationsApi.md
new file mode 100644
index 0000000..882e234
--- /dev/null
+++ b/C#/docs/OrganizationsApi.md
@@ -0,0 +1,77 @@
+# dagshub_api.Api.OrganizationsApi
+
+All URIs are relative to *https://dagshub.com/api/v1*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**CreateOrgTeam**](OrganizationsApi.md#createorgteam) | **POST** /admin/orgs/{orgname}/teams | Create an organization team
+
+
+# **CreateOrgTeam**
+> void CreateOrgTeam (CreateAnnotatorTeam body, string orgname)
+
+Create an organization team
+
+Create a new team in an organization. Use team_type \"annotator\" to create an annotator team with access only to annotation projects.
+
+### Example
+```csharp
+using System;
+using System.Diagnostics;
+using dagshub_api.Api;
+using dagshub_api.Client;
+using dagshub_api.Model;
+
+namespace Example
+{
+ public class CreateOrgTeamExample
+ {
+ public void main()
+ {
+ // Configure HTTP basic authorization: basicAuth
+ Configuration.Default.Username = "YOUR_USERNAME";
+ Configuration.Default.Password = "YOUR_PASSWORD";
+ // Configure API key authorization: tokenAuth
+ Configuration.Default.AddApiKey("token", "YOUR_API_KEY");
+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+ // Configuration.Default.AddApiKeyPrefix("token", "Bearer");
+
+ var apiInstance = new OrganizationsApi();
+ var body = new CreateAnnotatorTeam(); // CreateAnnotatorTeam |
+ var orgname = orgname_example; // string | A DagsHub organization name
+
+ try
+ {
+ // Create an organization team
+ apiInstance.CreateOrgTeam(body, orgname);
+ }
+ catch (Exception e)
+ {
+ Debug.Print("Exception when calling OrganizationsApi.CreateOrgTeam: " + e.Message );
+ }
+ }
+ }
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**CreateAnnotatorTeam**](CreateAnnotatorTeam.md)| |
+ **orgname** | **string**| A DagsHub organization name |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[basicAuth](../README.md#basicAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
diff --git a/C#/docs/StorageIntegrationsApi.md b/C#/docs/StorageIntegrationsApi.md
index c300e3a..01c1ea6 100644
--- a/C#/docs/StorageIntegrationsApi.md
+++ b/C#/docs/StorageIntegrationsApi.md
@@ -10,7 +10,7 @@ Method | HTTP request | Description
# **GetBucketContent**
-> Files1 GetBucketContent (string owner, string repo, string protocol, string bucket, string path, bool? includeSize = null, int? limit = null, string fromToken = null)
+> Files1 GetBucketContent (string owner, string repo, string protocol, string bucket, string path, bool? includeSize = null, int? limit = null, bool? paging = null, string fromToken = null)
List contents in the path
@@ -44,12 +44,13 @@ namespace Example
var path = path_example; // string | path of a folder in the repository
var includeSize = true; // bool? | (optional) (default to false)
var limit = 56; // int? | Maximum amount of items to return (optional) (default to 100)
- var fromToken = fromToken_example; // string | Token, from which to continue iteration (optional)
+ var paging = true; // bool? | Whether or not paging is enabled (optional) (default to false)
+ var fromToken = fromToken_example; // string | [Only if paging is enabled] token, from which to continue iteration (optional)
try
{
// List contents in the path
- Files1 result = apiInstance.GetBucketContent(owner, repo, protocol, bucket, path, includeSize, limit, fromToken);
+ Files1 result = apiInstance.GetBucketContent(owner, repo, protocol, bucket, path, includeSize, limit, paging, fromToken);
Debug.WriteLine(result);
}
catch (Exception e)
@@ -72,7 +73,8 @@ Name | Type | Description | Notes
**path** | **string**| path of a folder in the repository |
**includeSize** | **bool?**| | [optional] [default to false]
**limit** | **int?**| Maximum amount of items to return | [optional] [default to 100]
- **fromToken** | **string**| Token, from which to continue iteration | [optional]
+ **paging** | **bool?**| Whether or not paging is enabled | [optional] [default to false]
+ **fromToken** | **string**| [Only if paging is enabled] token, from which to continue iteration | [optional]
### Return type
diff --git a/C#/src/dagshub_api.Test/Api/AnnotationsApiTests.cs b/C#/src/dagshub_api.Test/Api/AnnotationsApiTests.cs
new file mode 100644
index 0000000..b3c1a3b
--- /dev/null
+++ b/C#/src/dagshub_api.Test/Api/AnnotationsApiTests.cs
@@ -0,0 +1,177 @@
+/*
+ * DagsHub API
+ *
+ * This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
+ *
+ * OpenAPI spec version: 1.0.3
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.IO;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.Reflection;
+using RestSharp;
+using NUnit.Framework;
+
+using dagshub_api.Client;
+using dagshub_api.Api;
+using dagshub_api.Model;
+
+namespace dagshub_api.Test
+{
+ ///
+ /// Class for testing AnnotationsApi
+ ///
+ ///
+ /// This file is automatically generated by Swagger Codegen.
+ /// Please update the test case below to test the API endpoint.
+ ///
+ [TestFixture]
+ public class AnnotationsApiTests
+ {
+ private AnnotationsApi instance;
+
+ ///
+ /// Setup before each unit test
+ ///
+ [SetUp]
+ public void Init()
+ {
+ instance = new AnnotationsApi();
+ }
+
+ ///
+ /// Clean up after each unit test
+ ///
+ [TearDown]
+ public void Cleanup()
+ {
+
+ }
+
+ ///
+ /// Test an instance of AnnotationsApi
+ ///
+ [Test]
+ public void InstanceTest()
+ {
+ // TODO uncomment below to test 'IsInstanceOfType' AnnotationsApi
+ //Assert.IsInstanceOfType(typeof(AnnotationsApi), instance, "instance is a AnnotationsApi");
+ }
+
+ ///
+ /// Test GetLabelStudioTeamAccess
+ ///
+ [Test]
+ public void GetLabelStudioTeamAccessTest()
+ {
+ // TODO uncomment below to test the method and replace null with proper value
+ //string owner = null;
+ //string repo = null;
+ //long? teamid = null;
+ //long? projectId = null;
+ //var response = instance.GetLabelStudioTeamAccess(owner, repo, teamid, projectId);
+ //Assert.IsInstanceOf (response, "response is LabelStudioProjectAccess");
+ }
+ ///
+ /// Test GetLabelStudioUserAccess
+ ///
+ [Test]
+ public void GetLabelStudioUserAccessTest()
+ {
+ // TODO uncomment below to test the method and replace null with proper value
+ //string owner = null;
+ //string repo = null;
+ //long? userid = null;
+ //long? projectId = null;
+ //var response = instance.GetLabelStudioUserAccess(owner, repo, userid, projectId);
+ //Assert.IsInstanceOf (response, "response is InlineResponse200");
+ }
+ ///
+ /// Test GrantLabelStudioTeamAccess
+ ///
+ [Test]
+ public void GrantLabelStudioTeamAccessTest()
+ {
+ // TODO uncomment below to test the method and replace null with proper value
+ //GrantLabelStudioAccess body = null;
+ //string owner = null;
+ //string repo = null;
+ //long? teamid = null;
+ //instance.GrantLabelStudioTeamAccess(body, owner, repo, teamid);
+
+ }
+ ///
+ /// Test GrantLabelStudioUserAccess
+ ///
+ [Test]
+ public void GrantLabelStudioUserAccessTest()
+ {
+ // TODO uncomment below to test the method and replace null with proper value
+ //GrantLabelStudioAccess body = null;
+ //string owner = null;
+ //string repo = null;
+ //long? userid = null;
+ //instance.GrantLabelStudioUserAccess(body, owner, repo, userid);
+
+ }
+ ///
+ /// Test ListLabelStudioTeamAccess
+ ///
+ [Test]
+ public void ListLabelStudioTeamAccessTest()
+ {
+ // TODO uncomment below to test the method and replace null with proper value
+ //string owner = null;
+ //string repo = null;
+ //long? projectId = null;
+ //var response = instance.ListLabelStudioTeamAccess(owner, repo, projectId);
+ //Assert.IsInstanceOf> (response, "response is List");
+ }
+ ///
+ /// Test ListLabelStudioUserAccess
+ ///
+ [Test]
+ public void ListLabelStudioUserAccessTest()
+ {
+ // TODO uncomment below to test the method and replace null with proper value
+ //string owner = null;
+ //string repo = null;
+ //long? projectId = null;
+ //var response = instance.ListLabelStudioUserAccess(owner, repo, projectId);
+ //Assert.IsInstanceOf> (response, "response is List");
+ }
+ ///
+ /// Test RevokeLabelStudioTeamAccess
+ ///
+ [Test]
+ public void RevokeLabelStudioTeamAccessTest()
+ {
+ // TODO uncomment below to test the method and replace null with proper value
+ //string owner = null;
+ //string repo = null;
+ //long? teamid = null;
+ //long? projectId = null;
+ //instance.RevokeLabelStudioTeamAccess(owner, repo, teamid, projectId);
+
+ }
+ ///
+ /// Test RevokeLabelStudioUserAccess
+ ///
+ [Test]
+ public void RevokeLabelStudioUserAccessTest()
+ {
+ // TODO uncomment below to test the method and replace null with proper value
+ //string owner = null;
+ //string repo = null;
+ //long? userid = null;
+ //long? projectId = null;
+ //instance.RevokeLabelStudioUserAccess(owner, repo, userid, projectId);
+
+ }
+ }
+
+}
diff --git a/C#/src/dagshub_api.Test/Api/BranchesApiTests.cs b/C#/src/dagshub_api.Test/Api/BranchesApiTests.cs
index 6c80b50..6921317 100644
--- a/C#/src/dagshub_api.Test/Api/BranchesApiTests.cs
+++ b/C#/src/dagshub_api.Test/Api/BranchesApiTests.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api.Test/Api/CollaboratorsApiTests.cs b/C#/src/dagshub_api.Test/Api/CollaboratorsApiTests.cs
index d13e93a..ed0fc26 100644
--- a/C#/src/dagshub_api.Test/Api/CollaboratorsApiTests.cs
+++ b/C#/src/dagshub_api.Test/Api/CollaboratorsApiTests.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api.Test/Api/CommitsApiTests.cs b/C#/src/dagshub_api.Test/Api/CommitsApiTests.cs
index 501f61f..04f301b 100644
--- a/C#/src/dagshub_api.Test/Api/CommitsApiTests.cs
+++ b/C#/src/dagshub_api.Test/Api/CommitsApiTests.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api.Test/Api/ContentApiTests.cs b/C#/src/dagshub_api.Test/Api/ContentApiTests.cs
index 832a3bc..9ca8e4e 100644
--- a/C#/src/dagshub_api.Test/Api/ContentApiTests.cs
+++ b/C#/src/dagshub_api.Test/Api/ContentApiTests.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api.Test/Api/ExperimentsApiTests.cs b/C#/src/dagshub_api.Test/Api/ExperimentsApiTests.cs
index 20ba102..96220cc 100644
--- a/C#/src/dagshub_api.Test/Api/ExperimentsApiTests.cs
+++ b/C#/src/dagshub_api.Test/Api/ExperimentsApiTests.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api.Test/Api/IssuesApiTests.cs b/C#/src/dagshub_api.Test/Api/IssuesApiTests.cs
index 29bbc70..0fca963 100644
--- a/C#/src/dagshub_api.Test/Api/IssuesApiTests.cs
+++ b/C#/src/dagshub_api.Test/Api/IssuesApiTests.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api.Test/Api/OrganizationsApiTests.cs b/C#/src/dagshub_api.Test/Api/OrganizationsApiTests.cs
new file mode 100644
index 0000000..d8266c9
--- /dev/null
+++ b/C#/src/dagshub_api.Test/Api/OrganizationsApiTests.cs
@@ -0,0 +1,79 @@
+/*
+ * DagsHub API
+ *
+ * This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
+ *
+ * OpenAPI spec version: 1.0.3
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.IO;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using System.Reflection;
+using RestSharp;
+using NUnit.Framework;
+
+using dagshub_api.Client;
+using dagshub_api.Api;
+using dagshub_api.Model;
+
+namespace dagshub_api.Test
+{
+ ///
+ /// Class for testing OrganizationsApi
+ ///
+ ///
+ /// This file is automatically generated by Swagger Codegen.
+ /// Please update the test case below to test the API endpoint.
+ ///
+ [TestFixture]
+ public class OrganizationsApiTests
+ {
+ private OrganizationsApi instance;
+
+ ///
+ /// Setup before each unit test
+ ///
+ [SetUp]
+ public void Init()
+ {
+ instance = new OrganizationsApi();
+ }
+
+ ///
+ /// Clean up after each unit test
+ ///
+ [TearDown]
+ public void Cleanup()
+ {
+
+ }
+
+ ///
+ /// Test an instance of OrganizationsApi
+ ///
+ [Test]
+ public void InstanceTest()
+ {
+ // TODO uncomment below to test 'IsInstanceOfType' OrganizationsApi
+ //Assert.IsInstanceOfType(typeof(OrganizationsApi), instance, "instance is a OrganizationsApi");
+ }
+
+ ///
+ /// Test CreateOrgTeam
+ ///
+ [Test]
+ public void CreateOrgTeamTest()
+ {
+ // TODO uncomment below to test the method and replace null with proper value
+ //CreateAnnotatorTeam body = null;
+ //string orgname = null;
+ //instance.CreateOrgTeam(body, orgname);
+
+ }
+ }
+
+}
diff --git a/C#/src/dagshub_api.Test/Api/ReleasesApiTests.cs b/C#/src/dagshub_api.Test/Api/ReleasesApiTests.cs
index 63165c9..1848d67 100644
--- a/C#/src/dagshub_api.Test/Api/ReleasesApiTests.cs
+++ b/C#/src/dagshub_api.Test/Api/ReleasesApiTests.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api.Test/Api/RepositoryApiTests.cs b/C#/src/dagshub_api.Test/Api/RepositoryApiTests.cs
index 54ebbe0..20ee373 100644
--- a/C#/src/dagshub_api.Test/Api/RepositoryApiTests.cs
+++ b/C#/src/dagshub_api.Test/Api/RepositoryApiTests.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api.Test/Api/StorageIntegrationsApiTests.cs b/C#/src/dagshub_api.Test/Api/StorageIntegrationsApiTests.cs
index 394e411..d04de28 100644
--- a/C#/src/dagshub_api.Test/Api/StorageIntegrationsApiTests.cs
+++ b/C#/src/dagshub_api.Test/Api/StorageIntegrationsApiTests.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
@@ -76,8 +76,9 @@ public void GetBucketContentTest()
//string path = null;
//bool? includeSize = null;
//int? limit = null;
+ //bool? paging = null;
//string fromToken = null;
- //var response = instance.GetBucketContent(owner, repo, protocol, bucket, path, includeSize, limit, fromToken);
+ //var response = instance.GetBucketContent(owner, repo, protocol, bucket, path, includeSize, limit, paging, fromToken);
//Assert.IsInstanceOf (response, "response is Files1");
}
///
diff --git a/C#/src/dagshub_api.Test/Api/UserApiTests.cs b/C#/src/dagshub_api.Test/Api/UserApiTests.cs
index af9454c..e5b902f 100644
--- a/C#/src/dagshub_api.Test/Api/UserApiTests.cs
+++ b/C#/src/dagshub_api.Test/Api/UserApiTests.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api.Test/Api/WebhooksApiTests.cs b/C#/src/dagshub_api.Test/Api/WebhooksApiTests.cs
index a7e83ed..73e51cc 100644
--- a/C#/src/dagshub_api.Test/Api/WebhooksApiTests.cs
+++ b/C#/src/dagshub_api.Test/Api/WebhooksApiTests.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api.Test/Model/CollaboratorsCollaboratorBodyTests.cs b/C#/src/dagshub_api.Test/Model/CollaboratorsCollaboratorBodyTests.cs
index 52b7281..5827416 100644
--- a/C#/src/dagshub_api.Test/Model/CollaboratorsCollaboratorBodyTests.cs
+++ b/C#/src/dagshub_api.Test/Model/CollaboratorsCollaboratorBodyTests.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api.Test/Model/CreateAnnotatorTeamTests.cs b/C#/src/dagshub_api.Test/Model/CreateAnnotatorTeamTests.cs
new file mode 100644
index 0000000..267c96c
--- /dev/null
+++ b/C#/src/dagshub_api.Test/Model/CreateAnnotatorTeamTests.cs
@@ -0,0 +1,103 @@
+/*
+ * DagsHub API
+ *
+ * This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
+ *
+ * OpenAPI spec version: 1.0.3
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+
+using NUnit.Framework;
+
+using System;
+using System.Linq;
+using System.IO;
+using System.Collections.Generic;
+using dagshub_api.Api;
+using dagshub_api.Model;
+using dagshub_api.Client;
+using System.Reflection;
+using Newtonsoft.Json;
+
+namespace dagshub_api.Test
+{
+ ///
+ /// Class for testing CreateAnnotatorTeam
+ ///
+ ///
+ /// This file is automatically generated by Swagger Codegen.
+ /// Please update the test case below to test the model.
+ ///
+ [TestFixture]
+ public class CreateAnnotatorTeamTests
+ {
+ // TODO uncomment below to declare an instance variable for CreateAnnotatorTeam
+ //private CreateAnnotatorTeam instance;
+
+ ///
+ /// Setup before each test
+ ///
+ [SetUp]
+ public void Init()
+ {
+ // TODO uncomment below to create an instance of CreateAnnotatorTeam
+ //instance = new CreateAnnotatorTeam();
+ }
+
+ ///
+ /// Clean up after each test
+ ///
+ [TearDown]
+ public void Cleanup()
+ {
+
+ }
+
+ ///
+ /// Test an instance of CreateAnnotatorTeam
+ ///
+ [Test]
+ public void CreateAnnotatorTeamInstanceTest()
+ {
+ // TODO uncomment below to test "IsInstanceOfType" CreateAnnotatorTeam
+ //Assert.IsInstanceOfType (instance, "variable 'instance' is a CreateAnnotatorTeam");
+ }
+
+
+ ///
+ /// Test the property 'Name'
+ ///
+ [Test]
+ public void NameTest()
+ {
+ // TODO unit test for the property 'Name'
+ }
+ ///
+ /// Test the property 'Description'
+ ///
+ [Test]
+ public void DescriptionTest()
+ {
+ // TODO unit test for the property 'Description'
+ }
+ ///
+ /// Test the property 'TeamType'
+ ///
+ [Test]
+ public void TeamTypeTest()
+ {
+ // TODO unit test for the property 'TeamType'
+ }
+ ///
+ /// Test the property 'Permission'
+ ///
+ [Test]
+ public void PermissionTest()
+ {
+ // TODO unit test for the property 'Permission'
+ }
+
+ }
+
+}
diff --git a/C#/src/dagshub_api.Test/Model/CreateRepoTests.cs b/C#/src/dagshub_api.Test/Model/CreateRepoTests.cs
index 6771ce1..d402519 100644
--- a/C#/src/dagshub_api.Test/Model/CreateRepoTests.cs
+++ b/C#/src/dagshub_api.Test/Model/CreateRepoTests.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api.Test/Model/EditExperimentPostTests.cs b/C#/src/dagshub_api.Test/Model/EditExperimentPostTests.cs
index 8219782..124ad4e 100644
--- a/C#/src/dagshub_api.Test/Model/EditExperimentPostTests.cs
+++ b/C#/src/dagshub_api.Test/Model/EditExperimentPostTests.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api.Test/Model/ExperimentKeysTests.cs b/C#/src/dagshub_api.Test/Model/ExperimentKeysTests.cs
index 66bc6e6..68adf7a 100644
--- a/C#/src/dagshub_api.Test/Model/ExperimentKeysTests.cs
+++ b/C#/src/dagshub_api.Test/Model/ExperimentKeysTests.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api.Test/Model/FileTests.cs b/C#/src/dagshub_api.Test/Model/FileTests.cs
index 000e4d7..bae0529 100644
--- a/C#/src/dagshub_api.Test/Model/FileTests.cs
+++ b/C#/src/dagshub_api.Test/Model/FileTests.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api.Test/Model/Files1Tests.cs b/C#/src/dagshub_api.Test/Model/Files1Tests.cs
index 447c5d4..f3df02f 100644
--- a/C#/src/dagshub_api.Test/Model/Files1Tests.cs
+++ b/C#/src/dagshub_api.Test/Model/Files1Tests.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
@@ -74,14 +74,6 @@ public void EntriesTest()
// TODO unit test for the property 'Entries'
}
///
- /// Test the property 'Limit'
- ///
- [Test]
- public void LimitTest()
- {
- // TODO unit test for the property 'Limit'
- }
- ///
/// Test the property 'NextToken'
///
[Test]
diff --git a/C#/src/dagshub_api.Test/Model/FilesTests.cs b/C#/src/dagshub_api.Test/Model/FilesTests.cs
index 6642f36..47b5e02 100644
--- a/C#/src/dagshub_api.Test/Model/FilesTests.cs
+++ b/C#/src/dagshub_api.Test/Model/FilesTests.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api.Test/Model/GrantLabelStudioAccessTests.cs b/C#/src/dagshub_api.Test/Model/GrantLabelStudioAccessTests.cs
new file mode 100644
index 0000000..9c328b0
--- /dev/null
+++ b/C#/src/dagshub_api.Test/Model/GrantLabelStudioAccessTests.cs
@@ -0,0 +1,87 @@
+/*
+ * DagsHub API
+ *
+ * This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
+ *
+ * OpenAPI spec version: 1.0.3
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+
+using NUnit.Framework;
+
+using System;
+using System.Linq;
+using System.IO;
+using System.Collections.Generic;
+using dagshub_api.Api;
+using dagshub_api.Model;
+using dagshub_api.Client;
+using System.Reflection;
+using Newtonsoft.Json;
+
+namespace dagshub_api.Test
+{
+ ///
+ /// Class for testing GrantLabelStudioAccess
+ ///
+ ///
+ /// This file is automatically generated by Swagger Codegen.
+ /// Please update the test case below to test the model.
+ ///
+ [TestFixture]
+ public class GrantLabelStudioAccessTests
+ {
+ // TODO uncomment below to declare an instance variable for GrantLabelStudioAccess
+ //private GrantLabelStudioAccess instance;
+
+ ///
+ /// Setup before each test
+ ///
+ [SetUp]
+ public void Init()
+ {
+ // TODO uncomment below to create an instance of GrantLabelStudioAccess
+ //instance = new GrantLabelStudioAccess();
+ }
+
+ ///
+ /// Clean up after each test
+ ///
+ [TearDown]
+ public void Cleanup()
+ {
+
+ }
+
+ ///
+ /// Test an instance of GrantLabelStudioAccess
+ ///
+ [Test]
+ public void GrantLabelStudioAccessInstanceTest()
+ {
+ // TODO uncomment below to test "IsInstanceOfType" GrantLabelStudioAccess
+ //Assert.IsInstanceOfType (instance, "variable 'instance' is a GrantLabelStudioAccess");
+ }
+
+
+ ///
+ /// Test the property 'ProjectId'
+ ///
+ [Test]
+ public void ProjectIdTest()
+ {
+ // TODO unit test for the property 'ProjectId'
+ }
+ ///
+ /// Test the property 'AccessLevel'
+ ///
+ [Test]
+ public void AccessLevelTest()
+ {
+ // TODO unit test for the property 'AccessLevel'
+ }
+
+ }
+
+}
diff --git a/C#/src/dagshub_api.Test/Model/HooksIdBodyTests.cs b/C#/src/dagshub_api.Test/Model/HooksIdBodyTests.cs
index f810f85..2f2b0ed 100644
--- a/C#/src/dagshub_api.Test/Model/HooksIdBodyTests.cs
+++ b/C#/src/dagshub_api.Test/Model/HooksIdBodyTests.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api.Test/Model/InlineResponse200Tests.cs b/C#/src/dagshub_api.Test/Model/InlineResponse200Tests.cs
new file mode 100644
index 0000000..a1f3b11
--- /dev/null
+++ b/C#/src/dagshub_api.Test/Model/InlineResponse200Tests.cs
@@ -0,0 +1,95 @@
+/*
+ * DagsHub API
+ *
+ * This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
+ *
+ * OpenAPI spec version: 1.0.3
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+
+using NUnit.Framework;
+
+using System;
+using System.Linq;
+using System.IO;
+using System.Collections.Generic;
+using dagshub_api.Api;
+using dagshub_api.Model;
+using dagshub_api.Client;
+using System.Reflection;
+using Newtonsoft.Json;
+
+namespace dagshub_api.Test
+{
+ ///
+ /// Class for testing InlineResponse200
+ ///
+ ///
+ /// This file is automatically generated by Swagger Codegen.
+ /// Please update the test case below to test the model.
+ ///
+ [TestFixture]
+ public class InlineResponse200Tests
+ {
+ // TODO uncomment below to declare an instance variable for InlineResponse200
+ //private InlineResponse200 instance;
+
+ ///
+ /// Setup before each test
+ ///
+ [SetUp]
+ public void Init()
+ {
+ // TODO uncomment below to create an instance of InlineResponse200
+ //instance = new InlineResponse200();
+ }
+
+ ///
+ /// Clean up after each test
+ ///
+ [TearDown]
+ public void Cleanup()
+ {
+
+ }
+
+ ///
+ /// Test an instance of InlineResponse200
+ ///
+ [Test]
+ public void InlineResponse200InstanceTest()
+ {
+ // TODO uncomment below to test "IsInstanceOfType" InlineResponse200
+ //Assert.IsInstanceOfType (instance, "variable 'instance' is a InlineResponse200");
+ }
+
+
+ ///
+ /// Test the property 'UserId'
+ ///
+ [Test]
+ public void UserIdTest()
+ {
+ // TODO unit test for the property 'UserId'
+ }
+ ///
+ /// Test the property 'ProjectId'
+ ///
+ [Test]
+ public void ProjectIdTest()
+ {
+ // TODO unit test for the property 'ProjectId'
+ }
+ ///
+ /// Test the property 'AccessLevel'
+ ///
+ [Test]
+ public void AccessLevelTest()
+ {
+ // TODO unit test for the property 'AccessLevel'
+ }
+
+ }
+
+}
diff --git a/C#/src/dagshub_api.Test/Model/IntegrationInnerTests.cs b/C#/src/dagshub_api.Test/Model/IntegrationInnerTests.cs
index 896fa71..b4fdd28 100644
--- a/C#/src/dagshub_api.Test/Model/IntegrationInnerTests.cs
+++ b/C#/src/dagshub_api.Test/Model/IntegrationInnerTests.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api.Test/Model/IntegrationTests.cs b/C#/src/dagshub_api.Test/Model/IntegrationTests.cs
index a98718e..d937c1c 100644
--- a/C#/src/dagshub_api.Test/Model/IntegrationTests.cs
+++ b/C#/src/dagshub_api.Test/Model/IntegrationTests.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api.Test/Model/IssueAssigneeTests.cs b/C#/src/dagshub_api.Test/Model/IssueAssigneeTests.cs
index 93a41ca..c747071 100644
--- a/C#/src/dagshub_api.Test/Model/IssueAssigneeTests.cs
+++ b/C#/src/dagshub_api.Test/Model/IssueAssigneeTests.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api.Test/Model/IssueLabelsTests.cs b/C#/src/dagshub_api.Test/Model/IssueLabelsTests.cs
index 890b5c9..ef79fe0 100644
--- a/C#/src/dagshub_api.Test/Model/IssueLabelsTests.cs
+++ b/C#/src/dagshub_api.Test/Model/IssueLabelsTests.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api.Test/Model/IssueMilestoneTests.cs b/C#/src/dagshub_api.Test/Model/IssueMilestoneTests.cs
index 62889dc..8069d50 100644
--- a/C#/src/dagshub_api.Test/Model/IssueMilestoneTests.cs
+++ b/C#/src/dagshub_api.Test/Model/IssueMilestoneTests.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api.Test/Model/IssueTests.cs b/C#/src/dagshub_api.Test/Model/IssueTests.cs
index df519c7..4729055 100644
--- a/C#/src/dagshub_api.Test/Model/IssueTests.cs
+++ b/C#/src/dagshub_api.Test/Model/IssueTests.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api.Test/Model/IssuesTests.cs b/C#/src/dagshub_api.Test/Model/IssuesTests.cs
index e45c799..9eae746 100644
--- a/C#/src/dagshub_api.Test/Model/IssuesTests.cs
+++ b/C#/src/dagshub_api.Test/Model/IssuesTests.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api.Test/Model/LabelStudioProjectAccessTests.cs b/C#/src/dagshub_api.Test/Model/LabelStudioProjectAccessTests.cs
new file mode 100644
index 0000000..f934bff
--- /dev/null
+++ b/C#/src/dagshub_api.Test/Model/LabelStudioProjectAccessTests.cs
@@ -0,0 +1,135 @@
+/*
+ * DagsHub API
+ *
+ * This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
+ *
+ * OpenAPI spec version: 1.0.3
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+
+using NUnit.Framework;
+
+using System;
+using System.Linq;
+using System.IO;
+using System.Collections.Generic;
+using dagshub_api.Api;
+using dagshub_api.Model;
+using dagshub_api.Client;
+using System.Reflection;
+using Newtonsoft.Json;
+
+namespace dagshub_api.Test
+{
+ ///
+ /// Class for testing LabelStudioProjectAccess
+ ///
+ ///
+ /// This file is automatically generated by Swagger Codegen.
+ /// Please update the test case below to test the model.
+ ///
+ [TestFixture]
+ public class LabelStudioProjectAccessTests
+ {
+ // TODO uncomment below to declare an instance variable for LabelStudioProjectAccess
+ //private LabelStudioProjectAccess instance;
+
+ ///
+ /// Setup before each test
+ ///
+ [SetUp]
+ public void Init()
+ {
+ // TODO uncomment below to create an instance of LabelStudioProjectAccess
+ //instance = new LabelStudioProjectAccess();
+ }
+
+ ///
+ /// Clean up after each test
+ ///
+ [TearDown]
+ public void Cleanup()
+ {
+
+ }
+
+ ///
+ /// Test an instance of LabelStudioProjectAccess
+ ///
+ [Test]
+ public void LabelStudioProjectAccessInstanceTest()
+ {
+ // TODO uncomment below to test "IsInstanceOfType" LabelStudioProjectAccess
+ //Assert.IsInstanceOfType (instance, "variable 'instance' is a LabelStudioProjectAccess");
+ }
+
+
+ ///
+ /// Test the property 'Id'
+ ///
+ [Test]
+ public void IdTest()
+ {
+ // TODO unit test for the property 'Id'
+ }
+ ///
+ /// Test the property 'RepoId'
+ ///
+ [Test]
+ public void RepoIdTest()
+ {
+ // TODO unit test for the property 'RepoId'
+ }
+ ///
+ /// Test the property 'ProjectId'
+ ///
+ [Test]
+ public void ProjectIdTest()
+ {
+ // TODO unit test for the property 'ProjectId'
+ }
+ ///
+ /// Test the property 'UserId'
+ ///
+ [Test]
+ public void UserIdTest()
+ {
+ // TODO unit test for the property 'UserId'
+ }
+ ///
+ /// Test the property 'TeamId'
+ ///
+ [Test]
+ public void TeamIdTest()
+ {
+ // TODO unit test for the property 'TeamId'
+ }
+ ///
+ /// Test the property 'AccessLevel'
+ ///
+ [Test]
+ public void AccessLevelTest()
+ {
+ // TODO unit test for the property 'AccessLevel'
+ }
+ ///
+ /// Test the property 'CreatedUnix'
+ ///
+ [Test]
+ public void CreatedUnixTest()
+ {
+ // TODO unit test for the property 'CreatedUnix'
+ }
+ ///
+ /// Test the property 'User'
+ ///
+ [Test]
+ public void UserTest()
+ {
+ // TODO unit test for the property 'User'
+ }
+
+ }
+
+}
diff --git a/C#/src/dagshub_api.Test/Model/LabelsTests.cs b/C#/src/dagshub_api.Test/Model/LabelsTests.cs
index 4a6da52..06c223b 100644
--- a/C#/src/dagshub_api.Test/Model/LabelsTests.cs
+++ b/C#/src/dagshub_api.Test/Model/LabelsTests.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api.Test/Model/MigrateRepoTests.cs b/C#/src/dagshub_api.Test/Model/MigrateRepoTests.cs
index 2b3208b..59b0882 100644
--- a/C#/src/dagshub_api.Test/Model/MigrateRepoTests.cs
+++ b/C#/src/dagshub_api.Test/Model/MigrateRepoTests.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api.Test/Model/PatchIssueTests.cs b/C#/src/dagshub_api.Test/Model/PatchIssueTests.cs
index 34d0762..4845467 100644
--- a/C#/src/dagshub_api.Test/Model/PatchIssueTests.cs
+++ b/C#/src/dagshub_api.Test/Model/PatchIssueTests.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api.Test/Model/PostIssueTests.cs b/C#/src/dagshub_api.Test/Model/PostIssueTests.cs
index dc2c8b7..cef0e10 100644
--- a/C#/src/dagshub_api.Test/Model/PostIssueTests.cs
+++ b/C#/src/dagshub_api.Test/Model/PostIssueTests.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api.Test/Model/PutFileTests.cs b/C#/src/dagshub_api.Test/Model/PutFileTests.cs
index 892d8eb..9bd733e 100644
--- a/C#/src/dagshub_api.Test/Model/PutFileTests.cs
+++ b/C#/src/dagshub_api.Test/Model/PutFileTests.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api.Test/Model/RepoHooksBodyTests.cs b/C#/src/dagshub_api.Test/Model/RepoHooksBodyTests.cs
index 70cc2be..24d6363 100644
--- a/C#/src/dagshub_api.Test/Model/RepoHooksBodyTests.cs
+++ b/C#/src/dagshub_api.Test/Model/RepoHooksBodyTests.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api.Test/Model/StateTests.cs b/C#/src/dagshub_api.Test/Model/StateTests.cs
index 8e4c0a3..9fdf326 100644
--- a/C#/src/dagshub_api.Test/Model/StateTests.cs
+++ b/C#/src/dagshub_api.Test/Model/StateTests.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api.Test/Model/UserTests.cs b/C#/src/dagshub_api.Test/Model/UserTests.cs
index 4b6053c..156e982 100644
--- a/C#/src/dagshub_api.Test/Model/UserTests.cs
+++ b/C#/src/dagshub_api.Test/Model/UserTests.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api.Test/Model/WebhookConfigTests.cs b/C#/src/dagshub_api.Test/Model/WebhookConfigTests.cs
index abd5658..9ed8162 100644
--- a/C#/src/dagshub_api.Test/Model/WebhookConfigTests.cs
+++ b/C#/src/dagshub_api.Test/Model/WebhookConfigTests.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api.Test/Model/WebhookEventsTests.cs b/C#/src/dagshub_api.Test/Model/WebhookEventsTests.cs
index e36b67a..8d46fed 100644
--- a/C#/src/dagshub_api.Test/Model/WebhookEventsTests.cs
+++ b/C#/src/dagshub_api.Test/Model/WebhookEventsTests.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api.Test/dagshub_api.Test.csproj b/C#/src/dagshub_api.Test/dagshub_api.Test.csproj
index 9aae521..32967d6 100644
--- a/C#/src/dagshub_api.Test/dagshub_api.Test.csproj
+++ b/C#/src/dagshub_api.Test/dagshub_api.Test.csproj
@@ -4,7 +4,7 @@ DagsHub API
This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
-OpenAPI spec version: 1.0.2
+OpenAPI spec version: 1.0.3
-->
@@ -81,7 +81,7 @@ OpenAPI spec version: 1.0.2
- {BB7FDD9F-1657-4C83-B5E3-E416BEC4C698}
+ {DC4E8379-1DB2-416F-B33C-82A82758E481}
dagshub_api
diff --git a/C#/src/dagshub_api/Api/AnnotationsApi.cs b/C#/src/dagshub_api/Api/AnnotationsApi.cs
new file mode 100644
index 0000000..e1da61a
--- /dev/null
+++ b/C#/src/dagshub_api/Api/AnnotationsApi.cs
@@ -0,0 +1,2032 @@
+/*
+ * DagsHub API
+ *
+ * This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
+ *
+ * OpenAPI spec version: 1.0.3
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using RestSharp;
+using dagshub_api.Client;
+using dagshub_api.Model;
+
+namespace dagshub_api.Api
+{
+ ///
+ /// Represents a collection of functions to interact with the API endpoints
+ ///
+ public interface IAnnotationsApi : IApiAccessor
+ {
+ #region Synchronous Operations
+ ///
+ /// Get team access level for annotation projects
+ ///
+ ///
+ /// Get the access level for a specific team and project (or all projects)
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// Team ID
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ /// LabelStudioProjectAccess
+ LabelStudioProjectAccess GetLabelStudioTeamAccess (string owner, string repo, long? teamid, long? projectId = null);
+
+ ///
+ /// Get team access level for annotation projects
+ ///
+ ///
+ /// Get the access level for a specific team and project (or all projects)
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// Team ID
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ /// ApiResponse of LabelStudioProjectAccess
+ ApiResponse GetLabelStudioTeamAccessWithHttpInfo (string owner, string repo, long? teamid, long? projectId = null);
+ ///
+ /// Get user access level for annotation projects
+ ///
+ ///
+ /// Get the access level for a specific user and project (or all projects)
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// User ID
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ /// InlineResponse200
+ InlineResponse200 GetLabelStudioUserAccess (string owner, string repo, long? userid, long? projectId = null);
+
+ ///
+ /// Get user access level for annotation projects
+ ///
+ ///
+ /// Get the access level for a specific user and project (or all projects)
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// User ID
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ /// ApiResponse of InlineResponse200
+ ApiResponse GetLabelStudioUserAccessWithHttpInfo (string owner, string repo, long? userid, long? projectId = null);
+ ///
+ /// Grant team access to annotation projects
+ ///
+ ///
+ /// Grant a team access to specific Label Studio annotation projects (organization repositories only)
+ ///
+ /// Thrown when fails to make API call
+ ///
+ /// owner of the repository
+ /// name of the repository
+ /// Team ID
+ ///
+ void GrantLabelStudioTeamAccess (GrantLabelStudioAccess body, string owner, string repo, long? teamid);
+
+ ///
+ /// Grant team access to annotation projects
+ ///
+ ///
+ /// Grant a team access to specific Label Studio annotation projects (organization repositories only)
+ ///
+ /// Thrown when fails to make API call
+ ///
+ /// owner of the repository
+ /// name of the repository
+ /// Team ID
+ /// ApiResponse of Object(void)
+ ApiResponse GrantLabelStudioTeamAccessWithHttpInfo (GrantLabelStudioAccess body, string owner, string repo, long? teamid);
+ ///
+ /// Grant user access to annotation projects
+ ///
+ ///
+ /// Grant a user access to specific Label Studio annotation projects. User must be an organization member if the repo is owned by an organization.
+ ///
+ /// Thrown when fails to make API call
+ ///
+ /// owner of the repository
+ /// name of the repository
+ /// User ID
+ ///
+ void GrantLabelStudioUserAccess (GrantLabelStudioAccess body, string owner, string repo, long? userid);
+
+ ///
+ /// Grant user access to annotation projects
+ ///
+ ///
+ /// Grant a user access to specific Label Studio annotation projects. User must be an organization member if the repo is owned by an organization.
+ ///
+ /// Thrown when fails to make API call
+ ///
+ /// owner of the repository
+ /// name of the repository
+ /// User ID
+ /// ApiResponse of Object(void)
+ ApiResponse GrantLabelStudioUserAccessWithHttpInfo (GrantLabelStudioAccess body, string owner, string repo, long? userid);
+ ///
+ /// List team access entries for annotation projects
+ ///
+ ///
+ /// Get a list of teams with access to Label Studio annotation projects in the repository (organization repositories only)
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ /// List<LabelStudioProjectAccess>
+ List ListLabelStudioTeamAccess (string owner, string repo, long? projectId = null);
+
+ ///
+ /// List team access entries for annotation projects
+ ///
+ ///
+ /// Get a list of teams with access to Label Studio annotation projects in the repository (organization repositories only)
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ /// ApiResponse of List<LabelStudioProjectAccess>
+ ApiResponse> ListLabelStudioTeamAccessWithHttpInfo (string owner, string repo, long? projectId = null);
+ ///
+ /// List user access entries for annotation projects
+ ///
+ ///
+ /// Get a list of users with access to Label Studio annotation projects in the repository
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ /// List<LabelStudioProjectAccess>
+ List ListLabelStudioUserAccess (string owner, string repo, long? projectId = null);
+
+ ///
+ /// List user access entries for annotation projects
+ ///
+ ///
+ /// Get a list of users with access to Label Studio annotation projects in the repository
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ /// ApiResponse of List<LabelStudioProjectAccess>
+ ApiResponse> ListLabelStudioUserAccessWithHttpInfo (string owner, string repo, long? projectId = null);
+ ///
+ /// Revoke team access to annotation projects
+ ///
+ ///
+ /// Revoke a team's access to Label Studio annotation projects
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// Team ID
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ ///
+ void RevokeLabelStudioTeamAccess (string owner, string repo, long? teamid, long? projectId = null);
+
+ ///
+ /// Revoke team access to annotation projects
+ ///
+ ///
+ /// Revoke a team's access to Label Studio annotation projects
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// Team ID
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ /// ApiResponse of Object(void)
+ ApiResponse RevokeLabelStudioTeamAccessWithHttpInfo (string owner, string repo, long? teamid, long? projectId = null);
+ ///
+ /// Revoke user access to annotation projects
+ ///
+ ///
+ /// Revoke a user's access to Label Studio annotation projects
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// User ID
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ ///
+ void RevokeLabelStudioUserAccess (string owner, string repo, long? userid, long? projectId = null);
+
+ ///
+ /// Revoke user access to annotation projects
+ ///
+ ///
+ /// Revoke a user's access to Label Studio annotation projects
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// User ID
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ /// ApiResponse of Object(void)
+ ApiResponse RevokeLabelStudioUserAccessWithHttpInfo (string owner, string repo, long? userid, long? projectId = null);
+ #endregion Synchronous Operations
+ #region Asynchronous Operations
+ ///
+ /// Get team access level for annotation projects
+ ///
+ ///
+ /// Get the access level for a specific team and project (or all projects)
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// Team ID
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ /// Task of LabelStudioProjectAccess
+ System.Threading.Tasks.Task GetLabelStudioTeamAccessAsync (string owner, string repo, long? teamid, long? projectId = null);
+
+ ///
+ /// Get team access level for annotation projects
+ ///
+ ///
+ /// Get the access level for a specific team and project (or all projects)
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// Team ID
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ /// Task of ApiResponse (LabelStudioProjectAccess)
+ System.Threading.Tasks.Task> GetLabelStudioTeamAccessAsyncWithHttpInfo (string owner, string repo, long? teamid, long? projectId = null);
+ ///
+ /// Get user access level for annotation projects
+ ///
+ ///
+ /// Get the access level for a specific user and project (or all projects)
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// User ID
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ /// Task of InlineResponse200
+ System.Threading.Tasks.Task GetLabelStudioUserAccessAsync (string owner, string repo, long? userid, long? projectId = null);
+
+ ///
+ /// Get user access level for annotation projects
+ ///
+ ///
+ /// Get the access level for a specific user and project (or all projects)
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// User ID
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ /// Task of ApiResponse (InlineResponse200)
+ System.Threading.Tasks.Task> GetLabelStudioUserAccessAsyncWithHttpInfo (string owner, string repo, long? userid, long? projectId = null);
+ ///
+ /// Grant team access to annotation projects
+ ///
+ ///
+ /// Grant a team access to specific Label Studio annotation projects (organization repositories only)
+ ///
+ /// Thrown when fails to make API call
+ ///
+ /// owner of the repository
+ /// name of the repository
+ /// Team ID
+ /// Task of void
+ System.Threading.Tasks.Task GrantLabelStudioTeamAccessAsync (GrantLabelStudioAccess body, string owner, string repo, long? teamid);
+
+ ///
+ /// Grant team access to annotation projects
+ ///
+ ///
+ /// Grant a team access to specific Label Studio annotation projects (organization repositories only)
+ ///
+ /// Thrown when fails to make API call
+ ///
+ /// owner of the repository
+ /// name of the repository
+ /// Team ID
+ /// Task of ApiResponse
+ System.Threading.Tasks.Task> GrantLabelStudioTeamAccessAsyncWithHttpInfo (GrantLabelStudioAccess body, string owner, string repo, long? teamid);
+ ///
+ /// Grant user access to annotation projects
+ ///
+ ///
+ /// Grant a user access to specific Label Studio annotation projects. User must be an organization member if the repo is owned by an organization.
+ ///
+ /// Thrown when fails to make API call
+ ///
+ /// owner of the repository
+ /// name of the repository
+ /// User ID
+ /// Task of void
+ System.Threading.Tasks.Task GrantLabelStudioUserAccessAsync (GrantLabelStudioAccess body, string owner, string repo, long? userid);
+
+ ///
+ /// Grant user access to annotation projects
+ ///
+ ///
+ /// Grant a user access to specific Label Studio annotation projects. User must be an organization member if the repo is owned by an organization.
+ ///
+ /// Thrown when fails to make API call
+ ///
+ /// owner of the repository
+ /// name of the repository
+ /// User ID
+ /// Task of ApiResponse
+ System.Threading.Tasks.Task> GrantLabelStudioUserAccessAsyncWithHttpInfo (GrantLabelStudioAccess body, string owner, string repo, long? userid);
+ ///
+ /// List team access entries for annotation projects
+ ///
+ ///
+ /// Get a list of teams with access to Label Studio annotation projects in the repository (organization repositories only)
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ /// Task of List<LabelStudioProjectAccess>
+ System.Threading.Tasks.Task> ListLabelStudioTeamAccessAsync (string owner, string repo, long? projectId = null);
+
+ ///
+ /// List team access entries for annotation projects
+ ///
+ ///
+ /// Get a list of teams with access to Label Studio annotation projects in the repository (organization repositories only)
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ /// Task of ApiResponse (List<LabelStudioProjectAccess>)
+ System.Threading.Tasks.Task>> ListLabelStudioTeamAccessAsyncWithHttpInfo (string owner, string repo, long? projectId = null);
+ ///
+ /// List user access entries for annotation projects
+ ///
+ ///
+ /// Get a list of users with access to Label Studio annotation projects in the repository
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ /// Task of List<LabelStudioProjectAccess>
+ System.Threading.Tasks.Task> ListLabelStudioUserAccessAsync (string owner, string repo, long? projectId = null);
+
+ ///
+ /// List user access entries for annotation projects
+ ///
+ ///
+ /// Get a list of users with access to Label Studio annotation projects in the repository
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ /// Task of ApiResponse (List<LabelStudioProjectAccess>)
+ System.Threading.Tasks.Task>> ListLabelStudioUserAccessAsyncWithHttpInfo (string owner, string repo, long? projectId = null);
+ ///
+ /// Revoke team access to annotation projects
+ ///
+ ///
+ /// Revoke a team's access to Label Studio annotation projects
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// Team ID
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ /// Task of void
+ System.Threading.Tasks.Task RevokeLabelStudioTeamAccessAsync (string owner, string repo, long? teamid, long? projectId = null);
+
+ ///
+ /// Revoke team access to annotation projects
+ ///
+ ///
+ /// Revoke a team's access to Label Studio annotation projects
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// Team ID
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ /// Task of ApiResponse
+ System.Threading.Tasks.Task> RevokeLabelStudioTeamAccessAsyncWithHttpInfo (string owner, string repo, long? teamid, long? projectId = null);
+ ///
+ /// Revoke user access to annotation projects
+ ///
+ ///
+ /// Revoke a user's access to Label Studio annotation projects
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// User ID
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ /// Task of void
+ System.Threading.Tasks.Task RevokeLabelStudioUserAccessAsync (string owner, string repo, long? userid, long? projectId = null);
+
+ ///
+ /// Revoke user access to annotation projects
+ ///
+ ///
+ /// Revoke a user's access to Label Studio annotation projects
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// User ID
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ /// Task of ApiResponse
+ System.Threading.Tasks.Task> RevokeLabelStudioUserAccessAsyncWithHttpInfo (string owner, string repo, long? userid, long? projectId = null);
+ #endregion Asynchronous Operations
+ }
+
+ ///
+ /// Represents a collection of functions to interact with the API endpoints
+ ///
+ public partial class AnnotationsApi : IAnnotationsApi
+ {
+ private dagshub_api.Client.ExceptionFactory _exceptionFactory = (name, response) => null;
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ ///
+ public AnnotationsApi(String basePath)
+ {
+ this.Configuration = new dagshub_api.Client.Configuration { BasePath = basePath };
+
+ ExceptionFactory = dagshub_api.Client.Configuration.DefaultExceptionFactory;
+ }
+
+ ///
+ /// Initializes a new instance of the class
+ ///
+ ///
+ public AnnotationsApi()
+ {
+ this.Configuration = dagshub_api.Client.Configuration.Default;
+
+ ExceptionFactory = dagshub_api.Client.Configuration.DefaultExceptionFactory;
+ }
+
+ ///
+ /// Initializes a new instance of the class
+ /// using Configuration object
+ ///
+ /// An instance of Configuration
+ ///
+ public AnnotationsApi(dagshub_api.Client.Configuration configuration = null)
+ {
+ if (configuration == null) // use the default one in Configuration
+ this.Configuration = dagshub_api.Client.Configuration.Default;
+ else
+ this.Configuration = configuration;
+
+ ExceptionFactory = dagshub_api.Client.Configuration.DefaultExceptionFactory;
+ }
+
+ ///
+ /// Gets the base path of the API client.
+ ///
+ /// The base path
+ public String GetBasePath()
+ {
+ return this.Configuration.ApiClient.RestClient.BaseUrl.ToString();
+ }
+
+ ///
+ /// Sets the base path of the API client.
+ ///
+ /// The base path
+ [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")]
+ public void SetBasePath(String basePath)
+ {
+ // do nothing
+ }
+
+ ///
+ /// Gets or sets the configuration object
+ ///
+ /// An instance of the Configuration
+ public dagshub_api.Client.Configuration Configuration {get; set;}
+
+ ///
+ /// Provides a factory method hook for the creation of exceptions.
+ ///
+ public dagshub_api.Client.ExceptionFactory ExceptionFactory
+ {
+ get
+ {
+ if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1)
+ {
+ throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported.");
+ }
+ return _exceptionFactory;
+ }
+ set { _exceptionFactory = value; }
+ }
+
+ ///
+ /// Gets the default header.
+ ///
+ /// Dictionary of HTTP header
+ [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")]
+ public IDictionary DefaultHeader()
+ {
+ return new ReadOnlyDictionary(this.Configuration.DefaultHeader);
+ }
+
+ ///
+ /// Add default header.
+ ///
+ /// Header field name.
+ /// Header field value.
+ ///
+ [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")]
+ public void AddDefaultHeader(string key, string value)
+ {
+ this.Configuration.AddDefaultHeader(key, value);
+ }
+
+ ///
+ /// Get team access level for annotation projects Get the access level for a specific team and project (or all projects)
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// Team ID
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ /// LabelStudioProjectAccess
+ public LabelStudioProjectAccess GetLabelStudioTeamAccess (string owner, string repo, long? teamid, long? projectId = null)
+ {
+ ApiResponse localVarResponse = GetLabelStudioTeamAccessWithHttpInfo(owner, repo, teamid, projectId);
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// Get team access level for annotation projects Get the access level for a specific team and project (or all projects)
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// Team ID
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ /// ApiResponse of LabelStudioProjectAccess
+ public ApiResponse< LabelStudioProjectAccess > GetLabelStudioTeamAccessWithHttpInfo (string owner, string repo, long? teamid, long? projectId = null)
+ {
+ // verify the required parameter 'owner' is set
+ if (owner == null)
+ throw new ApiException(400, "Missing required parameter 'owner' when calling AnnotationsApi->GetLabelStudioTeamAccess");
+ // verify the required parameter 'repo' is set
+ if (repo == null)
+ throw new ApiException(400, "Missing required parameter 'repo' when calling AnnotationsApi->GetLabelStudioTeamAccess");
+ // verify the required parameter 'teamid' is set
+ if (teamid == null)
+ throw new ApiException(400, "Missing required parameter 'teamid' when calling AnnotationsApi->GetLabelStudioTeamAccess");
+
+ var localVarPath = "/repos/{owner}/{repo}/annotations/access/teams/{teamid}";
+ var localVarPathParams = new Dictionary();
+ var localVarQueryParams = new List>();
+ var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader);
+ var localVarFormParams = new Dictionary();
+ var localVarFileParams = new Dictionary();
+ Object localVarPostBody = null;
+
+ // to determine the Content-Type header
+ String[] localVarHttpContentTypes = new String[] {
+ };
+ String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
+
+ // to determine the Accept header
+ String[] localVarHttpHeaderAccepts = new String[] {
+ "application/json"
+ };
+ String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
+ if (localVarHttpHeaderAccept != null)
+ localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
+
+ if (owner != null) localVarPathParams.Add("owner", this.Configuration.ApiClient.ParameterToString(owner)); // path parameter
+ if (repo != null) localVarPathParams.Add("repo", this.Configuration.ApiClient.ParameterToString(repo)); // path parameter
+ if (teamid != null) localVarPathParams.Add("teamid", this.Configuration.ApiClient.ParameterToString(teamid)); // path parameter
+ if (projectId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "project_id", projectId)); // query parameter
+ // authentication (basicAuth) required
+ // http basic authentication required
+ if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password))
+ {
+ localVarHeaderParams["Authorization"] = "Basic " + ApiClient.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password);
+ }
+ // authentication (tokenAuth) required
+ if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("token")))
+ {
+ localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "token", this.Configuration.GetApiKeyWithPrefix("token")));
+ }
+
+ // make the HTTP request
+ IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath,
+ Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
+ localVarPathParams, localVarHttpContentType);
+
+ int localVarStatusCode = (int) localVarResponse.StatusCode;
+
+ if (ExceptionFactory != null)
+ {
+ Exception exception = ExceptionFactory("GetLabelStudioTeamAccess", localVarResponse);
+ if (exception != null) throw exception;
+ }
+
+ return new ApiResponse(localVarStatusCode,
+ localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
+ (LabelStudioProjectAccess) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LabelStudioProjectAccess)));
+ }
+
+ ///
+ /// Get team access level for annotation projects Get the access level for a specific team and project (or all projects)
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// Team ID
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ /// Task of LabelStudioProjectAccess
+ public async System.Threading.Tasks.Task GetLabelStudioTeamAccessAsync (string owner, string repo, long? teamid, long? projectId = null)
+ {
+ ApiResponse localVarResponse = await GetLabelStudioTeamAccessAsyncWithHttpInfo(owner, repo, teamid, projectId);
+ return localVarResponse.Data;
+
+ }
+
+ ///
+ /// Get team access level for annotation projects Get the access level for a specific team and project (or all projects)
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// Team ID
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ /// Task of ApiResponse (LabelStudioProjectAccess)
+ public async System.Threading.Tasks.Task> GetLabelStudioTeamAccessAsyncWithHttpInfo (string owner, string repo, long? teamid, long? projectId = null)
+ {
+ // verify the required parameter 'owner' is set
+ if (owner == null)
+ throw new ApiException(400, "Missing required parameter 'owner' when calling AnnotationsApi->GetLabelStudioTeamAccess");
+ // verify the required parameter 'repo' is set
+ if (repo == null)
+ throw new ApiException(400, "Missing required parameter 'repo' when calling AnnotationsApi->GetLabelStudioTeamAccess");
+ // verify the required parameter 'teamid' is set
+ if (teamid == null)
+ throw new ApiException(400, "Missing required parameter 'teamid' when calling AnnotationsApi->GetLabelStudioTeamAccess");
+
+ var localVarPath = "/repos/{owner}/{repo}/annotations/access/teams/{teamid}";
+ var localVarPathParams = new Dictionary();
+ var localVarQueryParams = new List>();
+ var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader);
+ var localVarFormParams = new Dictionary();
+ var localVarFileParams = new Dictionary();
+ Object localVarPostBody = null;
+
+ // to determine the Content-Type header
+ String[] localVarHttpContentTypes = new String[] {
+ };
+ String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
+
+ // to determine the Accept header
+ String[] localVarHttpHeaderAccepts = new String[] {
+ "application/json"
+ };
+ String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
+ if (localVarHttpHeaderAccept != null)
+ localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
+
+ if (owner != null) localVarPathParams.Add("owner", this.Configuration.ApiClient.ParameterToString(owner)); // path parameter
+ if (repo != null) localVarPathParams.Add("repo", this.Configuration.ApiClient.ParameterToString(repo)); // path parameter
+ if (teamid != null) localVarPathParams.Add("teamid", this.Configuration.ApiClient.ParameterToString(teamid)); // path parameter
+ if (projectId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "project_id", projectId)); // query parameter
+ // authentication (basicAuth) required
+ // http basic authentication required
+ if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password))
+ {
+ localVarHeaderParams["Authorization"] = "Basic " + ApiClient.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password);
+ }
+ // authentication (tokenAuth) required
+ if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("token")))
+ {
+ localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "token", this.Configuration.GetApiKeyWithPrefix("token")));
+ }
+
+ // make the HTTP request
+ IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
+ Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
+ localVarPathParams, localVarHttpContentType);
+
+ int localVarStatusCode = (int) localVarResponse.StatusCode;
+
+ if (ExceptionFactory != null)
+ {
+ Exception exception = ExceptionFactory("GetLabelStudioTeamAccess", localVarResponse);
+ if (exception != null) throw exception;
+ }
+
+ return new ApiResponse(localVarStatusCode,
+ localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
+ (LabelStudioProjectAccess) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(LabelStudioProjectAccess)));
+ }
+
+ ///
+ /// Get user access level for annotation projects Get the access level for a specific user and project (or all projects)
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// User ID
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ /// InlineResponse200
+ public InlineResponse200 GetLabelStudioUserAccess (string owner, string repo, long? userid, long? projectId = null)
+ {
+ ApiResponse localVarResponse = GetLabelStudioUserAccessWithHttpInfo(owner, repo, userid, projectId);
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// Get user access level for annotation projects Get the access level for a specific user and project (or all projects)
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// User ID
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ /// ApiResponse of InlineResponse200
+ public ApiResponse< InlineResponse200 > GetLabelStudioUserAccessWithHttpInfo (string owner, string repo, long? userid, long? projectId = null)
+ {
+ // verify the required parameter 'owner' is set
+ if (owner == null)
+ throw new ApiException(400, "Missing required parameter 'owner' when calling AnnotationsApi->GetLabelStudioUserAccess");
+ // verify the required parameter 'repo' is set
+ if (repo == null)
+ throw new ApiException(400, "Missing required parameter 'repo' when calling AnnotationsApi->GetLabelStudioUserAccess");
+ // verify the required parameter 'userid' is set
+ if (userid == null)
+ throw new ApiException(400, "Missing required parameter 'userid' when calling AnnotationsApi->GetLabelStudioUserAccess");
+
+ var localVarPath = "/repos/{owner}/{repo}/annotations/access/users/{userid}";
+ var localVarPathParams = new Dictionary();
+ var localVarQueryParams = new List>();
+ var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader);
+ var localVarFormParams = new Dictionary();
+ var localVarFileParams = new Dictionary();
+ Object localVarPostBody = null;
+
+ // to determine the Content-Type header
+ String[] localVarHttpContentTypes = new String[] {
+ };
+ String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
+
+ // to determine the Accept header
+ String[] localVarHttpHeaderAccepts = new String[] {
+ "application/json"
+ };
+ String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
+ if (localVarHttpHeaderAccept != null)
+ localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
+
+ if (owner != null) localVarPathParams.Add("owner", this.Configuration.ApiClient.ParameterToString(owner)); // path parameter
+ if (repo != null) localVarPathParams.Add("repo", this.Configuration.ApiClient.ParameterToString(repo)); // path parameter
+ if (userid != null) localVarPathParams.Add("userid", this.Configuration.ApiClient.ParameterToString(userid)); // path parameter
+ if (projectId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "project_id", projectId)); // query parameter
+ // authentication (basicAuth) required
+ // http basic authentication required
+ if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password))
+ {
+ localVarHeaderParams["Authorization"] = "Basic " + ApiClient.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password);
+ }
+ // authentication (tokenAuth) required
+ if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("token")))
+ {
+ localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "token", this.Configuration.GetApiKeyWithPrefix("token")));
+ }
+
+ // make the HTTP request
+ IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath,
+ Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
+ localVarPathParams, localVarHttpContentType);
+
+ int localVarStatusCode = (int) localVarResponse.StatusCode;
+
+ if (ExceptionFactory != null)
+ {
+ Exception exception = ExceptionFactory("GetLabelStudioUserAccess", localVarResponse);
+ if (exception != null) throw exception;
+ }
+
+ return new ApiResponse(localVarStatusCode,
+ localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
+ (InlineResponse200) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InlineResponse200)));
+ }
+
+ ///
+ /// Get user access level for annotation projects Get the access level for a specific user and project (or all projects)
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// User ID
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ /// Task of InlineResponse200
+ public async System.Threading.Tasks.Task GetLabelStudioUserAccessAsync (string owner, string repo, long? userid, long? projectId = null)
+ {
+ ApiResponse localVarResponse = await GetLabelStudioUserAccessAsyncWithHttpInfo(owner, repo, userid, projectId);
+ return localVarResponse.Data;
+
+ }
+
+ ///
+ /// Get user access level for annotation projects Get the access level for a specific user and project (or all projects)
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// User ID
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ /// Task of ApiResponse (InlineResponse200)
+ public async System.Threading.Tasks.Task> GetLabelStudioUserAccessAsyncWithHttpInfo (string owner, string repo, long? userid, long? projectId = null)
+ {
+ // verify the required parameter 'owner' is set
+ if (owner == null)
+ throw new ApiException(400, "Missing required parameter 'owner' when calling AnnotationsApi->GetLabelStudioUserAccess");
+ // verify the required parameter 'repo' is set
+ if (repo == null)
+ throw new ApiException(400, "Missing required parameter 'repo' when calling AnnotationsApi->GetLabelStudioUserAccess");
+ // verify the required parameter 'userid' is set
+ if (userid == null)
+ throw new ApiException(400, "Missing required parameter 'userid' when calling AnnotationsApi->GetLabelStudioUserAccess");
+
+ var localVarPath = "/repos/{owner}/{repo}/annotations/access/users/{userid}";
+ var localVarPathParams = new Dictionary();
+ var localVarQueryParams = new List>();
+ var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader);
+ var localVarFormParams = new Dictionary();
+ var localVarFileParams = new Dictionary();
+ Object localVarPostBody = null;
+
+ // to determine the Content-Type header
+ String[] localVarHttpContentTypes = new String[] {
+ };
+ String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
+
+ // to determine the Accept header
+ String[] localVarHttpHeaderAccepts = new String[] {
+ "application/json"
+ };
+ String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
+ if (localVarHttpHeaderAccept != null)
+ localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
+
+ if (owner != null) localVarPathParams.Add("owner", this.Configuration.ApiClient.ParameterToString(owner)); // path parameter
+ if (repo != null) localVarPathParams.Add("repo", this.Configuration.ApiClient.ParameterToString(repo)); // path parameter
+ if (userid != null) localVarPathParams.Add("userid", this.Configuration.ApiClient.ParameterToString(userid)); // path parameter
+ if (projectId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "project_id", projectId)); // query parameter
+ // authentication (basicAuth) required
+ // http basic authentication required
+ if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password))
+ {
+ localVarHeaderParams["Authorization"] = "Basic " + ApiClient.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password);
+ }
+ // authentication (tokenAuth) required
+ if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("token")))
+ {
+ localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "token", this.Configuration.GetApiKeyWithPrefix("token")));
+ }
+
+ // make the HTTP request
+ IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
+ Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
+ localVarPathParams, localVarHttpContentType);
+
+ int localVarStatusCode = (int) localVarResponse.StatusCode;
+
+ if (ExceptionFactory != null)
+ {
+ Exception exception = ExceptionFactory("GetLabelStudioUserAccess", localVarResponse);
+ if (exception != null) throw exception;
+ }
+
+ return new ApiResponse(localVarStatusCode,
+ localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
+ (InlineResponse200) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(InlineResponse200)));
+ }
+
+ ///
+ /// Grant team access to annotation projects Grant a team access to specific Label Studio annotation projects (organization repositories only)
+ ///
+ /// Thrown when fails to make API call
+ ///
+ /// owner of the repository
+ /// name of the repository
+ /// Team ID
+ ///
+ public void GrantLabelStudioTeamAccess (GrantLabelStudioAccess body, string owner, string repo, long? teamid)
+ {
+ GrantLabelStudioTeamAccessWithHttpInfo(body, owner, repo, teamid);
+ }
+
+ ///
+ /// Grant team access to annotation projects Grant a team access to specific Label Studio annotation projects (organization repositories only)
+ ///
+ /// Thrown when fails to make API call
+ ///
+ /// owner of the repository
+ /// name of the repository
+ /// Team ID
+ /// ApiResponse of Object(void)
+ public ApiResponse GrantLabelStudioTeamAccessWithHttpInfo (GrantLabelStudioAccess body, string owner, string repo, long? teamid)
+ {
+ // verify the required parameter 'body' is set
+ if (body == null)
+ throw new ApiException(400, "Missing required parameter 'body' when calling AnnotationsApi->GrantLabelStudioTeamAccess");
+ // verify the required parameter 'owner' is set
+ if (owner == null)
+ throw new ApiException(400, "Missing required parameter 'owner' when calling AnnotationsApi->GrantLabelStudioTeamAccess");
+ // verify the required parameter 'repo' is set
+ if (repo == null)
+ throw new ApiException(400, "Missing required parameter 'repo' when calling AnnotationsApi->GrantLabelStudioTeamAccess");
+ // verify the required parameter 'teamid' is set
+ if (teamid == null)
+ throw new ApiException(400, "Missing required parameter 'teamid' when calling AnnotationsApi->GrantLabelStudioTeamAccess");
+
+ var localVarPath = "/repos/{owner}/{repo}/annotations/access/teams/{teamid}";
+ var localVarPathParams = new Dictionary();
+ var localVarQueryParams = new List>();
+ var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader);
+ var localVarFormParams = new Dictionary();
+ var localVarFileParams = new Dictionary();
+ Object localVarPostBody = null;
+
+ // to determine the Content-Type header
+ String[] localVarHttpContentTypes = new String[] {
+ "application/json"
+ };
+ String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
+
+ // to determine the Accept header
+ String[] localVarHttpHeaderAccepts = new String[] {
+ };
+ String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
+ if (localVarHttpHeaderAccept != null)
+ localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
+
+ if (owner != null) localVarPathParams.Add("owner", this.Configuration.ApiClient.ParameterToString(owner)); // path parameter
+ if (repo != null) localVarPathParams.Add("repo", this.Configuration.ApiClient.ParameterToString(repo)); // path parameter
+ if (teamid != null) localVarPathParams.Add("teamid", this.Configuration.ApiClient.ParameterToString(teamid)); // path parameter
+ if (body != null && body.GetType() != typeof(byte[]))
+ {
+ localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
+ }
+ else
+ {
+ localVarPostBody = body; // byte array
+ }
+ // authentication (basicAuth) required
+ // http basic authentication required
+ if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password))
+ {
+ localVarHeaderParams["Authorization"] = "Basic " + ApiClient.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password);
+ }
+ // authentication (tokenAuth) required
+ if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("token")))
+ {
+ localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "token", this.Configuration.GetApiKeyWithPrefix("token")));
+ }
+
+ // make the HTTP request
+ IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath,
+ Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
+ localVarPathParams, localVarHttpContentType);
+
+ int localVarStatusCode = (int) localVarResponse.StatusCode;
+
+ if (ExceptionFactory != null)
+ {
+ Exception exception = ExceptionFactory("GrantLabelStudioTeamAccess", localVarResponse);
+ if (exception != null) throw exception;
+ }
+
+ return new ApiResponse(localVarStatusCode,
+ localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
+ null);
+ }
+
+ ///
+ /// Grant team access to annotation projects Grant a team access to specific Label Studio annotation projects (organization repositories only)
+ ///
+ /// Thrown when fails to make API call
+ ///
+ /// owner of the repository
+ /// name of the repository
+ /// Team ID
+ /// Task of void
+ public async System.Threading.Tasks.Task GrantLabelStudioTeamAccessAsync (GrantLabelStudioAccess body, string owner, string repo, long? teamid)
+ {
+ await GrantLabelStudioTeamAccessAsyncWithHttpInfo(body, owner, repo, teamid);
+
+ }
+
+ ///
+ /// Grant team access to annotation projects Grant a team access to specific Label Studio annotation projects (organization repositories only)
+ ///
+ /// Thrown when fails to make API call
+ ///
+ /// owner of the repository
+ /// name of the repository
+ /// Team ID
+ /// Task of ApiResponse
+ public async System.Threading.Tasks.Task> GrantLabelStudioTeamAccessAsyncWithHttpInfo (GrantLabelStudioAccess body, string owner, string repo, long? teamid)
+ {
+ // verify the required parameter 'body' is set
+ if (body == null)
+ throw new ApiException(400, "Missing required parameter 'body' when calling AnnotationsApi->GrantLabelStudioTeamAccess");
+ // verify the required parameter 'owner' is set
+ if (owner == null)
+ throw new ApiException(400, "Missing required parameter 'owner' when calling AnnotationsApi->GrantLabelStudioTeamAccess");
+ // verify the required parameter 'repo' is set
+ if (repo == null)
+ throw new ApiException(400, "Missing required parameter 'repo' when calling AnnotationsApi->GrantLabelStudioTeamAccess");
+ // verify the required parameter 'teamid' is set
+ if (teamid == null)
+ throw new ApiException(400, "Missing required parameter 'teamid' when calling AnnotationsApi->GrantLabelStudioTeamAccess");
+
+ var localVarPath = "/repos/{owner}/{repo}/annotations/access/teams/{teamid}";
+ var localVarPathParams = new Dictionary();
+ var localVarQueryParams = new List>();
+ var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader);
+ var localVarFormParams = new Dictionary();
+ var localVarFileParams = new Dictionary();
+ Object localVarPostBody = null;
+
+ // to determine the Content-Type header
+ String[] localVarHttpContentTypes = new String[] {
+ "application/json"
+ };
+ String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
+
+ // to determine the Accept header
+ String[] localVarHttpHeaderAccepts = new String[] {
+ };
+ String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
+ if (localVarHttpHeaderAccept != null)
+ localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
+
+ if (owner != null) localVarPathParams.Add("owner", this.Configuration.ApiClient.ParameterToString(owner)); // path parameter
+ if (repo != null) localVarPathParams.Add("repo", this.Configuration.ApiClient.ParameterToString(repo)); // path parameter
+ if (teamid != null) localVarPathParams.Add("teamid", this.Configuration.ApiClient.ParameterToString(teamid)); // path parameter
+ if (body != null && body.GetType() != typeof(byte[]))
+ {
+ localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
+ }
+ else
+ {
+ localVarPostBody = body; // byte array
+ }
+ // authentication (basicAuth) required
+ // http basic authentication required
+ if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password))
+ {
+ localVarHeaderParams["Authorization"] = "Basic " + ApiClient.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password);
+ }
+ // authentication (tokenAuth) required
+ if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("token")))
+ {
+ localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "token", this.Configuration.GetApiKeyWithPrefix("token")));
+ }
+
+ // make the HTTP request
+ IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
+ Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
+ localVarPathParams, localVarHttpContentType);
+
+ int localVarStatusCode = (int) localVarResponse.StatusCode;
+
+ if (ExceptionFactory != null)
+ {
+ Exception exception = ExceptionFactory("GrantLabelStudioTeamAccess", localVarResponse);
+ if (exception != null) throw exception;
+ }
+
+ return new ApiResponse(localVarStatusCode,
+ localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
+ null);
+ }
+
+ ///
+ /// Grant user access to annotation projects Grant a user access to specific Label Studio annotation projects. User must be an organization member if the repo is owned by an organization.
+ ///
+ /// Thrown when fails to make API call
+ ///
+ /// owner of the repository
+ /// name of the repository
+ /// User ID
+ ///
+ public void GrantLabelStudioUserAccess (GrantLabelStudioAccess body, string owner, string repo, long? userid)
+ {
+ GrantLabelStudioUserAccessWithHttpInfo(body, owner, repo, userid);
+ }
+
+ ///
+ /// Grant user access to annotation projects Grant a user access to specific Label Studio annotation projects. User must be an organization member if the repo is owned by an organization.
+ ///
+ /// Thrown when fails to make API call
+ ///
+ /// owner of the repository
+ /// name of the repository
+ /// User ID
+ /// ApiResponse of Object(void)
+ public ApiResponse GrantLabelStudioUserAccessWithHttpInfo (GrantLabelStudioAccess body, string owner, string repo, long? userid)
+ {
+ // verify the required parameter 'body' is set
+ if (body == null)
+ throw new ApiException(400, "Missing required parameter 'body' when calling AnnotationsApi->GrantLabelStudioUserAccess");
+ // verify the required parameter 'owner' is set
+ if (owner == null)
+ throw new ApiException(400, "Missing required parameter 'owner' when calling AnnotationsApi->GrantLabelStudioUserAccess");
+ // verify the required parameter 'repo' is set
+ if (repo == null)
+ throw new ApiException(400, "Missing required parameter 'repo' when calling AnnotationsApi->GrantLabelStudioUserAccess");
+ // verify the required parameter 'userid' is set
+ if (userid == null)
+ throw new ApiException(400, "Missing required parameter 'userid' when calling AnnotationsApi->GrantLabelStudioUserAccess");
+
+ var localVarPath = "/repos/{owner}/{repo}/annotations/access/users/{userid}";
+ var localVarPathParams = new Dictionary();
+ var localVarQueryParams = new List>();
+ var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader);
+ var localVarFormParams = new Dictionary();
+ var localVarFileParams = new Dictionary();
+ Object localVarPostBody = null;
+
+ // to determine the Content-Type header
+ String[] localVarHttpContentTypes = new String[] {
+ "application/json"
+ };
+ String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
+
+ // to determine the Accept header
+ String[] localVarHttpHeaderAccepts = new String[] {
+ };
+ String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
+ if (localVarHttpHeaderAccept != null)
+ localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
+
+ if (owner != null) localVarPathParams.Add("owner", this.Configuration.ApiClient.ParameterToString(owner)); // path parameter
+ if (repo != null) localVarPathParams.Add("repo", this.Configuration.ApiClient.ParameterToString(repo)); // path parameter
+ if (userid != null) localVarPathParams.Add("userid", this.Configuration.ApiClient.ParameterToString(userid)); // path parameter
+ if (body != null && body.GetType() != typeof(byte[]))
+ {
+ localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
+ }
+ else
+ {
+ localVarPostBody = body; // byte array
+ }
+ // authentication (basicAuth) required
+ // http basic authentication required
+ if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password))
+ {
+ localVarHeaderParams["Authorization"] = "Basic " + ApiClient.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password);
+ }
+ // authentication (tokenAuth) required
+ if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("token")))
+ {
+ localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "token", this.Configuration.GetApiKeyWithPrefix("token")));
+ }
+
+ // make the HTTP request
+ IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath,
+ Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
+ localVarPathParams, localVarHttpContentType);
+
+ int localVarStatusCode = (int) localVarResponse.StatusCode;
+
+ if (ExceptionFactory != null)
+ {
+ Exception exception = ExceptionFactory("GrantLabelStudioUserAccess", localVarResponse);
+ if (exception != null) throw exception;
+ }
+
+ return new ApiResponse(localVarStatusCode,
+ localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
+ null);
+ }
+
+ ///
+ /// Grant user access to annotation projects Grant a user access to specific Label Studio annotation projects. User must be an organization member if the repo is owned by an organization.
+ ///
+ /// Thrown when fails to make API call
+ ///
+ /// owner of the repository
+ /// name of the repository
+ /// User ID
+ /// Task of void
+ public async System.Threading.Tasks.Task GrantLabelStudioUserAccessAsync (GrantLabelStudioAccess body, string owner, string repo, long? userid)
+ {
+ await GrantLabelStudioUserAccessAsyncWithHttpInfo(body, owner, repo, userid);
+
+ }
+
+ ///
+ /// Grant user access to annotation projects Grant a user access to specific Label Studio annotation projects. User must be an organization member if the repo is owned by an organization.
+ ///
+ /// Thrown when fails to make API call
+ ///
+ /// owner of the repository
+ /// name of the repository
+ /// User ID
+ /// Task of ApiResponse
+ public async System.Threading.Tasks.Task> GrantLabelStudioUserAccessAsyncWithHttpInfo (GrantLabelStudioAccess body, string owner, string repo, long? userid)
+ {
+ // verify the required parameter 'body' is set
+ if (body == null)
+ throw new ApiException(400, "Missing required parameter 'body' when calling AnnotationsApi->GrantLabelStudioUserAccess");
+ // verify the required parameter 'owner' is set
+ if (owner == null)
+ throw new ApiException(400, "Missing required parameter 'owner' when calling AnnotationsApi->GrantLabelStudioUserAccess");
+ // verify the required parameter 'repo' is set
+ if (repo == null)
+ throw new ApiException(400, "Missing required parameter 'repo' when calling AnnotationsApi->GrantLabelStudioUserAccess");
+ // verify the required parameter 'userid' is set
+ if (userid == null)
+ throw new ApiException(400, "Missing required parameter 'userid' when calling AnnotationsApi->GrantLabelStudioUserAccess");
+
+ var localVarPath = "/repos/{owner}/{repo}/annotations/access/users/{userid}";
+ var localVarPathParams = new Dictionary();
+ var localVarQueryParams = new List>();
+ var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader);
+ var localVarFormParams = new Dictionary();
+ var localVarFileParams = new Dictionary();
+ Object localVarPostBody = null;
+
+ // to determine the Content-Type header
+ String[] localVarHttpContentTypes = new String[] {
+ "application/json"
+ };
+ String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
+
+ // to determine the Accept header
+ String[] localVarHttpHeaderAccepts = new String[] {
+ };
+ String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
+ if (localVarHttpHeaderAccept != null)
+ localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
+
+ if (owner != null) localVarPathParams.Add("owner", this.Configuration.ApiClient.ParameterToString(owner)); // path parameter
+ if (repo != null) localVarPathParams.Add("repo", this.Configuration.ApiClient.ParameterToString(repo)); // path parameter
+ if (userid != null) localVarPathParams.Add("userid", this.Configuration.ApiClient.ParameterToString(userid)); // path parameter
+ if (body != null && body.GetType() != typeof(byte[]))
+ {
+ localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
+ }
+ else
+ {
+ localVarPostBody = body; // byte array
+ }
+ // authentication (basicAuth) required
+ // http basic authentication required
+ if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password))
+ {
+ localVarHeaderParams["Authorization"] = "Basic " + ApiClient.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password);
+ }
+ // authentication (tokenAuth) required
+ if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("token")))
+ {
+ localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "token", this.Configuration.GetApiKeyWithPrefix("token")));
+ }
+
+ // make the HTTP request
+ IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
+ Method.PUT, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
+ localVarPathParams, localVarHttpContentType);
+
+ int localVarStatusCode = (int) localVarResponse.StatusCode;
+
+ if (ExceptionFactory != null)
+ {
+ Exception exception = ExceptionFactory("GrantLabelStudioUserAccess", localVarResponse);
+ if (exception != null) throw exception;
+ }
+
+ return new ApiResponse(localVarStatusCode,
+ localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
+ null);
+ }
+
+ ///
+ /// List team access entries for annotation projects Get a list of teams with access to Label Studio annotation projects in the repository (organization repositories only)
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ /// List<LabelStudioProjectAccess>
+ public List ListLabelStudioTeamAccess (string owner, string repo, long? projectId = null)
+ {
+ ApiResponse> localVarResponse = ListLabelStudioTeamAccessWithHttpInfo(owner, repo, projectId);
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// List team access entries for annotation projects Get a list of teams with access to Label Studio annotation projects in the repository (organization repositories only)
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ /// ApiResponse of List<LabelStudioProjectAccess>
+ public ApiResponse< List > ListLabelStudioTeamAccessWithHttpInfo (string owner, string repo, long? projectId = null)
+ {
+ // verify the required parameter 'owner' is set
+ if (owner == null)
+ throw new ApiException(400, "Missing required parameter 'owner' when calling AnnotationsApi->ListLabelStudioTeamAccess");
+ // verify the required parameter 'repo' is set
+ if (repo == null)
+ throw new ApiException(400, "Missing required parameter 'repo' when calling AnnotationsApi->ListLabelStudioTeamAccess");
+
+ var localVarPath = "/repos/{owner}/{repo}/annotations/access/teams";
+ var localVarPathParams = new Dictionary();
+ var localVarQueryParams = new List>();
+ var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader);
+ var localVarFormParams = new Dictionary();
+ var localVarFileParams = new Dictionary();
+ Object localVarPostBody = null;
+
+ // to determine the Content-Type header
+ String[] localVarHttpContentTypes = new String[] {
+ };
+ String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
+
+ // to determine the Accept header
+ String[] localVarHttpHeaderAccepts = new String[] {
+ "application/json"
+ };
+ String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
+ if (localVarHttpHeaderAccept != null)
+ localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
+
+ if (owner != null) localVarPathParams.Add("owner", this.Configuration.ApiClient.ParameterToString(owner)); // path parameter
+ if (repo != null) localVarPathParams.Add("repo", this.Configuration.ApiClient.ParameterToString(repo)); // path parameter
+ if (projectId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "project_id", projectId)); // query parameter
+ // authentication (basicAuth) required
+ // http basic authentication required
+ if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password))
+ {
+ localVarHeaderParams["Authorization"] = "Basic " + ApiClient.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password);
+ }
+ // authentication (tokenAuth) required
+ if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("token")))
+ {
+ localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "token", this.Configuration.GetApiKeyWithPrefix("token")));
+ }
+
+ // make the HTTP request
+ IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath,
+ Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
+ localVarPathParams, localVarHttpContentType);
+
+ int localVarStatusCode = (int) localVarResponse.StatusCode;
+
+ if (ExceptionFactory != null)
+ {
+ Exception exception = ExceptionFactory("ListLabelStudioTeamAccess", localVarResponse);
+ if (exception != null) throw exception;
+ }
+
+ return new ApiResponse>(localVarStatusCode,
+ localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
+ (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List)));
+ }
+
+ ///
+ /// List team access entries for annotation projects Get a list of teams with access to Label Studio annotation projects in the repository (organization repositories only)
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ /// Task of List<LabelStudioProjectAccess>
+ public async System.Threading.Tasks.Task> ListLabelStudioTeamAccessAsync (string owner, string repo, long? projectId = null)
+ {
+ ApiResponse> localVarResponse = await ListLabelStudioTeamAccessAsyncWithHttpInfo(owner, repo, projectId);
+ return localVarResponse.Data;
+
+ }
+
+ ///
+ /// List team access entries for annotation projects Get a list of teams with access to Label Studio annotation projects in the repository (organization repositories only)
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ /// Task of ApiResponse (List<LabelStudioProjectAccess>)
+ public async System.Threading.Tasks.Task>> ListLabelStudioTeamAccessAsyncWithHttpInfo (string owner, string repo, long? projectId = null)
+ {
+ // verify the required parameter 'owner' is set
+ if (owner == null)
+ throw new ApiException(400, "Missing required parameter 'owner' when calling AnnotationsApi->ListLabelStudioTeamAccess");
+ // verify the required parameter 'repo' is set
+ if (repo == null)
+ throw new ApiException(400, "Missing required parameter 'repo' when calling AnnotationsApi->ListLabelStudioTeamAccess");
+
+ var localVarPath = "/repos/{owner}/{repo}/annotations/access/teams";
+ var localVarPathParams = new Dictionary();
+ var localVarQueryParams = new List>();
+ var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader);
+ var localVarFormParams = new Dictionary();
+ var localVarFileParams = new Dictionary();
+ Object localVarPostBody = null;
+
+ // to determine the Content-Type header
+ String[] localVarHttpContentTypes = new String[] {
+ };
+ String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
+
+ // to determine the Accept header
+ String[] localVarHttpHeaderAccepts = new String[] {
+ "application/json"
+ };
+ String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
+ if (localVarHttpHeaderAccept != null)
+ localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
+
+ if (owner != null) localVarPathParams.Add("owner", this.Configuration.ApiClient.ParameterToString(owner)); // path parameter
+ if (repo != null) localVarPathParams.Add("repo", this.Configuration.ApiClient.ParameterToString(repo)); // path parameter
+ if (projectId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "project_id", projectId)); // query parameter
+ // authentication (basicAuth) required
+ // http basic authentication required
+ if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password))
+ {
+ localVarHeaderParams["Authorization"] = "Basic " + ApiClient.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password);
+ }
+ // authentication (tokenAuth) required
+ if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("token")))
+ {
+ localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "token", this.Configuration.GetApiKeyWithPrefix("token")));
+ }
+
+ // make the HTTP request
+ IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
+ Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
+ localVarPathParams, localVarHttpContentType);
+
+ int localVarStatusCode = (int) localVarResponse.StatusCode;
+
+ if (ExceptionFactory != null)
+ {
+ Exception exception = ExceptionFactory("ListLabelStudioTeamAccess", localVarResponse);
+ if (exception != null) throw exception;
+ }
+
+ return new ApiResponse>(localVarStatusCode,
+ localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
+ (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List)));
+ }
+
+ ///
+ /// List user access entries for annotation projects Get a list of users with access to Label Studio annotation projects in the repository
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ /// List<LabelStudioProjectAccess>
+ public List ListLabelStudioUserAccess (string owner, string repo, long? projectId = null)
+ {
+ ApiResponse> localVarResponse = ListLabelStudioUserAccessWithHttpInfo(owner, repo, projectId);
+ return localVarResponse.Data;
+ }
+
+ ///
+ /// List user access entries for annotation projects Get a list of users with access to Label Studio annotation projects in the repository
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ /// ApiResponse of List<LabelStudioProjectAccess>
+ public ApiResponse< List > ListLabelStudioUserAccessWithHttpInfo (string owner, string repo, long? projectId = null)
+ {
+ // verify the required parameter 'owner' is set
+ if (owner == null)
+ throw new ApiException(400, "Missing required parameter 'owner' when calling AnnotationsApi->ListLabelStudioUserAccess");
+ // verify the required parameter 'repo' is set
+ if (repo == null)
+ throw new ApiException(400, "Missing required parameter 'repo' when calling AnnotationsApi->ListLabelStudioUserAccess");
+
+ var localVarPath = "/repos/{owner}/{repo}/annotations/access/users";
+ var localVarPathParams = new Dictionary();
+ var localVarQueryParams = new List>();
+ var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader);
+ var localVarFormParams = new Dictionary();
+ var localVarFileParams = new Dictionary();
+ Object localVarPostBody = null;
+
+ // to determine the Content-Type header
+ String[] localVarHttpContentTypes = new String[] {
+ };
+ String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
+
+ // to determine the Accept header
+ String[] localVarHttpHeaderAccepts = new String[] {
+ "application/json"
+ };
+ String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
+ if (localVarHttpHeaderAccept != null)
+ localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
+
+ if (owner != null) localVarPathParams.Add("owner", this.Configuration.ApiClient.ParameterToString(owner)); // path parameter
+ if (repo != null) localVarPathParams.Add("repo", this.Configuration.ApiClient.ParameterToString(repo)); // path parameter
+ if (projectId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "project_id", projectId)); // query parameter
+ // authentication (basicAuth) required
+ // http basic authentication required
+ if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password))
+ {
+ localVarHeaderParams["Authorization"] = "Basic " + ApiClient.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password);
+ }
+ // authentication (tokenAuth) required
+ if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("token")))
+ {
+ localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "token", this.Configuration.GetApiKeyWithPrefix("token")));
+ }
+
+ // make the HTTP request
+ IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath,
+ Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
+ localVarPathParams, localVarHttpContentType);
+
+ int localVarStatusCode = (int) localVarResponse.StatusCode;
+
+ if (ExceptionFactory != null)
+ {
+ Exception exception = ExceptionFactory("ListLabelStudioUserAccess", localVarResponse);
+ if (exception != null) throw exception;
+ }
+
+ return new ApiResponse>(localVarStatusCode,
+ localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
+ (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List)));
+ }
+
+ ///
+ /// List user access entries for annotation projects Get a list of users with access to Label Studio annotation projects in the repository
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ /// Task of List<LabelStudioProjectAccess>
+ public async System.Threading.Tasks.Task> ListLabelStudioUserAccessAsync (string owner, string repo, long? projectId = null)
+ {
+ ApiResponse> localVarResponse = await ListLabelStudioUserAccessAsyncWithHttpInfo(owner, repo, projectId);
+ return localVarResponse.Data;
+
+ }
+
+ ///
+ /// List user access entries for annotation projects Get a list of users with access to Label Studio annotation projects in the repository
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ /// Task of ApiResponse (List<LabelStudioProjectAccess>)
+ public async System.Threading.Tasks.Task>> ListLabelStudioUserAccessAsyncWithHttpInfo (string owner, string repo, long? projectId = null)
+ {
+ // verify the required parameter 'owner' is set
+ if (owner == null)
+ throw new ApiException(400, "Missing required parameter 'owner' when calling AnnotationsApi->ListLabelStudioUserAccess");
+ // verify the required parameter 'repo' is set
+ if (repo == null)
+ throw new ApiException(400, "Missing required parameter 'repo' when calling AnnotationsApi->ListLabelStudioUserAccess");
+
+ var localVarPath = "/repos/{owner}/{repo}/annotations/access/users";
+ var localVarPathParams = new Dictionary();
+ var localVarQueryParams = new List>();
+ var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader);
+ var localVarFormParams = new Dictionary();
+ var localVarFileParams = new Dictionary();
+ Object localVarPostBody = null;
+
+ // to determine the Content-Type header
+ String[] localVarHttpContentTypes = new String[] {
+ };
+ String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
+
+ // to determine the Accept header
+ String[] localVarHttpHeaderAccepts = new String[] {
+ "application/json"
+ };
+ String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
+ if (localVarHttpHeaderAccept != null)
+ localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
+
+ if (owner != null) localVarPathParams.Add("owner", this.Configuration.ApiClient.ParameterToString(owner)); // path parameter
+ if (repo != null) localVarPathParams.Add("repo", this.Configuration.ApiClient.ParameterToString(repo)); // path parameter
+ if (projectId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "project_id", projectId)); // query parameter
+ // authentication (basicAuth) required
+ // http basic authentication required
+ if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password))
+ {
+ localVarHeaderParams["Authorization"] = "Basic " + ApiClient.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password);
+ }
+ // authentication (tokenAuth) required
+ if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("token")))
+ {
+ localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "token", this.Configuration.GetApiKeyWithPrefix("token")));
+ }
+
+ // make the HTTP request
+ IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
+ Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
+ localVarPathParams, localVarHttpContentType);
+
+ int localVarStatusCode = (int) localVarResponse.StatusCode;
+
+ if (ExceptionFactory != null)
+ {
+ Exception exception = ExceptionFactory("ListLabelStudioUserAccess", localVarResponse);
+ if (exception != null) throw exception;
+ }
+
+ return new ApiResponse>(localVarStatusCode,
+ localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
+ (List) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List)));
+ }
+
+ ///
+ /// Revoke team access to annotation projects Revoke a team's access to Label Studio annotation projects
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// Team ID
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ ///
+ public void RevokeLabelStudioTeamAccess (string owner, string repo, long? teamid, long? projectId = null)
+ {
+ RevokeLabelStudioTeamAccessWithHttpInfo(owner, repo, teamid, projectId);
+ }
+
+ ///
+ /// Revoke team access to annotation projects Revoke a team's access to Label Studio annotation projects
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// Team ID
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ /// ApiResponse of Object(void)
+ public ApiResponse RevokeLabelStudioTeamAccessWithHttpInfo (string owner, string repo, long? teamid, long? projectId = null)
+ {
+ // verify the required parameter 'owner' is set
+ if (owner == null)
+ throw new ApiException(400, "Missing required parameter 'owner' when calling AnnotationsApi->RevokeLabelStudioTeamAccess");
+ // verify the required parameter 'repo' is set
+ if (repo == null)
+ throw new ApiException(400, "Missing required parameter 'repo' when calling AnnotationsApi->RevokeLabelStudioTeamAccess");
+ // verify the required parameter 'teamid' is set
+ if (teamid == null)
+ throw new ApiException(400, "Missing required parameter 'teamid' when calling AnnotationsApi->RevokeLabelStudioTeamAccess");
+
+ var localVarPath = "/repos/{owner}/{repo}/annotations/access/teams/{teamid}";
+ var localVarPathParams = new Dictionary();
+ var localVarQueryParams = new List>();
+ var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader);
+ var localVarFormParams = new Dictionary();
+ var localVarFileParams = new Dictionary();
+ Object localVarPostBody = null;
+
+ // to determine the Content-Type header
+ String[] localVarHttpContentTypes = new String[] {
+ };
+ String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
+
+ // to determine the Accept header
+ String[] localVarHttpHeaderAccepts = new String[] {
+ };
+ String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
+ if (localVarHttpHeaderAccept != null)
+ localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
+
+ if (owner != null) localVarPathParams.Add("owner", this.Configuration.ApiClient.ParameterToString(owner)); // path parameter
+ if (repo != null) localVarPathParams.Add("repo", this.Configuration.ApiClient.ParameterToString(repo)); // path parameter
+ if (teamid != null) localVarPathParams.Add("teamid", this.Configuration.ApiClient.ParameterToString(teamid)); // path parameter
+ if (projectId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "project_id", projectId)); // query parameter
+ // authentication (basicAuth) required
+ // http basic authentication required
+ if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password))
+ {
+ localVarHeaderParams["Authorization"] = "Basic " + ApiClient.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password);
+ }
+ // authentication (tokenAuth) required
+ if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("token")))
+ {
+ localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "token", this.Configuration.GetApiKeyWithPrefix("token")));
+ }
+
+ // make the HTTP request
+ IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath,
+ Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
+ localVarPathParams, localVarHttpContentType);
+
+ int localVarStatusCode = (int) localVarResponse.StatusCode;
+
+ if (ExceptionFactory != null)
+ {
+ Exception exception = ExceptionFactory("RevokeLabelStudioTeamAccess", localVarResponse);
+ if (exception != null) throw exception;
+ }
+
+ return new ApiResponse(localVarStatusCode,
+ localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
+ null);
+ }
+
+ ///
+ /// Revoke team access to annotation projects Revoke a team's access to Label Studio annotation projects
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// Team ID
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ /// Task of void
+ public async System.Threading.Tasks.Task RevokeLabelStudioTeamAccessAsync (string owner, string repo, long? teamid, long? projectId = null)
+ {
+ await RevokeLabelStudioTeamAccessAsyncWithHttpInfo(owner, repo, teamid, projectId);
+
+ }
+
+ ///
+ /// Revoke team access to annotation projects Revoke a team's access to Label Studio annotation projects
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// Team ID
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ /// Task of ApiResponse
+ public async System.Threading.Tasks.Task> RevokeLabelStudioTeamAccessAsyncWithHttpInfo (string owner, string repo, long? teamid, long? projectId = null)
+ {
+ // verify the required parameter 'owner' is set
+ if (owner == null)
+ throw new ApiException(400, "Missing required parameter 'owner' when calling AnnotationsApi->RevokeLabelStudioTeamAccess");
+ // verify the required parameter 'repo' is set
+ if (repo == null)
+ throw new ApiException(400, "Missing required parameter 'repo' when calling AnnotationsApi->RevokeLabelStudioTeamAccess");
+ // verify the required parameter 'teamid' is set
+ if (teamid == null)
+ throw new ApiException(400, "Missing required parameter 'teamid' when calling AnnotationsApi->RevokeLabelStudioTeamAccess");
+
+ var localVarPath = "/repos/{owner}/{repo}/annotations/access/teams/{teamid}";
+ var localVarPathParams = new Dictionary();
+ var localVarQueryParams = new List>();
+ var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader);
+ var localVarFormParams = new Dictionary();
+ var localVarFileParams = new Dictionary();
+ Object localVarPostBody = null;
+
+ // to determine the Content-Type header
+ String[] localVarHttpContentTypes = new String[] {
+ };
+ String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
+
+ // to determine the Accept header
+ String[] localVarHttpHeaderAccepts = new String[] {
+ };
+ String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
+ if (localVarHttpHeaderAccept != null)
+ localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
+
+ if (owner != null) localVarPathParams.Add("owner", this.Configuration.ApiClient.ParameterToString(owner)); // path parameter
+ if (repo != null) localVarPathParams.Add("repo", this.Configuration.ApiClient.ParameterToString(repo)); // path parameter
+ if (teamid != null) localVarPathParams.Add("teamid", this.Configuration.ApiClient.ParameterToString(teamid)); // path parameter
+ if (projectId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "project_id", projectId)); // query parameter
+ // authentication (basicAuth) required
+ // http basic authentication required
+ if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password))
+ {
+ localVarHeaderParams["Authorization"] = "Basic " + ApiClient.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password);
+ }
+ // authentication (tokenAuth) required
+ if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("token")))
+ {
+ localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "token", this.Configuration.GetApiKeyWithPrefix("token")));
+ }
+
+ // make the HTTP request
+ IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
+ Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
+ localVarPathParams, localVarHttpContentType);
+
+ int localVarStatusCode = (int) localVarResponse.StatusCode;
+
+ if (ExceptionFactory != null)
+ {
+ Exception exception = ExceptionFactory("RevokeLabelStudioTeamAccess", localVarResponse);
+ if (exception != null) throw exception;
+ }
+
+ return new ApiResponse(localVarStatusCode,
+ localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
+ null);
+ }
+
+ ///
+ /// Revoke user access to annotation projects Revoke a user's access to Label Studio annotation projects
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// User ID
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ ///
+ public void RevokeLabelStudioUserAccess (string owner, string repo, long? userid, long? projectId = null)
+ {
+ RevokeLabelStudioUserAccessWithHttpInfo(owner, repo, userid, projectId);
+ }
+
+ ///
+ /// Revoke user access to annotation projects Revoke a user's access to Label Studio annotation projects
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// User ID
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ /// ApiResponse of Object(void)
+ public ApiResponse RevokeLabelStudioUserAccessWithHttpInfo (string owner, string repo, long? userid, long? projectId = null)
+ {
+ // verify the required parameter 'owner' is set
+ if (owner == null)
+ throw new ApiException(400, "Missing required parameter 'owner' when calling AnnotationsApi->RevokeLabelStudioUserAccess");
+ // verify the required parameter 'repo' is set
+ if (repo == null)
+ throw new ApiException(400, "Missing required parameter 'repo' when calling AnnotationsApi->RevokeLabelStudioUserAccess");
+ // verify the required parameter 'userid' is set
+ if (userid == null)
+ throw new ApiException(400, "Missing required parameter 'userid' when calling AnnotationsApi->RevokeLabelStudioUserAccess");
+
+ var localVarPath = "/repos/{owner}/{repo}/annotations/access/users/{userid}";
+ var localVarPathParams = new Dictionary();
+ var localVarQueryParams = new List>();
+ var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader);
+ var localVarFormParams = new Dictionary();
+ var localVarFileParams = new Dictionary();
+ Object localVarPostBody = null;
+
+ // to determine the Content-Type header
+ String[] localVarHttpContentTypes = new String[] {
+ };
+ String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
+
+ // to determine the Accept header
+ String[] localVarHttpHeaderAccepts = new String[] {
+ };
+ String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
+ if (localVarHttpHeaderAccept != null)
+ localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
+
+ if (owner != null) localVarPathParams.Add("owner", this.Configuration.ApiClient.ParameterToString(owner)); // path parameter
+ if (repo != null) localVarPathParams.Add("repo", this.Configuration.ApiClient.ParameterToString(repo)); // path parameter
+ if (userid != null) localVarPathParams.Add("userid", this.Configuration.ApiClient.ParameterToString(userid)); // path parameter
+ if (projectId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "project_id", projectId)); // query parameter
+ // authentication (basicAuth) required
+ // http basic authentication required
+ if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password))
+ {
+ localVarHeaderParams["Authorization"] = "Basic " + ApiClient.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password);
+ }
+ // authentication (tokenAuth) required
+ if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("token")))
+ {
+ localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "token", this.Configuration.GetApiKeyWithPrefix("token")));
+ }
+
+ // make the HTTP request
+ IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath,
+ Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
+ localVarPathParams, localVarHttpContentType);
+
+ int localVarStatusCode = (int) localVarResponse.StatusCode;
+
+ if (ExceptionFactory != null)
+ {
+ Exception exception = ExceptionFactory("RevokeLabelStudioUserAccess", localVarResponse);
+ if (exception != null) throw exception;
+ }
+
+ return new ApiResponse(localVarStatusCode,
+ localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
+ null);
+ }
+
+ ///
+ /// Revoke user access to annotation projects Revoke a user's access to Label Studio annotation projects
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// User ID
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ /// Task of void
+ public async System.Threading.Tasks.Task RevokeLabelStudioUserAccessAsync (string owner, string repo, long? userid, long? projectId = null)
+ {
+ await RevokeLabelStudioUserAccessAsyncWithHttpInfo(owner, repo, userid, projectId);
+
+ }
+
+ ///
+ /// Revoke user access to annotation projects Revoke a user's access to Label Studio annotation projects
+ ///
+ /// Thrown when fails to make API call
+ /// owner of the repository
+ /// name of the repository
+ /// User ID
+ /// Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ /// Task of ApiResponse
+ public async System.Threading.Tasks.Task> RevokeLabelStudioUserAccessAsyncWithHttpInfo (string owner, string repo, long? userid, long? projectId = null)
+ {
+ // verify the required parameter 'owner' is set
+ if (owner == null)
+ throw new ApiException(400, "Missing required parameter 'owner' when calling AnnotationsApi->RevokeLabelStudioUserAccess");
+ // verify the required parameter 'repo' is set
+ if (repo == null)
+ throw new ApiException(400, "Missing required parameter 'repo' when calling AnnotationsApi->RevokeLabelStudioUserAccess");
+ // verify the required parameter 'userid' is set
+ if (userid == null)
+ throw new ApiException(400, "Missing required parameter 'userid' when calling AnnotationsApi->RevokeLabelStudioUserAccess");
+
+ var localVarPath = "/repos/{owner}/{repo}/annotations/access/users/{userid}";
+ var localVarPathParams = new Dictionary();
+ var localVarQueryParams = new List>();
+ var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader);
+ var localVarFormParams = new Dictionary();
+ var localVarFileParams = new Dictionary();
+ Object localVarPostBody = null;
+
+ // to determine the Content-Type header
+ String[] localVarHttpContentTypes = new String[] {
+ };
+ String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
+
+ // to determine the Accept header
+ String[] localVarHttpHeaderAccepts = new String[] {
+ };
+ String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
+ if (localVarHttpHeaderAccept != null)
+ localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
+
+ if (owner != null) localVarPathParams.Add("owner", this.Configuration.ApiClient.ParameterToString(owner)); // path parameter
+ if (repo != null) localVarPathParams.Add("repo", this.Configuration.ApiClient.ParameterToString(repo)); // path parameter
+ if (userid != null) localVarPathParams.Add("userid", this.Configuration.ApiClient.ParameterToString(userid)); // path parameter
+ if (projectId != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "project_id", projectId)); // query parameter
+ // authentication (basicAuth) required
+ // http basic authentication required
+ if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password))
+ {
+ localVarHeaderParams["Authorization"] = "Basic " + ApiClient.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password);
+ }
+ // authentication (tokenAuth) required
+ if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("token")))
+ {
+ localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "token", this.Configuration.GetApiKeyWithPrefix("token")));
+ }
+
+ // make the HTTP request
+ IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
+ Method.DELETE, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
+ localVarPathParams, localVarHttpContentType);
+
+ int localVarStatusCode = (int) localVarResponse.StatusCode;
+
+ if (ExceptionFactory != null)
+ {
+ Exception exception = ExceptionFactory("RevokeLabelStudioUserAccess", localVarResponse);
+ if (exception != null) throw exception;
+ }
+
+ return new ApiResponse(localVarStatusCode,
+ localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
+ null);
+ }
+
+ }
+}
diff --git a/C#/src/dagshub_api/Api/BranchesApi.cs b/C#/src/dagshub_api/Api/BranchesApi.cs
index 8653703..0664cb5 100644
--- a/C#/src/dagshub_api/Api/BranchesApi.cs
+++ b/C#/src/dagshub_api/Api/BranchesApi.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api/Api/CollaboratorsApi.cs b/C#/src/dagshub_api/Api/CollaboratorsApi.cs
index b088cbd..453a592 100644
--- a/C#/src/dagshub_api/Api/CollaboratorsApi.cs
+++ b/C#/src/dagshub_api/Api/CollaboratorsApi.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api/Api/CommitsApi.cs b/C#/src/dagshub_api/Api/CommitsApi.cs
index 72582fd..e44e47a 100644
--- a/C#/src/dagshub_api/Api/CommitsApi.cs
+++ b/C#/src/dagshub_api/Api/CommitsApi.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api/Api/ContentApi.cs b/C#/src/dagshub_api/Api/ContentApi.cs
index 749e23c..185bb81 100644
--- a/C#/src/dagshub_api/Api/ContentApi.cs
+++ b/C#/src/dagshub_api/Api/ContentApi.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api/Api/ExperimentsApi.cs b/C#/src/dagshub_api/Api/ExperimentsApi.cs
index 2ca37d2..6085212 100644
--- a/C#/src/dagshub_api/Api/ExperimentsApi.cs
+++ b/C#/src/dagshub_api/Api/ExperimentsApi.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api/Api/IssuesApi.cs b/C#/src/dagshub_api/Api/IssuesApi.cs
index 94af158..e8c8d3c 100644
--- a/C#/src/dagshub_api/Api/IssuesApi.cs
+++ b/C#/src/dagshub_api/Api/IssuesApi.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api/Api/OrganizationsApi.cs b/C#/src/dagshub_api/Api/OrganizationsApi.cs
new file mode 100644
index 0000000..59c9b95
--- /dev/null
+++ b/C#/src/dagshub_api/Api/OrganizationsApi.cs
@@ -0,0 +1,363 @@
+/*
+ * DagsHub API
+ *
+ * This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
+ *
+ * OpenAPI spec version: 1.0.3
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Linq;
+using RestSharp;
+using dagshub_api.Client;
+using dagshub_api.Model;
+
+namespace dagshub_api.Api
+{
+ ///
+ /// Represents a collection of functions to interact with the API endpoints
+ ///
+ public interface IOrganizationsApi : IApiAccessor
+ {
+ #region Synchronous Operations
+ ///
+ /// Create an organization team
+ ///
+ ///
+ /// Create a new team in an organization. Use team_type \"annotator\" to create an annotator team with access only to annotation projects.
+ ///
+ /// Thrown when fails to make API call
+ ///
+ /// A DagsHub organization name
+ ///
+ void CreateOrgTeam (CreateAnnotatorTeam body, string orgname);
+
+ ///
+ /// Create an organization team
+ ///
+ ///
+ /// Create a new team in an organization. Use team_type \"annotator\" to create an annotator team with access only to annotation projects.
+ ///
+ /// Thrown when fails to make API call
+ ///
+ /// A DagsHub organization name
+ /// ApiResponse of Object(void)
+ ApiResponse CreateOrgTeamWithHttpInfo (CreateAnnotatorTeam body, string orgname);
+ #endregion Synchronous Operations
+ #region Asynchronous Operations
+ ///
+ /// Create an organization team
+ ///
+ ///
+ /// Create a new team in an organization. Use team_type \"annotator\" to create an annotator team with access only to annotation projects.
+ ///
+ /// Thrown when fails to make API call
+ ///
+ /// A DagsHub organization name
+ /// Task of void
+ System.Threading.Tasks.Task CreateOrgTeamAsync (CreateAnnotatorTeam body, string orgname);
+
+ ///
+ /// Create an organization team
+ ///
+ ///
+ /// Create a new team in an organization. Use team_type \"annotator\" to create an annotator team with access only to annotation projects.
+ ///
+ /// Thrown when fails to make API call
+ ///
+ /// A DagsHub organization name
+ /// Task of ApiResponse
+ System.Threading.Tasks.Task> CreateOrgTeamAsyncWithHttpInfo (CreateAnnotatorTeam body, string orgname);
+ #endregion Asynchronous Operations
+ }
+
+ ///
+ /// Represents a collection of functions to interact with the API endpoints
+ ///
+ public partial class OrganizationsApi : IOrganizationsApi
+ {
+ private dagshub_api.Client.ExceptionFactory _exceptionFactory = (name, response) => null;
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ ///
+ public OrganizationsApi(String basePath)
+ {
+ this.Configuration = new dagshub_api.Client.Configuration { BasePath = basePath };
+
+ ExceptionFactory = dagshub_api.Client.Configuration.DefaultExceptionFactory;
+ }
+
+ ///
+ /// Initializes a new instance of the class
+ ///
+ ///
+ public OrganizationsApi()
+ {
+ this.Configuration = dagshub_api.Client.Configuration.Default;
+
+ ExceptionFactory = dagshub_api.Client.Configuration.DefaultExceptionFactory;
+ }
+
+ ///
+ /// Initializes a new instance of the class
+ /// using Configuration object
+ ///
+ /// An instance of Configuration
+ ///
+ public OrganizationsApi(dagshub_api.Client.Configuration configuration = null)
+ {
+ if (configuration == null) // use the default one in Configuration
+ this.Configuration = dagshub_api.Client.Configuration.Default;
+ else
+ this.Configuration = configuration;
+
+ ExceptionFactory = dagshub_api.Client.Configuration.DefaultExceptionFactory;
+ }
+
+ ///
+ /// Gets the base path of the API client.
+ ///
+ /// The base path
+ public String GetBasePath()
+ {
+ return this.Configuration.ApiClient.RestClient.BaseUrl.ToString();
+ }
+
+ ///
+ /// Sets the base path of the API client.
+ ///
+ /// The base path
+ [Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")]
+ public void SetBasePath(String basePath)
+ {
+ // do nothing
+ }
+
+ ///
+ /// Gets or sets the configuration object
+ ///
+ /// An instance of the Configuration
+ public dagshub_api.Client.Configuration Configuration {get; set;}
+
+ ///
+ /// Provides a factory method hook for the creation of exceptions.
+ ///
+ public dagshub_api.Client.ExceptionFactory ExceptionFactory
+ {
+ get
+ {
+ if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1)
+ {
+ throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported.");
+ }
+ return _exceptionFactory;
+ }
+ set { _exceptionFactory = value; }
+ }
+
+ ///
+ /// Gets the default header.
+ ///
+ /// Dictionary of HTTP header
+ [Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")]
+ public IDictionary DefaultHeader()
+ {
+ return new ReadOnlyDictionary(this.Configuration.DefaultHeader);
+ }
+
+ ///
+ /// Add default header.
+ ///
+ /// Header field name.
+ /// Header field value.
+ ///
+ [Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")]
+ public void AddDefaultHeader(string key, string value)
+ {
+ this.Configuration.AddDefaultHeader(key, value);
+ }
+
+ ///
+ /// Create an organization team Create a new team in an organization. Use team_type \"annotator\" to create an annotator team with access only to annotation projects.
+ ///
+ /// Thrown when fails to make API call
+ ///
+ /// A DagsHub organization name
+ ///
+ public void CreateOrgTeam (CreateAnnotatorTeam body, string orgname)
+ {
+ CreateOrgTeamWithHttpInfo(body, orgname);
+ }
+
+ ///
+ /// Create an organization team Create a new team in an organization. Use team_type \"annotator\" to create an annotator team with access only to annotation projects.
+ ///
+ /// Thrown when fails to make API call
+ ///
+ /// A DagsHub organization name
+ /// ApiResponse of Object(void)
+ public ApiResponse CreateOrgTeamWithHttpInfo (CreateAnnotatorTeam body, string orgname)
+ {
+ // verify the required parameter 'body' is set
+ if (body == null)
+ throw new ApiException(400, "Missing required parameter 'body' when calling OrganizationsApi->CreateOrgTeam");
+ // verify the required parameter 'orgname' is set
+ if (orgname == null)
+ throw new ApiException(400, "Missing required parameter 'orgname' when calling OrganizationsApi->CreateOrgTeam");
+
+ var localVarPath = "/admin/orgs/{orgname}/teams";
+ var localVarPathParams = new Dictionary();
+ var localVarQueryParams = new List>();
+ var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader);
+ var localVarFormParams = new Dictionary();
+ var localVarFileParams = new Dictionary();
+ Object localVarPostBody = null;
+
+ // to determine the Content-Type header
+ String[] localVarHttpContentTypes = new String[] {
+ "application/json"
+ };
+ String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
+
+ // to determine the Accept header
+ String[] localVarHttpHeaderAccepts = new String[] {
+ };
+ String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
+ if (localVarHttpHeaderAccept != null)
+ localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
+
+ if (orgname != null) localVarPathParams.Add("orgname", this.Configuration.ApiClient.ParameterToString(orgname)); // path parameter
+ if (body != null && body.GetType() != typeof(byte[]))
+ {
+ localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
+ }
+ else
+ {
+ localVarPostBody = body; // byte array
+ }
+ // authentication (basicAuth) required
+ // http basic authentication required
+ if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password))
+ {
+ localVarHeaderParams["Authorization"] = "Basic " + ApiClient.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password);
+ }
+ // authentication (tokenAuth) required
+ if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("token")))
+ {
+ localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "token", this.Configuration.GetApiKeyWithPrefix("token")));
+ }
+
+ // make the HTTP request
+ IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath,
+ Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
+ localVarPathParams, localVarHttpContentType);
+
+ int localVarStatusCode = (int) localVarResponse.StatusCode;
+
+ if (ExceptionFactory != null)
+ {
+ Exception exception = ExceptionFactory("CreateOrgTeam", localVarResponse);
+ if (exception != null) throw exception;
+ }
+
+ return new ApiResponse(localVarStatusCode,
+ localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
+ null);
+ }
+
+ ///
+ /// Create an organization team Create a new team in an organization. Use team_type \"annotator\" to create an annotator team with access only to annotation projects.
+ ///
+ /// Thrown when fails to make API call
+ ///
+ /// A DagsHub organization name
+ /// Task of void
+ public async System.Threading.Tasks.Task CreateOrgTeamAsync (CreateAnnotatorTeam body, string orgname)
+ {
+ await CreateOrgTeamAsyncWithHttpInfo(body, orgname);
+
+ }
+
+ ///
+ /// Create an organization team Create a new team in an organization. Use team_type \"annotator\" to create an annotator team with access only to annotation projects.
+ ///
+ /// Thrown when fails to make API call
+ ///
+ /// A DagsHub organization name
+ /// Task of ApiResponse
+ public async System.Threading.Tasks.Task> CreateOrgTeamAsyncWithHttpInfo (CreateAnnotatorTeam body, string orgname)
+ {
+ // verify the required parameter 'body' is set
+ if (body == null)
+ throw new ApiException(400, "Missing required parameter 'body' when calling OrganizationsApi->CreateOrgTeam");
+ // verify the required parameter 'orgname' is set
+ if (orgname == null)
+ throw new ApiException(400, "Missing required parameter 'orgname' when calling OrganizationsApi->CreateOrgTeam");
+
+ var localVarPath = "/admin/orgs/{orgname}/teams";
+ var localVarPathParams = new Dictionary();
+ var localVarQueryParams = new List>();
+ var localVarHeaderParams = new Dictionary(this.Configuration.DefaultHeader);
+ var localVarFormParams = new Dictionary();
+ var localVarFileParams = new Dictionary();
+ Object localVarPostBody = null;
+
+ // to determine the Content-Type header
+ String[] localVarHttpContentTypes = new String[] {
+ "application/json"
+ };
+ String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
+
+ // to determine the Accept header
+ String[] localVarHttpHeaderAccepts = new String[] {
+ };
+ String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
+ if (localVarHttpHeaderAccept != null)
+ localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
+
+ if (orgname != null) localVarPathParams.Add("orgname", this.Configuration.ApiClient.ParameterToString(orgname)); // path parameter
+ if (body != null && body.GetType() != typeof(byte[]))
+ {
+ localVarPostBody = this.Configuration.ApiClient.Serialize(body); // http body (model) parameter
+ }
+ else
+ {
+ localVarPostBody = body; // byte array
+ }
+ // authentication (basicAuth) required
+ // http basic authentication required
+ if (!String.IsNullOrEmpty(this.Configuration.Username) || !String.IsNullOrEmpty(this.Configuration.Password))
+ {
+ localVarHeaderParams["Authorization"] = "Basic " + ApiClient.Base64Encode(this.Configuration.Username + ":" + this.Configuration.Password);
+ }
+ // authentication (tokenAuth) required
+ if (!String.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("token")))
+ {
+ localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "token", this.Configuration.GetApiKeyWithPrefix("token")));
+ }
+
+ // make the HTTP request
+ IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
+ Method.POST, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
+ localVarPathParams, localVarHttpContentType);
+
+ int localVarStatusCode = (int) localVarResponse.StatusCode;
+
+ if (ExceptionFactory != null)
+ {
+ Exception exception = ExceptionFactory("CreateOrgTeam", localVarResponse);
+ if (exception != null) throw exception;
+ }
+
+ return new ApiResponse(localVarStatusCode,
+ localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
+ null);
+ }
+
+ }
+}
diff --git a/C#/src/dagshub_api/Api/ReleasesApi.cs b/C#/src/dagshub_api/Api/ReleasesApi.cs
index 263efe4..4a8a304 100644
--- a/C#/src/dagshub_api/Api/ReleasesApi.cs
+++ b/C#/src/dagshub_api/Api/ReleasesApi.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api/Api/RepositoryApi.cs b/C#/src/dagshub_api/Api/RepositoryApi.cs
index d3ae0ca..c21a7d9 100644
--- a/C#/src/dagshub_api/Api/RepositoryApi.cs
+++ b/C#/src/dagshub_api/Api/RepositoryApi.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api/Api/StorageIntegrationsApi.cs b/C#/src/dagshub_api/Api/StorageIntegrationsApi.cs
index c6ea6c9..8dc7abd 100644
--- a/C#/src/dagshub_api/Api/StorageIntegrationsApi.cs
+++ b/C#/src/dagshub_api/Api/StorageIntegrationsApi.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
@@ -37,9 +37,10 @@ public interface IStorageIntegrationsApi : IApiAccessor
/// path of a folder in the repository
/// (optional, default to false)
/// Maximum amount of items to return (optional, default to 100)
- /// Token, from which to continue iteration (optional)
+ /// Whether or not paging is enabled (optional, default to false)
+ /// [Only if paging is enabled] token, from which to continue iteration (optional)
/// Files1
- Files1 GetBucketContent (string owner, string repo, string protocol, string bucket, string path, bool? includeSize = null, int? limit = null, string fromToken = null);
+ Files1 GetBucketContent (string owner, string repo, string protocol, string bucket, string path, bool? includeSize = null, int? limit = null, bool? paging = null, string fromToken = null);
///
/// List contents in the path
@@ -55,9 +56,10 @@ public interface IStorageIntegrationsApi : IApiAccessor
/// path of a folder in the repository
/// (optional, default to false)
/// Maximum amount of items to return (optional, default to 100)
- /// Token, from which to continue iteration (optional)
+ /// Whether or not paging is enabled (optional, default to false)
+ /// [Only if paging is enabled] token, from which to continue iteration (optional)
/// ApiResponse of Files1
- ApiResponse GetBucketContentWithHttpInfo (string owner, string repo, string protocol, string bucket, string path, bool? includeSize = null, int? limit = null, string fromToken = null);
+ ApiResponse GetBucketContentWithHttpInfo (string owner, string repo, string protocol, string bucket, string path, bool? includeSize = null, int? limit = null, bool? paging = null, string fromToken = null);
///
/// Get file in the bucket
///
@@ -126,9 +128,10 @@ public interface IStorageIntegrationsApi : IApiAccessor
/// path of a folder in the repository
/// (optional, default to false)
/// Maximum amount of items to return (optional, default to 100)
- /// Token, from which to continue iteration (optional)
+ /// Whether or not paging is enabled (optional, default to false)
+ /// [Only if paging is enabled] token, from which to continue iteration (optional)
/// Task of Files1
- System.Threading.Tasks.Task GetBucketContentAsync (string owner, string repo, string protocol, string bucket, string path, bool? includeSize = null, int? limit = null, string fromToken = null);
+ System.Threading.Tasks.Task GetBucketContentAsync (string owner, string repo, string protocol, string bucket, string path, bool? includeSize = null, int? limit = null, bool? paging = null, string fromToken = null);
///
/// List contents in the path
@@ -144,9 +147,10 @@ public interface IStorageIntegrationsApi : IApiAccessor
/// path of a folder in the repository
/// (optional, default to false)
/// Maximum amount of items to return (optional, default to 100)
- /// Token, from which to continue iteration (optional)
+ /// Whether or not paging is enabled (optional, default to false)
+ /// [Only if paging is enabled] token, from which to continue iteration (optional)
/// Task of ApiResponse (Files1)
- System.Threading.Tasks.Task> GetBucketContentAsyncWithHttpInfo (string owner, string repo, string protocol, string bucket, string path, bool? includeSize = null, int? limit = null, string fromToken = null);
+ System.Threading.Tasks.Task> GetBucketContentAsyncWithHttpInfo (string owner, string repo, string protocol, string bucket, string path, bool? includeSize = null, int? limit = null, bool? paging = null, string fromToken = null);
///
/// Get file in the bucket
///
@@ -321,11 +325,12 @@ public void AddDefaultHeader(string key, string value)
/// path of a folder in the repository
/// (optional, default to false)
/// Maximum amount of items to return (optional, default to 100)
- /// Token, from which to continue iteration (optional)
+ /// Whether or not paging is enabled (optional, default to false)
+ /// [Only if paging is enabled] token, from which to continue iteration (optional)
/// Files1
- public Files1 GetBucketContent (string owner, string repo, string protocol, string bucket, string path, bool? includeSize = null, int? limit = null, string fromToken = null)
+ public Files1 GetBucketContent (string owner, string repo, string protocol, string bucket, string path, bool? includeSize = null, int? limit = null, bool? paging = null, string fromToken = null)
{
- ApiResponse localVarResponse = GetBucketContentWithHttpInfo(owner, repo, protocol, bucket, path, includeSize, limit, fromToken);
+ ApiResponse localVarResponse = GetBucketContentWithHttpInfo(owner, repo, protocol, bucket, path, includeSize, limit, paging, fromToken);
return localVarResponse.Data;
}
@@ -340,9 +345,10 @@ public Files1 GetBucketContent (string owner, string repo, string protocol, stri
/// path of a folder in the repository
/// (optional, default to false)
/// Maximum amount of items to return (optional, default to 100)
- /// Token, from which to continue iteration (optional)
+ /// Whether or not paging is enabled (optional, default to false)
+ /// [Only if paging is enabled] token, from which to continue iteration (optional)
/// ApiResponse of Files1
- public ApiResponse< Files1 > GetBucketContentWithHttpInfo (string owner, string repo, string protocol, string bucket, string path, bool? includeSize = null, int? limit = null, string fromToken = null)
+ public ApiResponse< Files1 > GetBucketContentWithHttpInfo (string owner, string repo, string protocol, string bucket, string path, bool? includeSize = null, int? limit = null, bool? paging = null, string fromToken = null)
{
// verify the required parameter 'owner' is set
if (owner == null)
@@ -388,6 +394,7 @@ public ApiResponse< Files1 > GetBucketContentWithHttpInfo (string owner, string
if (path != null) localVarPathParams.Add("path", this.Configuration.ApiClient.ParameterToString(path)); // path parameter
if (includeSize != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "include_size", includeSize)); // query parameter
if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter
+ if (paging != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "paging", paging)); // query parameter
if (fromToken != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "from_token", fromToken)); // query parameter
// authentication (basicAuth) required
// http basic authentication required
@@ -430,11 +437,12 @@ public ApiResponse< Files1 > GetBucketContentWithHttpInfo (string owner, string
/// path of a folder in the repository
/// (optional, default to false)
/// Maximum amount of items to return (optional, default to 100)
- /// Token, from which to continue iteration (optional)
+ /// Whether or not paging is enabled (optional, default to false)
+ /// [Only if paging is enabled] token, from which to continue iteration (optional)
/// Task of Files1
- public async System.Threading.Tasks.Task GetBucketContentAsync (string owner, string repo, string protocol, string bucket, string path, bool? includeSize = null, int? limit = null, string fromToken = null)
+ public async System.Threading.Tasks.Task GetBucketContentAsync (string owner, string repo, string protocol, string bucket, string path, bool? includeSize = null, int? limit = null, bool? paging = null, string fromToken = null)
{
- ApiResponse localVarResponse = await GetBucketContentAsyncWithHttpInfo(owner, repo, protocol, bucket, path, includeSize, limit, fromToken);
+ ApiResponse localVarResponse = await GetBucketContentAsyncWithHttpInfo(owner, repo, protocol, bucket, path, includeSize, limit, paging, fromToken);
return localVarResponse.Data;
}
@@ -450,9 +458,10 @@ public async System.Threading.Tasks.Task GetBucketContentAsync (string o
/// path of a folder in the repository
/// (optional, default to false)
/// Maximum amount of items to return (optional, default to 100)
- /// Token, from which to continue iteration (optional)
+ /// Whether or not paging is enabled (optional, default to false)
+ /// [Only if paging is enabled] token, from which to continue iteration (optional)
/// Task of ApiResponse (Files1)
- public async System.Threading.Tasks.Task> GetBucketContentAsyncWithHttpInfo (string owner, string repo, string protocol, string bucket, string path, bool? includeSize = null, int? limit = null, string fromToken = null)
+ public async System.Threading.Tasks.Task> GetBucketContentAsyncWithHttpInfo (string owner, string repo, string protocol, string bucket, string path, bool? includeSize = null, int? limit = null, bool? paging = null, string fromToken = null)
{
// verify the required parameter 'owner' is set
if (owner == null)
@@ -498,6 +507,7 @@ public async System.Threading.Tasks.Task> GetBucketContentAs
if (path != null) localVarPathParams.Add("path", this.Configuration.ApiClient.ParameterToString(path)); // path parameter
if (includeSize != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "include_size", includeSize)); // query parameter
if (limit != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "limit", limit)); // query parameter
+ if (paging != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "paging", paging)); // query parameter
if (fromToken != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "from_token", fromToken)); // query parameter
// authentication (basicAuth) required
// http basic authentication required
diff --git a/C#/src/dagshub_api/Api/UserApi.cs b/C#/src/dagshub_api/Api/UserApi.cs
index 0b6a847..55db790 100644
--- a/C#/src/dagshub_api/Api/UserApi.cs
+++ b/C#/src/dagshub_api/Api/UserApi.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api/Api/WebhooksApi.cs b/C#/src/dagshub_api/Api/WebhooksApi.cs
index 3a99a88..1dabf90 100644
--- a/C#/src/dagshub_api/Api/WebhooksApi.cs
+++ b/C#/src/dagshub_api/Api/WebhooksApi.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api/Client/ApiClient.cs b/C#/src/dagshub_api/Client/ApiClient.cs
index 94987b2..e00b17b 100644
--- a/C#/src/dagshub_api/Client/ApiClient.cs
+++ b/C#/src/dagshub_api/Client/ApiClient.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api/Client/ApiException.cs b/C#/src/dagshub_api/Client/ApiException.cs
index 26b264c..73b8575 100644
--- a/C#/src/dagshub_api/Client/ApiException.cs
+++ b/C#/src/dagshub_api/Client/ApiException.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api/Client/ApiResponse.cs b/C#/src/dagshub_api/Client/ApiResponse.cs
index 404685f..ef85e3f 100644
--- a/C#/src/dagshub_api/Client/ApiResponse.cs
+++ b/C#/src/dagshub_api/Client/ApiResponse.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api/Client/Configuration.cs b/C#/src/dagshub_api/Client/Configuration.cs
index 66b37b2..2548211 100644
--- a/C#/src/dagshub_api/Client/Configuration.cs
+++ b/C#/src/dagshub_api/Client/Configuration.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
@@ -437,7 +437,7 @@ public static String ToDebugReport()
String report = "C# SDK (dagshub_api) Debug Report:\n";
report += " OS: " + System.Environment.OSVersion + "\n";
report += " .NET Framework Version: " + System.Environment.Version + "\n";
- report += " Version of the API: 1.0.2\n";
+ report += " Version of the API: 1.0.3\n";
report += " SDK Package Version: 1.0.3\n";
return report;
diff --git a/C#/src/dagshub_api/Client/ExceptionFactory.cs b/C#/src/dagshub_api/Client/ExceptionFactory.cs
index d34648f..16aad8b 100644
--- a/C#/src/dagshub_api/Client/ExceptionFactory.cs
+++ b/C#/src/dagshub_api/Client/ExceptionFactory.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api/Client/GlobalConfiguration.cs b/C#/src/dagshub_api/Client/GlobalConfiguration.cs
index 87abb12..14a2112 100644
--- a/C#/src/dagshub_api/Client/GlobalConfiguration.cs
+++ b/C#/src/dagshub_api/Client/GlobalConfiguration.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api/Client/IApiAccessor.cs b/C#/src/dagshub_api/Client/IApiAccessor.cs
index aa06f6b..29d4f54 100644
--- a/C#/src/dagshub_api/Client/IApiAccessor.cs
+++ b/C#/src/dagshub_api/Client/IApiAccessor.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api/Client/IReadableConfiguration.cs b/C#/src/dagshub_api/Client/IReadableConfiguration.cs
index c7aa0e2..f08ba5b 100644
--- a/C#/src/dagshub_api/Client/IReadableConfiguration.cs
+++ b/C#/src/dagshub_api/Client/IReadableConfiguration.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api/Client/SwaggerDateConverter.cs b/C#/src/dagshub_api/Client/SwaggerDateConverter.cs
index fcdda3a..58d0925 100644
--- a/C#/src/dagshub_api/Client/SwaggerDateConverter.cs
+++ b/C#/src/dagshub_api/Client/SwaggerDateConverter.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api/Model/CollaboratorsCollaboratorBody.cs b/C#/src/dagshub_api/Model/CollaboratorsCollaboratorBody.cs
index 8305228..85c445d 100644
--- a/C#/src/dagshub_api/Model/CollaboratorsCollaboratorBody.cs
+++ b/C#/src/dagshub_api/Model/CollaboratorsCollaboratorBody.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api/Model/CreateAnnotatorTeam.cs b/C#/src/dagshub_api/Model/CreateAnnotatorTeam.cs
new file mode 100644
index 0000000..3e9a7fa
--- /dev/null
+++ b/C#/src/dagshub_api/Model/CreateAnnotatorTeam.cs
@@ -0,0 +1,229 @@
+/*
+ * DagsHub API
+ *
+ * This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
+ *
+ * OpenAPI spec version: 1.0.3
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Text.RegularExpressions;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+using System.ComponentModel.DataAnnotations;
+using SwaggerDateConverter = dagshub_api.Client.SwaggerDateConverter;
+
+namespace dagshub_api.Model
+{
+ ///
+ /// CreateAnnotatorTeam
+ ///
+ [DataContract]
+ public partial class CreateAnnotatorTeam : IEquatable, IValidatableObject
+ {
+ ///
+ /// Type of team - normal teams have repository access, annotator teams only have annotation project access
+ ///
+ /// Type of team - normal teams have repository access, annotator teams only have annotation project access
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum TeamTypeEnum
+ {
+ ///
+ /// Enum Normal for value: normal
+ ///
+ [EnumMember(Value = "normal")]
+ Normal = 1,
+ ///
+ /// Enum Annotator for value: annotator
+ ///
+ [EnumMember(Value = "annotator")]
+ Annotator = 2 }
+ ///
+ /// Type of team - normal teams have repository access, annotator teams only have annotation project access
+ ///
+ /// Type of team - normal teams have repository access, annotator teams only have annotation project access
+ [DataMember(Name="team_type", EmitDefaultValue=false)]
+ public TeamTypeEnum? TeamType { get; set; }
+ ///
+ /// Repository permission level (required for normal teams, ignored for annotator teams)
+ ///
+ /// Repository permission level (required for normal teams, ignored for annotator teams)
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum PermissionEnum
+ {
+ ///
+ /// Enum Read for value: read
+ ///
+ [EnumMember(Value = "read")]
+ Read = 1,
+ ///
+ /// Enum Write for value: write
+ ///
+ [EnumMember(Value = "write")]
+ Write = 2,
+ ///
+ /// Enum Admin for value: admin
+ ///
+ [EnumMember(Value = "admin")]
+ Admin = 3 }
+ ///
+ /// Repository permission level (required for normal teams, ignored for annotator teams)
+ ///
+ /// Repository permission level (required for normal teams, ignored for annotator teams)
+ [DataMember(Name="permission", EmitDefaultValue=false)]
+ public PermissionEnum? Permission { get; set; }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// Team name (required).
+ /// Team description.
+ /// Type of team - normal teams have repository access, annotator teams only have annotation project access (default to TeamTypeEnum.Normal).
+ /// Repository permission level (required for normal teams, ignored for annotator teams).
+ public CreateAnnotatorTeam(string name = default(string), string description = default(string), TeamTypeEnum? teamType = TeamTypeEnum.Normal, PermissionEnum? permission = default(PermissionEnum?))
+ {
+ // to ensure "name" is required (not null)
+ if (name == null)
+ {
+ throw new InvalidDataException("name is a required property for CreateAnnotatorTeam and cannot be null");
+ }
+ else
+ {
+ this.Name = name;
+ }
+ this.Description = description;
+ // use default value if no "teamType" provided
+ if (teamType == null)
+ {
+ this.TeamType = TeamTypeEnum.Normal;
+ }
+ else
+ {
+ this.TeamType = teamType;
+ }
+ this.Permission = permission;
+ }
+
+ ///
+ /// Team name
+ ///
+ /// Team name
+ [DataMember(Name="name", EmitDefaultValue=false)]
+ public string Name { get; set; }
+
+ ///
+ /// Team description
+ ///
+ /// Team description
+ [DataMember(Name="description", EmitDefaultValue=false)]
+ public string Description { get; set; }
+
+
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ var sb = new StringBuilder();
+ sb.Append("class CreateAnnotatorTeam {\n");
+ sb.Append(" Name: ").Append(Name).Append("\n");
+ sb.Append(" Description: ").Append(Description).Append("\n");
+ sb.Append(" TeamType: ").Append(TeamType).Append("\n");
+ sb.Append(" Permission: ").Append(Permission).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public virtual string ToJson()
+ {
+ return JsonConvert.SerializeObject(this, Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return this.Equals(input as CreateAnnotatorTeam);
+ }
+
+ ///
+ /// Returns true if CreateAnnotatorTeam instances are equal
+ ///
+ /// Instance of CreateAnnotatorTeam to be compared
+ /// Boolean
+ public bool Equals(CreateAnnotatorTeam input)
+ {
+ if (input == null)
+ return false;
+
+ return
+ (
+ this.Name == input.Name ||
+ (this.Name != null &&
+ this.Name.Equals(input.Name))
+ ) &&
+ (
+ this.Description == input.Description ||
+ (this.Description != null &&
+ this.Description.Equals(input.Description))
+ ) &&
+ (
+ this.TeamType == input.TeamType ||
+ (this.TeamType != null &&
+ this.TeamType.Equals(input.TeamType))
+ ) &&
+ (
+ this.Permission == input.Permission ||
+ (this.Permission != null &&
+ this.Permission.Equals(input.Permission))
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.Name != null)
+ hashCode = hashCode * 59 + this.Name.GetHashCode();
+ if (this.Description != null)
+ hashCode = hashCode * 59 + this.Description.GetHashCode();
+ if (this.TeamType != null)
+ hashCode = hashCode * 59 + this.TeamType.GetHashCode();
+ if (this.Permission != null)
+ hashCode = hashCode * 59 + this.Permission.GetHashCode();
+ return hashCode;
+ }
+ }
+
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ {
+ yield break;
+ }
+ }
+}
diff --git a/C#/src/dagshub_api/Model/CreateRepo.cs b/C#/src/dagshub_api/Model/CreateRepo.cs
index 495779c..917ed91 100644
--- a/C#/src/dagshub_api/Model/CreateRepo.cs
+++ b/C#/src/dagshub_api/Model/CreateRepo.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api/Model/EditExperimentPost.cs b/C#/src/dagshub_api/Model/EditExperimentPost.cs
index 364eae6..fbd30d3 100644
--- a/C#/src/dagshub_api/Model/EditExperimentPost.cs
+++ b/C#/src/dagshub_api/Model/EditExperimentPost.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api/Model/ExperimentKeys.cs b/C#/src/dagshub_api/Model/ExperimentKeys.cs
index 11ea7f6..48891d4 100644
--- a/C#/src/dagshub_api/Model/ExperimentKeys.cs
+++ b/C#/src/dagshub_api/Model/ExperimentKeys.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api/Model/File.cs b/C#/src/dagshub_api/Model/File.cs
index 04c6f91..cbae953 100644
--- a/C#/src/dagshub_api/Model/File.cs
+++ b/C#/src/dagshub_api/Model/File.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api/Model/Files.cs b/C#/src/dagshub_api/Model/Files.cs
index 5e981fe..7c4e10f 100644
--- a/C#/src/dagshub_api/Model/Files.cs
+++ b/C#/src/dagshub_api/Model/Files.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api/Model/Files1.cs b/C#/src/dagshub_api/Model/Files1.cs
index b1cd46b..62bf5df 100644
--- a/C#/src/dagshub_api/Model/Files1.cs
+++ b/C#/src/dagshub_api/Model/Files1.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
@@ -33,12 +33,10 @@ public partial class Files1 : IEquatable, IValidatableObject
/// Initializes a new instance of the class.
///
/// entries.
- /// limit.
- /// nextToken.
- public Files1(List entries = default(List), int? limit = default(int?), string nextToken = default(string))
+ /// Next token to continue pagination from.
+ public Files1(List entries = default(List), string nextToken = default(string))
{
this.Entries = entries;
- this.Limit = limit;
this.NextToken = nextToken;
}
@@ -49,14 +47,9 @@ public partial class Files1 : IEquatable, IValidatableObject
public List Entries { get; set; }
///
- /// Gets or Sets Limit
- ///
- [DataMember(Name="limit", EmitDefaultValue=false)]
- public int? Limit { get; set; }
-
- ///
- /// Gets or Sets NextToken
+ /// Next token to continue pagination from
///
+ /// Next token to continue pagination from
[DataMember(Name="next_token", EmitDefaultValue=false)]
public string NextToken { get; set; }
@@ -69,7 +62,6 @@ public override string ToString()
var sb = new StringBuilder();
sb.Append("class Files1 {\n");
sb.Append(" Entries: ").Append(Entries).Append("\n");
- sb.Append(" Limit: ").Append(Limit).Append("\n");
sb.Append(" NextToken: ").Append(NextToken).Append("\n");
sb.Append("}\n");
return sb.ToString();
@@ -111,11 +103,6 @@ public bool Equals(Files1 input)
input.Entries != null &&
this.Entries.SequenceEqual(input.Entries)
) &&
- (
- this.Limit == input.Limit ||
- (this.Limit != null &&
- this.Limit.Equals(input.Limit))
- ) &&
(
this.NextToken == input.NextToken ||
(this.NextToken != null &&
@@ -134,8 +121,6 @@ public override int GetHashCode()
int hashCode = 41;
if (this.Entries != null)
hashCode = hashCode * 59 + this.Entries.GetHashCode();
- if (this.Limit != null)
- hashCode = hashCode * 59 + this.Limit.GetHashCode();
if (this.NextToken != null)
hashCode = hashCode * 59 + this.NextToken.GetHashCode();
return hashCode;
diff --git a/C#/src/dagshub_api/Model/GrantLabelStudioAccess.cs b/C#/src/dagshub_api/Model/GrantLabelStudioAccess.cs
new file mode 100644
index 0000000..8002033
--- /dev/null
+++ b/C#/src/dagshub_api/Model/GrantLabelStudioAccess.cs
@@ -0,0 +1,173 @@
+/*
+ * DagsHub API
+ *
+ * This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
+ *
+ * OpenAPI spec version: 1.0.3
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Text.RegularExpressions;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+using System.ComponentModel.DataAnnotations;
+using SwaggerDateConverter = dagshub_api.Client.SwaggerDateConverter;
+
+namespace dagshub_api.Model
+{
+ ///
+ /// GrantLabelStudioAccess
+ ///
+ [DataContract]
+ public partial class GrantLabelStudioAccess : IEquatable, IValidatableObject
+ {
+ ///
+ /// Access level to grant
+ ///
+ /// Access level to grant
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum AccessLevelEnum
+ {
+ ///
+ /// Enum Annotator for value: annotator
+ ///
+ [EnumMember(Value = "annotator")]
+ Annotator = 1,
+ ///
+ /// Enum None for value: none
+ ///
+ [EnumMember(Value = "none")]
+ None = 2 }
+ ///
+ /// Access level to grant
+ ///
+ /// Access level to grant
+ [DataMember(Name="access_level", EmitDefaultValue=false)]
+ public AccessLevelEnum? AccessLevel { get; set; }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// Project ID, -1 for wildcard access to all projects (required).
+ /// Access level to grant (default to AccessLevelEnum.Annotator).
+ public GrantLabelStudioAccess(long? projectId = default(long?), AccessLevelEnum? accessLevel = AccessLevelEnum.Annotator)
+ {
+ // to ensure "projectId" is required (not null)
+ if (projectId == null)
+ {
+ throw new InvalidDataException("projectId is a required property for GrantLabelStudioAccess and cannot be null");
+ }
+ else
+ {
+ this.ProjectId = projectId;
+ }
+ // use default value if no "accessLevel" provided
+ if (accessLevel == null)
+ {
+ this.AccessLevel = AccessLevelEnum.Annotator;
+ }
+ else
+ {
+ this.AccessLevel = accessLevel;
+ }
+ }
+
+ ///
+ /// Project ID, -1 for wildcard access to all projects
+ ///
+ /// Project ID, -1 for wildcard access to all projects
+ [DataMember(Name="project_id", EmitDefaultValue=false)]
+ public long? ProjectId { get; set; }
+
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ var sb = new StringBuilder();
+ sb.Append("class GrantLabelStudioAccess {\n");
+ sb.Append(" ProjectId: ").Append(ProjectId).Append("\n");
+ sb.Append(" AccessLevel: ").Append(AccessLevel).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public virtual string ToJson()
+ {
+ return JsonConvert.SerializeObject(this, Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return this.Equals(input as GrantLabelStudioAccess);
+ }
+
+ ///
+ /// Returns true if GrantLabelStudioAccess instances are equal
+ ///
+ /// Instance of GrantLabelStudioAccess to be compared
+ /// Boolean
+ public bool Equals(GrantLabelStudioAccess input)
+ {
+ if (input == null)
+ return false;
+
+ return
+ (
+ this.ProjectId == input.ProjectId ||
+ (this.ProjectId != null &&
+ this.ProjectId.Equals(input.ProjectId))
+ ) &&
+ (
+ this.AccessLevel == input.AccessLevel ||
+ (this.AccessLevel != null &&
+ this.AccessLevel.Equals(input.AccessLevel))
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.ProjectId != null)
+ hashCode = hashCode * 59 + this.ProjectId.GetHashCode();
+ if (this.AccessLevel != null)
+ hashCode = hashCode * 59 + this.AccessLevel.GetHashCode();
+ return hashCode;
+ }
+ }
+
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ {
+ yield break;
+ }
+ }
+}
diff --git a/C#/src/dagshub_api/Model/HooksIdBody.cs b/C#/src/dagshub_api/Model/HooksIdBody.cs
index d8e242b..d847924 100644
--- a/C#/src/dagshub_api/Model/HooksIdBody.cs
+++ b/C#/src/dagshub_api/Model/HooksIdBody.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api/Model/InlineResponse200.cs b/C#/src/dagshub_api/Model/InlineResponse200.cs
new file mode 100644
index 0000000..a95baf5
--- /dev/null
+++ b/C#/src/dagshub_api/Model/InlineResponse200.cs
@@ -0,0 +1,170 @@
+/*
+ * DagsHub API
+ *
+ * This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
+ *
+ * OpenAPI spec version: 1.0.3
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Text.RegularExpressions;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+using System.ComponentModel.DataAnnotations;
+using SwaggerDateConverter = dagshub_api.Client.SwaggerDateConverter;
+
+namespace dagshub_api.Model
+{
+ ///
+ /// InlineResponse200
+ ///
+ [DataContract]
+ public partial class InlineResponse200 : IEquatable, IValidatableObject
+ {
+ ///
+ /// Defines AccessLevel
+ ///
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum AccessLevelEnum
+ {
+ ///
+ /// Enum None for value: none
+ ///
+ [EnumMember(Value = "none")]
+ None = 1,
+ ///
+ /// Enum Annotator for value: annotator
+ ///
+ [EnumMember(Value = "annotator")]
+ Annotator = 2 }
+ ///
+ /// Gets or Sets AccessLevel
+ ///
+ [DataMember(Name="access_level", EmitDefaultValue=false)]
+ public AccessLevelEnum? AccessLevel { get; set; }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// userId.
+ /// projectId.
+ /// accessLevel.
+ public InlineResponse200(long? userId = default(long?), long? projectId = default(long?), AccessLevelEnum? accessLevel = default(AccessLevelEnum?))
+ {
+ this.UserId = userId;
+ this.ProjectId = projectId;
+ this.AccessLevel = accessLevel;
+ }
+
+ ///
+ /// Gets or Sets UserId
+ ///
+ [DataMember(Name="user_id", EmitDefaultValue=false)]
+ public long? UserId { get; set; }
+
+ ///
+ /// Gets or Sets ProjectId
+ ///
+ [DataMember(Name="project_id", EmitDefaultValue=false)]
+ public long? ProjectId { get; set; }
+
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ var sb = new StringBuilder();
+ sb.Append("class InlineResponse200 {\n");
+ sb.Append(" UserId: ").Append(UserId).Append("\n");
+ sb.Append(" ProjectId: ").Append(ProjectId).Append("\n");
+ sb.Append(" AccessLevel: ").Append(AccessLevel).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public virtual string ToJson()
+ {
+ return JsonConvert.SerializeObject(this, Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return this.Equals(input as InlineResponse200);
+ }
+
+ ///
+ /// Returns true if InlineResponse200 instances are equal
+ ///
+ /// Instance of InlineResponse200 to be compared
+ /// Boolean
+ public bool Equals(InlineResponse200 input)
+ {
+ if (input == null)
+ return false;
+
+ return
+ (
+ this.UserId == input.UserId ||
+ (this.UserId != null &&
+ this.UserId.Equals(input.UserId))
+ ) &&
+ (
+ this.ProjectId == input.ProjectId ||
+ (this.ProjectId != null &&
+ this.ProjectId.Equals(input.ProjectId))
+ ) &&
+ (
+ this.AccessLevel == input.AccessLevel ||
+ (this.AccessLevel != null &&
+ this.AccessLevel.Equals(input.AccessLevel))
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.UserId != null)
+ hashCode = hashCode * 59 + this.UserId.GetHashCode();
+ if (this.ProjectId != null)
+ hashCode = hashCode * 59 + this.ProjectId.GetHashCode();
+ if (this.AccessLevel != null)
+ hashCode = hashCode * 59 + this.AccessLevel.GetHashCode();
+ return hashCode;
+ }
+ }
+
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ {
+ yield break;
+ }
+ }
+}
diff --git a/C#/src/dagshub_api/Model/Integration.cs b/C#/src/dagshub_api/Model/Integration.cs
index 745578f..9f6a5ca 100644
--- a/C#/src/dagshub_api/Model/Integration.cs
+++ b/C#/src/dagshub_api/Model/Integration.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api/Model/IntegrationInner.cs b/C#/src/dagshub_api/Model/IntegrationInner.cs
index 9e32419..331a577 100644
--- a/C#/src/dagshub_api/Model/IntegrationInner.cs
+++ b/C#/src/dagshub_api/Model/IntegrationInner.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api/Model/Issue.cs b/C#/src/dagshub_api/Model/Issue.cs
index 3254e66..11cc23b 100644
--- a/C#/src/dagshub_api/Model/Issue.cs
+++ b/C#/src/dagshub_api/Model/Issue.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api/Model/IssueAssignee.cs b/C#/src/dagshub_api/Model/IssueAssignee.cs
index c62c743..382bf4c 100644
--- a/C#/src/dagshub_api/Model/IssueAssignee.cs
+++ b/C#/src/dagshub_api/Model/IssueAssignee.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api/Model/IssueLabels.cs b/C#/src/dagshub_api/Model/IssueLabels.cs
index 8dfd38f..91a4415 100644
--- a/C#/src/dagshub_api/Model/IssueLabels.cs
+++ b/C#/src/dagshub_api/Model/IssueLabels.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api/Model/IssueMilestone.cs b/C#/src/dagshub_api/Model/IssueMilestone.cs
index 870ec33..a846124 100644
--- a/C#/src/dagshub_api/Model/IssueMilestone.cs
+++ b/C#/src/dagshub_api/Model/IssueMilestone.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api/Model/Issues.cs b/C#/src/dagshub_api/Model/Issues.cs
index 1ec6b7c..cf8e0cc 100644
--- a/C#/src/dagshub_api/Model/Issues.cs
+++ b/C#/src/dagshub_api/Model/Issues.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api/Model/LabelStudioProjectAccess.cs b/C#/src/dagshub_api/Model/LabelStudioProjectAccess.cs
new file mode 100644
index 0000000..403b887
--- /dev/null
+++ b/C#/src/dagshub_api/Model/LabelStudioProjectAccess.cs
@@ -0,0 +1,253 @@
+/*
+ * DagsHub API
+ *
+ * This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
+ *
+ * OpenAPI spec version: 1.0.3
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Text.RegularExpressions;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+using Newtonsoft.Json.Converters;
+using System.ComponentModel.DataAnnotations;
+using SwaggerDateConverter = dagshub_api.Client.SwaggerDateConverter;
+
+namespace dagshub_api.Model
+{
+ ///
+ /// LabelStudioProjectAccess
+ ///
+ [DataContract]
+ public partial class LabelStudioProjectAccess : IEquatable, IValidatableObject
+ {
+ ///
+ /// Defines AccessLevel
+ ///
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum AccessLevelEnum
+ {
+ ///
+ /// Enum None for value: none
+ ///
+ [EnumMember(Value = "none")]
+ None = 1,
+ ///
+ /// Enum Annotator for value: annotator
+ ///
+ [EnumMember(Value = "annotator")]
+ Annotator = 2 }
+ ///
+ /// Gets or Sets AccessLevel
+ ///
+ [DataMember(Name="access_level", EmitDefaultValue=false)]
+ public AccessLevelEnum? AccessLevel { get; set; }
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// id.
+ /// repoId.
+ /// Project ID, -1 means wildcard access to all projects.
+ /// User ID (present for user access entries).
+ /// Team ID (present for team access entries).
+ /// accessLevel.
+ /// createdUnix.
+ /// user.
+ public LabelStudioProjectAccess(long? id = default(long?), long? repoId = default(long?), long? projectId = default(long?), long? userId = default(long?), long? teamId = default(long?), AccessLevelEnum? accessLevel = default(AccessLevelEnum?), long? createdUnix = default(long?), User user = default(User))
+ {
+ this.Id = id;
+ this.RepoId = repoId;
+ this.ProjectId = projectId;
+ this.UserId = userId;
+ this.TeamId = teamId;
+ this.AccessLevel = accessLevel;
+ this.CreatedUnix = createdUnix;
+ this.User = user;
+ }
+
+ ///
+ /// Gets or Sets Id
+ ///
+ [DataMember(Name="id", EmitDefaultValue=false)]
+ public long? Id { get; set; }
+
+ ///
+ /// Gets or Sets RepoId
+ ///
+ [DataMember(Name="repo_id", EmitDefaultValue=false)]
+ public long? RepoId { get; set; }
+
+ ///
+ /// Project ID, -1 means wildcard access to all projects
+ ///
+ /// Project ID, -1 means wildcard access to all projects
+ [DataMember(Name="project_id", EmitDefaultValue=false)]
+ public long? ProjectId { get; set; }
+
+ ///
+ /// User ID (present for user access entries)
+ ///
+ /// User ID (present for user access entries)
+ [DataMember(Name="user_id", EmitDefaultValue=false)]
+ public long? UserId { get; set; }
+
+ ///
+ /// Team ID (present for team access entries)
+ ///
+ /// Team ID (present for team access entries)
+ [DataMember(Name="team_id", EmitDefaultValue=false)]
+ public long? TeamId { get; set; }
+
+
+ ///
+ /// Gets or Sets CreatedUnix
+ ///
+ [DataMember(Name="created_unix", EmitDefaultValue=false)]
+ public long? CreatedUnix { get; set; }
+
+ ///
+ /// Gets or Sets User
+ ///
+ [DataMember(Name="user", EmitDefaultValue=false)]
+ public User User { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ var sb = new StringBuilder();
+ sb.Append("class LabelStudioProjectAccess {\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" RepoId: ").Append(RepoId).Append("\n");
+ sb.Append(" ProjectId: ").Append(ProjectId).Append("\n");
+ sb.Append(" UserId: ").Append(UserId).Append("\n");
+ sb.Append(" TeamId: ").Append(TeamId).Append("\n");
+ sb.Append(" AccessLevel: ").Append(AccessLevel).Append("\n");
+ sb.Append(" CreatedUnix: ").Append(CreatedUnix).Append("\n");
+ sb.Append(" User: ").Append(User).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public virtual string ToJson()
+ {
+ return JsonConvert.SerializeObject(this, Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object input)
+ {
+ return this.Equals(input as LabelStudioProjectAccess);
+ }
+
+ ///
+ /// Returns true if LabelStudioProjectAccess instances are equal
+ ///
+ /// Instance of LabelStudioProjectAccess to be compared
+ /// Boolean
+ public bool Equals(LabelStudioProjectAccess input)
+ {
+ if (input == null)
+ return false;
+
+ return
+ (
+ this.Id == input.Id ||
+ (this.Id != null &&
+ this.Id.Equals(input.Id))
+ ) &&
+ (
+ this.RepoId == input.RepoId ||
+ (this.RepoId != null &&
+ this.RepoId.Equals(input.RepoId))
+ ) &&
+ (
+ this.ProjectId == input.ProjectId ||
+ (this.ProjectId != null &&
+ this.ProjectId.Equals(input.ProjectId))
+ ) &&
+ (
+ this.UserId == input.UserId ||
+ (this.UserId != null &&
+ this.UserId.Equals(input.UserId))
+ ) &&
+ (
+ this.TeamId == input.TeamId ||
+ (this.TeamId != null &&
+ this.TeamId.Equals(input.TeamId))
+ ) &&
+ (
+ this.AccessLevel == input.AccessLevel ||
+ (this.AccessLevel != null &&
+ this.AccessLevel.Equals(input.AccessLevel))
+ ) &&
+ (
+ this.CreatedUnix == input.CreatedUnix ||
+ (this.CreatedUnix != null &&
+ this.CreatedUnix.Equals(input.CreatedUnix))
+ ) &&
+ (
+ this.User == input.User ||
+ (this.User != null &&
+ this.User.Equals(input.User))
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ int hashCode = 41;
+ if (this.Id != null)
+ hashCode = hashCode * 59 + this.Id.GetHashCode();
+ if (this.RepoId != null)
+ hashCode = hashCode * 59 + this.RepoId.GetHashCode();
+ if (this.ProjectId != null)
+ hashCode = hashCode * 59 + this.ProjectId.GetHashCode();
+ if (this.UserId != null)
+ hashCode = hashCode * 59 + this.UserId.GetHashCode();
+ if (this.TeamId != null)
+ hashCode = hashCode * 59 + this.TeamId.GetHashCode();
+ if (this.AccessLevel != null)
+ hashCode = hashCode * 59 + this.AccessLevel.GetHashCode();
+ if (this.CreatedUnix != null)
+ hashCode = hashCode * 59 + this.CreatedUnix.GetHashCode();
+ if (this.User != null)
+ hashCode = hashCode * 59 + this.User.GetHashCode();
+ return hashCode;
+ }
+ }
+
+ ///
+ /// To validate all properties of the instance
+ ///
+ /// Validation context
+ /// Validation Result
+ IEnumerable IValidatableObject.Validate(ValidationContext validationContext)
+ {
+ yield break;
+ }
+ }
+}
diff --git a/C#/src/dagshub_api/Model/Labels.cs b/C#/src/dagshub_api/Model/Labels.cs
index 4de30df..a04d35b 100644
--- a/C#/src/dagshub_api/Model/Labels.cs
+++ b/C#/src/dagshub_api/Model/Labels.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api/Model/MigrateRepo.cs b/C#/src/dagshub_api/Model/MigrateRepo.cs
index 515224d..0b5726d 100644
--- a/C#/src/dagshub_api/Model/MigrateRepo.cs
+++ b/C#/src/dagshub_api/Model/MigrateRepo.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api/Model/PatchIssue.cs b/C#/src/dagshub_api/Model/PatchIssue.cs
index 78e0101..4abfd28 100644
--- a/C#/src/dagshub_api/Model/PatchIssue.cs
+++ b/C#/src/dagshub_api/Model/PatchIssue.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api/Model/PostIssue.cs b/C#/src/dagshub_api/Model/PostIssue.cs
index 5e7935c..e2c1219 100644
--- a/C#/src/dagshub_api/Model/PostIssue.cs
+++ b/C#/src/dagshub_api/Model/PostIssue.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api/Model/PutFile.cs b/C#/src/dagshub_api/Model/PutFile.cs
index 28c7460..af87d8c 100644
--- a/C#/src/dagshub_api/Model/PutFile.cs
+++ b/C#/src/dagshub_api/Model/PutFile.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api/Model/RepoHooksBody.cs b/C#/src/dagshub_api/Model/RepoHooksBody.cs
index 2e0e502..03bf122 100644
--- a/C#/src/dagshub_api/Model/RepoHooksBody.cs
+++ b/C#/src/dagshub_api/Model/RepoHooksBody.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api/Model/State.cs b/C#/src/dagshub_api/Model/State.cs
index 5958b32..fa4d482 100644
--- a/C#/src/dagshub_api/Model/State.cs
+++ b/C#/src/dagshub_api/Model/State.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api/Model/User.cs b/C#/src/dagshub_api/Model/User.cs
index c61ded0..81a8f4e 100644
--- a/C#/src/dagshub_api/Model/User.cs
+++ b/C#/src/dagshub_api/Model/User.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api/Model/WebhookConfig.cs b/C#/src/dagshub_api/Model/WebhookConfig.cs
index 717bd28..bf0ddb2 100644
--- a/C#/src/dagshub_api/Model/WebhookConfig.cs
+++ b/C#/src/dagshub_api/Model/WebhookConfig.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api/Model/WebhookEvents.cs b/C#/src/dagshub_api/Model/WebhookEvents.cs
index 5528f29..0493b53 100644
--- a/C#/src/dagshub_api/Model/WebhookEvents.cs
+++ b/C#/src/dagshub_api/Model/WebhookEvents.cs
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
diff --git a/C#/src/dagshub_api/dagshub_api.csproj b/C#/src/dagshub_api/dagshub_api.csproj
index 12026a3..60fd5d6 100644
--- a/C#/src/dagshub_api/dagshub_api.csproj
+++ b/C#/src/dagshub_api/dagshub_api.csproj
@@ -4,7 +4,7 @@ DagsHub API
This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
-OpenAPI spec version: 1.0.2
+OpenAPI spec version: 1.0.3
-->
@@ -12,7 +12,7 @@ OpenAPI spec version: 1.0.2
Debug
AnyCPU
- {BB7FDD9F-1657-4C83-B5E3-E416BEC4C698}
+ {DC4E8379-1DB2-416F-B33C-82A82758E481}
Library
Properties
dagshub_api
diff --git a/Go/README.md b/Go/README.md
index 89fa403..1c7c0f4 100644
--- a/Go/README.md
+++ b/Go/README.md
@@ -5,7 +5,7 @@ This API provides a way to retrive & interact with data about DagsHub repositori
## Overview
This API client was generated by the [swagger-codegen](https://github.com/swagger-api/swagger-codegen) project. By using the [swagger-spec](https://github.com/swagger-api/swagger-spec) from a remote server, you can easily generate an API client.
-- API version: 1.0.2
+- API version: 1.0.3
- Package version: 1.0.3
- Build package: io.swagger.codegen.v3.generators.go.GoClientCodegen
@@ -21,6 +21,14 @@ All URIs are relative to *https://dagshub.com/api/v1*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
+*AnnotationsApi* | [**GetLabelStudioTeamAccess**](docs/AnnotationsApi.md#getlabelstudioteamaccess) | **Get** /repos/{owner}/{repo}/annotations/access/teams/{teamid} | Get team access level for annotation projects
+*AnnotationsApi* | [**GetLabelStudioUserAccess**](docs/AnnotationsApi.md#getlabelstudiouseraccess) | **Get** /repos/{owner}/{repo}/annotations/access/users/{userid} | Get user access level for annotation projects
+*AnnotationsApi* | [**GrantLabelStudioTeamAccess**](docs/AnnotationsApi.md#grantlabelstudioteamaccess) | **Put** /repos/{owner}/{repo}/annotations/access/teams/{teamid} | Grant team access to annotation projects
+*AnnotationsApi* | [**GrantLabelStudioUserAccess**](docs/AnnotationsApi.md#grantlabelstudiouseraccess) | **Put** /repos/{owner}/{repo}/annotations/access/users/{userid} | Grant user access to annotation projects
+*AnnotationsApi* | [**ListLabelStudioTeamAccess**](docs/AnnotationsApi.md#listlabelstudioteamaccess) | **Get** /repos/{owner}/{repo}/annotations/access/teams | List team access entries for annotation projects
+*AnnotationsApi* | [**ListLabelStudioUserAccess**](docs/AnnotationsApi.md#listlabelstudiouseraccess) | **Get** /repos/{owner}/{repo}/annotations/access/users | List user access entries for annotation projects
+*AnnotationsApi* | [**RevokeLabelStudioTeamAccess**](docs/AnnotationsApi.md#revokelabelstudioteamaccess) | **Delete** /repos/{owner}/{repo}/annotations/access/teams/{teamid} | Revoke team access to annotation projects
+*AnnotationsApi* | [**RevokeLabelStudioUserAccess**](docs/AnnotationsApi.md#revokelabelstudiouseraccess) | **Delete** /repos/{owner}/{repo}/annotations/access/users/{userid} | Revoke user access to annotation projects
*BranchesApi* | [**GetBranch**](docs/BranchesApi.md#getbranch) | **Get** /repos/{owner}/{repo}/branches/{branch} | Get Branch
*BranchesApi* | [**ListBranches**](docs/BranchesApi.md#listbranches) | **Get** /repos/{owner}/{repo}/branches | List Branches
*CollaboratorsApi* | [**AddCollaborator**](docs/CollaboratorsApi.md#addcollaborator) | **Put** /repos/{owner}/{repo}/collaborators/{collaborator} | Add user as a collaborator
@@ -41,6 +49,7 @@ Class | Method | HTTP request | Description
*IssuesApi* | [**EditIssue**](docs/IssuesApi.md#editissue) | **Patch** /repos/{owner}/{repo}/issues | Edit an issue
*IssuesApi* | [**GetIssue**](docs/IssuesApi.md#getissue) | **Get** /repos/{owner}/{repo}/issues/{index} | Get a single issue
*IssuesApi* | [**ListRepoIssues**](docs/IssuesApi.md#listrepoissues) | **Get** /repos/{owner}/{repo}/issues | List issues for a repository
+*OrganizationsApi* | [**CreateOrgTeam**](docs/OrganizationsApi.md#createorgteam) | **Post** /admin/orgs/{orgname}/teams | Create an organization team
*ReleasesApi* | [**ListReleases**](docs/ReleasesApi.md#listreleases) | **Get** /repos/{owner}/{repo}/releases | List Releases
*RepositoryApi* | [**CreateOrgRepo**](docs/RepositoryApi.md#createorgrepo) | **Post** /org/{orgname}/repos | Create in organization
*RepositoryApi* | [**CreateRepo**](docs/RepositoryApi.md#createrepo) | **Post** /user/repos | Create
@@ -63,17 +72,21 @@ Class | Method | HTTP request | Description
## Documentation For Models
- [CollaboratorsCollaboratorBody](docs/CollaboratorsCollaboratorBody.md)
+ - [CreateAnnotatorTeam](docs/CreateAnnotatorTeam.md)
- [CreateRepo](docs/CreateRepo.md)
- [EditExperimentPost](docs/EditExperimentPost.md)
- [ExperimentKeys](docs/ExperimentKeys.md)
- [File](docs/File.md)
- [Files1](docs/Files1.md)
+ - [GrantLabelStudioAccess](docs/GrantLabelStudioAccess.md)
- [HooksIdBody](docs/HooksIdBody.md)
+ - [InlineResponse200](docs/InlineResponse200.md)
- [IntegrationInner](docs/IntegrationInner.md)
- [Issue](docs/Issue.md)
- [IssueAssignee](docs/IssueAssignee.md)
- [IssueLabels](docs/IssueLabels.md)
- [IssueMilestone](docs/IssueMilestone.md)
+ - [LabelStudioProjectAccess](docs/LabelStudioProjectAccess.md)
- [MigrateRepo](docs/MigrateRepo.md)
- [PatchIssue](docs/PatchIssue.md)
- [PostIssue](docs/PostIssue.md)
diff --git a/Go/api/swagger.yaml b/Go/api/swagger.yaml
index 654f63a..8bc125e 100644
--- a/Go/api/swagger.yaml
+++ b/Go/api/swagger.yaml
@@ -4,7 +4,7 @@ info:
description: |
This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more.
The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
- version: 1.0.2
+ version: 1.0.3
servers:
- url: https://dagshub.com/api/v1
security:
@@ -216,9 +216,16 @@ paths:
schema:
type: integer
default: 100
+ - name: paging
+ in: query
+ description: Whether or not paging is enabled
+ schema:
+ type: boolean
+ default: false
+ example: false
- name: from_token
in: query
- description: "Token, from which to continue iteration"
+ description: "[Only if paging is enabled] token, from which to continue iteration"
schema:
type: string
responses:
@@ -286,8 +293,7 @@ paths:
versioning: bucket
download_url: https://dagshub.com/api/v1/repos/DagsHub-Datasets/spacenet-dataset/storage/raw/s3/spacenet-dataset/LICENSE.md
content_url: https://dagshub.com/api/v1/repos/DagsHub-Datasets/spacenet-dataset/storage/content/s3/spacenet-dataset/LICENSE.md
- limit: 8
- next_token: ""
+ next_token: next-token
"404":
description: Folder or file not found
/repos/{owner}/{repo}/storage/raw/{protocol}/{bucket}/{path}:
@@ -1301,6 +1307,367 @@ paths:
admin: false
push: true
pull: true
+ /repos/{owner}/{repo}/annotations/access/users:
+ get:
+ tags:
+ - Annotations
+ summary: List user access entries for annotation projects
+ description: Get a list of users with access to Label Studio annotation projects
+ in the repository
+ operationId: listLabelStudioUserAccess
+ parameters:
+ - name: owner
+ in: path
+ description: owner of the repository
+ required: true
+ schema:
+ type: string
+ example: OperationSavta
+ - name: repo
+ in: path
+ description: name of the repository
+ required: true
+ schema:
+ type: string
+ example: SavtaDepth
+ - name: project_id
+ in: query
+ description: "Label Studio project ID to filter by. If not specified, returns\
+ \ access for all projects. Use -1 for wildcard access."
+ required: false
+ schema:
+ type: integer
+ format: int64
+ responses:
+ "200":
+ description: Successfully retrieved user access entries
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/LabelStudioProjectAccess'
+ x-content-type: application/json
+ /repos/{owner}/{repo}/annotations/access/users/{userid}:
+ get:
+ tags:
+ - Annotations
+ summary: Get user access level for annotation projects
+ description: Get the access level for a specific user and project (or all projects)
+ operationId: getLabelStudioUserAccess
+ parameters:
+ - name: owner
+ in: path
+ description: owner of the repository
+ required: true
+ schema:
+ type: string
+ example: OperationSavta
+ - name: repo
+ in: path
+ description: name of the repository
+ required: true
+ schema:
+ type: string
+ example: SavtaDepth
+ - name: userid
+ in: path
+ description: User ID
+ required: true
+ schema:
+ type: integer
+ format: int64
+ - name: project_id
+ in: query
+ description: "Label Studio project ID to filter by. If not specified, returns\
+ \ access for all projects. Use -1 for wildcard access."
+ required: false
+ schema:
+ type: integer
+ format: int64
+ responses:
+ "200":
+ description: Successfully retrieved user access level
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/inline_response_200'
+ put:
+ tags:
+ - Annotations
+ summary: Grant user access to annotation projects
+ description: Grant a user access to specific Label Studio annotation projects.
+ User must be an organization member if the repo is owned by an organization.
+ operationId: grantLabelStudioUserAccess
+ parameters:
+ - name: owner
+ in: path
+ description: owner of the repository
+ required: true
+ schema:
+ type: string
+ example: OperationSavta
+ - name: repo
+ in: path
+ description: name of the repository
+ required: true
+ schema:
+ type: string
+ example: SavtaDepth
+ - name: userid
+ in: path
+ description: User ID
+ required: true
+ schema:
+ type: integer
+ format: int64
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GrantLabelStudioAccess'
+ required: true
+ responses:
+ "204":
+ description: Access granted successfully
+ "400":
+ description: User must be a member of the organization which owns the repo
+ "404":
+ description: User not found
+ delete:
+ tags:
+ - Annotations
+ summary: Revoke user access to annotation projects
+ description: Revoke a user's access to Label Studio annotation projects
+ operationId: revokeLabelStudioUserAccess
+ parameters:
+ - name: owner
+ in: path
+ description: owner of the repository
+ required: true
+ schema:
+ type: string
+ example: OperationSavta
+ - name: repo
+ in: path
+ description: name of the repository
+ required: true
+ schema:
+ type: string
+ example: SavtaDepth
+ - name: userid
+ in: path
+ description: User ID
+ required: true
+ schema:
+ type: integer
+ format: int64
+ - name: project_id
+ in: query
+ description: "Label Studio project ID to filter by. If not specified, returns\
+ \ access for all projects. Use -1 for wildcard access."
+ required: false
+ schema:
+ type: integer
+ format: int64
+ responses:
+ "204":
+ description: Access revoked successfully
+ "404":
+ description: User not found
+ /repos/{owner}/{repo}/annotations/access/teams:
+ get:
+ tags:
+ - Annotations
+ summary: List team access entries for annotation projects
+ description: Get a list of teams with access to Label Studio annotation projects
+ in the repository (organization repositories only)
+ operationId: listLabelStudioTeamAccess
+ parameters:
+ - name: owner
+ in: path
+ description: owner of the repository
+ required: true
+ schema:
+ type: string
+ example: OperationSavta
+ - name: repo
+ in: path
+ description: name of the repository
+ required: true
+ schema:
+ type: string
+ example: SavtaDepth
+ - name: project_id
+ in: query
+ description: "Label Studio project ID to filter by. If not specified, returns\
+ \ access for all projects. Use -1 for wildcard access."
+ required: false
+ schema:
+ type: integer
+ format: int64
+ responses:
+ "200":
+ description: Successfully retrieved team access entries
+ content:
+ application/json:
+ schema:
+ type: array
+ items:
+ $ref: '#/components/schemas/LabelStudioProjectAccess'
+ x-content-type: application/json
+ /repos/{owner}/{repo}/annotations/access/teams/{teamid}:
+ get:
+ tags:
+ - Annotations
+ summary: Get team access level for annotation projects
+ description: Get the access level for a specific team and project (or all projects)
+ operationId: getLabelStudioTeamAccess
+ parameters:
+ - name: owner
+ in: path
+ description: owner of the repository
+ required: true
+ schema:
+ type: string
+ example: OperationSavta
+ - name: repo
+ in: path
+ description: name of the repository
+ required: true
+ schema:
+ type: string
+ example: SavtaDepth
+ - name: teamid
+ in: path
+ description: Team ID
+ required: true
+ schema:
+ type: integer
+ format: int64
+ - name: project_id
+ in: query
+ description: "Label Studio project ID to filter by. If not specified, returns\
+ \ access for all projects. Use -1 for wildcard access."
+ required: false
+ schema:
+ type: integer
+ format: int64
+ responses:
+ "200":
+ description: Successfully retrieved team access level
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/LabelStudioProjectAccess'
+ put:
+ tags:
+ - Annotations
+ summary: Grant team access to annotation projects
+ description: Grant a team access to specific Label Studio annotation projects
+ (organization repositories only)
+ operationId: grantLabelStudioTeamAccess
+ parameters:
+ - name: owner
+ in: path
+ description: owner of the repository
+ required: true
+ schema:
+ type: string
+ example: OperationSavta
+ - name: repo
+ in: path
+ description: name of the repository
+ required: true
+ schema:
+ type: string
+ example: SavtaDepth
+ - name: teamid
+ in: path
+ description: Team ID
+ required: true
+ schema:
+ type: integer
+ format: int64
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/GrantLabelStudioAccess'
+ required: true
+ responses:
+ "204":
+ description: Access granted successfully
+ "404":
+ description: Team not found
+ delete:
+ tags:
+ - Annotations
+ summary: Revoke team access to annotation projects
+ description: Revoke a team's access to Label Studio annotation projects
+ operationId: revokeLabelStudioTeamAccess
+ parameters:
+ - name: owner
+ in: path
+ description: owner of the repository
+ required: true
+ schema:
+ type: string
+ example: OperationSavta
+ - name: repo
+ in: path
+ description: name of the repository
+ required: true
+ schema:
+ type: string
+ example: SavtaDepth
+ - name: teamid
+ in: path
+ description: Team ID
+ required: true
+ schema:
+ type: integer
+ format: int64
+ - name: project_id
+ in: query
+ description: "Label Studio project ID to filter by. If not specified, returns\
+ \ access for all projects. Use -1 for wildcard access."
+ required: false
+ schema:
+ type: integer
+ format: int64
+ responses:
+ "204":
+ description: Access revoked successfully
+ "404":
+ description: Team not found
+ /admin/orgs/{orgname}/teams:
+ post:
+ tags:
+ - Organizations
+ summary: Create an organization team
+ description: Create a new team in an organization. Use team_type "annotator"
+ to create an annotator team with access only to annotation projects.
+ operationId: createOrgTeam
+ parameters:
+ - name: orgname
+ in: path
+ description: A DagsHub organization name
+ required: true
+ schema:
+ type: string
+ example: DAGsHub-Official
+ requestBody:
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/CreateAnnotatorTeam'
+ required: true
+ responses:
+ "201":
+ description: Team created successfully
+ "400":
+ description: Invalid team type or other validation error
/repos/{owner}/{repo}/commits/{sha}:
get:
tags:
@@ -1643,10 +2010,9 @@ components:
type: array
items:
$ref: '#/components/schemas/File'
- limit:
- type: integer
next_token:
type: string
+ description: Next token to continue pagination from
example:
entries:
- path: images/000.png
@@ -1663,7 +2029,6 @@ components:
content_url: https://dagshub.com/Simon/baby-yoda-segmentation-dataset/content/master/images/000.png
type: "[file]"
hash: 79fb7f8632d7e15b3b46a7411d08bcdd
- limit: 0
next_token: next_token
Issues:
type: array
@@ -1892,6 +2257,97 @@ components:
type: string
description: Description of the repository
example: This is a repository
+ LabelStudioProjectAccess:
+ type: object
+ properties:
+ id:
+ type: integer
+ format: int64
+ repo_id:
+ type: integer
+ format: int64
+ project_id:
+ type: integer
+ description: "Project ID, -1 means wildcard access to all projects"
+ format: int64
+ user_id:
+ type: integer
+ description: User ID (present for user access entries)
+ format: int64
+ team_id:
+ type: integer
+ description: Team ID (present for team access entries)
+ format: int64
+ access_level:
+ type: string
+ enum:
+ - none
+ - annotator
+ created_unix:
+ type: integer
+ format: int64
+ user:
+ $ref: '#/components/schemas/User'
+ example:
+ access_level: none
+ project_id: 1
+ user_id: 5
+ repo_id: 6
+ created_unix: 2
+ id: 0
+ team_id: 5
+ user:
+ full_name: full_name
+ avatar_url: avatar_url
+ id: 7
+ login: login
+ username: username
+ GrantLabelStudioAccess:
+ required:
+ - project_id
+ type: object
+ properties:
+ project_id:
+ type: integer
+ description: "Project ID, -1 for wildcard access to all projects"
+ format: int64
+ example: -1
+ access_level:
+ type: string
+ description: Access level to grant
+ default: annotator
+ enum:
+ - annotator
+ - none
+ CreateAnnotatorTeam:
+ required:
+ - name
+ type: object
+ properties:
+ name:
+ type: string
+ description: Team name
+ example: Data Annotators
+ description:
+ type: string
+ description: Team description
+ example: Team for annotation work
+ team_type:
+ type: string
+ description: "Type of team - normal teams have repository access, annotator\
+ \ teams only have annotation project access"
+ default: normal
+ enum:
+ - normal
+ - annotator
+ permission:
+ type: string
+ description: "Repository permission level (required for normal teams, ignored\
+ \ for annotator teams)"
+ enum:
+ - read
+ - write
+ - admin
WebhookConfig:
required:
- content_type
@@ -2016,6 +2472,12 @@ components:
username:
type: string
additionalProperties: false
+ example:
+ full_name: full_name
+ avatar_url: avatar_url
+ id: 7
+ login: login
+ username: username
State:
type: string
enum:
@@ -2029,6 +2491,24 @@ components:
description: "The permission to grant the collaborator. Can be one of **read**,\
\ **write** and **admin**."
default: write
+ inline_response_200:
+ type: object
+ properties:
+ user_id:
+ type: integer
+ format: int64
+ project_id:
+ type: integer
+ format: int64
+ access_level:
+ type: string
+ enum:
+ - none
+ - annotator
+ example:
+ access_level: none
+ user_id: 0
+ project_id: 6
repo_hooks_body:
required:
- config
@@ -2188,10 +2668,18 @@ components:
schema:
type: integer
default: 100
+ Paging:
+ name: paging
+ in: query
+ description: Whether or not paging is enabled
+ schema:
+ type: boolean
+ default: false
+ example: false
FromToken:
name: from_token
in: query
- description: "Token, from which to continue iteration"
+ description: "[Only if paging is enabled] token, from which to continue iteration"
schema:
type: string
Username:
@@ -2246,6 +2734,31 @@ components:
required: true
schema:
type: string
+ ProjectId:
+ name: project_id
+ in: query
+ description: "Label Studio project ID to filter by. If not specified, returns\
+ \ access for all projects. Use -1 for wildcard access."
+ required: false
+ schema:
+ type: integer
+ format: int64
+ UserId:
+ name: userid
+ in: path
+ description: User ID
+ required: true
+ schema:
+ type: integer
+ format: int64
+ TeamId:
+ name: teamid
+ in: path
+ description: Team ID
+ required: true
+ schema:
+ type: integer
+ format: int64
Sha:
name: sha
in: path
diff --git a/Go/api_annotations.go b/Go/api_annotations.go
new file mode 100644
index 0000000..a2db9f6
--- /dev/null
+++ b/Go/api_annotations.go
@@ -0,0 +1,837 @@
+
+/*
+ * DagsHub API
+ *
+ * This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
+ *
+ * API version: 1.0.3
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+package dagshub_api
+
+import (
+ "context"
+ "io/ioutil"
+ "net/http"
+ "net/url"
+ "strings"
+ "fmt"
+ "github.com/antihax/optional"
+)
+
+// Linger please
+var (
+ _ context.Context
+)
+
+type AnnotationsApiService service
+/*
+AnnotationsApiService Get team access level for annotation projects
+Get the access level for a specific team and project (or all projects)
+ * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ * @param owner owner of the repository
+ * @param repo name of the repository
+ * @param teamid Team ID
+ * @param optional nil or *AnnotationsApiGetLabelStudioTeamAccessOpts - Optional Parameters:
+ * @param "ProjectId" (optional.Int64) - Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access.
+@return LabelStudioProjectAccess
+*/
+
+type AnnotationsApiGetLabelStudioTeamAccessOpts struct {
+ ProjectId optional.Int64
+}
+
+func (a *AnnotationsApiService) GetLabelStudioTeamAccess(ctx context.Context, owner string, repo string, teamid int64, localVarOptionals *AnnotationsApiGetLabelStudioTeamAccessOpts) (LabelStudioProjectAccess, *http.Response, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Get")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ localVarReturnValue LabelStudioProjectAccess
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/repos/{owner}/{repo}/annotations/access/teams/{teamid}"
+ localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"teamid"+"}", fmt.Sprintf("%v", teamid), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ if localVarOptionals != nil && localVarOptionals.ProjectId.IsSet() {
+ localVarQueryParams.Add("project_id", parameterToString(localVarOptionals.ProjectId.Value(), ""))
+ }
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ if ctx != nil {
+ // API Key Authentication
+ if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok {
+ var key string
+ if auth.Prefix != "" {
+ key = auth.Prefix + " " + auth.Key
+ } else {
+ key = auth.Key
+ }
+
+ localVarQueryParams.Add("token", key)
+ }
+ }
+ r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes)
+ if err != nil {
+ return localVarReturnValue, nil, err
+ }
+
+ localVarHttpResponse, err := a.client.callAPI(r)
+ if err != nil || localVarHttpResponse == nil {
+ return localVarReturnValue, localVarHttpResponse, err
+ }
+
+ localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body)
+ localVarHttpResponse.Body.Close()
+ if err != nil {
+ return localVarReturnValue, localVarHttpResponse, err
+ }
+
+ if localVarHttpResponse.StatusCode < 300 {
+ // If we succeed, return the data, otherwise pass on to decode error.
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
+ if err == nil {
+ return localVarReturnValue, localVarHttpResponse, err
+ }
+ }
+
+ if localVarHttpResponse.StatusCode >= 300 {
+ newErr := GenericSwaggerError{
+ body: localVarBody,
+ error: localVarHttpResponse.Status,
+ }
+ if localVarHttpResponse.StatusCode == 200 {
+ var v LabelStudioProjectAccess
+ err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
+ if err != nil {
+ newErr.error = err.Error()
+ return localVarReturnValue, localVarHttpResponse, newErr
+ }
+ newErr.model = v
+ return localVarReturnValue, localVarHttpResponse, newErr
+ }
+ return localVarReturnValue, localVarHttpResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHttpResponse, nil
+}
+/*
+AnnotationsApiService Get user access level for annotation projects
+Get the access level for a specific user and project (or all projects)
+ * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ * @param owner owner of the repository
+ * @param repo name of the repository
+ * @param userid User ID
+ * @param optional nil or *AnnotationsApiGetLabelStudioUserAccessOpts - Optional Parameters:
+ * @param "ProjectId" (optional.Int64) - Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access.
+@return InlineResponse200
+*/
+
+type AnnotationsApiGetLabelStudioUserAccessOpts struct {
+ ProjectId optional.Int64
+}
+
+func (a *AnnotationsApiService) GetLabelStudioUserAccess(ctx context.Context, owner string, repo string, userid int64, localVarOptionals *AnnotationsApiGetLabelStudioUserAccessOpts) (InlineResponse200, *http.Response, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Get")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ localVarReturnValue InlineResponse200
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/repos/{owner}/{repo}/annotations/access/users/{userid}"
+ localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"userid"+"}", fmt.Sprintf("%v", userid), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ if localVarOptionals != nil && localVarOptionals.ProjectId.IsSet() {
+ localVarQueryParams.Add("project_id", parameterToString(localVarOptionals.ProjectId.Value(), ""))
+ }
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ if ctx != nil {
+ // API Key Authentication
+ if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok {
+ var key string
+ if auth.Prefix != "" {
+ key = auth.Prefix + " " + auth.Key
+ } else {
+ key = auth.Key
+ }
+
+ localVarQueryParams.Add("token", key)
+ }
+ }
+ r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes)
+ if err != nil {
+ return localVarReturnValue, nil, err
+ }
+
+ localVarHttpResponse, err := a.client.callAPI(r)
+ if err != nil || localVarHttpResponse == nil {
+ return localVarReturnValue, localVarHttpResponse, err
+ }
+
+ localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body)
+ localVarHttpResponse.Body.Close()
+ if err != nil {
+ return localVarReturnValue, localVarHttpResponse, err
+ }
+
+ if localVarHttpResponse.StatusCode < 300 {
+ // If we succeed, return the data, otherwise pass on to decode error.
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
+ if err == nil {
+ return localVarReturnValue, localVarHttpResponse, err
+ }
+ }
+
+ if localVarHttpResponse.StatusCode >= 300 {
+ newErr := GenericSwaggerError{
+ body: localVarBody,
+ error: localVarHttpResponse.Status,
+ }
+ if localVarHttpResponse.StatusCode == 200 {
+ var v InlineResponse200
+ err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
+ if err != nil {
+ newErr.error = err.Error()
+ return localVarReturnValue, localVarHttpResponse, newErr
+ }
+ newErr.model = v
+ return localVarReturnValue, localVarHttpResponse, newErr
+ }
+ return localVarReturnValue, localVarHttpResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHttpResponse, nil
+}
+/*
+AnnotationsApiService Grant team access to annotation projects
+Grant a team access to specific Label Studio annotation projects (organization repositories only)
+ * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ * @param body
+ * @param owner owner of the repository
+ * @param repo name of the repository
+ * @param teamid Team ID
+
+*/
+func (a *AnnotationsApiService) GrantLabelStudioTeamAccess(ctx context.Context, body GrantLabelStudioAccess, owner string, repo string, teamid int64) (*http.Response, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Put")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/repos/{owner}/{repo}/annotations/access/teams/{teamid}"
+ localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"teamid"+"}", fmt.Sprintf("%v", teamid), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{"application/json"}
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{}
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = &body
+ if ctx != nil {
+ // API Key Authentication
+ if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok {
+ var key string
+ if auth.Prefix != "" {
+ key = auth.Prefix + " " + auth.Key
+ } else {
+ key = auth.Key
+ }
+
+ localVarQueryParams.Add("token", key)
+ }
+ }
+ r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes)
+ if err != nil {
+ return nil, err
+ }
+
+ localVarHttpResponse, err := a.client.callAPI(r)
+ if err != nil || localVarHttpResponse == nil {
+ return localVarHttpResponse, err
+ }
+
+ localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body)
+ localVarHttpResponse.Body.Close()
+ if err != nil {
+ return localVarHttpResponse, err
+ }
+
+
+ if localVarHttpResponse.StatusCode >= 300 {
+ newErr := GenericSwaggerError{
+ body: localVarBody,
+ error: localVarHttpResponse.Status,
+ }
+ return localVarHttpResponse, newErr
+ }
+
+ return localVarHttpResponse, nil
+}
+/*
+AnnotationsApiService Grant user access to annotation projects
+Grant a user access to specific Label Studio annotation projects. User must be an organization member if the repo is owned by an organization.
+ * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ * @param body
+ * @param owner owner of the repository
+ * @param repo name of the repository
+ * @param userid User ID
+
+*/
+func (a *AnnotationsApiService) GrantLabelStudioUserAccess(ctx context.Context, body GrantLabelStudioAccess, owner string, repo string, userid int64) (*http.Response, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Put")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/repos/{owner}/{repo}/annotations/access/users/{userid}"
+ localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"userid"+"}", fmt.Sprintf("%v", userid), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{"application/json"}
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{}
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = &body
+ if ctx != nil {
+ // API Key Authentication
+ if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok {
+ var key string
+ if auth.Prefix != "" {
+ key = auth.Prefix + " " + auth.Key
+ } else {
+ key = auth.Key
+ }
+
+ localVarQueryParams.Add("token", key)
+ }
+ }
+ r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes)
+ if err != nil {
+ return nil, err
+ }
+
+ localVarHttpResponse, err := a.client.callAPI(r)
+ if err != nil || localVarHttpResponse == nil {
+ return localVarHttpResponse, err
+ }
+
+ localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body)
+ localVarHttpResponse.Body.Close()
+ if err != nil {
+ return localVarHttpResponse, err
+ }
+
+
+ if localVarHttpResponse.StatusCode >= 300 {
+ newErr := GenericSwaggerError{
+ body: localVarBody,
+ error: localVarHttpResponse.Status,
+ }
+ return localVarHttpResponse, newErr
+ }
+
+ return localVarHttpResponse, nil
+}
+/*
+AnnotationsApiService List team access entries for annotation projects
+Get a list of teams with access to Label Studio annotation projects in the repository (organization repositories only)
+ * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ * @param owner owner of the repository
+ * @param repo name of the repository
+ * @param optional nil or *AnnotationsApiListLabelStudioTeamAccessOpts - Optional Parameters:
+ * @param "ProjectId" (optional.Int64) - Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access.
+@return []LabelStudioProjectAccess
+*/
+
+type AnnotationsApiListLabelStudioTeamAccessOpts struct {
+ ProjectId optional.Int64
+}
+
+func (a *AnnotationsApiService) ListLabelStudioTeamAccess(ctx context.Context, owner string, repo string, localVarOptionals *AnnotationsApiListLabelStudioTeamAccessOpts) ([]LabelStudioProjectAccess, *http.Response, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Get")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ localVarReturnValue []LabelStudioProjectAccess
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/repos/{owner}/{repo}/annotations/access/teams"
+ localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ if localVarOptionals != nil && localVarOptionals.ProjectId.IsSet() {
+ localVarQueryParams.Add("project_id", parameterToString(localVarOptionals.ProjectId.Value(), ""))
+ }
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ if ctx != nil {
+ // API Key Authentication
+ if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok {
+ var key string
+ if auth.Prefix != "" {
+ key = auth.Prefix + " " + auth.Key
+ } else {
+ key = auth.Key
+ }
+
+ localVarQueryParams.Add("token", key)
+ }
+ }
+ r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes)
+ if err != nil {
+ return localVarReturnValue, nil, err
+ }
+
+ localVarHttpResponse, err := a.client.callAPI(r)
+ if err != nil || localVarHttpResponse == nil {
+ return localVarReturnValue, localVarHttpResponse, err
+ }
+
+ localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body)
+ localVarHttpResponse.Body.Close()
+ if err != nil {
+ return localVarReturnValue, localVarHttpResponse, err
+ }
+
+ if localVarHttpResponse.StatusCode < 300 {
+ // If we succeed, return the data, otherwise pass on to decode error.
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
+ if err == nil {
+ return localVarReturnValue, localVarHttpResponse, err
+ }
+ }
+
+ if localVarHttpResponse.StatusCode >= 300 {
+ newErr := GenericSwaggerError{
+ body: localVarBody,
+ error: localVarHttpResponse.Status,
+ }
+ if localVarHttpResponse.StatusCode == 200 {
+ var v []LabelStudioProjectAccess
+ err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
+ if err != nil {
+ newErr.error = err.Error()
+ return localVarReturnValue, localVarHttpResponse, newErr
+ }
+ newErr.model = v
+ return localVarReturnValue, localVarHttpResponse, newErr
+ }
+ return localVarReturnValue, localVarHttpResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHttpResponse, nil
+}
+/*
+AnnotationsApiService List user access entries for annotation projects
+Get a list of users with access to Label Studio annotation projects in the repository
+ * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ * @param owner owner of the repository
+ * @param repo name of the repository
+ * @param optional nil or *AnnotationsApiListLabelStudioUserAccessOpts - Optional Parameters:
+ * @param "ProjectId" (optional.Int64) - Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access.
+@return []LabelStudioProjectAccess
+*/
+
+type AnnotationsApiListLabelStudioUserAccessOpts struct {
+ ProjectId optional.Int64
+}
+
+func (a *AnnotationsApiService) ListLabelStudioUserAccess(ctx context.Context, owner string, repo string, localVarOptionals *AnnotationsApiListLabelStudioUserAccessOpts) ([]LabelStudioProjectAccess, *http.Response, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Get")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+ localVarReturnValue []LabelStudioProjectAccess
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/repos/{owner}/{repo}/annotations/access/users"
+ localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ if localVarOptionals != nil && localVarOptionals.ProjectId.IsSet() {
+ localVarQueryParams.Add("project_id", parameterToString(localVarOptionals.ProjectId.Value(), ""))
+ }
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{"application/json"}
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ if ctx != nil {
+ // API Key Authentication
+ if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok {
+ var key string
+ if auth.Prefix != "" {
+ key = auth.Prefix + " " + auth.Key
+ } else {
+ key = auth.Key
+ }
+
+ localVarQueryParams.Add("token", key)
+ }
+ }
+ r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes)
+ if err != nil {
+ return localVarReturnValue, nil, err
+ }
+
+ localVarHttpResponse, err := a.client.callAPI(r)
+ if err != nil || localVarHttpResponse == nil {
+ return localVarReturnValue, localVarHttpResponse, err
+ }
+
+ localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body)
+ localVarHttpResponse.Body.Close()
+ if err != nil {
+ return localVarReturnValue, localVarHttpResponse, err
+ }
+
+ if localVarHttpResponse.StatusCode < 300 {
+ // If we succeed, return the data, otherwise pass on to decode error.
+ err = a.client.decode(&localVarReturnValue, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
+ if err == nil {
+ return localVarReturnValue, localVarHttpResponse, err
+ }
+ }
+
+ if localVarHttpResponse.StatusCode >= 300 {
+ newErr := GenericSwaggerError{
+ body: localVarBody,
+ error: localVarHttpResponse.Status,
+ }
+ if localVarHttpResponse.StatusCode == 200 {
+ var v []LabelStudioProjectAccess
+ err = a.client.decode(&v, localVarBody, localVarHttpResponse.Header.Get("Content-Type"));
+ if err != nil {
+ newErr.error = err.Error()
+ return localVarReturnValue, localVarHttpResponse, newErr
+ }
+ newErr.model = v
+ return localVarReturnValue, localVarHttpResponse, newErr
+ }
+ return localVarReturnValue, localVarHttpResponse, newErr
+ }
+
+ return localVarReturnValue, localVarHttpResponse, nil
+}
+/*
+AnnotationsApiService Revoke team access to annotation projects
+Revoke a team's access to Label Studio annotation projects
+ * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ * @param owner owner of the repository
+ * @param repo name of the repository
+ * @param teamid Team ID
+ * @param optional nil or *AnnotationsApiRevokeLabelStudioTeamAccessOpts - Optional Parameters:
+ * @param "ProjectId" (optional.Int64) - Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access.
+
+*/
+
+type AnnotationsApiRevokeLabelStudioTeamAccessOpts struct {
+ ProjectId optional.Int64
+}
+
+func (a *AnnotationsApiService) RevokeLabelStudioTeamAccess(ctx context.Context, owner string, repo string, teamid int64, localVarOptionals *AnnotationsApiRevokeLabelStudioTeamAccessOpts) (*http.Response, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Delete")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/repos/{owner}/{repo}/annotations/access/teams/{teamid}"
+ localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"teamid"+"}", fmt.Sprintf("%v", teamid), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ if localVarOptionals != nil && localVarOptionals.ProjectId.IsSet() {
+ localVarQueryParams.Add("project_id", parameterToString(localVarOptionals.ProjectId.Value(), ""))
+ }
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{}
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ if ctx != nil {
+ // API Key Authentication
+ if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok {
+ var key string
+ if auth.Prefix != "" {
+ key = auth.Prefix + " " + auth.Key
+ } else {
+ key = auth.Key
+ }
+
+ localVarQueryParams.Add("token", key)
+ }
+ }
+ r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes)
+ if err != nil {
+ return nil, err
+ }
+
+ localVarHttpResponse, err := a.client.callAPI(r)
+ if err != nil || localVarHttpResponse == nil {
+ return localVarHttpResponse, err
+ }
+
+ localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body)
+ localVarHttpResponse.Body.Close()
+ if err != nil {
+ return localVarHttpResponse, err
+ }
+
+
+ if localVarHttpResponse.StatusCode >= 300 {
+ newErr := GenericSwaggerError{
+ body: localVarBody,
+ error: localVarHttpResponse.Status,
+ }
+ return localVarHttpResponse, newErr
+ }
+
+ return localVarHttpResponse, nil
+}
+/*
+AnnotationsApiService Revoke user access to annotation projects
+Revoke a user's access to Label Studio annotation projects
+ * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ * @param owner owner of the repository
+ * @param repo name of the repository
+ * @param userid User ID
+ * @param optional nil or *AnnotationsApiRevokeLabelStudioUserAccessOpts - Optional Parameters:
+ * @param "ProjectId" (optional.Int64) - Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access.
+
+*/
+
+type AnnotationsApiRevokeLabelStudioUserAccessOpts struct {
+ ProjectId optional.Int64
+}
+
+func (a *AnnotationsApiService) RevokeLabelStudioUserAccess(ctx context.Context, owner string, repo string, userid int64, localVarOptionals *AnnotationsApiRevokeLabelStudioUserAccessOpts) (*http.Response, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Delete")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/repos/{owner}/{repo}/annotations/access/users/{userid}"
+ localVarPath = strings.Replace(localVarPath, "{"+"owner"+"}", fmt.Sprintf("%v", owner), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"repo"+"}", fmt.Sprintf("%v", repo), -1)
+ localVarPath = strings.Replace(localVarPath, "{"+"userid"+"}", fmt.Sprintf("%v", userid), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ if localVarOptionals != nil && localVarOptionals.ProjectId.IsSet() {
+ localVarQueryParams.Add("project_id", parameterToString(localVarOptionals.ProjectId.Value(), ""))
+ }
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{}
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{}
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ if ctx != nil {
+ // API Key Authentication
+ if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok {
+ var key string
+ if auth.Prefix != "" {
+ key = auth.Prefix + " " + auth.Key
+ } else {
+ key = auth.Key
+ }
+
+ localVarQueryParams.Add("token", key)
+ }
+ }
+ r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes)
+ if err != nil {
+ return nil, err
+ }
+
+ localVarHttpResponse, err := a.client.callAPI(r)
+ if err != nil || localVarHttpResponse == nil {
+ return localVarHttpResponse, err
+ }
+
+ localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body)
+ localVarHttpResponse.Body.Close()
+ if err != nil {
+ return localVarHttpResponse, err
+ }
+
+
+ if localVarHttpResponse.StatusCode >= 300 {
+ newErr := GenericSwaggerError{
+ body: localVarBody,
+ error: localVarHttpResponse.Status,
+ }
+ return localVarHttpResponse, newErr
+ }
+
+ return localVarHttpResponse, nil
+}
diff --git a/Go/api_branches.go b/Go/api_branches.go
index c5db693..3473be2 100644
--- a/Go/api_branches.go
+++ b/Go/api_branches.go
@@ -4,7 +4,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * API version: 1.0.2
+ * API version: 1.0.3
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package dagshub_api
diff --git a/Go/api_collaborators.go b/Go/api_collaborators.go
index 471cc20..b5d031b 100644
--- a/Go/api_collaborators.go
+++ b/Go/api_collaborators.go
@@ -4,7 +4,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * API version: 1.0.2
+ * API version: 1.0.3
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package dagshub_api
diff --git a/Go/api_commits.go b/Go/api_commits.go
index 2b12740..f152edd 100644
--- a/Go/api_commits.go
+++ b/Go/api_commits.go
@@ -4,7 +4,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * API version: 1.0.2
+ * API version: 1.0.3
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package dagshub_api
diff --git a/Go/api_content.go b/Go/api_content.go
index 54f76c1..c14c55b 100644
--- a/Go/api_content.go
+++ b/Go/api_content.go
@@ -4,7 +4,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * API version: 1.0.2
+ * API version: 1.0.3
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package dagshub_api
diff --git a/Go/api_experiments.go b/Go/api_experiments.go
index c49caf3..73abdfd 100644
--- a/Go/api_experiments.go
+++ b/Go/api_experiments.go
@@ -4,7 +4,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * API version: 1.0.2
+ * API version: 1.0.3
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package dagshub_api
diff --git a/Go/api_issues.go b/Go/api_issues.go
index a33bb9c..9641d85 100644
--- a/Go/api_issues.go
+++ b/Go/api_issues.go
@@ -4,7 +4,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * API version: 1.0.2
+ * API version: 1.0.3
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package dagshub_api
diff --git a/Go/api_organizations.go b/Go/api_organizations.go
new file mode 100644
index 0000000..59bd123
--- /dev/null
+++ b/Go/api_organizations.go
@@ -0,0 +1,110 @@
+
+/*
+ * DagsHub API
+ *
+ * This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
+ *
+ * API version: 1.0.3
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+package dagshub_api
+
+import (
+ "context"
+ "io/ioutil"
+ "net/http"
+ "net/url"
+ "strings"
+ "fmt"
+)
+
+// Linger please
+var (
+ _ context.Context
+)
+
+type OrganizationsApiService service
+/*
+OrganizationsApiService Create an organization team
+Create a new team in an organization. Use team_type \"annotator\" to create an annotator team with access only to annotation projects.
+ * @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().
+ * @param body
+ * @param orgname A DagsHub organization name
+
+*/
+func (a *OrganizationsApiService) CreateOrgTeam(ctx context.Context, body CreateAnnotatorTeam, orgname string) (*http.Response, error) {
+ var (
+ localVarHttpMethod = strings.ToUpper("Post")
+ localVarPostBody interface{}
+ localVarFileName string
+ localVarFileBytes []byte
+
+ )
+
+ // create path and map variables
+ localVarPath := a.client.cfg.BasePath + "/admin/orgs/{orgname}/teams"
+ localVarPath = strings.Replace(localVarPath, "{"+"orgname"+"}", fmt.Sprintf("%v", orgname), -1)
+
+ localVarHeaderParams := make(map[string]string)
+ localVarQueryParams := url.Values{}
+ localVarFormParams := url.Values{}
+
+ // to determine the Content-Type header
+ localVarHttpContentTypes := []string{"application/json"}
+
+ // set Content-Type header
+ localVarHttpContentType := selectHeaderContentType(localVarHttpContentTypes)
+ if localVarHttpContentType != "" {
+ localVarHeaderParams["Content-Type"] = localVarHttpContentType
+ }
+
+ // to determine the Accept header
+ localVarHttpHeaderAccepts := []string{}
+
+ // set Accept header
+ localVarHttpHeaderAccept := selectHeaderAccept(localVarHttpHeaderAccepts)
+ if localVarHttpHeaderAccept != "" {
+ localVarHeaderParams["Accept"] = localVarHttpHeaderAccept
+ }
+ // body params
+ localVarPostBody = &body
+ if ctx != nil {
+ // API Key Authentication
+ if auth, ok := ctx.Value(ContextAPIKey).(APIKey); ok {
+ var key string
+ if auth.Prefix != "" {
+ key = auth.Prefix + " " + auth.Key
+ } else {
+ key = auth.Key
+ }
+
+ localVarQueryParams.Add("token", key)
+ }
+ }
+ r, err := a.client.prepareRequest(ctx, localVarPath, localVarHttpMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, localVarFileName, localVarFileBytes)
+ if err != nil {
+ return nil, err
+ }
+
+ localVarHttpResponse, err := a.client.callAPI(r)
+ if err != nil || localVarHttpResponse == nil {
+ return localVarHttpResponse, err
+ }
+
+ localVarBody, err := ioutil.ReadAll(localVarHttpResponse.Body)
+ localVarHttpResponse.Body.Close()
+ if err != nil {
+ return localVarHttpResponse, err
+ }
+
+
+ if localVarHttpResponse.StatusCode >= 300 {
+ newErr := GenericSwaggerError{
+ body: localVarBody,
+ error: localVarHttpResponse.Status,
+ }
+ return localVarHttpResponse, newErr
+ }
+
+ return localVarHttpResponse, nil
+}
diff --git a/Go/api_releases.go b/Go/api_releases.go
index f0c97da..66f4285 100644
--- a/Go/api_releases.go
+++ b/Go/api_releases.go
@@ -4,7 +4,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * API version: 1.0.2
+ * API version: 1.0.3
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package dagshub_api
diff --git a/Go/api_repository.go b/Go/api_repository.go
index 6eaf5c5..b0be93d 100644
--- a/Go/api_repository.go
+++ b/Go/api_repository.go
@@ -4,7 +4,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * API version: 1.0.2
+ * API version: 1.0.3
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package dagshub_api
diff --git a/Go/api_storage_integrations.go b/Go/api_storage_integrations.go
index ce252c0..e411080 100644
--- a/Go/api_storage_integrations.go
+++ b/Go/api_storage_integrations.go
@@ -4,7 +4,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * API version: 1.0.2
+ * API version: 1.0.3
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package dagshub_api
@@ -36,13 +36,15 @@ StorageIntegrationsApiService List contents in the path
* @param optional nil or *StorageIntegrationsApiGetBucketContentOpts - Optional Parameters:
* @param "IncludeSize" (optional.Bool) -
* @param "Limit" (optional.Int32) - Maximum amount of items to return
- * @param "FromToken" (optional.String) - Token, from which to continue iteration
+ * @param "Paging" (optional.Bool) - Whether or not paging is enabled
+ * @param "FromToken" (optional.String) - [Only if paging is enabled] token, from which to continue iteration
@return Files1
*/
type StorageIntegrationsApiGetBucketContentOpts struct {
IncludeSize optional.Bool
Limit optional.Int32
+ Paging optional.Bool
FromToken optional.String
}
@@ -73,6 +75,9 @@ func (a *StorageIntegrationsApiService) GetBucketContent(ctx context.Context, ow
if localVarOptionals != nil && localVarOptionals.Limit.IsSet() {
localVarQueryParams.Add("limit", parameterToString(localVarOptionals.Limit.Value(), ""))
}
+ if localVarOptionals != nil && localVarOptionals.Paging.IsSet() {
+ localVarQueryParams.Add("paging", parameterToString(localVarOptionals.Paging.Value(), ""))
+ }
if localVarOptionals != nil && localVarOptionals.FromToken.IsSet() {
localVarQueryParams.Add("from_token", parameterToString(localVarOptionals.FromToken.Value(), ""))
}
diff --git a/Go/api_user.go b/Go/api_user.go
index d1e6409..02aef5a 100644
--- a/Go/api_user.go
+++ b/Go/api_user.go
@@ -4,7 +4,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * API version: 1.0.2
+ * API version: 1.0.3
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package dagshub_api
diff --git a/Go/api_webhooks.go b/Go/api_webhooks.go
index d23994b..3112583 100644
--- a/Go/api_webhooks.go
+++ b/Go/api_webhooks.go
@@ -4,7 +4,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * API version: 1.0.2
+ * API version: 1.0.3
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package dagshub_api
diff --git a/Go/client.go b/Go/client.go
index 1201885..a42dfe0 100644
--- a/Go/client.go
+++ b/Go/client.go
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * API version: 1.0.2
+ * API version: 1.0.3
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package dagshub_api
@@ -36,7 +36,7 @@ var (
xmlCheck = regexp.MustCompile("(?i:[application|text]/xml)")
)
-// APIClient manages communication with the DagsHub API API v1.0.2
+// APIClient manages communication with the DagsHub API API v1.0.3
// In most cases there should be only one, shared, APIClient.
type APIClient struct {
cfg *Configuration
@@ -44,6 +44,8 @@ type APIClient struct {
// API Services
+ AnnotationsApi *AnnotationsApiService
+
BranchesApi *BranchesApiService
CollaboratorsApi *CollaboratorsApiService
@@ -56,6 +58,8 @@ type APIClient struct {
IssuesApi *IssuesApiService
+ OrganizationsApi *OrganizationsApiService
+
ReleasesApi *ReleasesApiService
RepositoryApi *RepositoryApiService
@@ -83,12 +87,14 @@ func NewAPIClient(cfg *Configuration) *APIClient {
c.common.client = c
// API Services
+ c.AnnotationsApi = (*AnnotationsApiService)(&c.common)
c.BranchesApi = (*BranchesApiService)(&c.common)
c.CollaboratorsApi = (*CollaboratorsApiService)(&c.common)
c.CommitsApi = (*CommitsApiService)(&c.common)
c.ContentApi = (*ContentApiService)(&c.common)
c.ExperimentsApi = (*ExperimentsApiService)(&c.common)
c.IssuesApi = (*IssuesApiService)(&c.common)
+ c.OrganizationsApi = (*OrganizationsApiService)(&c.common)
c.ReleasesApi = (*ReleasesApiService)(&c.common)
c.RepositoryApi = (*RepositoryApiService)(&c.common)
c.StorageIntegrationsApi = (*StorageIntegrationsApiService)(&c.common)
diff --git a/Go/configuration.go b/Go/configuration.go
index 948108f..7e3571a 100644
--- a/Go/configuration.go
+++ b/Go/configuration.go
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * API version: 1.0.2
+ * API version: 1.0.3
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package dagshub_api
diff --git a/Go/docs/AnnotationsApi.md b/Go/docs/AnnotationsApi.md
new file mode 100644
index 0000000..5879ccf
--- /dev/null
+++ b/Go/docs/AnnotationsApi.md
@@ -0,0 +1,313 @@
+# {{classname}}
+
+All URIs are relative to *https://dagshub.com/api/v1*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**GetLabelStudioTeamAccess**](AnnotationsApi.md#GetLabelStudioTeamAccess) | **Get** /repos/{owner}/{repo}/annotations/access/teams/{teamid} | Get team access level for annotation projects
+[**GetLabelStudioUserAccess**](AnnotationsApi.md#GetLabelStudioUserAccess) | **Get** /repos/{owner}/{repo}/annotations/access/users/{userid} | Get user access level for annotation projects
+[**GrantLabelStudioTeamAccess**](AnnotationsApi.md#GrantLabelStudioTeamAccess) | **Put** /repos/{owner}/{repo}/annotations/access/teams/{teamid} | Grant team access to annotation projects
+[**GrantLabelStudioUserAccess**](AnnotationsApi.md#GrantLabelStudioUserAccess) | **Put** /repos/{owner}/{repo}/annotations/access/users/{userid} | Grant user access to annotation projects
+[**ListLabelStudioTeamAccess**](AnnotationsApi.md#ListLabelStudioTeamAccess) | **Get** /repos/{owner}/{repo}/annotations/access/teams | List team access entries for annotation projects
+[**ListLabelStudioUserAccess**](AnnotationsApi.md#ListLabelStudioUserAccess) | **Get** /repos/{owner}/{repo}/annotations/access/users | List user access entries for annotation projects
+[**RevokeLabelStudioTeamAccess**](AnnotationsApi.md#RevokeLabelStudioTeamAccess) | **Delete** /repos/{owner}/{repo}/annotations/access/teams/{teamid} | Revoke team access to annotation projects
+[**RevokeLabelStudioUserAccess**](AnnotationsApi.md#RevokeLabelStudioUserAccess) | **Delete** /repos/{owner}/{repo}/annotations/access/users/{userid} | Revoke user access to annotation projects
+
+# **GetLabelStudioTeamAccess**
+> LabelStudioProjectAccess GetLabelStudioTeamAccess(ctx, owner, repo, teamid, optional)
+Get team access level for annotation projects
+
+Get the access level for a specific team and project (or all projects)
+
+### Required Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
+ **owner** | **string**| owner of the repository |
+ **repo** | **string**| name of the repository |
+ **teamid** | **int64**| Team ID |
+ **optional** | ***AnnotationsApiGetLabelStudioTeamAccessOpts** | optional parameters | nil if no parameters
+
+### Optional Parameters
+Optional parameters are passed through a pointer to a AnnotationsApiGetLabelStudioTeamAccessOpts struct
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+
+ **projectId** | **optional.Int64**| Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. |
+
+### Return type
+
+[**LabelStudioProjectAccess**](LabelStudioProjectAccess.md)
+
+### Authorization
+
+[basicAuth](../README.md#basicAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **GetLabelStudioUserAccess**
+> InlineResponse200 GetLabelStudioUserAccess(ctx, owner, repo, userid, optional)
+Get user access level for annotation projects
+
+Get the access level for a specific user and project (or all projects)
+
+### Required Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
+ **owner** | **string**| owner of the repository |
+ **repo** | **string**| name of the repository |
+ **userid** | **int64**| User ID |
+ **optional** | ***AnnotationsApiGetLabelStudioUserAccessOpts** | optional parameters | nil if no parameters
+
+### Optional Parameters
+Optional parameters are passed through a pointer to a AnnotationsApiGetLabelStudioUserAccessOpts struct
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+
+ **projectId** | **optional.Int64**| Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. |
+
+### Return type
+
+[**InlineResponse200**](inline_response_200.md)
+
+### Authorization
+
+[basicAuth](../README.md#basicAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **GrantLabelStudioTeamAccess**
+> GrantLabelStudioTeamAccess(ctx, body, owner, repo, teamid)
+Grant team access to annotation projects
+
+Grant a team access to specific Label Studio annotation projects (organization repositories only)
+
+### Required Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
+ **body** | [**GrantLabelStudioAccess**](GrantLabelStudioAccess.md)| |
+ **owner** | **string**| owner of the repository |
+ **repo** | **string**| name of the repository |
+ **teamid** | **int64**| Team ID |
+
+### Return type
+
+ (empty response body)
+
+### Authorization
+
+[basicAuth](../README.md#basicAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **GrantLabelStudioUserAccess**
+> GrantLabelStudioUserAccess(ctx, body, owner, repo, userid)
+Grant user access to annotation projects
+
+Grant a user access to specific Label Studio annotation projects. User must be an organization member if the repo is owned by an organization.
+
+### Required Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
+ **body** | [**GrantLabelStudioAccess**](GrantLabelStudioAccess.md)| |
+ **owner** | **string**| owner of the repository |
+ **repo** | **string**| name of the repository |
+ **userid** | **int64**| User ID |
+
+### Return type
+
+ (empty response body)
+
+### Authorization
+
+[basicAuth](../README.md#basicAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **ListLabelStudioTeamAccess**
+> []LabelStudioProjectAccess ListLabelStudioTeamAccess(ctx, owner, repo, optional)
+List team access entries for annotation projects
+
+Get a list of teams with access to Label Studio annotation projects in the repository (organization repositories only)
+
+### Required Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
+ **owner** | **string**| owner of the repository |
+ **repo** | **string**| name of the repository |
+ **optional** | ***AnnotationsApiListLabelStudioTeamAccessOpts** | optional parameters | nil if no parameters
+
+### Optional Parameters
+Optional parameters are passed through a pointer to a AnnotationsApiListLabelStudioTeamAccessOpts struct
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+ **projectId** | **optional.Int64**| Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. |
+
+### Return type
+
+[**[]LabelStudioProjectAccess**](LabelStudioProjectAccess.md)
+
+### Authorization
+
+[basicAuth](../README.md#basicAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **ListLabelStudioUserAccess**
+> []LabelStudioProjectAccess ListLabelStudioUserAccess(ctx, owner, repo, optional)
+List user access entries for annotation projects
+
+Get a list of users with access to Label Studio annotation projects in the repository
+
+### Required Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
+ **owner** | **string**| owner of the repository |
+ **repo** | **string**| name of the repository |
+ **optional** | ***AnnotationsApiListLabelStudioUserAccessOpts** | optional parameters | nil if no parameters
+
+### Optional Parameters
+Optional parameters are passed through a pointer to a AnnotationsApiListLabelStudioUserAccessOpts struct
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+ **projectId** | **optional.Int64**| Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. |
+
+### Return type
+
+[**[]LabelStudioProjectAccess**](LabelStudioProjectAccess.md)
+
+### Authorization
+
+[basicAuth](../README.md#basicAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **RevokeLabelStudioTeamAccess**
+> RevokeLabelStudioTeamAccess(ctx, owner, repo, teamid, optional)
+Revoke team access to annotation projects
+
+Revoke a team's access to Label Studio annotation projects
+
+### Required Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
+ **owner** | **string**| owner of the repository |
+ **repo** | **string**| name of the repository |
+ **teamid** | **int64**| Team ID |
+ **optional** | ***AnnotationsApiRevokeLabelStudioTeamAccessOpts** | optional parameters | nil if no parameters
+
+### Optional Parameters
+Optional parameters are passed through a pointer to a AnnotationsApiRevokeLabelStudioTeamAccessOpts struct
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+
+ **projectId** | **optional.Int64**| Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. |
+
+### Return type
+
+ (empty response body)
+
+### Authorization
+
+[basicAuth](../README.md#basicAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **RevokeLabelStudioUserAccess**
+> RevokeLabelStudioUserAccess(ctx, owner, repo, userid, optional)
+Revoke user access to annotation projects
+
+Revoke a user's access to Label Studio annotation projects
+
+### Required Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
+ **owner** | **string**| owner of the repository |
+ **repo** | **string**| name of the repository |
+ **userid** | **int64**| User ID |
+ **optional** | ***AnnotationsApiRevokeLabelStudioUserAccessOpts** | optional parameters | nil if no parameters
+
+### Optional Parameters
+Optional parameters are passed through a pointer to a AnnotationsApiRevokeLabelStudioUserAccessOpts struct
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+
+
+
+ **projectId** | **optional.Int64**| Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. |
+
+### Return type
+
+ (empty response body)
+
+### Authorization
+
+[basicAuth](../README.md#basicAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/Go/docs/CreateAnnotatorTeam.md b/Go/docs/CreateAnnotatorTeam.md
new file mode 100644
index 0000000..ce0968e
--- /dev/null
+++ b/Go/docs/CreateAnnotatorTeam.md
@@ -0,0 +1,12 @@
+# CreateAnnotatorTeam
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Name** | **string** | Team name | [default to null]
+**Description** | **string** | Team description | [optional] [default to null]
+**TeamType** | **string** | Type of team - normal teams have repository access, annotator teams only have annotation project access | [optional] [default to TEAM_TYPE.NORMAL]
+**Permission** | **string** | Repository permission level (required for normal teams, ignored for annotator teams) | [optional] [default to null]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
diff --git a/Go/docs/Files1.md b/Go/docs/Files1.md
index c590dba..54fa7f7 100644
--- a/Go/docs/Files1.md
+++ b/Go/docs/Files1.md
@@ -4,8 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Entries** | [**[]*os.File**](*os.File.md) | | [optional] [default to null]
-**Limit** | **int32** | | [optional] [default to null]
-**NextToken** | **string** | | [optional] [default to null]
+**NextToken** | **string** | Next token to continue pagination from | [optional] [default to null]
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/Go/docs/GrantLabelStudioAccess.md b/Go/docs/GrantLabelStudioAccess.md
new file mode 100644
index 0000000..92dbed9
--- /dev/null
+++ b/Go/docs/GrantLabelStudioAccess.md
@@ -0,0 +1,10 @@
+# GrantLabelStudioAccess
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**ProjectId** | **int64** | Project ID, -1 for wildcard access to all projects | [default to null]
+**AccessLevel** | **string** | Access level to grant | [optional] [default to ACCESS_LEVEL.ANNOTATOR]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
diff --git a/Go/docs/InlineResponse200.md b/Go/docs/InlineResponse200.md
new file mode 100644
index 0000000..d9fb0a7
--- /dev/null
+++ b/Go/docs/InlineResponse200.md
@@ -0,0 +1,11 @@
+# InlineResponse200
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**UserId** | **int64** | | [optional] [default to null]
+**ProjectId** | **int64** | | [optional] [default to null]
+**AccessLevel** | **string** | | [optional] [default to null]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
diff --git a/Go/docs/LabelStudioProjectAccess.md b/Go/docs/LabelStudioProjectAccess.md
new file mode 100644
index 0000000..30b8735
--- /dev/null
+++ b/Go/docs/LabelStudioProjectAccess.md
@@ -0,0 +1,16 @@
+# LabelStudioProjectAccess
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**Id** | **int64** | | [optional] [default to null]
+**RepoId** | **int64** | | [optional] [default to null]
+**ProjectId** | **int64** | Project ID, -1 means wildcard access to all projects | [optional] [default to null]
+**UserId** | **int64** | User ID (present for user access entries) | [optional] [default to null]
+**TeamId** | **int64** | Team ID (present for team access entries) | [optional] [default to null]
+**AccessLevel** | **string** | | [optional] [default to null]
+**CreatedUnix** | **int64** | | [optional] [default to null]
+**User** | [***User**](User.md) | | [optional] [default to null]
+
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
diff --git a/Go/docs/OrganizationsApi.md b/Go/docs/OrganizationsApi.md
new file mode 100644
index 0000000..f72219f
--- /dev/null
+++ b/Go/docs/OrganizationsApi.md
@@ -0,0 +1,37 @@
+# {{classname}}
+
+All URIs are relative to *https://dagshub.com/api/v1*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**CreateOrgTeam**](OrganizationsApi.md#CreateOrgTeam) | **Post** /admin/orgs/{orgname}/teams | Create an organization team
+
+# **CreateOrgTeam**
+> CreateOrgTeam(ctx, body, orgname)
+Create an organization team
+
+Create a new team in an organization. Use team_type \"annotator\" to create an annotator team with access only to annotation projects.
+
+### Required Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.
+ **body** | [**CreateAnnotatorTeam**](CreateAnnotatorTeam.md)| |
+ **orgname** | **string**| A DagsHub organization name |
+
+### Return type
+
+ (empty response body)
+
+### Authorization
+
+[basicAuth](../README.md#basicAuth), [tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: Not defined
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/Go/docs/StorageIntegrationsApi.md b/Go/docs/StorageIntegrationsApi.md
index 370d5a7..a840b22 100644
--- a/Go/docs/StorageIntegrationsApi.md
+++ b/Go/docs/StorageIntegrationsApi.md
@@ -35,7 +35,8 @@ Name | Type | Description | Notes
**includeSize** | **optional.Bool**| | [default to false]
**limit** | **optional.Int32**| Maximum amount of items to return | [default to 100]
- **fromToken** | **optional.String**| Token, from which to continue iteration |
+ **paging** | **optional.Bool**| Whether or not paging is enabled | [default to false]
+ **fromToken** | **optional.String**| [Only if paging is enabled] token, from which to continue iteration |
### Return type
diff --git a/Go/model_collaborators_collaborator_body.go b/Go/model_collaborators_collaborator_body.go
index 1844314..fdd6620 100644
--- a/Go/model_collaborators_collaborator_body.go
+++ b/Go/model_collaborators_collaborator_body.go
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * API version: 1.0.2
+ * API version: 1.0.3
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package dagshub_api
diff --git a/Go/model_create_annotator_team.go b/Go/model_create_annotator_team.go
new file mode 100644
index 0000000..41513ac
--- /dev/null
+++ b/Go/model_create_annotator_team.go
@@ -0,0 +1,20 @@
+/*
+ * DagsHub API
+ *
+ * This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
+ *
+ * API version: 1.0.3
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+package dagshub_api
+
+type CreateAnnotatorTeam struct {
+ // Team name
+ Name string `json:"name"`
+ // Team description
+ Description string `json:"description,omitempty"`
+ // Type of team - normal teams have repository access, annotator teams only have annotation project access
+ TeamType string `json:"team_type,omitempty"`
+ // Repository permission level (required for normal teams, ignored for annotator teams)
+ Permission string `json:"permission,omitempty"`
+}
diff --git a/Go/model_create_repo.go b/Go/model_create_repo.go
index a877c07..1fb214f 100644
--- a/Go/model_create_repo.go
+++ b/Go/model_create_repo.go
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * API version: 1.0.2
+ * API version: 1.0.3
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package dagshub_api
diff --git a/Go/model_edit_experiment_post.go b/Go/model_edit_experiment_post.go
index 3ec7a86..6b1235a 100644
--- a/Go/model_edit_experiment_post.go
+++ b/Go/model_edit_experiment_post.go
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * API version: 1.0.2
+ * API version: 1.0.3
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package dagshub_api
diff --git a/Go/model_experiment_keys.go b/Go/model_experiment_keys.go
index d7c92ff..ebb71d2 100644
--- a/Go/model_experiment_keys.go
+++ b/Go/model_experiment_keys.go
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * API version: 1.0.2
+ * API version: 1.0.3
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package dagshub_api
diff --git a/Go/model_file.go b/Go/model_file.go
index f6e83bf..244602a 100644
--- a/Go/model_file.go
+++ b/Go/model_file.go
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * API version: 1.0.2
+ * API version: 1.0.3
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package dagshub_api
diff --git a/Go/model_files_1.go b/Go/model_files_1.go
index 598508e..3c397cc 100644
--- a/Go/model_files_1.go
+++ b/Go/model_files_1.go
@@ -3,13 +3,13 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * API version: 1.0.2
+ * API version: 1.0.3
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package dagshub_api
type Files1 struct {
Entries []*os.File `json:"entries,omitempty"`
- Limit int32 `json:"limit,omitempty"`
+ // Next token to continue pagination from
NextToken string `json:"next_token,omitempty"`
}
diff --git a/Go/model_grant_label_studio_access.go b/Go/model_grant_label_studio_access.go
new file mode 100644
index 0000000..fba6cbb
--- /dev/null
+++ b/Go/model_grant_label_studio_access.go
@@ -0,0 +1,16 @@
+/*
+ * DagsHub API
+ *
+ * This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
+ *
+ * API version: 1.0.3
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+package dagshub_api
+
+type GrantLabelStudioAccess struct {
+ // Project ID, -1 for wildcard access to all projects
+ ProjectId int64 `json:"project_id"`
+ // Access level to grant
+ AccessLevel string `json:"access_level,omitempty"`
+}
diff --git a/Go/model_hooks_id_body.go b/Go/model_hooks_id_body.go
index 1c04ff9..9852953 100644
--- a/Go/model_hooks_id_body.go
+++ b/Go/model_hooks_id_body.go
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * API version: 1.0.2
+ * API version: 1.0.3
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package dagshub_api
diff --git a/Go/model_inline_response_200.go b/Go/model_inline_response_200.go
new file mode 100644
index 0000000..e65d540
--- /dev/null
+++ b/Go/model_inline_response_200.go
@@ -0,0 +1,15 @@
+/*
+ * DagsHub API
+ *
+ * This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
+ *
+ * API version: 1.0.3
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+package dagshub_api
+
+type InlineResponse200 struct {
+ UserId int64 `json:"user_id,omitempty"`
+ ProjectId int64 `json:"project_id,omitempty"`
+ AccessLevel string `json:"access_level,omitempty"`
+}
diff --git a/Go/model_integration_inner.go b/Go/model_integration_inner.go
index 83d2699..b47dd3b 100644
--- a/Go/model_integration_inner.go
+++ b/Go/model_integration_inner.go
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * API version: 1.0.2
+ * API version: 1.0.3
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package dagshub_api
diff --git a/Go/model_issue.go b/Go/model_issue.go
index 4384eda..255a289 100644
--- a/Go/model_issue.go
+++ b/Go/model_issue.go
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * API version: 1.0.2
+ * API version: 1.0.3
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package dagshub_api
diff --git a/Go/model_issue_assignee.go b/Go/model_issue_assignee.go
index 9374305..8e8f396 100644
--- a/Go/model_issue_assignee.go
+++ b/Go/model_issue_assignee.go
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * API version: 1.0.2
+ * API version: 1.0.3
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package dagshub_api
diff --git a/Go/model_issue_labels.go b/Go/model_issue_labels.go
index 62f4311..2718260 100644
--- a/Go/model_issue_labels.go
+++ b/Go/model_issue_labels.go
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * API version: 1.0.2
+ * API version: 1.0.3
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package dagshub_api
diff --git a/Go/model_issue_milestone.go b/Go/model_issue_milestone.go
index fad0165..fac7286 100644
--- a/Go/model_issue_milestone.go
+++ b/Go/model_issue_milestone.go
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * API version: 1.0.2
+ * API version: 1.0.3
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package dagshub_api
diff --git a/Go/model_label_studio_project_access.go b/Go/model_label_studio_project_access.go
new file mode 100644
index 0000000..8795643
--- /dev/null
+++ b/Go/model_label_studio_project_access.go
@@ -0,0 +1,23 @@
+/*
+ * DagsHub API
+ *
+ * This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
+ *
+ * API version: 1.0.3
+ * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
+ */
+package dagshub_api
+
+type LabelStudioProjectAccess struct {
+ Id int64 `json:"id,omitempty"`
+ RepoId int64 `json:"repo_id,omitempty"`
+ // Project ID, -1 means wildcard access to all projects
+ ProjectId int64 `json:"project_id,omitempty"`
+ // User ID (present for user access entries)
+ UserId int64 `json:"user_id,omitempty"`
+ // Team ID (present for team access entries)
+ TeamId int64 `json:"team_id,omitempty"`
+ AccessLevel string `json:"access_level,omitempty"`
+ CreatedUnix int64 `json:"created_unix,omitempty"`
+ User *User `json:"user,omitempty"`
+}
diff --git a/Go/model_migrate_repo.go b/Go/model_migrate_repo.go
index 9afbd78..824d516 100644
--- a/Go/model_migrate_repo.go
+++ b/Go/model_migrate_repo.go
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * API version: 1.0.2
+ * API version: 1.0.3
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package dagshub_api
diff --git a/Go/model_patch_issue.go b/Go/model_patch_issue.go
index 672d4f9..79c6bb6 100644
--- a/Go/model_patch_issue.go
+++ b/Go/model_patch_issue.go
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * API version: 1.0.2
+ * API version: 1.0.3
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package dagshub_api
diff --git a/Go/model_post_issue.go b/Go/model_post_issue.go
index 481dfe9..1a0c87d 100644
--- a/Go/model_post_issue.go
+++ b/Go/model_post_issue.go
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * API version: 1.0.2
+ * API version: 1.0.3
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package dagshub_api
diff --git a/Go/model_put_file.go b/Go/model_put_file.go
index 2706dcd..238bb8c 100644
--- a/Go/model_put_file.go
+++ b/Go/model_put_file.go
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * API version: 1.0.2
+ * API version: 1.0.3
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package dagshub_api
diff --git a/Go/model_repo_hooks_body.go b/Go/model_repo_hooks_body.go
index 08b5c81..6dd4d00 100644
--- a/Go/model_repo_hooks_body.go
+++ b/Go/model_repo_hooks_body.go
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * API version: 1.0.2
+ * API version: 1.0.3
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package dagshub_api
diff --git a/Go/model_state.go b/Go/model_state.go
index 969252f..7bc9da9 100644
--- a/Go/model_state.go
+++ b/Go/model_state.go
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * API version: 1.0.2
+ * API version: 1.0.3
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package dagshub_api
diff --git a/Go/model_user.go b/Go/model_user.go
index adfdf6a..ab3930f 100644
--- a/Go/model_user.go
+++ b/Go/model_user.go
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * API version: 1.0.2
+ * API version: 1.0.3
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package dagshub_api
diff --git a/Go/model_webhook_config.go b/Go/model_webhook_config.go
index 9509716..01476b0 100644
--- a/Go/model_webhook_config.go
+++ b/Go/model_webhook_config.go
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * API version: 1.0.2
+ * API version: 1.0.3
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package dagshub_api
diff --git a/Go/response.go b/Go/response.go
index 6a8068b..f303c52 100644
--- a/Go/response.go
+++ b/Go/response.go
@@ -3,7 +3,7 @@
*
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * API version: 1.0.2
+ * API version: 1.0.3
* Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
*/
package dagshub_api
diff --git a/Java/README.md b/Java/README.md
index 8a49b31..ba3ca77 100644
--- a/Java/README.md
+++ b/Java/README.md
@@ -1,8 +1,8 @@
# swagger-java-client
DagsHub API
-- API version: 1.0.2
- - Build date: 2023-05-11T11:41:48.085831Z[Etc/UTC]
+- API version: 1.0.3
+ - Build date: 2026-01-28T08:00:41.951499729Z[Etc/UTC]
This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
@@ -74,12 +74,12 @@ Please follow the [installation](#installation) instruction and execute the foll
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
-import io.swagger.client.api.BranchesApi;
+import io.swagger.client.api.AnnotationsApi;
import java.io.File;
import java.util.*;
-public class BranchesApiExample {
+public class AnnotationsApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
@@ -94,14 +94,16 @@ public class BranchesApiExample {
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tokenAuth.setApiKeyPrefix("Token");
- BranchesApi apiInstance = new BranchesApi();
+ AnnotationsApi apiInstance = new AnnotationsApi();
String owner = "owner_example"; // String | owner of the repository
String repo = "repo_example"; // String | name of the repository
- String branch = "branch_example"; // String | branch of the repository
+ Long teamid = 789L; // Long | Team ID
+ Long projectId = 789L; // Long | Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access.
try {
- apiInstance.getBranch(owner, repo, branch);
+ LabelStudioProjectAccess result = apiInstance.getLabelStudioTeamAccess(owner, repo, teamid, projectId);
+ System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling BranchesApi#getBranch");
+ System.err.println("Exception when calling AnnotationsApi#getLabelStudioTeamAccess");
e.printStackTrace();
}
}
@@ -109,12 +111,12 @@ public class BranchesApiExample {
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
-import io.swagger.client.api.BranchesApi;
+import io.swagger.client.api.AnnotationsApi;
import java.io.File;
import java.util.*;
-public class BranchesApiExample {
+public class AnnotationsApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
@@ -129,13 +131,232 @@ public class BranchesApiExample {
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//tokenAuth.setApiKeyPrefix("Token");
- BranchesApi apiInstance = new BranchesApi();
+ AnnotationsApi apiInstance = new AnnotationsApi();
String owner = "owner_example"; // String | owner of the repository
String repo = "repo_example"; // String | name of the repository
+ Long userid = 789L; // Long | User ID
+ Long projectId = 789L; // Long | Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access.
try {
- apiInstance.listBranches(owner, repo);
+ InlineResponse200 result = apiInstance.getLabelStudioUserAccess(owner, repo, userid, projectId);
+ System.out.println(result);
} catch (ApiException e) {
- System.err.println("Exception when calling BranchesApi#listBranches");
+ System.err.println("Exception when calling AnnotationsApi#getLabelStudioUserAccess");
+ e.printStackTrace();
+ }
+ }
+}
+import io.swagger.client.*;
+import io.swagger.client.auth.*;
+import io.swagger.client.model.*;
+import io.swagger.client.api.AnnotationsApi;
+
+import java.io.File;
+import java.util.*;
+
+public class AnnotationsApiExample {
+
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ // Configure HTTP basic authorization: basicAuth
+ HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
+ basicAuth.setUsername("YOUR USERNAME");
+ basicAuth.setPassword("YOUR PASSWORD");
+
+ // Configure API key authorization: tokenAuth
+ ApiKeyAuth tokenAuth = (ApiKeyAuth) defaultClient.getAuthentication("tokenAuth");
+ tokenAuth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //tokenAuth.setApiKeyPrefix("Token");
+
+ AnnotationsApi apiInstance = new AnnotationsApi();
+ GrantLabelStudioAccess body = new GrantLabelStudioAccess(); // GrantLabelStudioAccess |
+ String owner = "owner_example"; // String | owner of the repository
+ String repo = "repo_example"; // String | name of the repository
+ Long teamid = 789L; // Long | Team ID
+ try {
+ apiInstance.grantLabelStudioTeamAccess(body, owner, repo, teamid);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling AnnotationsApi#grantLabelStudioTeamAccess");
+ e.printStackTrace();
+ }
+ }
+}
+import io.swagger.client.*;
+import io.swagger.client.auth.*;
+import io.swagger.client.model.*;
+import io.swagger.client.api.AnnotationsApi;
+
+import java.io.File;
+import java.util.*;
+
+public class AnnotationsApiExample {
+
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ // Configure HTTP basic authorization: basicAuth
+ HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
+ basicAuth.setUsername("YOUR USERNAME");
+ basicAuth.setPassword("YOUR PASSWORD");
+
+ // Configure API key authorization: tokenAuth
+ ApiKeyAuth tokenAuth = (ApiKeyAuth) defaultClient.getAuthentication("tokenAuth");
+ tokenAuth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //tokenAuth.setApiKeyPrefix("Token");
+
+ AnnotationsApi apiInstance = new AnnotationsApi();
+ GrantLabelStudioAccess body = new GrantLabelStudioAccess(); // GrantLabelStudioAccess |
+ String owner = "owner_example"; // String | owner of the repository
+ String repo = "repo_example"; // String | name of the repository
+ Long userid = 789L; // Long | User ID
+ try {
+ apiInstance.grantLabelStudioUserAccess(body, owner, repo, userid);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling AnnotationsApi#grantLabelStudioUserAccess");
+ e.printStackTrace();
+ }
+ }
+}
+import io.swagger.client.*;
+import io.swagger.client.auth.*;
+import io.swagger.client.model.*;
+import io.swagger.client.api.AnnotationsApi;
+
+import java.io.File;
+import java.util.*;
+
+public class AnnotationsApiExample {
+
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ // Configure HTTP basic authorization: basicAuth
+ HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
+ basicAuth.setUsername("YOUR USERNAME");
+ basicAuth.setPassword("YOUR PASSWORD");
+
+ // Configure API key authorization: tokenAuth
+ ApiKeyAuth tokenAuth = (ApiKeyAuth) defaultClient.getAuthentication("tokenAuth");
+ tokenAuth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //tokenAuth.setApiKeyPrefix("Token");
+
+ AnnotationsApi apiInstance = new AnnotationsApi();
+ String owner = "owner_example"; // String | owner of the repository
+ String repo = "repo_example"; // String | name of the repository
+ Long projectId = 789L; // Long | Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access.
+ try {
+ List result = apiInstance.listLabelStudioTeamAccess(owner, repo, projectId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling AnnotationsApi#listLabelStudioTeamAccess");
+ e.printStackTrace();
+ }
+ }
+}
+import io.swagger.client.*;
+import io.swagger.client.auth.*;
+import io.swagger.client.model.*;
+import io.swagger.client.api.AnnotationsApi;
+
+import java.io.File;
+import java.util.*;
+
+public class AnnotationsApiExample {
+
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ // Configure HTTP basic authorization: basicAuth
+ HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
+ basicAuth.setUsername("YOUR USERNAME");
+ basicAuth.setPassword("YOUR PASSWORD");
+
+ // Configure API key authorization: tokenAuth
+ ApiKeyAuth tokenAuth = (ApiKeyAuth) defaultClient.getAuthentication("tokenAuth");
+ tokenAuth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //tokenAuth.setApiKeyPrefix("Token");
+
+ AnnotationsApi apiInstance = new AnnotationsApi();
+ String owner = "owner_example"; // String | owner of the repository
+ String repo = "repo_example"; // String | name of the repository
+ Long projectId = 789L; // Long | Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access.
+ try {
+ List result = apiInstance.listLabelStudioUserAccess(owner, repo, projectId);
+ System.out.println(result);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling AnnotationsApi#listLabelStudioUserAccess");
+ e.printStackTrace();
+ }
+ }
+}
+import io.swagger.client.*;
+import io.swagger.client.auth.*;
+import io.swagger.client.model.*;
+import io.swagger.client.api.AnnotationsApi;
+
+import java.io.File;
+import java.util.*;
+
+public class AnnotationsApiExample {
+
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ // Configure HTTP basic authorization: basicAuth
+ HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
+ basicAuth.setUsername("YOUR USERNAME");
+ basicAuth.setPassword("YOUR PASSWORD");
+
+ // Configure API key authorization: tokenAuth
+ ApiKeyAuth tokenAuth = (ApiKeyAuth) defaultClient.getAuthentication("tokenAuth");
+ tokenAuth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //tokenAuth.setApiKeyPrefix("Token");
+
+ AnnotationsApi apiInstance = new AnnotationsApi();
+ String owner = "owner_example"; // String | owner of the repository
+ String repo = "repo_example"; // String | name of the repository
+ Long teamid = 789L; // Long | Team ID
+ Long projectId = 789L; // Long | Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access.
+ try {
+ apiInstance.revokeLabelStudioTeamAccess(owner, repo, teamid, projectId);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling AnnotationsApi#revokeLabelStudioTeamAccess");
+ e.printStackTrace();
+ }
+ }
+}
+import io.swagger.client.*;
+import io.swagger.client.auth.*;
+import io.swagger.client.model.*;
+import io.swagger.client.api.AnnotationsApi;
+
+import java.io.File;
+import java.util.*;
+
+public class AnnotationsApiExample {
+
+ public static void main(String[] args) {
+ ApiClient defaultClient = Configuration.getDefaultApiClient();
+ // Configure HTTP basic authorization: basicAuth
+ HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
+ basicAuth.setUsername("YOUR USERNAME");
+ basicAuth.setPassword("YOUR PASSWORD");
+
+ // Configure API key authorization: tokenAuth
+ ApiKeyAuth tokenAuth = (ApiKeyAuth) defaultClient.getAuthentication("tokenAuth");
+ tokenAuth.setApiKey("YOUR API KEY");
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+ //tokenAuth.setApiKeyPrefix("Token");
+
+ AnnotationsApi apiInstance = new AnnotationsApi();
+ String owner = "owner_example"; // String | owner of the repository
+ String repo = "repo_example"; // String | name of the repository
+ Long userid = 789L; // Long | User ID
+ Long projectId = 789L; // Long | Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access.
+ try {
+ apiInstance.revokeLabelStudioUserAccess(owner, repo, userid, projectId);
+ } catch (ApiException e) {
+ System.err.println("Exception when calling AnnotationsApi#revokeLabelStudioUserAccess");
e.printStackTrace();
}
}
@@ -148,6 +369,14 @@ All URIs are relative to *https://dagshub.com/api/v1*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
+*AnnotationsApi* | [**getLabelStudioTeamAccess**](docs/AnnotationsApi.md#getLabelStudioTeamAccess) | **GET** /repos/{owner}/{repo}/annotations/access/teams/{teamid} | Get team access level for annotation projects
+*AnnotationsApi* | [**getLabelStudioUserAccess**](docs/AnnotationsApi.md#getLabelStudioUserAccess) | **GET** /repos/{owner}/{repo}/annotations/access/users/{userid} | Get user access level for annotation projects
+*AnnotationsApi* | [**grantLabelStudioTeamAccess**](docs/AnnotationsApi.md#grantLabelStudioTeamAccess) | **PUT** /repos/{owner}/{repo}/annotations/access/teams/{teamid} | Grant team access to annotation projects
+*AnnotationsApi* | [**grantLabelStudioUserAccess**](docs/AnnotationsApi.md#grantLabelStudioUserAccess) | **PUT** /repos/{owner}/{repo}/annotations/access/users/{userid} | Grant user access to annotation projects
+*AnnotationsApi* | [**listLabelStudioTeamAccess**](docs/AnnotationsApi.md#listLabelStudioTeamAccess) | **GET** /repos/{owner}/{repo}/annotations/access/teams | List team access entries for annotation projects
+*AnnotationsApi* | [**listLabelStudioUserAccess**](docs/AnnotationsApi.md#listLabelStudioUserAccess) | **GET** /repos/{owner}/{repo}/annotations/access/users | List user access entries for annotation projects
+*AnnotationsApi* | [**revokeLabelStudioTeamAccess**](docs/AnnotationsApi.md#revokeLabelStudioTeamAccess) | **DELETE** /repos/{owner}/{repo}/annotations/access/teams/{teamid} | Revoke team access to annotation projects
+*AnnotationsApi* | [**revokeLabelStudioUserAccess**](docs/AnnotationsApi.md#revokeLabelStudioUserAccess) | **DELETE** /repos/{owner}/{repo}/annotations/access/users/{userid} | Revoke user access to annotation projects
*BranchesApi* | [**getBranch**](docs/BranchesApi.md#getBranch) | **GET** /repos/{owner}/{repo}/branches/{branch} | Get Branch
*BranchesApi* | [**listBranches**](docs/BranchesApi.md#listBranches) | **GET** /repos/{owner}/{repo}/branches | List Branches
*CollaboratorsApi* | [**addCollaborator**](docs/CollaboratorsApi.md#addCollaborator) | **PUT** /repos/{owner}/{repo}/collaborators/{collaborator} | Add user as a collaborator
@@ -168,6 +397,7 @@ Class | Method | HTTP request | Description
*IssuesApi* | [**editIssue**](docs/IssuesApi.md#editIssue) | **PATCH** /repos/{owner}/{repo}/issues | Edit an issue
*IssuesApi* | [**getIssue**](docs/IssuesApi.md#getIssue) | **GET** /repos/{owner}/{repo}/issues/{index} | Get a single issue
*IssuesApi* | [**listRepoIssues**](docs/IssuesApi.md#listRepoIssues) | **GET** /repos/{owner}/{repo}/issues | List issues for a repository
+*OrganizationsApi* | [**createOrgTeam**](docs/OrganizationsApi.md#createOrgTeam) | **POST** /admin/orgs/{orgname}/teams | Create an organization team
*ReleasesApi* | [**listReleases**](docs/ReleasesApi.md#listReleases) | **GET** /repos/{owner}/{repo}/releases | List Releases
*RepositoryApi* | [**createOrgRepo**](docs/RepositoryApi.md#createOrgRepo) | **POST** /org/{orgname}/repos | Create in organization
*RepositoryApi* | [**createRepo**](docs/RepositoryApi.md#createRepo) | **POST** /user/repos | Create
@@ -190,13 +420,16 @@ Class | Method | HTTP request | Description
## Documentation for Models
- [CollaboratorsCollaboratorBody](docs/CollaboratorsCollaboratorBody.md)
+ - [CreateAnnotatorTeam](docs/CreateAnnotatorTeam.md)
- [CreateRepo](docs/CreateRepo.md)
- [EditExperimentPost](docs/EditExperimentPost.md)
- [ExperimentKeys](docs/ExperimentKeys.md)
- [File](docs/File.md)
- [Files](docs/Files.md)
- [Files1](docs/Files1.md)
+ - [GrantLabelStudioAccess](docs/GrantLabelStudioAccess.md)
- [HooksIdBody](docs/HooksIdBody.md)
+ - [InlineResponse200](docs/InlineResponse200.md)
- [Integration](docs/Integration.md)
- [IntegrationInner](docs/IntegrationInner.md)
- [Issue](docs/Issue.md)
@@ -204,6 +437,7 @@ Class | Method | HTTP request | Description
- [IssueLabels](docs/IssueLabels.md)
- [IssueMilestone](docs/IssueMilestone.md)
- [Issues](docs/Issues.md)
+ - [LabelStudioProjectAccess](docs/LabelStudioProjectAccess.md)
- [Labels](docs/Labels.md)
- [MigrateRepo](docs/MigrateRepo.md)
- [PatchIssue](docs/PatchIssue.md)
diff --git a/Java/docs/AnnotationsApi.md b/Java/docs/AnnotationsApi.md
new file mode 100644
index 0000000..9d980aa
--- /dev/null
+++ b/Java/docs/AnnotationsApi.md
@@ -0,0 +1,527 @@
+# AnnotationsApi
+
+All URIs are relative to *https://dagshub.com/api/v1*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**getLabelStudioTeamAccess**](AnnotationsApi.md#getLabelStudioTeamAccess) | **GET** /repos/{owner}/{repo}/annotations/access/teams/{teamid} | Get team access level for annotation projects
+[**getLabelStudioUserAccess**](AnnotationsApi.md#getLabelStudioUserAccess) | **GET** /repos/{owner}/{repo}/annotations/access/users/{userid} | Get user access level for annotation projects
+[**grantLabelStudioTeamAccess**](AnnotationsApi.md#grantLabelStudioTeamAccess) | **PUT** /repos/{owner}/{repo}/annotations/access/teams/{teamid} | Grant team access to annotation projects
+[**grantLabelStudioUserAccess**](AnnotationsApi.md#grantLabelStudioUserAccess) | **PUT** /repos/{owner}/{repo}/annotations/access/users/{userid} | Grant user access to annotation projects
+[**listLabelStudioTeamAccess**](AnnotationsApi.md#listLabelStudioTeamAccess) | **GET** /repos/{owner}/{repo}/annotations/access/teams | List team access entries for annotation projects
+[**listLabelStudioUserAccess**](AnnotationsApi.md#listLabelStudioUserAccess) | **GET** /repos/{owner}/{repo}/annotations/access/users | List user access entries for annotation projects
+[**revokeLabelStudioTeamAccess**](AnnotationsApi.md#revokeLabelStudioTeamAccess) | **DELETE** /repos/{owner}/{repo}/annotations/access/teams/{teamid} | Revoke team access to annotation projects
+[**revokeLabelStudioUserAccess**](AnnotationsApi.md#revokeLabelStudioUserAccess) | **DELETE** /repos/{owner}/{repo}/annotations/access/users/{userid} | Revoke user access to annotation projects
+
+
+# **getLabelStudioTeamAccess**
+> LabelStudioProjectAccess getLabelStudioTeamAccess(owner, repo, teamid, projectId)
+
+Get team access level for annotation projects
+
+Get the access level for a specific team and project (or all projects)
+
+### Example
+```java
+// Import classes:
+//import io.swagger.client.ApiClient;
+//import io.swagger.client.ApiException;
+//import io.swagger.client.Configuration;
+//import io.swagger.client.auth.*;
+//import io.swagger.client.api.AnnotationsApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+// Configure HTTP basic authorization: basicAuth
+HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
+basicAuth.setUsername("YOUR USERNAME");
+basicAuth.setPassword("YOUR PASSWORD");
+
+// Configure API key authorization: tokenAuth
+ApiKeyAuth tokenAuth = (ApiKeyAuth) defaultClient.getAuthentication("tokenAuth");
+tokenAuth.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//tokenAuth.setApiKeyPrefix("Token");
+
+AnnotationsApi apiInstance = new AnnotationsApi();
+String owner = "owner_example"; // String | owner of the repository
+String repo = "repo_example"; // String | name of the repository
+Long teamid = 789L; // Long | Team ID
+Long projectId = 789L; // Long | Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access.
+try {
+ LabelStudioProjectAccess result = apiInstance.getLabelStudioTeamAccess(owner, repo, teamid, projectId);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling AnnotationsApi#getLabelStudioTeamAccess");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **String**| owner of the repository |
+ **repo** | **String**| name of the repository |
+ **teamid** | **Long**| Team ID |
+ **projectId** | **Long**| Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. | [optional]
+
+### Return type
+
+[**LabelStudioProjectAccess**](LabelStudioProjectAccess.md)
+
+### Authorization
+
+[basicAuth](../README.md#basicAuth)[tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+# **getLabelStudioUserAccess**
+> InlineResponse200 getLabelStudioUserAccess(owner, repo, userid, projectId)
+
+Get user access level for annotation projects
+
+Get the access level for a specific user and project (or all projects)
+
+### Example
+```java
+// Import classes:
+//import io.swagger.client.ApiClient;
+//import io.swagger.client.ApiException;
+//import io.swagger.client.Configuration;
+//import io.swagger.client.auth.*;
+//import io.swagger.client.api.AnnotationsApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+// Configure HTTP basic authorization: basicAuth
+HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
+basicAuth.setUsername("YOUR USERNAME");
+basicAuth.setPassword("YOUR PASSWORD");
+
+// Configure API key authorization: tokenAuth
+ApiKeyAuth tokenAuth = (ApiKeyAuth) defaultClient.getAuthentication("tokenAuth");
+tokenAuth.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//tokenAuth.setApiKeyPrefix("Token");
+
+AnnotationsApi apiInstance = new AnnotationsApi();
+String owner = "owner_example"; // String | owner of the repository
+String repo = "repo_example"; // String | name of the repository
+Long userid = 789L; // Long | User ID
+Long projectId = 789L; // Long | Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access.
+try {
+ InlineResponse200 result = apiInstance.getLabelStudioUserAccess(owner, repo, userid, projectId);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling AnnotationsApi#getLabelStudioUserAccess");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **String**| owner of the repository |
+ **repo** | **String**| name of the repository |
+ **userid** | **Long**| User ID |
+ **projectId** | **Long**| Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. | [optional]
+
+### Return type
+
+[**InlineResponse200**](InlineResponse200.md)
+
+### Authorization
+
+[basicAuth](../README.md#basicAuth)[tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+# **grantLabelStudioTeamAccess**
+> grantLabelStudioTeamAccess(body, owner, repo, teamid)
+
+Grant team access to annotation projects
+
+Grant a team access to specific Label Studio annotation projects (organization repositories only)
+
+### Example
+```java
+// Import classes:
+//import io.swagger.client.ApiClient;
+//import io.swagger.client.ApiException;
+//import io.swagger.client.Configuration;
+//import io.swagger.client.auth.*;
+//import io.swagger.client.api.AnnotationsApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+// Configure HTTP basic authorization: basicAuth
+HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
+basicAuth.setUsername("YOUR USERNAME");
+basicAuth.setPassword("YOUR PASSWORD");
+
+// Configure API key authorization: tokenAuth
+ApiKeyAuth tokenAuth = (ApiKeyAuth) defaultClient.getAuthentication("tokenAuth");
+tokenAuth.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//tokenAuth.setApiKeyPrefix("Token");
+
+AnnotationsApi apiInstance = new AnnotationsApi();
+GrantLabelStudioAccess body = new GrantLabelStudioAccess(); // GrantLabelStudioAccess |
+String owner = "owner_example"; // String | owner of the repository
+String repo = "repo_example"; // String | name of the repository
+Long teamid = 789L; // Long | Team ID
+try {
+ apiInstance.grantLabelStudioTeamAccess(body, owner, repo, teamid);
+} catch (ApiException e) {
+ System.err.println("Exception when calling AnnotationsApi#grantLabelStudioTeamAccess");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**GrantLabelStudioAccess**](GrantLabelStudioAccess.md)| |
+ **owner** | **String**| owner of the repository |
+ **repo** | **String**| name of the repository |
+ **teamid** | **Long**| Team ID |
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+[basicAuth](../README.md#basicAuth)[tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: Not defined
+
+
+# **grantLabelStudioUserAccess**
+> grantLabelStudioUserAccess(body, owner, repo, userid)
+
+Grant user access to annotation projects
+
+Grant a user access to specific Label Studio annotation projects. User must be an organization member if the repo is owned by an organization.
+
+### Example
+```java
+// Import classes:
+//import io.swagger.client.ApiClient;
+//import io.swagger.client.ApiException;
+//import io.swagger.client.Configuration;
+//import io.swagger.client.auth.*;
+//import io.swagger.client.api.AnnotationsApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+// Configure HTTP basic authorization: basicAuth
+HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
+basicAuth.setUsername("YOUR USERNAME");
+basicAuth.setPassword("YOUR PASSWORD");
+
+// Configure API key authorization: tokenAuth
+ApiKeyAuth tokenAuth = (ApiKeyAuth) defaultClient.getAuthentication("tokenAuth");
+tokenAuth.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//tokenAuth.setApiKeyPrefix("Token");
+
+AnnotationsApi apiInstance = new AnnotationsApi();
+GrantLabelStudioAccess body = new GrantLabelStudioAccess(); // GrantLabelStudioAccess |
+String owner = "owner_example"; // String | owner of the repository
+String repo = "repo_example"; // String | name of the repository
+Long userid = 789L; // Long | User ID
+try {
+ apiInstance.grantLabelStudioUserAccess(body, owner, repo, userid);
+} catch (ApiException e) {
+ System.err.println("Exception when calling AnnotationsApi#grantLabelStudioUserAccess");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**GrantLabelStudioAccess**](GrantLabelStudioAccess.md)| |
+ **owner** | **String**| owner of the repository |
+ **repo** | **String**| name of the repository |
+ **userid** | **Long**| User ID |
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+[basicAuth](../README.md#basicAuth)[tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: Not defined
+
+
+# **listLabelStudioTeamAccess**
+> List<LabelStudioProjectAccess> listLabelStudioTeamAccess(owner, repo, projectId)
+
+List team access entries for annotation projects
+
+Get a list of teams with access to Label Studio annotation projects in the repository (organization repositories only)
+
+### Example
+```java
+// Import classes:
+//import io.swagger.client.ApiClient;
+//import io.swagger.client.ApiException;
+//import io.swagger.client.Configuration;
+//import io.swagger.client.auth.*;
+//import io.swagger.client.api.AnnotationsApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+// Configure HTTP basic authorization: basicAuth
+HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
+basicAuth.setUsername("YOUR USERNAME");
+basicAuth.setPassword("YOUR PASSWORD");
+
+// Configure API key authorization: tokenAuth
+ApiKeyAuth tokenAuth = (ApiKeyAuth) defaultClient.getAuthentication("tokenAuth");
+tokenAuth.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//tokenAuth.setApiKeyPrefix("Token");
+
+AnnotationsApi apiInstance = new AnnotationsApi();
+String owner = "owner_example"; // String | owner of the repository
+String repo = "repo_example"; // String | name of the repository
+Long projectId = 789L; // Long | Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access.
+try {
+ List result = apiInstance.listLabelStudioTeamAccess(owner, repo, projectId);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling AnnotationsApi#listLabelStudioTeamAccess");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **String**| owner of the repository |
+ **repo** | **String**| name of the repository |
+ **projectId** | **Long**| Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. | [optional]
+
+### Return type
+
+[**List<LabelStudioProjectAccess>**](LabelStudioProjectAccess.md)
+
+### Authorization
+
+[basicAuth](../README.md#basicAuth)[tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+# **listLabelStudioUserAccess**
+> List<LabelStudioProjectAccess> listLabelStudioUserAccess(owner, repo, projectId)
+
+List user access entries for annotation projects
+
+Get a list of users with access to Label Studio annotation projects in the repository
+
+### Example
+```java
+// Import classes:
+//import io.swagger.client.ApiClient;
+//import io.swagger.client.ApiException;
+//import io.swagger.client.Configuration;
+//import io.swagger.client.auth.*;
+//import io.swagger.client.api.AnnotationsApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+// Configure HTTP basic authorization: basicAuth
+HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
+basicAuth.setUsername("YOUR USERNAME");
+basicAuth.setPassword("YOUR PASSWORD");
+
+// Configure API key authorization: tokenAuth
+ApiKeyAuth tokenAuth = (ApiKeyAuth) defaultClient.getAuthentication("tokenAuth");
+tokenAuth.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//tokenAuth.setApiKeyPrefix("Token");
+
+AnnotationsApi apiInstance = new AnnotationsApi();
+String owner = "owner_example"; // String | owner of the repository
+String repo = "repo_example"; // String | name of the repository
+Long projectId = 789L; // Long | Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access.
+try {
+ List result = apiInstance.listLabelStudioUserAccess(owner, repo, projectId);
+ System.out.println(result);
+} catch (ApiException e) {
+ System.err.println("Exception when calling AnnotationsApi#listLabelStudioUserAccess");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **String**| owner of the repository |
+ **repo** | **String**| name of the repository |
+ **projectId** | **Long**| Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. | [optional]
+
+### Return type
+
+[**List<LabelStudioProjectAccess>**](LabelStudioProjectAccess.md)
+
+### Authorization
+
+[basicAuth](../README.md#basicAuth)[tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+
+# **revokeLabelStudioTeamAccess**
+> revokeLabelStudioTeamAccess(owner, repo, teamid, projectId)
+
+Revoke team access to annotation projects
+
+Revoke a team's access to Label Studio annotation projects
+
+### Example
+```java
+// Import classes:
+//import io.swagger.client.ApiClient;
+//import io.swagger.client.ApiException;
+//import io.swagger.client.Configuration;
+//import io.swagger.client.auth.*;
+//import io.swagger.client.api.AnnotationsApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+// Configure HTTP basic authorization: basicAuth
+HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
+basicAuth.setUsername("YOUR USERNAME");
+basicAuth.setPassword("YOUR PASSWORD");
+
+// Configure API key authorization: tokenAuth
+ApiKeyAuth tokenAuth = (ApiKeyAuth) defaultClient.getAuthentication("tokenAuth");
+tokenAuth.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//tokenAuth.setApiKeyPrefix("Token");
+
+AnnotationsApi apiInstance = new AnnotationsApi();
+String owner = "owner_example"; // String | owner of the repository
+String repo = "repo_example"; // String | name of the repository
+Long teamid = 789L; // Long | Team ID
+Long projectId = 789L; // Long | Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access.
+try {
+ apiInstance.revokeLabelStudioTeamAccess(owner, repo, teamid, projectId);
+} catch (ApiException e) {
+ System.err.println("Exception when calling AnnotationsApi#revokeLabelStudioTeamAccess");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **String**| owner of the repository |
+ **repo** | **String**| name of the repository |
+ **teamid** | **Long**| Team ID |
+ **projectId** | **Long**| Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. | [optional]
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+[basicAuth](../README.md#basicAuth)[tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+
+# **revokeLabelStudioUserAccess**
+> revokeLabelStudioUserAccess(owner, repo, userid, projectId)
+
+Revoke user access to annotation projects
+
+Revoke a user's access to Label Studio annotation projects
+
+### Example
+```java
+// Import classes:
+//import io.swagger.client.ApiClient;
+//import io.swagger.client.ApiException;
+//import io.swagger.client.Configuration;
+//import io.swagger.client.auth.*;
+//import io.swagger.client.api.AnnotationsApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+// Configure HTTP basic authorization: basicAuth
+HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
+basicAuth.setUsername("YOUR USERNAME");
+basicAuth.setPassword("YOUR PASSWORD");
+
+// Configure API key authorization: tokenAuth
+ApiKeyAuth tokenAuth = (ApiKeyAuth) defaultClient.getAuthentication("tokenAuth");
+tokenAuth.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//tokenAuth.setApiKeyPrefix("Token");
+
+AnnotationsApi apiInstance = new AnnotationsApi();
+String owner = "owner_example"; // String | owner of the repository
+String repo = "repo_example"; // String | name of the repository
+Long userid = 789L; // Long | User ID
+Long projectId = 789L; // Long | Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access.
+try {
+ apiInstance.revokeLabelStudioUserAccess(owner, repo, userid, projectId);
+} catch (ApiException e) {
+ System.err.println("Exception when calling AnnotationsApi#revokeLabelStudioUserAccess");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **owner** | **String**| owner of the repository |
+ **repo** | **String**| name of the repository |
+ **userid** | **Long**| User ID |
+ **projectId** | **Long**| Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. | [optional]
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+[basicAuth](../README.md#basicAuth)[tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
diff --git a/Java/docs/CreateAnnotatorTeam.md b/Java/docs/CreateAnnotatorTeam.md
new file mode 100644
index 0000000..0ccbc3d
--- /dev/null
+++ b/Java/docs/CreateAnnotatorTeam.md
@@ -0,0 +1,24 @@
+# CreateAnnotatorTeam
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**name** | **String** | Team name |
+**description** | **String** | Team description | [optional]
+**teamType** | [**TeamTypeEnum**](#TeamTypeEnum) | Type of team - normal teams have repository access, annotator teams only have annotation project access | [optional]
+**permission** | [**PermissionEnum**](#PermissionEnum) | Repository permission level (required for normal teams, ignored for annotator teams) | [optional]
+
+
+## Enum: TeamTypeEnum
+Name | Value
+---- | -----
+NORMAL | "normal"
+ANNOTATOR | "annotator"
+
+
+## Enum: PermissionEnum
+Name | Value
+---- | -----
+READ | "read"
+WRITE | "write"
+ADMIN | "admin"
diff --git a/Java/docs/Files1.md b/Java/docs/Files1.md
index 82b3ff3..d18bb10 100644
--- a/Java/docs/Files1.md
+++ b/Java/docs/Files1.md
@@ -4,5 +4,4 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**entries** | [**List<File>**](File.md) | | [optional]
-**limit** | **Integer** | | [optional]
-**nextToken** | **String** | | [optional]
+**nextToken** | **String** | Next token to continue pagination from | [optional]
diff --git a/Java/docs/GrantLabelStudioAccess.md b/Java/docs/GrantLabelStudioAccess.md
new file mode 100644
index 0000000..7877e1b
--- /dev/null
+++ b/Java/docs/GrantLabelStudioAccess.md
@@ -0,0 +1,14 @@
+# GrantLabelStudioAccess
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**projectId** | **Long** | Project ID, -1 for wildcard access to all projects |
+**accessLevel** | [**AccessLevelEnum**](#AccessLevelEnum) | Access level to grant | [optional]
+
+
+## Enum: AccessLevelEnum
+Name | Value
+---- | -----
+ANNOTATOR | "annotator"
+NONE | "none"
diff --git a/Java/docs/InlineResponse200.md b/Java/docs/InlineResponse200.md
new file mode 100644
index 0000000..d78e8ee
--- /dev/null
+++ b/Java/docs/InlineResponse200.md
@@ -0,0 +1,15 @@
+# InlineResponse200
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**userId** | **Long** | | [optional]
+**projectId** | **Long** | | [optional]
+**accessLevel** | [**AccessLevelEnum**](#AccessLevelEnum) | | [optional]
+
+
+## Enum: AccessLevelEnum
+Name | Value
+---- | -----
+NONE | "none"
+ANNOTATOR | "annotator"
diff --git a/Java/docs/LabelStudioProjectAccess.md b/Java/docs/LabelStudioProjectAccess.md
new file mode 100644
index 0000000..f71badc
--- /dev/null
+++ b/Java/docs/LabelStudioProjectAccess.md
@@ -0,0 +1,20 @@
+# LabelStudioProjectAccess
+
+## Properties
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **Long** | | [optional]
+**repoId** | **Long** | | [optional]
+**projectId** | **Long** | Project ID, -1 means wildcard access to all projects | [optional]
+**userId** | **Long** | User ID (present for user access entries) | [optional]
+**teamId** | **Long** | Team ID (present for team access entries) | [optional]
+**accessLevel** | [**AccessLevelEnum**](#AccessLevelEnum) | | [optional]
+**createdUnix** | **Long** | | [optional]
+**user** | [**User**](User.md) | | [optional]
+
+
+## Enum: AccessLevelEnum
+Name | Value
+---- | -----
+NONE | "none"
+ANNOTATOR | "annotator"
diff --git a/Java/docs/OrganizationsApi.md b/Java/docs/OrganizationsApi.md
new file mode 100644
index 0000000..135a296
--- /dev/null
+++ b/Java/docs/OrganizationsApi.md
@@ -0,0 +1,68 @@
+# OrganizationsApi
+
+All URIs are relative to *https://dagshub.com/api/v1*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**createOrgTeam**](OrganizationsApi.md#createOrgTeam) | **POST** /admin/orgs/{orgname}/teams | Create an organization team
+
+
+# **createOrgTeam**
+> createOrgTeam(body, orgname)
+
+Create an organization team
+
+Create a new team in an organization. Use team_type \"annotator\" to create an annotator team with access only to annotation projects.
+
+### Example
+```java
+// Import classes:
+//import io.swagger.client.ApiClient;
+//import io.swagger.client.ApiException;
+//import io.swagger.client.Configuration;
+//import io.swagger.client.auth.*;
+//import io.swagger.client.api.OrganizationsApi;
+
+ApiClient defaultClient = Configuration.getDefaultApiClient();
+// Configure HTTP basic authorization: basicAuth
+HttpBasicAuth basicAuth = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
+basicAuth.setUsername("YOUR USERNAME");
+basicAuth.setPassword("YOUR PASSWORD");
+
+// Configure API key authorization: tokenAuth
+ApiKeyAuth tokenAuth = (ApiKeyAuth) defaultClient.getAuthentication("tokenAuth");
+tokenAuth.setApiKey("YOUR API KEY");
+// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
+//tokenAuth.setApiKeyPrefix("Token");
+
+OrganizationsApi apiInstance = new OrganizationsApi();
+CreateAnnotatorTeam body = new CreateAnnotatorTeam(); // CreateAnnotatorTeam |
+String orgname = "orgname_example"; // String | A DagsHub organization name
+try {
+ apiInstance.createOrgTeam(body, orgname);
+} catch (ApiException e) {
+ System.err.println("Exception when calling OrganizationsApi#createOrgTeam");
+ e.printStackTrace();
+}
+```
+
+### Parameters
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **body** | [**CreateAnnotatorTeam**](CreateAnnotatorTeam.md)| |
+ **orgname** | **String**| A DagsHub organization name |
+
+### Return type
+
+null (empty response body)
+
+### Authorization
+
+[basicAuth](../README.md#basicAuth)[tokenAuth](../README.md#tokenAuth)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: Not defined
+
diff --git a/Java/docs/StorageIntegrationsApi.md b/Java/docs/StorageIntegrationsApi.md
index a30f866..69b33a1 100644
--- a/Java/docs/StorageIntegrationsApi.md
+++ b/Java/docs/StorageIntegrationsApi.md
@@ -10,7 +10,7 @@ Method | HTTP request | Description
# **getBucketContent**
-> Files1 getBucketContent(owner, repo, protocol, bucket, path, includeSize, limit, fromToken)
+> Files1 getBucketContent(owner, repo, protocol, bucket, path, includeSize, limit, paging, fromToken)
List contents in the path
@@ -43,9 +43,10 @@ String bucket = "bucket_example"; // String | name and prefix of the bucket inte
String path = "path_example"; // String | path of a folder in the repository
Boolean includeSize = false; // Boolean |
Integer limit = 100; // Integer | Maximum amount of items to return
-String fromToken = "fromToken_example"; // String | Token, from which to continue iteration
+Boolean paging = false; // Boolean | Whether or not paging is enabled
+String fromToken = "fromToken_example"; // String | [Only if paging is enabled] token, from which to continue iteration
try {
- Files1 result = apiInstance.getBucketContent(owner, repo, protocol, bucket, path, includeSize, limit, fromToken);
+ Files1 result = apiInstance.getBucketContent(owner, repo, protocol, bucket, path, includeSize, limit, paging, fromToken);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling StorageIntegrationsApi#getBucketContent");
@@ -64,7 +65,8 @@ Name | Type | Description | Notes
**path** | **String**| path of a folder in the repository |
**includeSize** | **Boolean**| | [optional] [default to false]
**limit** | **Integer**| Maximum amount of items to return | [optional] [default to 100]
- **fromToken** | **String**| Token, from which to continue iteration | [optional]
+ **paging** | **Boolean**| Whether or not paging is enabled | [optional] [default to false]
+ **fromToken** | **String**| [Only if paging is enabled] token, from which to continue iteration | [optional]
### Return type
diff --git a/Java/src/main/java/io/swagger/client/ApiCallback.java b/Java/src/main/java/io/swagger/client/ApiCallback.java
index 03ad833..603958a 100644
--- a/Java/src/main/java/io/swagger/client/ApiCallback.java
+++ b/Java/src/main/java/io/swagger/client/ApiCallback.java
@@ -2,7 +2,7 @@
* DagsHub API
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/Java/src/main/java/io/swagger/client/ApiClient.java b/Java/src/main/java/io/swagger/client/ApiClient.java
index d15f06f..6e6caf2 100644
--- a/Java/src/main/java/io/swagger/client/ApiClient.java
+++ b/Java/src/main/java/io/swagger/client/ApiClient.java
@@ -2,7 +2,7 @@
* DagsHub API
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/Java/src/main/java/io/swagger/client/ApiException.java b/Java/src/main/java/io/swagger/client/ApiException.java
index cc9a223..875e736 100644
--- a/Java/src/main/java/io/swagger/client/ApiException.java
+++ b/Java/src/main/java/io/swagger/client/ApiException.java
@@ -2,7 +2,7 @@
* DagsHub API
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -15,7 +15,7 @@
import java.util.Map;
import java.util.List;
-@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2023-05-11T11:41:48.085831Z[Etc/UTC]")public class ApiException extends Exception {
+@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2026-01-28T08:00:41.951499729Z[Etc/UTC]")public class ApiException extends Exception {
private int code = 0;
private Map> responseHeaders = null;
private String responseBody = null;
diff --git a/Java/src/main/java/io/swagger/client/ApiResponse.java b/Java/src/main/java/io/swagger/client/ApiResponse.java
index 5f226e0..be72451 100644
--- a/Java/src/main/java/io/swagger/client/ApiResponse.java
+++ b/Java/src/main/java/io/swagger/client/ApiResponse.java
@@ -2,7 +2,7 @@
* DagsHub API
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/Java/src/main/java/io/swagger/client/Configuration.java b/Java/src/main/java/io/swagger/client/Configuration.java
index dc464fa..054fa94 100644
--- a/Java/src/main/java/io/swagger/client/Configuration.java
+++ b/Java/src/main/java/io/swagger/client/Configuration.java
@@ -2,7 +2,7 @@
* DagsHub API
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -12,7 +12,7 @@
package io.swagger.client;
-@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2023-05-11T11:41:48.085831Z[Etc/UTC]")public class Configuration {
+@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2026-01-28T08:00:41.951499729Z[Etc/UTC]")public class Configuration {
private static ApiClient defaultApiClient = new ApiClient();
/**
diff --git a/Java/src/main/java/io/swagger/client/GzipRequestInterceptor.java b/Java/src/main/java/io/swagger/client/GzipRequestInterceptor.java
index 6f6e1b9..bdccc6e 100644
--- a/Java/src/main/java/io/swagger/client/GzipRequestInterceptor.java
+++ b/Java/src/main/java/io/swagger/client/GzipRequestInterceptor.java
@@ -2,7 +2,7 @@
* DagsHub API
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/Java/src/main/java/io/swagger/client/JSON.java b/Java/src/main/java/io/swagger/client/JSON.java
index 8b1f872..29699d7 100644
--- a/Java/src/main/java/io/swagger/client/JSON.java
+++ b/Java/src/main/java/io/swagger/client/JSON.java
@@ -2,7 +2,7 @@
* DagsHub API
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/Java/src/main/java/io/swagger/client/Pair.java b/Java/src/main/java/io/swagger/client/Pair.java
index 2ae6d79..62b3154 100644
--- a/Java/src/main/java/io/swagger/client/Pair.java
+++ b/Java/src/main/java/io/swagger/client/Pair.java
@@ -2,7 +2,7 @@
* DagsHub API
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -12,7 +12,7 @@
package io.swagger.client;
-@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2023-05-11T11:41:48.085831Z[Etc/UTC]")public class Pair {
+@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2026-01-28T08:00:41.951499729Z[Etc/UTC]")public class Pair {
private String name = "";
private String value = "";
diff --git a/Java/src/main/java/io/swagger/client/ProgressRequestBody.java b/Java/src/main/java/io/swagger/client/ProgressRequestBody.java
index b56a001..ad6c330 100644
--- a/Java/src/main/java/io/swagger/client/ProgressRequestBody.java
+++ b/Java/src/main/java/io/swagger/client/ProgressRequestBody.java
@@ -2,7 +2,7 @@
* DagsHub API
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/Java/src/main/java/io/swagger/client/ProgressResponseBody.java b/Java/src/main/java/io/swagger/client/ProgressResponseBody.java
index d0162c2..d13209d 100644
--- a/Java/src/main/java/io/swagger/client/ProgressResponseBody.java
+++ b/Java/src/main/java/io/swagger/client/ProgressResponseBody.java
@@ -2,7 +2,7 @@
* DagsHub API
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
*
* NOTE: This class is auto generated by the swagger code generator program.
diff --git a/Java/src/main/java/io/swagger/client/StringUtil.java b/Java/src/main/java/io/swagger/client/StringUtil.java
index f19a626..bfb146d 100644
--- a/Java/src/main/java/io/swagger/client/StringUtil.java
+++ b/Java/src/main/java/io/swagger/client/StringUtil.java
@@ -2,7 +2,7 @@
* DagsHub API
* This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
*
- * OpenAPI spec version: 1.0.2
+ * OpenAPI spec version: 1.0.3
*
*
* NOTE: This class is auto generated by the swagger code generator program.
@@ -12,7 +12,7 @@
package io.swagger.client;
-@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2023-05-11T11:41:48.085831Z[Etc/UTC]")public class StringUtil {
+@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2026-01-28T08:00:41.951499729Z[Etc/UTC]")public class StringUtil {
/**
* Check if the given array contains the given value (with case-insensitive comparison).
*
diff --git a/Java/src/main/java/io/swagger/client/api/AnnotationsApi.java b/Java/src/main/java/io/swagger/client/api/AnnotationsApi.java
new file mode 100644
index 0000000..de7eed1
--- /dev/null
+++ b/Java/src/main/java/io/swagger/client/api/AnnotationsApi.java
@@ -0,0 +1,1220 @@
+/*
+ * DagsHub API
+ * This API provides a way to retrive & interact with data about DagsHub repositories, users, issues, webhooks and more. The API is also used by the [DagsHub Direct Data Access streaming client](https://github.com/DagsHub/client) to stream content from a repository for easier and faster training.
+ *
+ * OpenAPI spec version: 1.0.3
+ *
+ *
+ * NOTE: This class is auto generated by the swagger code generator program.
+ * https://github.com/swagger-api/swagger-codegen.git
+ * Do not edit the class manually.
+ */
+
+package io.swagger.client.api;
+
+import io.swagger.client.ApiCallback;
+import io.swagger.client.ApiClient;
+import io.swagger.client.ApiException;
+import io.swagger.client.ApiResponse;
+import io.swagger.client.Configuration;
+import io.swagger.client.Pair;
+import io.swagger.client.ProgressRequestBody;
+import io.swagger.client.ProgressResponseBody;
+
+import com.google.gson.reflect.TypeToken;
+
+import java.io.IOException;
+
+
+import io.swagger.client.model.GrantLabelStudioAccess;
+import io.swagger.client.model.InlineResponse200;
+import io.swagger.client.model.LabelStudioProjectAccess;
+
+import java.lang.reflect.Type;
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+public class AnnotationsApi {
+ private ApiClient apiClient;
+
+ public AnnotationsApi() {
+ this(Configuration.getDefaultApiClient());
+ }
+
+ public AnnotationsApi(ApiClient apiClient) {
+ this.apiClient = apiClient;
+ }
+
+ public ApiClient getApiClient() {
+ return apiClient;
+ }
+
+ public void setApiClient(ApiClient apiClient) {
+ this.apiClient = apiClient;
+ }
+
+ /**
+ * Build call for getLabelStudioTeamAccess
+ * @param owner owner of the repository (required)
+ * @param repo name of the repository (required)
+ * @param teamid Team ID (required)
+ * @param projectId Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ * @param progressListener Progress listener
+ * @param progressRequestListener Progress request listener
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ */
+ public com.squareup.okhttp.Call getLabelStudioTeamAccessCall(String owner, String repo, Long teamid, Long projectId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/repos/{owner}/{repo}/annotations/access/teams/{teamid}"
+ .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString()))
+ .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString()))
+ .replaceAll("\\{" + "teamid" + "\\}", apiClient.escapeString(teamid.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ if (projectId != null)
+ localVarQueryParams.addAll(apiClient.parameterToPair("project_id", projectId));
+
+ Map localVarHeaderParams = new HashMap();
+
+ Map localVarFormParams = new HashMap();
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
+
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+
+ if(progressListener != null) {
+ apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
+ @Override
+ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
+ com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
+ return originalResponse.newBuilder()
+ .body(new ProgressResponseBody(originalResponse.body(), progressListener))
+ .build();
+ }
+ });
+ }
+
+ String[] localVarAuthNames = new String[] { "basicAuth", "tokenAuth" };
+ return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private com.squareup.okhttp.Call getLabelStudioTeamAccessValidateBeforeCall(String owner, String repo, Long teamid, Long projectId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ // verify the required parameter 'owner' is set
+ if (owner == null) {
+ throw new ApiException("Missing the required parameter 'owner' when calling getLabelStudioTeamAccess(Async)");
+ }
+ // verify the required parameter 'repo' is set
+ if (repo == null) {
+ throw new ApiException("Missing the required parameter 'repo' when calling getLabelStudioTeamAccess(Async)");
+ }
+ // verify the required parameter 'teamid' is set
+ if (teamid == null) {
+ throw new ApiException("Missing the required parameter 'teamid' when calling getLabelStudioTeamAccess(Async)");
+ }
+
+ com.squareup.okhttp.Call call = getLabelStudioTeamAccessCall(owner, repo, teamid, projectId, progressListener, progressRequestListener);
+ return call;
+
+
+
+
+
+ }
+
+ /**
+ * Get team access level for annotation projects
+ * Get the access level for a specific team and project (or all projects)
+ * @param owner owner of the repository (required)
+ * @param repo name of the repository (required)
+ * @param teamid Team ID (required)
+ * @param projectId Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ * @return LabelStudioProjectAccess
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ */
+ public LabelStudioProjectAccess getLabelStudioTeamAccess(String owner, String repo, Long teamid, Long projectId) throws ApiException {
+ ApiResponse resp = getLabelStudioTeamAccessWithHttpInfo(owner, repo, teamid, projectId);
+ return resp.getData();
+ }
+
+ /**
+ * Get team access level for annotation projects
+ * Get the access level for a specific team and project (or all projects)
+ * @param owner owner of the repository (required)
+ * @param repo name of the repository (required)
+ * @param teamid Team ID (required)
+ * @param projectId Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ * @return ApiResponse<LabelStudioProjectAccess>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ */
+ public ApiResponse getLabelStudioTeamAccessWithHttpInfo(String owner, String repo, Long teamid, Long projectId) throws ApiException {
+ com.squareup.okhttp.Call call = getLabelStudioTeamAccessValidateBeforeCall(owner, repo, teamid, projectId, null, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return apiClient.execute(call, localVarReturnType);
+ }
+
+ /**
+ * Get team access level for annotation projects (asynchronously)
+ * Get the access level for a specific team and project (or all projects)
+ * @param owner owner of the repository (required)
+ * @param repo name of the repository (required)
+ * @param teamid Team ID (required)
+ * @param projectId Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ * @param callback The callback to be executed when the API call finishes
+ * @return The request call
+ * @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ */
+ public com.squareup.okhttp.Call getLabelStudioTeamAccessAsync(String owner, String repo, Long teamid, Long projectId, final ApiCallback callback) throws ApiException {
+
+ ProgressResponseBody.ProgressListener progressListener = null;
+ ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
+
+ if (callback != null) {
+ progressListener = new ProgressResponseBody.ProgressListener() {
+ @Override
+ public void update(long bytesRead, long contentLength, boolean done) {
+ callback.onDownloadProgress(bytesRead, contentLength, done);
+ }
+ };
+
+ progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
+ @Override
+ public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
+ callback.onUploadProgress(bytesWritten, contentLength, done);
+ }
+ };
+ }
+
+ com.squareup.okhttp.Call call = getLabelStudioTeamAccessValidateBeforeCall(owner, repo, teamid, projectId, progressListener, progressRequestListener);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ apiClient.executeAsync(call, localVarReturnType, callback);
+ return call;
+ }
+ /**
+ * Build call for getLabelStudioUserAccess
+ * @param owner owner of the repository (required)
+ * @param repo name of the repository (required)
+ * @param userid User ID (required)
+ * @param projectId Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ * @param progressListener Progress listener
+ * @param progressRequestListener Progress request listener
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ */
+ public com.squareup.okhttp.Call getLabelStudioUserAccessCall(String owner, String repo, Long userid, Long projectId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ Object localVarPostBody = null;
+
+ // create path and map variables
+ String localVarPath = "/repos/{owner}/{repo}/annotations/access/users/{userid}"
+ .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString()))
+ .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString()))
+ .replaceAll("\\{" + "userid" + "\\}", apiClient.escapeString(userid.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+ if (projectId != null)
+ localVarQueryParams.addAll(apiClient.parameterToPair("project_id", projectId));
+
+ Map localVarHeaderParams = new HashMap();
+
+ Map localVarFormParams = new HashMap();
+
+ final String[] localVarAccepts = {
+ "application/json"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
+
+ final String[] localVarContentTypes = {
+
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+
+ if(progressListener != null) {
+ apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
+ @Override
+ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
+ com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
+ return originalResponse.newBuilder()
+ .body(new ProgressResponseBody(originalResponse.body(), progressListener))
+ .build();
+ }
+ });
+ }
+
+ String[] localVarAuthNames = new String[] { "basicAuth", "tokenAuth" };
+ return apiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private com.squareup.okhttp.Call getLabelStudioUserAccessValidateBeforeCall(String owner, String repo, Long userid, Long projectId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ // verify the required parameter 'owner' is set
+ if (owner == null) {
+ throw new ApiException("Missing the required parameter 'owner' when calling getLabelStudioUserAccess(Async)");
+ }
+ // verify the required parameter 'repo' is set
+ if (repo == null) {
+ throw new ApiException("Missing the required parameter 'repo' when calling getLabelStudioUserAccess(Async)");
+ }
+ // verify the required parameter 'userid' is set
+ if (userid == null) {
+ throw new ApiException("Missing the required parameter 'userid' when calling getLabelStudioUserAccess(Async)");
+ }
+
+ com.squareup.okhttp.Call call = getLabelStudioUserAccessCall(owner, repo, userid, projectId, progressListener, progressRequestListener);
+ return call;
+
+
+
+
+
+ }
+
+ /**
+ * Get user access level for annotation projects
+ * Get the access level for a specific user and project (or all projects)
+ * @param owner owner of the repository (required)
+ * @param repo name of the repository (required)
+ * @param userid User ID (required)
+ * @param projectId Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ * @return InlineResponse200
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ */
+ public InlineResponse200 getLabelStudioUserAccess(String owner, String repo, Long userid, Long projectId) throws ApiException {
+ ApiResponse resp = getLabelStudioUserAccessWithHttpInfo(owner, repo, userid, projectId);
+ return resp.getData();
+ }
+
+ /**
+ * Get user access level for annotation projects
+ * Get the access level for a specific user and project (or all projects)
+ * @param owner owner of the repository (required)
+ * @param repo name of the repository (required)
+ * @param userid User ID (required)
+ * @param projectId Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ * @return ApiResponse<InlineResponse200>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ */
+ public ApiResponse getLabelStudioUserAccessWithHttpInfo(String owner, String repo, Long userid, Long projectId) throws ApiException {
+ com.squareup.okhttp.Call call = getLabelStudioUserAccessValidateBeforeCall(owner, repo, userid, projectId, null, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return apiClient.execute(call, localVarReturnType);
+ }
+
+ /**
+ * Get user access level for annotation projects (asynchronously)
+ * Get the access level for a specific user and project (or all projects)
+ * @param owner owner of the repository (required)
+ * @param repo name of the repository (required)
+ * @param userid User ID (required)
+ * @param projectId Label Studio project ID to filter by. If not specified, returns access for all projects. Use -1 for wildcard access. (optional)
+ * @param callback The callback to be executed when the API call finishes
+ * @return The request call
+ * @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ */
+ public com.squareup.okhttp.Call getLabelStudioUserAccessAsync(String owner, String repo, Long userid, Long projectId, final ApiCallback callback) throws ApiException {
+
+ ProgressResponseBody.ProgressListener progressListener = null;
+ ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
+
+ if (callback != null) {
+ progressListener = new ProgressResponseBody.ProgressListener() {
+ @Override
+ public void update(long bytesRead, long contentLength, boolean done) {
+ callback.onDownloadProgress(bytesRead, contentLength, done);
+ }
+ };
+
+ progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
+ @Override
+ public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
+ callback.onUploadProgress(bytesWritten, contentLength, done);
+ }
+ };
+ }
+
+ com.squareup.okhttp.Call call = getLabelStudioUserAccessValidateBeforeCall(owner, repo, userid, projectId, progressListener, progressRequestListener);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ apiClient.executeAsync(call, localVarReturnType, callback);
+ return call;
+ }
+ /**
+ * Build call for grantLabelStudioTeamAccess
+ * @param body (required)
+ * @param owner owner of the repository (required)
+ * @param repo name of the repository (required)
+ * @param teamid Team ID (required)
+ * @param progressListener Progress listener
+ * @param progressRequestListener Progress request listener
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ */
+ public com.squareup.okhttp.Call grantLabelStudioTeamAccessCall(GrantLabelStudioAccess body, String owner, String repo, Long teamid, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ Object localVarPostBody = body;
+
+ // create path and map variables
+ String localVarPath = "/repos/{owner}/{repo}/annotations/access/teams/{teamid}"
+ .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString()))
+ .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString()))
+ .replaceAll("\\{" + "teamid" + "\\}", apiClient.escapeString(teamid.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+
+ Map localVarHeaderParams = new HashMap();
+
+ Map localVarFormParams = new HashMap();
+
+ final String[] localVarAccepts = {
+
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
+
+ final String[] localVarContentTypes = {
+ "application/json"
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+
+ if(progressListener != null) {
+ apiClient.getHttpClient().networkInterceptors().add(new com.squareup.okhttp.Interceptor() {
+ @Override
+ public com.squareup.okhttp.Response intercept(com.squareup.okhttp.Interceptor.Chain chain) throws IOException {
+ com.squareup.okhttp.Response originalResponse = chain.proceed(chain.request());
+ return originalResponse.newBuilder()
+ .body(new ProgressResponseBody(originalResponse.body(), progressListener))
+ .build();
+ }
+ });
+ }
+
+ String[] localVarAuthNames = new String[] { "basicAuth", "tokenAuth" };
+ return apiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private com.squareup.okhttp.Call grantLabelStudioTeamAccessValidateBeforeCall(GrantLabelStudioAccess body, String owner, String repo, Long teamid, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ // verify the required parameter 'body' is set
+ if (body == null) {
+ throw new ApiException("Missing the required parameter 'body' when calling grantLabelStudioTeamAccess(Async)");
+ }
+ // verify the required parameter 'owner' is set
+ if (owner == null) {
+ throw new ApiException("Missing the required parameter 'owner' when calling grantLabelStudioTeamAccess(Async)");
+ }
+ // verify the required parameter 'repo' is set
+ if (repo == null) {
+ throw new ApiException("Missing the required parameter 'repo' when calling grantLabelStudioTeamAccess(Async)");
+ }
+ // verify the required parameter 'teamid' is set
+ if (teamid == null) {
+ throw new ApiException("Missing the required parameter 'teamid' when calling grantLabelStudioTeamAccess(Async)");
+ }
+
+ com.squareup.okhttp.Call call = grantLabelStudioTeamAccessCall(body, owner, repo, teamid, progressListener, progressRequestListener);
+ return call;
+
+
+
+
+
+ }
+
+ /**
+ * Grant team access to annotation projects
+ * Grant a team access to specific Label Studio annotation projects (organization repositories only)
+ * @param body (required)
+ * @param owner owner of the repository (required)
+ * @param repo name of the repository (required)
+ * @param teamid Team ID (required)
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ */
+ public void grantLabelStudioTeamAccess(GrantLabelStudioAccess body, String owner, String repo, Long teamid) throws ApiException {
+ grantLabelStudioTeamAccessWithHttpInfo(body, owner, repo, teamid);
+ }
+
+ /**
+ * Grant team access to annotation projects
+ * Grant a team access to specific Label Studio annotation projects (organization repositories only)
+ * @param body (required)
+ * @param owner owner of the repository (required)
+ * @param repo name of the repository (required)
+ * @param teamid Team ID (required)
+ * @return ApiResponse<Void>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ */
+ public ApiResponse grantLabelStudioTeamAccessWithHttpInfo(GrantLabelStudioAccess body, String owner, String repo, Long teamid) throws ApiException {
+ com.squareup.okhttp.Call call = grantLabelStudioTeamAccessValidateBeforeCall(body, owner, repo, teamid, null, null);
+ return apiClient.execute(call);
+ }
+
+ /**
+ * Grant team access to annotation projects (asynchronously)
+ * Grant a team access to specific Label Studio annotation projects (organization repositories only)
+ * @param body (required)
+ * @param owner owner of the repository (required)
+ * @param repo name of the repository (required)
+ * @param teamid Team ID (required)
+ * @param callback The callback to be executed when the API call finishes
+ * @return The request call
+ * @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ */
+ public com.squareup.okhttp.Call grantLabelStudioTeamAccessAsync(GrantLabelStudioAccess body, String owner, String repo, Long teamid, final ApiCallback callback) throws ApiException {
+
+ ProgressResponseBody.ProgressListener progressListener = null;
+ ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
+
+ if (callback != null) {
+ progressListener = new ProgressResponseBody.ProgressListener() {
+ @Override
+ public void update(long bytesRead, long contentLength, boolean done) {
+ callback.onDownloadProgress(bytesRead, contentLength, done);
+ }
+ };
+
+ progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
+ @Override
+ public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
+ callback.onUploadProgress(bytesWritten, contentLength, done);
+ }
+ };
+ }
+
+ com.squareup.okhttp.Call call = grantLabelStudioTeamAccessValidateBeforeCall(body, owner, repo, teamid, progressListener, progressRequestListener);
+ apiClient.executeAsync(call, callback);
+ return call;
+ }
+ /**
+ * Build call for grantLabelStudioUserAccess
+ * @param body (required)
+ * @param owner owner of the repository (required)
+ * @param repo name of the repository (required)
+ * @param userid User ID (required)
+ * @param progressListener Progress listener
+ * @param progressRequestListener Progress request listener
+ * @return Call to execute
+ * @throws ApiException If fail to serialize the request body object
+ */
+ public com.squareup.okhttp.Call grantLabelStudioUserAccessCall(GrantLabelStudioAccess body, String owner, String repo, Long userid, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ Object localVarPostBody = body;
+
+ // create path and map variables
+ String localVarPath = "/repos/{owner}/{repo}/annotations/access/users/{userid}"
+ .replaceAll("\\{" + "owner" + "\\}", apiClient.escapeString(owner.toString()))
+ .replaceAll("\\{" + "repo" + "\\}", apiClient.escapeString(repo.toString()))
+ .replaceAll("\\{" + "userid" + "\\}", apiClient.escapeString(userid.toString()));
+
+ List localVarQueryParams = new ArrayList();
+ List localVarCollectionQueryParams = new ArrayList();
+
+ Map