├── .circleci
└── config.yml
├── .gitignore
├── ChangeLog.md
├── ErrorEnumGenerator
├── ErrorEnumGenerator.csproj
└── Program.cs
├── LICENSE
├── arangodb-net-standard.Test
├── AdminApi
│ ├── AdminApiClientTest.cs
│ └── AdminApiClientTestFixture.cs
├── AnalyzerApi
│ ├── AnalyzerApiClientTest.cs
│ └── AnalyzerApiClientTestFixture.cs
├── ApiClientTestFixtureBase.cs
├── AqlFunctionApi
│ ├── AqlFunctionApiClientTest.cs
│ └── AqlFunctionApiClientTestFixture.cs
├── ArangoDBClientTest.cs
├── ArangoDBNetStandardTest.csproj
├── AuthApi
│ ├── AuthApiClientTest.cs
│ └── AuthApiClientTestFixture.cs
├── BulkOperationsApi
│ ├── BulkOperationsApiClientTest.cs
│ └── BulkOperationsApiClientTestFixture.cs
├── CollectionApi
│ ├── CollectionApiClientTest.cs
│ └── CollectionApiClientTestFixture.cs
├── CursorApi
│ ├── CursorApiClientTest.cs
│ └── CursorApiClientTestFixture.cs
├── DatabaseApi
│ ├── DatabaseApiClientTest.cs
│ └── DatabaseApiClientTestFixture.cs
├── Docs
│ ├── UsageTest.cs
│ └── UsageTestFixture.cs
├── DocumentApi
│ ├── DocumentApiClientTest.cs
│ ├── DocumentApiClientTestFixture.cs
│ └── Models
│ │ ├── PatchDocumentMockModel.cs
│ │ ├── PatchDocumentsMockModel.cs
│ │ ├── PostDocumentMockModel.cs
│ │ └── PostDocumentMockModelNew.cs
├── GraphApi
│ ├── GraphApiClientTest.cs
│ ├── GraphApiClientTestFixture.cs
│ └── Models
│ │ ├── DeleteGraphEdgeMockModel.cs
│ │ ├── DeleteVertexMockModel.cs
│ │ ├── GetVertexMockModel.cs
│ │ ├── PatchEdgeMockModel.cs
│ │ ├── PatchVertexMockModel.cs
│ │ └── PutVertexMockModel.cs
├── IndexApi
│ ├── IndexApiClientTest.cs
│ └── IndexApiClientTestFixture.cs
├── Serialization
│ ├── JsonNetApiClientSerializationTest.cs
│ └── Models
│ │ ├── InnerTestModel.cs
│ │ └── TestModel.cs
├── TransactionApi
│ ├── TransactionApiClientTest.cs
│ └── TransactionApiClientTestFixture.cs
├── Transport
│ └── Http
│ │ ├── HttpApiTransportTest.cs
│ │ └── HttpApiTransportTestFixture.cs
├── UserApi
│ ├── UserApiClientTest.cs
│ └── UserApiClientTestFixture.cs
└── ViewApi
│ ├── ViewApiClientTest.cs
│ └── ViewApiClientTestFixture.cs
├── arangodb-net-standard.sln
├── arangodb-net-standard
├── AdminApi
│ ├── AdminApiClient.cs
│ ├── IAdminApiClient.cs
│ └── Models
│ │ ├── EngineAlias.cs
│ │ ├── EngineSupports.cs
│ │ ├── GetLicenseResponse.cs
│ │ ├── GetLogsQuery.cs
│ │ ├── GetLogsResponse.cs
│ │ ├── GetServerEngineTypeResponse.cs
│ │ ├── GetServerIdResponse.cs
│ │ ├── GetServerRoleResponse.cs
│ │ ├── GetServerVersionQuery.cs
│ │ ├── GetServerVersionResponse.cs
│ │ ├── LicenseFeatures.cs
│ │ ├── LogLevel.cs
│ │ ├── LogMessage.cs
│ │ ├── PutLicenseQuery.cs
│ │ ├── PutLicenseResponse.cs
│ │ └── ResponseBase.cs
├── AnalyzerApi
│ ├── AnalyzerApiClient.cs
│ ├── IAnalyzerApiClient.cs
│ └── Models
│ │ ├── Analyzer.cs
│ │ ├── AnalyzerFeatures.cs
│ │ ├── AnalyzerProperties.cs
│ │ ├── DeleteAnalyzerResponse.cs
│ │ ├── GeoJSONAnalyzerOptions.cs
│ │ ├── GetAllAnalyzersResponse.cs
│ │ ├── GetAnalyzerResponse.cs
│ │ ├── ResponseBase.cs
│ │ └── TextAnalyzerEdgeNgram.cs
├── ApiClientBase.cs
├── ApiErrorException.cs
├── ApiErrorResponse.cs
├── ApiHeaderProperties.cs
├── AqlFunctionApi
│ ├── AqlFunctionApiClient.cs
│ ├── IAqlFunctionApiClient.cs
│ └── Models
│ │ ├── AqlFunctionResult.cs
│ │ ├── CachedAqlQueryResult.cs
│ │ ├── DeleteAqlFunctionQuery.cs
│ │ ├── DeleteAqlFunctionResponse.cs
│ │ ├── DeleteClearSlowAqlQueriesQuery.cs
│ │ ├── DeleteKillRunningAqlQueryQuery.cs
│ │ ├── GetAqlFunctionsQuery.cs
│ │ ├── GetAqlFunctionsResponse.cs
│ │ ├── GetCurrentlyRunningAqlQueriesQuery.cs
│ │ ├── GetQueryRule.cs
│ │ ├── GetQueryRuleFlags.cs
│ │ ├── GetSlowAqlQueriesQuery.cs
│ │ ├── PostAqlFunctionBody.cs
│ │ ├── PostAqlFunctionResponse.cs
│ │ ├── PostExplainAqlQueryBody.cs
│ │ ├── PostExplainAqlQueryBodyOptimizer.cs
│ │ ├── PostExplainAqlQueryBodyOptions.cs
│ │ ├── PostExplainAqlQueryResponse.cs
│ │ ├── PostExplainAqlQueryResponseCollection.cs
│ │ ├── PostExplainAqlQueryResponseCondition.cs
│ │ ├── PostExplainAqlQueryResponseIndex.cs
│ │ ├── PostExplainAqlQueryResponseIndexHint.cs
│ │ ├── PostExplainAqlQueryResponseNode.cs
│ │ ├── PostExplainAqlQueryResponsePlan.cs
│ │ ├── PostExplainAqlQueryResponseStats.cs
│ │ ├── PostExplainAqlQueryResponseVariable.cs
│ │ ├── PostParseAqlQueryBody.cs
│ │ ├── PostParseAqlQueryResponse.cs
│ │ ├── PostParseAqlQueryResponseAstNode.cs
│ │ ├── PutAdjustQueryCacheGlobalPropertiesBody.cs
│ │ ├── PutChangeQueryTrackingConfigurationBody.cs
│ │ ├── QueryCacheGlobalProperties.cs
│ │ ├── QueryTrackingConfiguration.cs
│ │ ├── ResponseBase.cs
│ │ ├── RunningAqlQuery.cs
│ │ └── SlowAqlQuery.cs
├── ArangoDBClient.cs
├── ArangoDBErrors.cs
├── ArangoDBNetStandard.csproj
├── AuthApi
│ ├── AuthApiClient.cs
│ ├── IAuthApiClient.cs
│ └── Models
│ │ ├── JwtTokenRequestBody.cs
│ │ └── JwtTokenResponse.cs
├── BulkOperationsApi
│ ├── BulkOperationsApiClient.cs
│ ├── IBulkOperationsApiClient.cs
│ └── Models
│ │ ├── ImportDocumentArraysBody.cs
│ │ ├── ImportDocumentObjectsBody.cs
│ │ ├── ImportDocumentsOnDuplicate.cs
│ │ ├── ImportDocumentsQuery.cs
│ │ └── ImportDocumentsResponse.cs
├── CollectionApi
│ ├── CollectionApiClient.cs
│ ├── ICollectionApiClient.cs
│ └── Models
│ │ ├── CollectionHeaderProperties.cs
│ │ ├── CollectionKeyOptions.cs
│ │ ├── CollectionSchema.cs
│ │ ├── CollectionSchemaLevel.cs
│ │ ├── CollectionShardsKeyOption.cs
│ │ ├── CollectionShardsResponseBase.cs
│ │ ├── CollectionType.cs
│ │ ├── ComputedValue.cs
│ │ ├── DeleteCollectionResponse.cs
│ │ ├── Figures
│ │ ├── Alive.cs
│ │ ├── CompactionStatus.cs
│ │ ├── Compactors.cs
│ │ ├── DataFiles.cs
│ │ ├── Dead.cs
│ │ ├── Indexes.cs
│ │ ├── Journals.cs
│ │ ├── Readcache.cs
│ │ └── Revisions.cs
│ │ ├── FiguresResult.cs
│ │ ├── GetChecksumQuery.cs
│ │ ├── GetChecksumResponse.cs
│ │ ├── GetCollectionCountResponse.cs
│ │ ├── GetCollectionFiguresResponse.cs
│ │ ├── GetCollectionPropertiesResponse.cs
│ │ ├── GetCollectionResponse.cs
│ │ ├── GetCollectionRevisionResponse.cs
│ │ ├── GetCollectionShardsDetailedResponse.cs
│ │ ├── GetCollectionShardsResponse.cs
│ │ ├── GetCollectionsQuery.cs
│ │ ├── GetCollectionsResponse.cs
│ │ ├── GetCollectionsResponseResult.cs
│ │ ├── PostCollectionBody.cs
│ │ ├── PostCollectionQuery.cs
│ │ ├── PostCollectionResponse.cs
│ │ ├── PostCollectionResponseCollectionKeyOptions.cs
│ │ ├── PutCollectionPropertyBody.cs
│ │ ├── PutCollectionPropertyResponse.cs
│ │ ├── PutCompactCollectionDataResponse.cs
│ │ ├── PutDocumentShardResponse.cs
│ │ ├── PutLoadIndexesIntoMemoryResponse.cs
│ │ ├── PutRecalculateCountResponse.cs
│ │ ├── RenameCollectionBody.cs
│ │ ├── RenameCollectionResponse.cs
│ │ ├── ResponseBase.cs
│ │ └── TruncateCollectionResponse.cs
├── CursorApi
│ ├── CursorApiClient.cs
│ ├── ICursorApiClient.cs
│ └── Models
│ │ ├── CursorHeaderProperties.cs
│ │ ├── CursorResponse.cs
│ │ ├── CursorResponseBase.cs
│ │ ├── CursorResponseExtra.cs
│ │ ├── CursorResponsePlan.cs
│ │ ├── CursorResponsePlanCollection.cs
│ │ ├── CursorResponsePlanVariable.cs
│ │ ├── CursorResponseStats.cs
│ │ ├── CursorResponseStatsNode.cs
│ │ ├── CursorResponseWarning.cs
│ │ ├── DeleteCursorResponse.cs
│ │ ├── ICursorResponse.cs
│ │ ├── PostCursorBody.cs
│ │ ├── PostCursorOptions.cs
│ │ ├── PostCursorOptionsOptimizer.cs
│ │ └── PutCursorResponse.cs
├── CustomHttpHeaders.cs
├── DatabaseApi
│ ├── DatabaseApiClient.cs
│ ├── IDatabaseApiClient.cs
│ └── Models
│ │ ├── CurrentDatabaseInfo.cs
│ │ ├── DatabaseUser.cs
│ │ ├── DeleteDatabaseResponse.cs
│ │ ├── GetDatabaseInfoResponse.cs
│ │ ├── GetDatabasesResponse.cs
│ │ ├── PostDatabaseBody.cs
│ │ ├── PostDatabaseOptions.cs
│ │ └── PostDatabaseResponse.cs
├── Docs
│ └── usage.md
├── DocumentApi
│ ├── DocumentApiClient.cs
│ ├── IDocumentApiClient.cs
│ └── Models
│ │ ├── DeleteDocumentQuery.cs
│ │ ├── DeleteDocumentResponse.cs
│ │ ├── DeleteDocumentsDocumentResponse.cs
│ │ ├── DeleteDocumentsQuery.cs
│ │ ├── DeleteDocumentsResponse.cs
│ │ ├── DocumentBase.cs
│ │ ├── DocumentHeaderProperties.cs
│ │ ├── HeadDocumentResponse.cs
│ │ ├── OverwriteModes.cs
│ │ ├── PatchDocumentQuery.cs
│ │ ├── PatchDocumentResponse.cs
│ │ ├── PatchDocumentsDocumentResponse.cs
│ │ ├── PatchDocumentsQuery.cs
│ │ ├── PatchDocumentsResponse.cs
│ │ ├── PostDocumentResponse.cs
│ │ ├── PostDocumentsDocumentResponse.cs
│ │ ├── PostDocumentsQuery.cs
│ │ ├── PostDocumentsResponse.cs
│ │ ├── PutDocumentQuery.cs
│ │ ├── PutDocumentResponse.cs
│ │ ├── PutDocumentsDocumentResponse.cs
│ │ ├── PutDocumentsQuery.cs
│ │ └── PutDocumentsResponse.cs
├── DriverConstants.cs
├── GraphApi
│ ├── GraphApiClient.cs
│ ├── IGraphApiClient.cs
│ └── Models
│ │ ├── DeleteEdgeDefinitionQuery.cs
│ │ ├── DeleteEdgeDefinitionResponse.cs
│ │ ├── DeleteEdgeQuery.cs
│ │ ├── DeleteEdgeResponse.cs
│ │ ├── DeleteGraphQuery.cs
│ │ ├── DeleteGraphResponse.cs
│ │ ├── DeleteVertexCollectionQuery.cs
│ │ ├── DeleteVertexCollectionResponse.cs
│ │ ├── DeleteVertexQuery.cs
│ │ ├── DeleteVertexResponse.cs
│ │ ├── EdgeDefinition.cs
│ │ ├── EdgeResult.cs
│ │ ├── GetEdgeCollectionsResponse.cs
│ │ ├── GetEdgeQuery.cs
│ │ ├── GetEdgeResponse.cs
│ │ ├── GetGraphResponse.cs
│ │ ├── GetGraphsResponse.cs
│ │ ├── GetVertexCollectionsResponse.cs
│ │ ├── GetVertexQuery.cs
│ │ ├── GetVertexResponse.cs
│ │ ├── GraphHeaderProperties.cs
│ │ ├── GraphResult.cs
│ │ ├── PatchEdgeQuery.cs
│ │ ├── PatchEdgeResponse.cs
│ │ ├── PatchEdgeresult.cs
│ │ ├── PatchVertexQuery.cs
│ │ ├── PatchVertexResponse.cs
│ │ ├── PatchVertexResult.cs
│ │ ├── PostEdgeDefinitionBody.cs
│ │ ├── PostEdgeDefinitionResponse.cs
│ │ ├── PostEdgeQuery.cs
│ │ ├── PostEdgeResponse.cs
│ │ ├── PostGraphBody.cs
│ │ ├── PostGraphOptions.cs
│ │ ├── PostGraphQuery.cs
│ │ ├── PostGraphResponse.cs
│ │ ├── PostNonSatelliteGraphOptions.cs
│ │ ├── PostSatelliteGraphOptions.cs
│ │ ├── PostVertexCollectionBody.cs
│ │ ├── PostVertexCollectionResponse.cs
│ │ ├── PostVertexQuery.cs
│ │ ├── PostVertexResponse.cs
│ │ ├── PostVertexResult.cs
│ │ ├── PutEdgeDefinitionBody.cs
│ │ ├── PutEdgeDefinitionQuery.cs
│ │ ├── PutEdgeDefinitionResponse.cs
│ │ ├── PutEdgeQuery.cs
│ │ ├── PutEdgeResponse.cs
│ │ ├── PutEdgeResult.cs
│ │ ├── PutVertexQuery.cs
│ │ ├── PutVertexResponse.cs
│ │ └── PutVertexResult.cs
├── IArangoDBClient.cs
├── IndexApi
│ ├── IIndexApiClient.cs
│ ├── IndexApiClient.cs
│ └── Models
│ │ ├── CompressionTypes.cs
│ │ ├── DeleteIndexResponse.cs
│ │ ├── GetAllCollectionIndexesQuery.cs
│ │ ├── GetAllCollectionIndexesResponse.cs
│ │ ├── GetIndexResponse.cs
│ │ ├── IIndexResponse.cs
│ │ ├── IInvertedIndex.cs
│ │ ├── IndexResponseBase.cs
│ │ ├── IndexTypes.cs
│ │ ├── InvertedIndexConsolidationPolicy.cs
│ │ ├── InvertedIndexField.cs
│ │ ├── InvertedIndexResponse.cs
│ │ ├── InvertedIndexSort.cs
│ │ ├── InvertedIndexSortItem.cs
│ │ ├── InvertedIndexStoredValue.cs
│ │ ├── PostFulltextIndexBody.cs
│ │ ├── PostGeoSpatialIndexBody.cs
│ │ ├── PostHashIndexBody.cs
│ │ ├── PostIndexBody.cs
│ │ ├── PostIndexQuery.cs
│ │ ├── PostInvertedIndexBody.cs
│ │ ├── PostMultiDimensionalIndexBody.cs
│ │ ├── PostPersistentIndexBody.cs
│ │ ├── PostSkiplistIndexBody.cs
│ │ ├── PostTTLIndexBody.cs
│ │ └── ResponseBase.cs
├── PregelApi
│ ├── IPregelApiClient.cs
│ ├── Models
│ │ ├── PostStartJobBody.cs
│ │ ├── PregelAlgorithms.cs
│ │ ├── PregelJobDetail.cs
│ │ ├── PregelJobDetailInfo.cs
│ │ ├── PregelJobGraphStoreStatus.cs
│ │ ├── PregelJobGssStatus.cs
│ │ ├── PregelJobGssStatusItem.cs
│ │ └── PregelJobStatus.cs
│ └── PregelApiClient.cs
├── Serialization
│ ├── ApiClientSerialization.cs
│ ├── ApiClientSerializationOptions.cs
│ ├── CamelCasePropertyNamesExceptDictionaryContractResolver.cs
│ ├── DictionaryValueConverter.cs
│ ├── IApiClientSerialization.cs
│ ├── JsonNetApiClientSerialization.cs
│ └── SerializationException.cs
├── TransactionApi
│ ├── ITransactionApiClient.cs
│ ├── Models
│ │ ├── PostTransactionBody.cs
│ │ ├── PostTransactionRequestCollections.cs
│ │ ├── PostTransactionResponse.cs
│ │ ├── StreamTransactionBody.cs
│ │ ├── StreamTransactionResponse.cs
│ │ ├── StreamTransactionResult.cs
│ │ ├── StreamTransactionStatus.cs
│ │ ├── StreamTransactions.cs
│ │ └── Transaction.cs
│ └── TransactionApiClient.cs
├── Transport
│ ├── Http
│ │ ├── HttpApiClientResponse.cs
│ │ ├── HttpApiClientResponseContent.cs
│ │ ├── HttpApiTransport.cs
│ │ └── HttpContentType.cs
│ ├── IApiClientResponse.cs
│ ├── IApiClientResponseContent.cs
│ └── IApiClientTransport.cs
├── UserApi
│ ├── IUserApiClient.cs
│ ├── Models
│ │ ├── AvailableUser.cs
│ │ ├── DeleteAccessLevelResponse.cs
│ │ ├── DeleteUserResponse.cs
│ │ ├── GetAccessLevelResponse.cs
│ │ ├── GetAccessibleDatabasesQuery.cs
│ │ ├── GetAccessibleDatabasesResponse.cs
│ │ ├── GetUserResponse.cs
│ │ ├── GetUsersResponse.cs
│ │ ├── PatchUserBody.cs
│ │ ├── PatchUserResponse.cs
│ │ ├── PostUserBody.cs
│ │ ├── PostUserResponse.cs
│ │ ├── PutAccessLevelBody.cs
│ │ ├── PutAccessLevelResponse.cs
│ │ ├── PutUserBody.cs
│ │ ├── PutUserResponse.cs
│ │ ├── ResponseBase.cs
│ │ └── UserResponseBase.cs
│ └── UserApiClient.cs
└── ViewApi
│ ├── IViewsApiClient.cs
│ ├── Models
│ ├── DeleteViewResponse.cs
│ ├── GetAllViewsResponse.cs
│ ├── GetViewPropertiesResponse.cs
│ ├── GetViewResponse.cs
│ ├── LinkProperties.cs
│ ├── PutRenameViewBody.cs
│ ├── PutRenameViewResponse.cs
│ ├── ResponseBase.cs
│ ├── SearchAliasIndex.cs
│ ├── SearchAliasIndexOperation.cs
│ ├── SortCompressionTypes.cs
│ ├── ViewConsolidationPolicy.cs
│ ├── ViewDetails.cs
│ ├── ViewResponse.cs
│ ├── ViewSort.cs
│ ├── ViewStoredValue.cs
│ ├── ViewSummary.cs
│ └── ViewTypes.cs
│ └── ViewsApiClient.cs
├── contributing.md
├── docs-generator
└── arangodb-net-standard-docs.shfbproj
├── project
└── roadmap.md
└── readme.md
/ErrorEnumGenerator/ErrorEnumGenerator.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Exe
5 | net8.0
6 | enable
7 | enable
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------
/arangodb-net-standard.Test/ArangoDBNetStandardTest.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | net8.0
5 |
6 | false
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
--------------------------------------------------------------------------------
/arangodb-net-standard.Test/AuthApi/AuthApiClientTestFixture.cs:
--------------------------------------------------------------------------------
1 | using ArangoDBNetStandard;
2 | using ArangoDBNetStandard.DatabaseApi.Models;
3 | using System.Collections.Generic;
4 | using System.Threading.Tasks;
5 |
6 | namespace ArangoDBNetStandardTest.AuthApi
7 | {
8 | public class AuthApiClientTestFixture : ApiClientTestFixtureBase
9 | {
10 | public ArangoDBClient ArangoDBClient { get; private set; }
11 |
12 | public static string DbName = nameof(AuthApiClientTest);
13 |
14 | public string Username = "abcxyz";
15 | public string Password = "abczyx";
16 |
17 | public override async Task InitializeAsync()
18 | {
19 | await CreateDatabase(DbName, new List
20 | {
21 | new DatabaseUser
22 | {
23 | Username = Username,
24 | Passwd = Password,
25 | Active = true
26 | }
27 | });
28 |
29 | ArangoDBClient = GetArangoDBClient(DbName);
30 | }
31 | }
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/arangodb-net-standard.Test/CollectionApi/CollectionApiClientTestFixture.cs:
--------------------------------------------------------------------------------
1 | using ArangoDBNetStandard;
2 | using ArangoDBNetStandard.CollectionApi.Models;
3 | using System;
4 | using System.Threading.Tasks;
5 |
6 | namespace ArangoDBNetStandardTest.CollectionApi
7 | {
8 | public class CollectionApiClientTestFixture : ApiClientTestFixtureBase
9 | {
10 | public ArangoDBClient ArangoDBClient { get; internal set; }
11 |
12 | public string TestCollection { get; } = "TestCollection";
13 |
14 | public CollectionApiClientTestFixture()
15 | {
16 | }
17 |
18 | public override async Task InitializeAsync()
19 | {
20 | await base.InitializeAsync();
21 |
22 | string dbName = nameof(CollectionApiClientTestFixture);
23 |
24 | await CreateDatabase(dbName);
25 |
26 | ArangoDBClient = GetArangoDBClient(dbName);
27 | await GetVersionAsync(ArangoDBClient);
28 | try
29 | {
30 | await ArangoDBClient.Collection.PostCollectionAsync(
31 | new PostCollectionBody
32 | {
33 | Name = TestCollection
34 | });
35 | }
36 | catch (ApiErrorException ex) when (ex.ApiError.ErrorNum == 1207)
37 | {
38 | // The collection must exist already, carry on...
39 | Console.WriteLine(ex.Message);
40 | }
41 | }
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/arangodb-net-standard.Test/CursorApi/CursorApiClientTestFixture.cs:
--------------------------------------------------------------------------------
1 | using ArangoDBNetStandard;
2 | using ArangoDBNetStandard.CollectionApi.Models;
3 | using System;
4 | using System.Threading.Tasks;
5 |
6 | namespace ArangoDBNetStandardTest.CursorApi
7 | {
8 | public class CursorApiClientTestFixture : ApiClientTestFixtureBase
9 | {
10 | public ArangoDBClient ArangoDBClient { get; private set; }
11 |
12 | public string TestCollection { get; } = "TestCollection";
13 |
14 | public CursorApiClientTestFixture()
15 | {
16 | }
17 |
18 | public override async Task InitializeAsync()
19 | {
20 | await base.InitializeAsync();
21 |
22 | string dbName = nameof(CursorApiClientTest);
23 |
24 | await CreateDatabase(dbName);
25 |
26 | ArangoDBClient = GetArangoDBClient(dbName);
27 | await GetVersionAsync(ArangoDBClient);
28 |
29 | try
30 | {
31 | var response = await ArangoDBClient.Collection.PostCollectionAsync(
32 | new PostCollectionBody
33 | {
34 | Name = TestCollection
35 | });
36 | }
37 | catch (ApiErrorException ex) when (ex.ApiError.ErrorNum == 1207)
38 | {
39 | // The collection must exist already, carry on...
40 | Console.WriteLine(ex.Message);
41 | }
42 | }
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/arangodb-net-standard.Test/Docs/UsageTestFixture.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace ArangoDBNetStandardTest.Docs
6 | {
7 | public class UsageTestFixture: ApiClientTestFixtureBase
8 | {
9 |
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/arangodb-net-standard.Test/DocumentApi/DocumentApiClientTestFixture.cs:
--------------------------------------------------------------------------------
1 | using ArangoDBNetStandard;
2 | using ArangoDBNetStandard.CollectionApi.Models;
3 | using System;
4 | using System.Threading.Tasks;
5 |
6 | namespace ArangoDBNetStandardTest.DocumentApi
7 | {
8 | public class DocumentApiClientTestFixture : ApiClientTestFixtureBase
9 | {
10 | public ArangoDBClient ArangoDBClient { get; private set; }
11 |
12 | public string TestCollection { get; } = "TestCollection";
13 |
14 | public DocumentApiClientTestFixture()
15 | {
16 | }
17 |
18 | public override async Task InitializeAsync()
19 | {
20 | await base.InitializeAsync();
21 |
22 | string dbName = nameof(DocumentApiClientTest);
23 |
24 | await CreateDatabase(dbName);
25 |
26 | ArangoDBClient = GetArangoDBClient(dbName);
27 | await GetVersionAsync(ArangoDBClient);
28 |
29 | try
30 | {
31 | var response = await ArangoDBClient.Collection.PostCollectionAsync(
32 | new PostCollectionBody
33 | {
34 | Name = TestCollection
35 | });
36 | }
37 | catch (ApiErrorException ex) when (ex.ApiError.ErrorNum == 1207)
38 | {
39 | // The collection must exist already, carry on...
40 | Console.WriteLine(ex.Message);
41 | }
42 | }
43 | }
44 | }
45 |
--------------------------------------------------------------------------------
/arangodb-net-standard.Test/DocumentApi/Models/PatchDocumentMockModel.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandardTest.DocumentApi.Models
2 | {
3 | public class PatchDocumentMockModel
4 | {
5 | public string _key { get; set; }
6 | public int value { get; set; }
7 |
8 | public string name { get; set; }
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/arangodb-net-standard.Test/DocumentApi/Models/PatchDocumentsMockModel.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandardTest.DocumentApi.Models
2 | {
3 | class PatchDocumentsMockModel
4 | {
5 | public string _key { get; set; }
6 |
7 | public int Value { get; set; }
8 |
9 | public string Name { get; set; }
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/arangodb-net-standard.Test/DocumentApi/Models/PostDocumentMockModel.cs:
--------------------------------------------------------------------------------
1 | using ArangoDBNetStandard.DocumentApi.Models;
2 |
3 | namespace ArangoDBNetStandardTest.DocumentApi.Models
4 | {
5 | public class PostDocumentMockModel : DocumentBase
6 | {
7 | public string Message { get; set; }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/arangodb-net-standard.Test/DocumentApi/Models/PostDocumentMockModelNew.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 |
3 | namespace ArangoDBNetStandardTest.DocumentApi.Models
4 | {
5 | public class PostDocumentMockModelNew
6 | {
7 | public string Message { get; set; }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/arangodb-net-standard.Test/GraphApi/Models/DeleteGraphEdgeMockModel.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandardTest.GraphApi.Models
2 | {
3 | public class DeleteGraphEdgeMockModel
4 | {
5 | public string myKey { get; set; }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/arangodb-net-standard.Test/GraphApi/Models/DeleteVertexMockModel.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandardTest.GraphApi.Models
2 | {
3 | public class DeleteVertexMockModel
4 | {
5 | public string Name { get; set; }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/arangodb-net-standard.Test/GraphApi/Models/GetVertexMockModel.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace ArangoDBNetStandardTest.GraphApi.Models
6 | {
7 | public class GetVertexMockModel
8 | {
9 | public string _id { get; set; }
10 |
11 | public string _key { get; set; }
12 |
13 | public string Name { get; set; }
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/arangodb-net-standard.Test/GraphApi/Models/PatchEdgeMockModel.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandardTest.GraphApi.Models
2 | {
3 | public class PatchEdgeMockModel
4 | {
5 | public string _from { get; set; }
6 |
7 | public string _to { get; set; }
8 |
9 | public int value { get; set; }
10 |
11 | public string myKey { get; set; }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/arangodb-net-standard.Test/GraphApi/Models/PatchVertexMockModel.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandardTest.GraphApi.Models
2 | {
3 | public class PatchVertexMockModel
4 | {
5 | public string _id { get; set; }
6 |
7 | public string _key { get; set; }
8 |
9 | public string _rev { get; set; }
10 |
11 | public string Name { get; set; }
12 |
13 | public string Value { get; set; }
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/arangodb-net-standard.Test/GraphApi/Models/PutVertexMockModel.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandardTest.GraphApi.Models
2 | {
3 | public class PutVertexMockModel
4 | {
5 | public string _id { get; set; }
6 |
7 | public string _key { get; set; }
8 |
9 | public string _rev { get; set; }
10 |
11 | public string Name { get; set; }
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/arangodb-net-standard.Test/Serialization/Models/InnerTestModel.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandardTest.Serialization.Models
2 | {
3 | public class InnerTestModel
4 | {
5 | public string InnerTestModel_NullProperty { get; set; }
6 |
7 | public string InnerTestModel_PropertyToCheckIfCamelCase { get; set; }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/arangodb-net-standard.Test/Serialization/Models/TestModel.cs:
--------------------------------------------------------------------------------
1 | using Newtonsoft.Json;
2 | using System.Collections.Generic;
3 |
4 | namespace ArangoDBNetStandardTest.Serialization.Models
5 | {
6 | public class TestModel
7 | {
8 | public enum Number
9 | {
10 | One = 1,
11 | Two = 2
12 | }
13 |
14 | public string NullProperty { get; set; }
15 |
16 | public string AnotherNullProperty { get; set; }
17 |
18 | public string PropertyToCheckIfCamelCase { get; set; }
19 |
20 | public Number EnumToConvert { get; set; }
21 |
22 | [JsonProperty(PropertyName = "nameFromJsonProperty")]
23 | public string PropertyWithDifferentJsonName { get; set; }
24 |
25 | public Dictionary MyStringDict { get; set; }
26 |
27 | public InnerTestModel PropertyWithClassType { get; set; }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/arangodb-net-standard.Test/TransactionApi/TransactionApiClientTestFixture.cs:
--------------------------------------------------------------------------------
1 | using ArangoDBNetStandard;
2 | using ArangoDBNetStandard.CollectionApi.Models;
3 | using System.Threading.Tasks;
4 |
5 | namespace ArangoDBNetStandardTest.TransactionApi
6 | {
7 | public class TransactionApiClientTestFixture : ApiClientTestFixtureBase
8 | {
9 | public ArangoDBClient ArangoDBClient { get; private set; }
10 |
11 | public string TestCollection1 { get; } = "TestCollection1";
12 |
13 | public string TestCollection2 { get; } = "TestCollection2";
14 |
15 | public TransactionApiClientTestFixture()
16 | {
17 | }
18 |
19 | public override async Task InitializeAsync()
20 | {
21 | await base.InitializeAsync();
22 |
23 | string dbName = nameof(TransactionApiClientTest);
24 |
25 | await CreateDatabase(dbName);
26 |
27 | ArangoDBClient = GetArangoDBClient(dbName);
28 | await GetVersionAsync(ArangoDBClient);
29 |
30 | await Task.WhenAll(
31 | ArangoDBClient.Collection.PostCollectionAsync(new PostCollectionBody
32 | {
33 | Name = TestCollection1
34 | }),
35 | ArangoDBClient.Collection.PostCollectionAsync(new PostCollectionBody
36 | {
37 | Name = TestCollection2
38 | }));
39 | }
40 |
41 | }
42 | }
43 |
--------------------------------------------------------------------------------
/arangodb-net-standard.Test/Transport/Http/HttpApiTransportTestFixture.cs:
--------------------------------------------------------------------------------
1 | using ArangoDBNetStandard.DatabaseApi.Models;
2 | using System.Collections.Generic;
3 | using System.Threading.Tasks;
4 |
5 | namespace ArangoDBNetStandardTest.Transport.Http
6 | {
7 | public class HttpApiTransportTestFixture : ApiClientTestFixtureBase
8 | {
9 | public string DatabaseName { get; } = nameof(HttpApiTransportTest);
10 |
11 | public string Username { get; } = "xyzabc";
12 | public string Password { get; } = "abcxyz";
13 |
14 | public override async Task InitializeAsync()
15 | {
16 | await base.InitializeAsync();
17 | await CreateDatabase(
18 | DatabaseName,
19 | new List
20 | {
21 | new DatabaseUser
22 | {
23 | Username = Username,
24 | Passwd = Password
25 | }
26 | });
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/arangodb-net-standard/AdminApi/Models/EngineAlias.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 |
3 | namespace ArangoDBNetStandard.AdminApi.Models
4 | {
5 | public class EngineAlias
6 | {
7 | ///
8 | /// List of indexes and associated types
9 | ///
10 | public Dictionary Indexes { get; set; }
11 | }
12 | }
--------------------------------------------------------------------------------
/arangodb-net-standard/AdminApi/Models/EngineSupports.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 |
3 | namespace ArangoDBNetStandard.AdminApi.Models
4 | {
5 | public class EngineSupports
6 | {
7 | public bool DFDB { get; set; }
8 | public IEnumerable Indexes { get; set; }
9 | public EngineAlias Aliases { get; set; }
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/arangodb-net-standard/AdminApi/Models/GetLicenseResponse.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.AdminApi.Models
2 | {
3 | ///
4 | /// Returned by
5 | ///
6 | public class GetLicenseResponse
7 | {
8 | ///
9 | /// Features of the current license
10 | ///
11 | public LicenseFeatures Features { get; set; }
12 |
13 | ///
14 | /// Encrypted and base64-encoded license key
15 | ///
16 | public string License { get; set; }
17 |
18 | ///
19 | /// License version number
20 | ///
21 | public int Version { get; set; }
22 |
23 | ///
24 | /// The status of the license.
25 | /// Possible values for role are:
26 | /// good: The license is valid for more than 2 weeks.
27 | /// expiring: The license is valid for less than 2 weeks.
28 | /// expired: The license has expired. In this situation, no new Enterprise Edition features can be utilized.
29 | /// read-only: The license is expired over 2 weeks. The instance is now restricted to read-only mode.
30 | ///
31 | public string Status { get; set; }
32 | }
33 | }
--------------------------------------------------------------------------------
/arangodb-net-standard/AdminApi/Models/GetLogsResponse.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 | using System.Text;
3 |
4 | namespace ArangoDBNetStandard.AdminApi.Models
5 | {
6 | ///
7 | /// Returned by
8 | ///
9 | public class GetLogsResponse
10 | {
11 | ///
12 | /// The total amount of log entries before pagination
13 | ///
14 | public int Total { get; set; }
15 |
16 | ///
17 | /// List of log messages that matched the criteria
18 | ///
19 | public List Messages { get; set; }
20 | }
21 | }
--------------------------------------------------------------------------------
/arangodb-net-standard/AdminApi/Models/GetServerEngineTypeResponse.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.AdminApi.Models
2 | {
3 | ///
4 | /// Returned by
5 | ///
6 | public class GetServerEngineTypeResponse
7 | {
8 | ///
9 | /// Type of engine
10 | ///
11 | public string Name { get; set; }
12 |
13 | ///
14 | /// Features supported by the engine
15 | ///
16 | public EngineSupports Supports { get; set; }
17 | }
18 | }
--------------------------------------------------------------------------------
/arangodb-net-standard/AdminApi/Models/GetServerIdResponse.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.AdminApi.Models
2 | {
3 | ///
4 | /// Returned by
5 | ///
6 | public class GetServerIdResponse : ResponseBase
7 | {
8 | ///
9 | /// Id of the server in the cluster.
10 | ///
11 | public string Id { get; set; }
12 | }
13 | }
--------------------------------------------------------------------------------
/arangodb-net-standard/AdminApi/Models/GetServerRoleResponse.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.AdminApi.Models
2 | {
3 | ///
4 | /// Returned by
5 | ///
6 | public class GetServerRoleResponse : ResponseBase
7 | {
8 | ///
9 | /// The server's role.
10 | /// Possible values for role are:
11 | /// SINGLE: the server is a standalone server without clustering.
12 | /// COORDINATOR: the server is a Coordinator in a cluster.
13 | /// PRIMARY: the server is a DB-Server in a cluster.
14 | /// SECONDARY: this role is not used anymore.
15 | /// AGENT: the server is an Agency node in a cluster.
16 | /// UNDEFINED: the server is in a cluster, but its role cannot be determined.
17 | ///
18 | public string Role { get; set; }
19 | }
20 | }
--------------------------------------------------------------------------------
/arangodb-net-standard/AdminApi/Models/GetServerVersionQuery.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 |
3 | namespace ArangoDBNetStandard.AdminApi.Models
4 | {
5 | ///
6 | /// Parameters for
7 | ///
8 | public class GetServerVersionQuery
9 | {
10 | ///
11 | /// If set to true, the response will
12 | /// contain a details attribute with
13 | /// additional information about included
14 | /// components and their versions.
15 | /// The attribute names and internals of
16 | /// the details object may vary depending
17 | /// on platform and ArangoDB version.
18 | ///
19 | public bool? Details { get; set; }
20 |
21 | ///
22 | /// Generates the querystring
23 | ///
24 | ///
25 | internal string ToQueryString()
26 | {
27 | var queryParams = new List();
28 | if (Details != null)
29 | {
30 | queryParams.Add("details=" + Details.ToString());
31 | }
32 | return string.Join("&", queryParams);
33 | }
34 | }
35 | }
--------------------------------------------------------------------------------
/arangodb-net-standard/AdminApi/Models/GetServerVersionResponse.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 |
3 | namespace ArangoDBNetStandard.AdminApi.Models
4 | {
5 | ///
6 | /// Returned by
7 | ///
8 | public class GetServerVersionResponse
9 | {
10 | ///
11 | /// The type of server.
12 | ///
13 | public string Server { get; set; }
14 |
15 | ///
16 | /// The type of license.
17 | ///
18 | public string License { get; set; }
19 |
20 | ///
21 | /// The version of the server.
22 | ///
23 | public string Version { get; set; }
24 |
25 | ///
26 | /// Additional details about the DB server.
27 | /// This is returned only if the
28 | /// query parameter is set to true in
29 | /// the request.
30 | ///
31 | public Dictionary Details {get;set;}
32 | }
33 | }
--------------------------------------------------------------------------------
/arangodb-net-standard/AdminApi/Models/LicenseFeatures.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.AdminApi.Models
2 | {
3 | ///
4 | /// Defines features of a license
5 | ///
6 | public class LicenseFeatures
7 | {
8 | ///
9 | /// License expiry date.
10 | ///
11 | ///
12 | /// Unix timestamp (seconds since January 1st, 1970 UTC)
13 | ///
14 | public long Expires { get; set; }
15 | }
16 | }
--------------------------------------------------------------------------------
/arangodb-net-standard/AdminApi/Models/LogLevel.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.AdminApi.Models
2 | {
3 | ///
4 | /// Log levels in ArangoDB
5 | ///
6 | public enum LogLevel
7 | {
8 | Fatal = 0,
9 | Error = 1,
10 | Warning = 2,
11 | Info = 3,
12 | Debug = 4
13 | }
14 | }
--------------------------------------------------------------------------------
/arangodb-net-standard/AdminApi/Models/LogMessage.cs:
--------------------------------------------------------------------------------
1 | using System;
2 |
3 | namespace ArangoDBNetStandard.AdminApi.Models
4 | {
5 | ///
6 | /// Represents one log entry in ArangoDB
7 | ///
8 | public class LogMessage
9 | {
10 | ///
11 | /// Unique Id of the log entry.
12 | ///
13 | public int Id { get; set; }
14 |
15 | ///
16 | /// Topic or subject of the log entry.
17 | ///
18 | public string Topic { get; set; }
19 |
20 | ///
21 | /// Level of the log entry.
22 | ///
23 | public string Level { get; set; }
24 |
25 | ///
26 | /// Date and time when the log entry was created.
27 | ///
28 | public DateTime Date { get; set; }
29 |
30 | ///
31 | /// The logged message.
32 | ///
33 | public string Message { get; set; }
34 | }
35 | }
--------------------------------------------------------------------------------
/arangodb-net-standard/AdminApi/Models/PutLicenseQuery.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 |
3 | namespace ArangoDBNetStandard.AdminApi.Models
4 | {
5 | ///
6 | /// Parameters for
7 | ///
8 | public class PutLicenseQuery
9 | {
10 | ///
11 | /// If the new license expires sooner
12 | /// than the current one force an update,
13 | /// do not return an error.
14 | ///
15 | public bool Force { get; set; }
16 |
17 | ///
18 | /// Generates the querystring
19 | ///
20 | ///
21 | internal string ToQueryString()
22 | {
23 | var queryParams = new List();
24 | queryParams.Add("force=" + Force.ToString());
25 | return string.Join("&", queryParams);
26 | }
27 | }
28 | }
--------------------------------------------------------------------------------
/arangodb-net-standard/AdminApi/Models/PutLicenseResponse.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.AdminApi.Models
2 | {
3 | ///
4 | /// Returned by
5 | ///
6 | public class PutLicenseResponse
7 | {
8 | ///
9 | /// Result of the license update operation.
10 | ///
11 | public ResponseBase Result { get; set; }
12 | }
13 | }
--------------------------------------------------------------------------------
/arangodb-net-standard/AdminApi/Models/ResponseBase.cs:
--------------------------------------------------------------------------------
1 | using System.Net;
2 |
3 | namespace ArangoDBNetStandard.AdminApi.Models
4 | {
5 | ///
6 | /// Represents a common response class for Admin API operations.
7 | ///
8 | public class ResponseBase
9 | {
10 | ///
11 | /// Always false.
12 | ///
13 | ///
14 | /// To handle errors, catch
15 | /// thrown by API client methods.
16 | ///
17 | public bool Error { get; set; }
18 |
19 | ///
20 | /// The HTTP status code.
21 | ///
22 | public HttpStatusCode Code { get; set; }
23 | }
24 |
25 | }
26 |
--------------------------------------------------------------------------------
/arangodb-net-standard/AnalyzerApi/Models/DeleteAnalyzerResponse.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.AnalyzerApi.Models
2 | {
3 | ///
4 | /// Response from
5 | ///
6 | public class DeleteAnalyzerResponse : ResponseBase
7 | {
8 | public string Name { get; set; }
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/arangodb-net-standard/AnalyzerApi/Models/GeoJSONAnalyzerOptions.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.AnalyzerApi.Models
2 | {
3 | ///
4 | /// Options for fine-tuning geo queries.
5 | ///
6 | public class GeoJSONAnalyzerOptions
7 | {
8 | ///
9 | /// Maximum number of S2 cells (default: 20)
10 | ///
11 | public int? MaxCells { get; set; }
12 |
13 | ///
14 | /// The least precise S2 level (default: 4)
15 | ///
16 | public int? MinLevel { get; set; }
17 |
18 | ///
19 | /// The most precise S2 level (default: 23)
20 | ///
21 | public int? MaxLevel { get; set; }
22 | }
23 | }
--------------------------------------------------------------------------------
/arangodb-net-standard/AnalyzerApi/Models/GetAllAnalyzersResponse.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 |
3 | namespace ArangoDBNetStandard.AnalyzerApi.Models
4 | {
5 | ///
6 | /// Response from
7 | ///
8 | public class GetAllAnalyzersResponse : ResponseBase
9 | {
10 | ///
11 | /// List of analyzers
12 | ///
13 | public List Result { get; set; }
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/arangodb-net-standard/AnalyzerApi/Models/GetAnalyzerResponse.cs:
--------------------------------------------------------------------------------
1 | using System.Net;
2 |
3 | namespace ArangoDBNetStandard.AnalyzerApi.Models
4 | {
5 | ///
6 | /// Response from
7 | ///
8 | public class GetAnalyzerResponse : Analyzer
9 | {
10 | ///
11 | /// Indicates whether an error occurred
12 | ///
13 | ///
14 | /// Note that in cases where an error occurs, the ArangoDBNetStandard
15 | /// client will throw an rather than
16 | /// populating this property. A try/catch block should be used instead
17 | /// for any required error handling.
18 | ///
19 | public bool Error { get; set; }
20 |
21 | ///
22 | /// The HTTP status code.
23 | ///
24 | public HttpStatusCode Code { get; set; }
25 | }
26 | }
--------------------------------------------------------------------------------
/arangodb-net-standard/AnalyzerApi/Models/ResponseBase.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Net;
3 | using System.Text;
4 |
5 | namespace ArangoDBNetStandard.AnalyzerApi.Models
6 | {
7 | ///
8 | /// Represents a common response class for Analyzer API operations.
9 | ///
10 | public class ResponseBase
11 | {
12 | ///
13 | /// Indicates whether an error occurred
14 | ///
15 | ///
16 | /// Note that in cases where an error occurs, the ArangoDBNetStandard
17 | /// client will throw an rather than
18 | /// populating this property. A try/catch block should be used instead
19 | /// for any required error handling.
20 | ///
21 | public bool Error { get; set; }
22 |
23 | ///
24 | /// The HTTP status code.
25 | ///
26 | public HttpStatusCode Code { get; set; }
27 | }
28 | }
--------------------------------------------------------------------------------
/arangodb-net-standard/AnalyzerApi/Models/TextAnalyzerEdgeNgram.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.AnalyzerApi.Models
2 | {
3 | public class TextAnalyzerEdgeNgram
4 | {
5 | ///
6 | /// Minimal n-gram length
7 | ///
8 | public int Min { get; set; }
9 |
10 | ///
11 | /// Maximal n-gram length
12 | ///
13 | public int Max { get; set; }
14 |
15 | ///
16 | /// Whether to include the original token
17 | /// even if its length is less than
18 | /// or greater than
19 | ///
20 | public bool PreserveOriginal { get; set; }
21 | }
22 | }
--------------------------------------------------------------------------------
/arangodb-net-standard/ApiErrorException.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Runtime.Serialization;
3 |
4 | namespace ArangoDBNetStandard
5 | {
6 | [Serializable]
7 | public class ApiErrorException : Exception
8 | {
9 | ///
10 | /// Can be null if ArangoDB returns empty content
11 | /// in the response.
12 | ///
13 | public ApiErrorResponse ApiError { get; set; }
14 |
15 | public ApiErrorException()
16 | {
17 | }
18 |
19 | public ApiErrorException(ApiErrorResponse error) : base(error == null ? string.Empty : error.ErrorMessage)
20 | {
21 | ApiError = error;
22 | }
23 |
24 | public ApiErrorException(string message) : base(message)
25 | {
26 | }
27 |
28 | public ApiErrorException(string message, Exception innerException) : base(message, innerException)
29 | {
30 | }
31 |
32 | protected ApiErrorException(SerializationInfo info, StreamingContext context) : base(info, context)
33 | {
34 | }
35 | }
36 | }
--------------------------------------------------------------------------------
/arangodb-net-standard/ApiErrorResponse.cs:
--------------------------------------------------------------------------------
1 | using System.Net;
2 |
3 | namespace ArangoDBNetStandard
4 | {
5 | ///
6 | /// ArangoDB API error model
7 | ///
8 | public class ApiErrorResponse
9 | {
10 | ///
11 | /// Whether this is an error response (always true).
12 | ///
13 | public bool Error { get; set; }
14 |
15 | ///
16 | /// Error message.
17 | ///
18 | public string ErrorMessage { get; set; }
19 |
20 | ///
21 | /// ArangoDB error number.
22 | /// See https://www.arangodb.com/docs/stable/appendix-error-codes.html for error numbers and descriptions.
23 | ///
24 | public int ErrorNum { get; set; }
25 |
26 | ///
27 | /// HTTP status code.
28 | ///
29 | public HttpStatusCode Code { get; set; }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/arangodb-net-standard/AqlFunctionApi/Models/AqlFunctionResult.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace ArangoDBNetStandard.AqlFunctionApi.Models
6 | {
7 | ///
8 | /// Represents an AQL user function returned in a response results.
9 | ///
10 | public class AqlFunctionResult
11 | {
12 | ///
13 | /// The fully qualified name of the user function.
14 | ///
15 | public string Name { get; set; }
16 |
17 | ///
18 | /// A string representation of the function body.
19 | ///
20 | public string Code { get; set; }
21 |
22 | ///
23 | /// Whether the function results are fully deterministic
24 | /// (function return value solely depends on the input value
25 | /// and return value is the same for repeated calls with same input).
26 | ///
27 | public bool IsDeterministic { get; set; }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/arangodb-net-standard/AqlFunctionApi/Models/DeleteAqlFunctionQuery.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.AqlFunctionApi.Models
2 | {
3 | ///
4 | /// Represents query parameters used when deleting an AQL user function.
5 | ///
6 | public class DeleteAqlFunctionQuery
7 | {
8 | ///
9 | /// Whether the function name provided is treated as a namespace prefix.
10 | /// If set to true, all functions in the specified namespace will be deleted.
11 | /// The returned number of deleted functions may become 0 if none matches the string.
12 | /// If set to false, the function name provided must be fully qualified, including any namespaces.
13 | /// If none matches the name, HTTP 404 is returned.
14 | ///
15 | public bool? Group { get; set; }
16 |
17 | internal string ToQueryString()
18 | {
19 | if (Group != null)
20 | {
21 | return "group=" + Group.ToString().ToLower();
22 | }
23 | else
24 | {
25 | return "";
26 | }
27 | }
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/arangodb-net-standard/AqlFunctionApi/Models/DeleteAqlFunctionResponse.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Net;
4 | using System.Text;
5 |
6 | namespace ArangoDBNetStandard.AqlFunctionApi.Models
7 | {
8 | ///
9 | /// Represents a response containing the number of deleted AQL user functions.
10 | ///
11 | public class DeleteAqlFunctionResponse
12 | {
13 | ///
14 | /// Indicates whether an error occurred (false in this case).
15 | ///
16 | ///
17 | /// Note that in cases where an error occurs, the ArangoDBNetStandard
18 | /// client will throw an rather than
19 | /// populating this property. A try/catch block should be used instead
20 | /// for any required error handling.
21 | ///
22 | public bool Error { get; set; }
23 |
24 | ///
25 | /// The HTTP status code.
26 | ///
27 | public HttpStatusCode Code { get; set; }
28 |
29 | ///
30 | /// The number of deleted user functions,
31 | /// always 1 when is set to false.
32 | /// Any number >= 0 when is set to true.
33 | ///
34 | public int DeletedCount { get; set; }
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/arangodb-net-standard/AqlFunctionApi/Models/DeleteClearSlowAqlQueriesQuery.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.AqlFunctionApi.Models
2 | {
3 | ///
4 | /// Generates query string for
5 | ///
6 | ///
7 | public class DeleteClearSlowAqlQueriesQuery
8 | {
9 | ///
10 | /// If set to true, it will clear the slow query history
11 | /// in all databases, not just the selected one.
12 | /// Using the parameter is only allowed in the system
13 | /// database and with superuser privileges.
14 | ///
15 | public bool? All { get; set; }
16 |
17 | internal string ToQueryString()
18 | {
19 | if (All != null)
20 | {
21 | return "all=" + All.ToString().ToLower();
22 | }
23 | else
24 | {
25 | return "";
26 | }
27 | }
28 | }
29 | }
--------------------------------------------------------------------------------
/arangodb-net-standard/AqlFunctionApi/Models/DeleteKillRunningAqlQueryQuery.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.AqlFunctionApi.Models
2 | {
3 | ///
4 | /// Generates query string for
5 | ///
6 | ///
7 | public class DeleteKillRunningAqlQueryQuery
8 | {
9 | ///
10 | /// If set to true, it will attempt to kill the specified
11 | /// query in all databases, not just the selected one.
12 | /// Using the parameter is only allowed in the system
13 | /// database and with superuser privileges.
14 | ///
15 | public bool? All { get; set; }
16 |
17 | internal string ToQueryString()
18 | {
19 | if (All != null)
20 | {
21 | return "all=" + All.ToString().ToLower();
22 | }
23 | else
24 | {
25 | return "";
26 | }
27 | }
28 | }
29 | }
--------------------------------------------------------------------------------
/arangodb-net-standard/AqlFunctionApi/Models/GetAqlFunctionsQuery.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Net;
4 | using System.Text;
5 |
6 | namespace ArangoDBNetStandard.AqlFunctionApi.Models
7 | {
8 | ///
9 | /// Represents query parameters used when getting all AQL user functions.
10 | ///
11 | public class GetAqlFunctionsQuery
12 | {
13 | ///
14 | /// Returns all registered AQL user functions from this namespace under result.
15 | ///
16 | public string Namespace { get; set; }
17 |
18 | internal string ToQueryString()
19 | {
20 | if (Namespace != null)
21 | {
22 | return "namespace=" + Namespace;
23 | }
24 | else
25 | {
26 | return "";
27 | }
28 | }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/arangodb-net-standard/AqlFunctionApi/Models/GetAqlFunctionsResponse.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Net;
4 | using System.Text;
5 |
6 | namespace ArangoDBNetStandard.AqlFunctionApi.Models
7 | {
8 | ///
9 | /// Represents a response returned when getting all AQL user functions.
10 | ///
11 | public class GetAqlFunctionsResponse
12 | {
13 | ///
14 | /// Indicates whether an error occurred (false in this case).
15 | ///
16 | ///
17 | /// Note that in cases where an error occurs, the ArangoDBNetStandard
18 | /// client will throw an rather than
19 | /// populating this property. A try/catch block should be used instead
20 | /// for any required error handling.
21 | ///
22 | public bool Error { get; set; }
23 |
24 | ///
25 | /// The HTTP status code.
26 | ///
27 | public HttpStatusCode Code { get; set; }
28 |
29 | ///
30 | /// All functions, or the ones matching
31 | /// the parameter.
32 | ///
33 | public IList Result { get; set; }
34 | }
35 | }
--------------------------------------------------------------------------------
/arangodb-net-standard/AqlFunctionApi/Models/GetCurrentlyRunningAqlQueriesQuery.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.AqlFunctionApi.Models
2 | {
3 | ///
4 | /// Generates query string for
5 | ///
6 | ///
7 | public class GetCurrentlyRunningAqlQueriesQuery
8 | {
9 | ///
10 | /// If set to true, will return the currently
11 | /// running queries in all databases, not just
12 | /// the selected one. Using the parameter is
13 | /// only allowed in the system database and
14 | /// with superuser privileges.
15 | ///
16 | public bool? All { get; set; }
17 |
18 | internal string ToQueryString()
19 | {
20 | if (All != null)
21 | {
22 | return "all=" + All.ToString().ToLower();
23 | }
24 | else
25 | {
26 | return "";
27 | }
28 | }
29 | }
30 | }
--------------------------------------------------------------------------------
/arangodb-net-standard/AqlFunctionApi/Models/GetQueryRule.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 |
3 | namespace ArangoDBNetStandard.AqlFunctionApi.Models
4 | {
5 | ///
6 | /// Describes an AQL optimizer rule.
7 | /// This is a response item returned by
8 | ///
9 | ///
10 | public class GetQueryRule
11 | {
12 | ///
13 | /// The name of the optimizer rule as seen in query explain outputs.
14 | ///
15 | public string Name { get; set; }
16 |
17 | ///
18 | /// An object with the properties of the rule.
19 | ///
20 | public GetQueryRuleFlags Flags { get; set; }
21 | }
22 | }
--------------------------------------------------------------------------------
/arangodb-net-standard/AqlFunctionApi/Models/GetSlowAqlQueriesQuery.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.AqlFunctionApi.Models
2 | {
3 | ///
4 | /// Generates query string for
5 | ///
6 | ///
7 | public class GetSlowAqlQueriesQuery
8 | {
9 | ///
10 | /// If set to true, it will return a list of slow running AQL
11 | /// queries in all databases, not just the selected one.
12 | /// Using the parameter is only allowed in the system database
13 | /// and with superuser privileges.
14 | ///
15 | public bool? All { get; set; }
16 |
17 | internal string ToQueryString()
18 | {
19 | if (All != null)
20 | {
21 | return "all=" + All.ToString().ToLower();
22 | }
23 | else
24 | {
25 | return "";
26 | }
27 | }
28 | }
29 | }
--------------------------------------------------------------------------------
/arangodb-net-standard/AqlFunctionApi/Models/PostAqlFunctionBody.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.AqlFunctionApi.Models
2 | {
3 | ///
4 | /// Represents a request body to create a new AQL user function.
5 | ///
6 | public class PostAqlFunctionBody
7 | {
8 | ///
9 | /// The fully qualified name of the user function.
10 | ///
11 | public string Name { get; set; }
12 |
13 | ///
14 | /// A string representation of the function body.
15 | ///
16 | public string Code { get; set; }
17 |
18 | ///
19 | /// An optional boolean value to indicate whether the function results
20 | /// are fully deterministic (function return value solely depends on
21 | /// the input value and return value is the same for repeated calls with same input).
22 | /// This attribute is currently not used
23 | /// but may be used later for optimizations.
24 | ///
25 | public bool? IsDeterministic { get; set; }
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/arangodb-net-standard/AqlFunctionApi/Models/PostAqlFunctionResponse.cs:
--------------------------------------------------------------------------------
1 | using System.Net;
2 |
3 | namespace ArangoDBNetStandard.AqlFunctionApi.Models
4 | {
5 | ///
6 | /// Represents a response returned when creating an AQL user function.
7 | ///
8 | public class PostAqlFunctionResponse
9 | {
10 | ///
11 | /// Indicates whether an error occurred (false in this case).
12 | ///
13 | ///
14 | /// Note that in cases where an error occurs, the ArangoDBNetStandard
15 | /// client will throw an rather than
16 | /// populating this property. A try/catch block should be used instead
17 | /// for any required error handling.
18 | ///
19 | public bool Error { get; set; }
20 |
21 | ///
22 | /// The HTTP status code.
23 | ///
24 | public HttpStatusCode Code { get; set; }
25 |
26 | ///
27 | /// Indicates whether the function was newly created.
28 | ///
29 | public bool IsNewlyCreated { get; set; }
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/arangodb-net-standard/AqlFunctionApi/Models/PostExplainAqlQueryBody.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 |
3 | namespace ArangoDBNetStandard.AqlFunctionApi.Models
4 | {
5 | ///
6 | /// Request body for
7 | ///
8 | ///
9 | public class PostExplainAqlQueryBody
10 | {
11 | ///
12 | /// The query which you want explained; If the query references
13 | /// any bind variables, these must also be passed in the
14 | /// property.
15 | /// Additional options for the query can be passed in the
16 | /// property.
17 | ///
18 | public string Query { get; set; }
19 |
20 | ///
21 | /// Dictionary of Key/value pairs containing
22 | /// the bind parameters for the query.
23 | ///
24 | public Dictionary BindVars { get; set; }
25 |
26 | ///
27 | /// Options for the query
28 | ///
29 | public PostExplainAqlQueryBodyOptions Options { get; set; }
30 | }
31 | }
--------------------------------------------------------------------------------
/arangodb-net-standard/AqlFunctionApi/Models/PostExplainAqlQueryBodyOptimizer.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 |
3 | namespace ArangoDBNetStandard.AqlFunctionApi.Models
4 | {
5 | ///
6 | /// Options related to the query optimizer.
7 | ///
8 | ///
9 | public class PostExplainAqlQueryBodyOptimizer
10 | {
11 | ///
12 | /// A list of to-be-included or to-be-excluded
13 | /// optimizer rules can be put into this attribute,
14 | /// telling the optimizer to include or exclude
15 | /// specific rules. To disable a rule, prefix
16 | /// its name with a -, to enable a rule,
17 | /// prefix it with a +. There is also a pseudo-rule all,
18 | /// which matches all optimizer rules.
19 | /// -all disables all rules.
20 | ///
21 | public IEnumerable Rules { get; set; }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/arangodb-net-standard/AqlFunctionApi/Models/PostExplainAqlQueryBodyOptions.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.AqlFunctionApi.Models
2 | {
3 | ///
4 | /// Options for a query
5 | ///
6 | ///
7 | public class PostExplainAqlQueryBodyOptions
8 | {
9 | ///
10 | /// If set to true, all possible execution plans
11 | /// will be returned. The default is false, meaning
12 | /// only the optimal plan will be returned.
13 | ///
14 | public bool? AllPlans { get; set; }
15 |
16 | ///
17 | /// An optional maximum number of plans that the
18 | /// optimizer is allowed to generate. Setting this
19 | /// attribute to a low value allows to put a cap on
20 | /// the amount of work the optimizer does.
21 | ///
22 | public int? MaxNumberOfPlans { get; set; }
23 |
24 | ///
25 | /// Options related to the query optimizer.
26 | ///
27 | public PostExplainAqlQueryBodyOptimizer Optimizer { get; set; }
28 | }
29 | }
--------------------------------------------------------------------------------
/arangodb-net-standard/AqlFunctionApi/Models/PostExplainAqlQueryResponseCollection.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.AqlFunctionApi.Models
2 | {
3 | public class PostExplainAqlQueryResponseCollection
4 | {
5 | public string Name { get; set; }
6 | public string Type { get; set; }
7 | }
8 | }
--------------------------------------------------------------------------------
/arangodb-net-standard/AqlFunctionApi/Models/PostExplainAqlQueryResponseCondition.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 |
3 | namespace ArangoDBNetStandard.AqlFunctionApi.Models
4 | {
5 | public class PostExplainAqlQueryResponseCondition
6 | {
7 | public string Type { get; set; }
8 | public int? TypeId { get; set; }
9 | public string Name { get; set; }
10 | public bool? ExcludesNull { get; set; }
11 | public int? Value { get; set; }
12 | public string VType { get; set; }
13 | public int? VTypeId { get; set; }
14 | public IEnumerable SubNodes { get; set; }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/arangodb-net-standard/AqlFunctionApi/Models/PostExplainAqlQueryResponseIndexHint.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.AqlFunctionApi.Models
2 | {
3 | public class PostExplainAqlQueryResponseIndexHint
4 | {
5 | public bool? Forced { get; set; }
6 | public string Type { get; set; }
7 | }
8 | }
--------------------------------------------------------------------------------
/arangodb-net-standard/AqlFunctionApi/Models/PostExplainAqlQueryResponseStats.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.AqlFunctionApi.Models
2 | {
3 | ///
4 | /// Statistics for Explain Query
5 | ///
6 | public class PostExplainAqlQueryResponseStats
7 | {
8 | ///
9 | /// Number of rules that were executed.
10 | ///
11 | public int? RulesExecuted { get; set; }
12 |
13 | ///
14 | /// Number of rules that were skipped.
15 | ///
16 | public int? RulesSkipped { get; set; }
17 |
18 | ///
19 | /// Number of plans that were created.
20 | ///
21 | public int? PlansCreated { get; set; }
22 | }
23 | }
--------------------------------------------------------------------------------
/arangodb-net-standard/AqlFunctionApi/Models/PostExplainAqlQueryResponseVariable.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.AqlFunctionApi.Models
2 | {
3 | public class PostExplainAqlQueryResponseVariable
4 | {
5 | public int? Id { get; set; }
6 | public string Name { get; set; }
7 | public bool? IsDataFromCollection { get; set; }
8 | }
9 | }
--------------------------------------------------------------------------------
/arangodb-net-standard/AqlFunctionApi/Models/PostParseAqlQueryBody.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.AqlFunctionApi.Models
2 | {
3 | ///
4 | /// Request body for
5 | ///
6 | ///
7 | public class PostParseAqlQueryBody
8 | {
9 | ///
10 | /// Query string to parse and validate. This query will not be executed.
11 | ///
12 | public string Query { get; set; }
13 | }
14 | }
--------------------------------------------------------------------------------
/arangodb-net-standard/AqlFunctionApi/Models/PostParseAqlQueryResponseAstNode.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 |
3 | namespace ArangoDBNetStandard.AqlFunctionApi.Models
4 | {
5 | ///
6 | /// Data node providing information about a parsed query
7 | /// See https://www.arangodb.com/docs/stable/http/aql-query.html#parse-an-aql-query
8 | ///
9 | public class PostParseAqlQueryResponseAstNode
10 | {
11 | public int? Id { get; set; }
12 | public string Type { get; set; }
13 | public string Name { get; set; }
14 | public string Value { get; set; }
15 | public IEnumerable SubNodes { get; set; }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/arangodb-net-standard/AqlFunctionApi/Models/PutAdjustQueryCacheGlobalPropertiesBody.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.AqlFunctionApi.Models
2 | {
3 | ///
4 | /// Parameter to
5 | ///
6 | ///
7 | public class PutAdjustQueryCacheGlobalPropertiesBody
8 | {
9 | public QueryCacheGlobalProperties Properties { get; set; }
10 | }
11 | }
--------------------------------------------------------------------------------
/arangodb-net-standard/AqlFunctionApi/Models/PutChangeQueryTrackingConfigurationBody.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.AqlFunctionApi.Models
2 | {
3 | ///
4 | /// Parameter to
5 | ///
6 | ///
7 | public class PutChangeQueryTrackingConfigurationBody
8 | {
9 | ///
10 | /// Configuration properties.
11 | ///
12 | public QueryTrackingConfiguration Properties { get; set; }
13 | }
14 | }
--------------------------------------------------------------------------------
/arangodb-net-standard/AqlFunctionApi/Models/ResponseBase.cs:
--------------------------------------------------------------------------------
1 | using System.Net;
2 |
3 | namespace ArangoDBNetStandard.AqlFunctionApi.Models
4 | {
5 | ///
6 | /// Represents a common response class for API operations.
7 | ///
8 | public class ResponseBase
9 | {
10 | ///
11 | /// Indicates whether an error occurred
12 | ///
13 | ///
14 | /// Note that in cases where an error occurs, the ArangoDBNetStandard
15 | /// client will throw an rather than
16 | /// populating this property. A try/catch block should be used instead
17 | /// for any required error handling.
18 | ///
19 | public bool Error { get; set; }
20 |
21 | ///
22 | /// The HTTP status code.
23 | ///
24 | public HttpStatusCode Code { get; set; }
25 | }
26 | }
--------------------------------------------------------------------------------
/arangodb-net-standard/ArangoDBNetStandard.csproj:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | netstandard2.0
5 | A consistent, comprehensive, minimal interface to enable .NET applications to use the complete range of features exposed by the ArangoDB REST API.
6 | A consistent, comprehensive, minimal interface to enable .NET applications to use the complete range of features exposed by the ArangoDB REST API.
7 | Apache-2.0
8 | https://github.com/ArangoDB-Community/arangodb-net-standard
9 | https://github.com/ArangoDB-Community/arangodb-net-standard
10 | arangodb-net-standard arangodb arango .net c# netstandard multimodel graph document database
11 | 3.1.0
12 | ArangoDB Community
13 | true
14 | ArangoDB Community
15 |
16 |
17 |
18 | 1701;1702;1591
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
--------------------------------------------------------------------------------
/arangodb-net-standard/AuthApi/Models/JwtTokenRequestBody.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.AuthApi.Models
2 | {
3 | public class JwtTokenRequestBody
4 | {
5 | public string Username { get; set; }
6 |
7 | public string Password { get; set; }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/arangodb-net-standard/AuthApi/Models/JwtTokenResponse.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.AuthApi.Models
2 | {
3 | public class JwtTokenResponse
4 | {
5 | ///
6 | /// JWT Token
7 | ///
8 | public string Jwt { get; set; }
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/arangodb-net-standard/BulkOperationsApi/Models/ImportDocumentArraysBody.cs:
--------------------------------------------------------------------------------
1 | using System.Collections;
2 | using System.Collections.Generic;
3 |
4 | namespace ArangoDBNetStandard.BulkOperationsApi.Models
5 | {
6 | ///
7 | /// Represents a request body to Import documents as JSON-encoded lists
8 | ///
9 | public class ImportDocumentArraysBody
10 | {
11 | ///
12 | /// List containing document attributes that are
13 | /// being imported.
14 | ///
15 | public IEnumerable DocumentAttributes { get; set; }
16 |
17 | ///
18 | /// List containing value arrays to be imported.
19 | /// Each array is a document. Attribute values will
20 | /// be mapped to the attribute names by positions
21 | /// defined in .
22 | ///
23 | public IEnumerable> ValueArrays { get; set; }
24 | }
25 |
26 | }
27 |
--------------------------------------------------------------------------------
/arangodb-net-standard/BulkOperationsApi/Models/ImportDocumentObjectsBody.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 |
3 | namespace ArangoDBNetStandard.BulkOperationsApi.Models
4 | {
5 | ///
6 | /// Represents a request body to Import documents from an array of objects
7 | ///
8 | public class ImportDocumentObjectsBody
9 | {
10 | ///
11 | /// List of document objects to import.
12 | ///
13 | public IEnumerable Documents { get; set; }
14 | }
15 |
16 | }
17 |
--------------------------------------------------------------------------------
/arangodb-net-standard/BulkOperationsApi/Models/ImportDocumentsOnDuplicate.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.BulkOperationsApi.Models
2 | {
3 | ///
4 | /// Enum representing possible actions to carry out
5 | /// in case of a unique key constraint violation.
6 | ///
7 | public enum ImportDocumentsOnDuplicate
8 | {
9 | ///
10 | /// Will not import the current document
11 | /// because of the unique key constraint
12 | /// violation. This is the default setting.
13 | ///
14 | Error,
15 |
16 | ///
17 | /// Will update an existing document in the
18 | /// database with the data specified in the
19 | /// request. Attributes of the existing
20 | /// document that are not present in the
21 | /// request will be preserved.
22 | ///
23 | Update,
24 |
25 | ///
26 | /// Will replace an existing document in the
27 | /// database with the data specified in the
28 | /// request.
29 | ///
30 | Replace,
31 |
32 | ///
33 | /// Will not update an existing document and
34 | /// simply ignore the error caused by the
35 | /// unique key constraint violation.
36 | ///
37 | Ignore
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/arangodb-net-standard/CollectionApi/Models/CollectionHeaderProperties.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Text;
4 |
5 | namespace ArangoDBNetStandard.CollectionApi.Models
6 | {
7 | ///
8 | /// Provides functionality for collection-specific headers
9 | ///
10 | public class CollectionHeaderProperties : ApiHeaderProperties
11 | {
12 |
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/arangodb-net-standard/CollectionApi/Models/CollectionKeyOptions.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.CollectionApi.Models
2 | {
3 | ///
4 | /// Additional options for key generation of ArangoDB collections.
5 | ///
6 | public class CollectionKeyOptions
7 | {
8 | ///
9 | /// If set to true, then it is allowed to supply own key values
10 | /// in the _key attribute of a document.
11 | /// If set to false, then the key generator will solely be responsible for generating keys
12 | /// and supplying own key values in the _key attribute of documents is considered an error.
13 | ///
14 | public bool AllowUserKeys { get; set; }
15 |
16 | ///
17 | /// Increment value for autoincrement key generator.
18 | /// Not used for other key generator types.
19 | ///
20 | public long? Increment { get; set; }
21 |
22 | ///
23 | /// Initial offset value for autoincrement key generator.
24 | /// Not used for other key generator types.
25 | ///
26 | public long? Offset { get; set; }
27 |
28 | ///
29 | /// Apecifies the type of the key generator.
30 | /// The currently available generators are traditional, autoincrement, uuid and padded.
31 | ///
32 | public string Type { get; set; }
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/arangodb-net-standard/CollectionApi/Models/CollectionSchema.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.CollectionApi.Models
2 | {
3 | ///
4 | /// Specifies the collection level schema for documents.
5 | ///
6 | public class CollectionSchema
7 | {
8 | ///
9 | /// Defines the JSON Schema description for schema validation.
10 | /// See https://www.arangodb.com/docs/3.9/data-modeling-documents-schema-validation.html
11 | ///
12 | public object Rule { get; set; }
13 |
14 | ///
15 | /// Controls when the validation will be applied/triggered.
16 | /// For possible values
17 | ///
18 | public string Level { get; set; }
19 |
20 | ///
21 | /// The message that is used when validation fails.
22 | /// If the schema validation for a document fails, then a generic
23 | /// error is raised. The schema validation cannot pin-point which
24 | /// part of a rule made it fail. You may customize the error message
25 | /// via the message attribute to provide a summary of what is expected
26 | /// or point out common mistakes.
27 | ///
28 | public string Message { get; set; }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/arangodb-net-standard/CollectionApi/Models/CollectionShardsKeyOption.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.CollectionApi.Models
2 | {
3 |
4 | public class CollectionShardsKeyOption
5 | {
6 | public bool? AllowUserKeys { get; set; }
7 | public string Type { get; set; }
8 | }
9 | }
--------------------------------------------------------------------------------
/arangodb-net-standard/CollectionApi/Models/CollectionShardsResponseBase.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 |
3 | namespace ArangoDBNetStandard.CollectionApi.Models
4 | {
5 | public class CollectionShardsResponseBase : ResponseBase
6 | {
7 | public bool? WaitForSync { get; set; }
8 | public string ShardingStrategy { get; set; }
9 | public bool? UsesRevisionsAsDocumentIds { get; set; }
10 | public object Schema { get; set; }
11 | public int? WriteConcern { get; set; }
12 | public bool? SyncByRevision { get; set; }
13 | public int? ReplicationFactor { get; set; }
14 | public int? NumberOfShards { get; set; }
15 | public string Id { get; set; }
16 | public string Name { get; set; }
17 | public bool? IsDisjoint { get; set; }
18 | public int? MinReplicationFactor { get; set; }
19 | public int? Status { get; set; }
20 | public int? Type { get; set; }
21 | public string GloballyUniqueId { get; set; }
22 | public bool? IsSmart { get; set; }
23 | public bool? IsSystem { get; set; }
24 | public int? InternalValidatorType { get; set; }
25 | public bool? IsSmartChild { get; set; }
26 | public string StatusString { get; set; }
27 | public bool? CacheEnabled { get; set; }
28 | public List ShardKeys { get; set; }
29 | public CollectionShardsKeyOption KeyOptions { get; set; }
30 | }
31 | }
--------------------------------------------------------------------------------
/arangodb-net-standard/CollectionApi/Models/CollectionType.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.CollectionApi.Models
2 | {
3 | ///
4 | /// ArangoDB collection type.
5 | ///
6 | public enum CollectionType
7 | {
8 | ///
9 | /// Document collection type.
10 | ///
11 | Document = 2,
12 | ///
13 | /// Edge collection type.
14 | ///
15 | Edge = 3
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/arangodb-net-standard/CollectionApi/Models/DeleteCollectionResponse.cs:
--------------------------------------------------------------------------------
1 | using System.Net;
2 |
3 | namespace ArangoDBNetStandard.CollectionApi.Models
4 | {
5 | public class DeleteCollectionResponse
6 | {
7 | ///
8 | /// Indicates whether an error occurred
9 | ///
10 | ///
11 | /// Note that in cases where an error occurs, the ArangoDBNetStandard
12 | /// client will throw an rather than
13 | /// populating this property. A try/catch block should be used instead
14 | /// for any required error handling.
15 | ///
16 | public bool Error { get; set; }
17 |
18 | public HttpStatusCode Code { get; set; }
19 |
20 | public string Id { get; set; }
21 | }
22 | }
--------------------------------------------------------------------------------
/arangodb-net-standard/CollectionApi/Models/Figures/Alive.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.CollectionApi.Models.Figures
2 | {
3 | public class Alive
4 | {
5 | public int Size { get; set; }
6 |
7 | public int Count { get; set; }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/arangodb-net-standard/CollectionApi/Models/Figures/CompactionStatus.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.CollectionApi.Models.Figures
2 | {
3 | public class CompactionStatus
4 | {
5 | public string Message { get; set; }
6 |
7 | public string Time { get; set; }
8 |
9 | public int Count { get; set; }
10 |
11 | public int FilesCombined { get; set; }
12 |
13 | public int BytesRead { get; set; }
14 |
15 | public int BytesWritten { get; set; }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/arangodb-net-standard/CollectionApi/Models/Figures/Compactors.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.CollectionApi.Models.Figures
2 | {
3 | public class Compactors
4 | {
5 | public int FileSize { get; set; }
6 |
7 | public int Count { get; set; }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/arangodb-net-standard/CollectionApi/Models/Figures/DataFiles.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.CollectionApi.Models.Figures
2 | {
3 | public class DataFiles
4 | {
5 | public int FileSize { get; set; }
6 |
7 | public int Count { get; set; }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/arangodb-net-standard/CollectionApi/Models/Figures/Dead.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.CollectionApi.Models.Figures
2 | {
3 | public class Dead
4 | {
5 | public int Deletion { get; set; }
6 |
7 | public int Count { get; set; }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/arangodb-net-standard/CollectionApi/Models/Figures/Indexes.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.CollectionApi.Models.Figures
2 | {
3 | public class Indexes
4 | {
5 | public int Size { get; set; }
6 |
7 | public int Count { get; set; }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/arangodb-net-standard/CollectionApi/Models/Figures/Journals.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.CollectionApi.Models.Figures
2 | {
3 | public class Journals
4 | {
5 | public int FileSize { get; set; }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/arangodb-net-standard/CollectionApi/Models/Figures/Readcache.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.CollectionApi.Models.Figures
2 | {
3 | public class ReadCache
4 | {
5 | public int Size { get; set; }
6 |
7 | public int Count { get; set; }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/arangodb-net-standard/CollectionApi/Models/Figures/Revisions.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.CollectionApi.Models.Figures
2 | {
3 | public class Revisions
4 | {
5 | public int Size { get; set; }
6 |
7 | public int Count { get; set; }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/arangodb-net-standard/CollectionApi/Models/FiguresResult.cs:
--------------------------------------------------------------------------------
1 | using ArangoDBNetStandard.CollectionApi.Models.Figures;
2 |
3 | namespace ArangoDBNetStandard.CollectionApi.Models
4 | {
5 | public class FiguresResult
6 | {
7 | public DataFiles DataFiles { get; set; }
8 |
9 | public int UncollectedLogfileEntries { get; set; }
10 |
11 | public int DocumentReferences { get; set; }
12 |
13 | public CompactionStatus CompactionStatus { get; set; }
14 |
15 | public Compactors Compactors { get; set; }
16 |
17 | public Dead Dead { get; set; }
18 |
19 | public Indexes Indexes { get; set; }
20 |
21 | public ReadCache Readcache { get; set; }
22 |
23 | public string WaitingFor { get; set; }
24 |
25 | public Alive Alive { get; set; }
26 |
27 | public int LastTick { get; set; }
28 |
29 | public Journals Journals { get; set; }
30 |
31 | public Revisions Revisions { get; set; }
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/arangodb-net-standard/CollectionApi/Models/GetCollectionFiguresResponse.cs:
--------------------------------------------------------------------------------
1 | using System.Net;
2 |
3 | namespace ArangoDBNetStandard.CollectionApi.Models
4 | {
5 | public class GetCollectionFiguresResponse
6 | {
7 | public FiguresResult Figures { get; set; }
8 |
9 | public CollectionKeyOptions KeyOptions { get; set; }
10 |
11 | public string GloballyUniqueId { get; set; }
12 |
13 | public string StatusString { get; set; }
14 |
15 | public string Id { get; set; }
16 |
17 | [System.Obsolete()]
18 | public int IndexBuckets { get; set; }
19 |
20 | public string Error { get; set; }
21 |
22 | public HttpStatusCode Code { get; set; }
23 |
24 | public CollectionType Type { get; set; }
25 |
26 | public int Status { get; set; }
27 |
28 | [System.Obsolete()]
29 | public int JournalSize { get; set; }
30 |
31 | [System.Obsolete()]
32 | public bool IsVolatile { get; set; }
33 |
34 | public string Name { get; set; }
35 |
36 | [System.Obsolete()]
37 | public bool DoCompact { get; set; }
38 |
39 | public bool IsSystem { get; set; }
40 |
41 | public int Count { get; set; }
42 |
43 | public bool WaitForSync { get; set; }
44 | }
45 | }
46 |
--------------------------------------------------------------------------------
/arangodb-net-standard/CollectionApi/Models/GetCollectionShardsDetailedResponse.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 |
3 | namespace ArangoDBNetStandard.CollectionApi.Models
4 | {
5 | public class GetCollectionShardsDetailedResponse : CollectionShardsResponseBase
6 | {
7 | public Dictionary> Shards { get; set; }
8 | }
9 | }
--------------------------------------------------------------------------------
/arangodb-net-standard/CollectionApi/Models/GetCollectionShardsResponse.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 |
3 | namespace ArangoDBNetStandard.CollectionApi.Models
4 | {
5 | public class GetCollectionShardsResponse : CollectionShardsResponseBase
6 | {
7 | public List Shards { get; set; }
8 | }
9 | }
--------------------------------------------------------------------------------
/arangodb-net-standard/CollectionApi/Models/GetCollectionsQuery.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 |
3 | namespace ArangoDBNetStandard.CollectionApi.Models
4 | {
5 | public class GetCollectionsQuery
6 | {
7 | public bool? ExcludeSystem { get; set; }
8 |
9 | internal string ToQueryString()
10 | {
11 | List query = new List();
12 | if (ExcludeSystem != null)
13 | {
14 | query.Add("excludeSystem=" + ExcludeSystem.ToString().ToLower());
15 | }
16 | return string.Join("&", query);
17 | }
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/arangodb-net-standard/CollectionApi/Models/GetCollectionsResponse.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 | using System.Net;
3 |
4 | namespace ArangoDBNetStandard.CollectionApi.Models
5 | {
6 | public class GetCollectionsResponse
7 | {
8 | ///
9 | /// Indicates whether an error occurred
10 | ///
11 | ///
12 | /// Note that in cases where an error occurs, the ArangoDBNetStandard
13 | /// client will throw an rather than
14 | /// populating this property. A try/catch block should be used instead
15 | /// for any required error handling.
16 | ///
17 | public bool Error { get; set; }
18 |
19 | public HttpStatusCode Code { get; set; }
20 |
21 | public List Result { get; set; }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/arangodb-net-standard/CollectionApi/Models/GetCollectionsResponseResult.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.CollectionApi.Models
2 | {
3 | public class GetCollectionsResponseResult
4 | {
5 | public string Id { get; set; }
6 |
7 | public string Name { get; set; }
8 |
9 | public int Status { get; set; }
10 |
11 | public CollectionType Type { get; set; }
12 |
13 | public bool IsSystem { get; set; }
14 |
15 | public string GloballyUniqueId { get; set; }
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/arangodb-net-standard/CollectionApi/Models/PostCollectionResponseCollectionKeyOptions.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.CollectionApi.Models
2 | {
3 | public class PostCollectionResponseCollectionKeyOptions
4 | {
5 | public bool AllowUserKeys { get; set; }
6 |
7 | public string Type { get; set; }
8 |
9 | public int LastValue { get; set; }
10 | }
11 | }
--------------------------------------------------------------------------------
/arangodb-net-standard/CollectionApi/Models/PutCompactCollectionDataResponse.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.CollectionApi.Models
2 | {
3 | public class PutCompactCollectionDataResponse : ResponseBase
4 | {
5 | public int? Type { get; set; }
6 | public int? Status { get; set; }
7 | public bool? IsSystem { get; set; }
8 | public string Name { get; set; }
9 | public string Id { get; set; }
10 | public string GloballyUniqueId { get; set; }
11 | }
12 | }
--------------------------------------------------------------------------------
/arangodb-net-standard/CollectionApi/Models/PutDocumentShardResponse.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.CollectionApi.Models
2 | {
3 | public class PutDocumentShardResponse : ResponseBase
4 | {
5 | ///
6 | /// The Id of the responsible shard.
7 | ///
8 | public string ShardId { get; set; }
9 | }
10 | }
--------------------------------------------------------------------------------
/arangodb-net-standard/CollectionApi/Models/PutLoadIndexesIntoMemoryResponse.cs:
--------------------------------------------------------------------------------
1 | using System.Net;
2 |
3 | namespace ArangoDBNetStandard.CollectionApi.Models
4 | {
5 | public class PutLoadIndexesIntoMemoryResponse:ResponseBase
6 | {
7 | ///
8 | /// Indicates whether the operation
9 | /// was successful or not.
10 | ///
11 | public bool Result { get; set; }
12 | }
13 | }
--------------------------------------------------------------------------------
/arangodb-net-standard/CollectionApi/Models/PutRecalculateCountResponse.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.CollectionApi.Models
2 | {
3 | public class PutRecalculateCountResponse : ResponseBase
4 | {
5 | ///
6 | /// Indicates if recalculating
7 | /// the document count succeeded.
8 | ///
9 | public bool Result { get; set; }
10 |
11 | ///
12 | /// The number of documents in the
13 | /// collection
14 | ///
15 | public int Count { get; set; }
16 | }
17 | }
--------------------------------------------------------------------------------
/arangodb-net-standard/CollectionApi/Models/RenameCollectionBody.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.CollectionApi.Models
2 | {
3 | public class RenameCollectionBody
4 | {
5 | public string Name { get; set; }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/arangodb-net-standard/CollectionApi/Models/RenameCollectionResponse.cs:
--------------------------------------------------------------------------------
1 | using System.Net;
2 |
3 | namespace ArangoDBNetStandard.CollectionApi.Models
4 | {
5 | public class RenameCollectionResponse
6 | {
7 | public string Id { get; set; }
8 |
9 | public string Name { get; set; }
10 |
11 | public int Status { get; set; }
12 |
13 | public CollectionType Type { get; set; }
14 |
15 | public bool IsSystem { get; set; }
16 |
17 | public HttpStatusCode Code { get; set; }
18 |
19 | ///
20 | /// Indicates whether an error occurred
21 | ///
22 | ///
23 | /// Note that in cases where an error occurs, the ArangoDBNetStandard
24 | /// client will throw an rather than
25 | /// populating this property. A try/catch block should be used instead
26 | /// for any required error handling.
27 | ///
28 | public bool Error { get; set; }
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/arangodb-net-standard/CollectionApi/Models/ResponseBase.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Collections.Generic;
3 | using System.Net;
4 | using System.Text;
5 |
6 | namespace ArangoDBNetStandard.CollectionApi.Models
7 | {
8 | ///
9 | /// Represents a common response class for API operations.
10 | ///
11 | public class ResponseBase
12 | {
13 | ///
14 | /// Indicates whether an error occurred
15 | ///
16 | public bool? Error { get; set; }
17 |
18 | ///
19 | /// The HTTP status code.
20 | ///
21 | public HttpStatusCode Code { get; set; }
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/arangodb-net-standard/CollectionApi/Models/TruncateCollectionResponse.cs:
--------------------------------------------------------------------------------
1 | using System.Net;
2 |
3 | namespace ArangoDBNetStandard.CollectionApi.Models
4 | {
5 | public class TruncateCollectionResponse
6 | {
7 | ///
8 | /// Indicates whether an error occurred
9 | ///
10 | ///
11 | /// Note that in cases where an error occurs, the ArangoDBNetStandard
12 | /// client will throw an rather than
13 | /// populating this property. A try/catch block should be used instead
14 | /// for any required error handling.
15 | ///
16 | public bool Error { get; set; }
17 |
18 | public HttpStatusCode Code { get; set; }
19 |
20 | public int Status { get; set; }
21 |
22 | public string Name { get; set; }
23 |
24 | public CollectionType Type { get; set; }
25 |
26 | public bool IsSystem { get; set; }
27 |
28 | public string GloballyUniqueId { get; set; }
29 |
30 | public string Id { get; set; }
31 | }
32 | }
--------------------------------------------------------------------------------
/arangodb-net-standard/CursorApi/Models/CursorHeaderProperties.cs:
--------------------------------------------------------------------------------
1 | namespace ArangoDBNetStandard.CursorApi.Models
2 | {
3 | ///
4 | /// Class representing the additional header properties for Cursor Api.
5 | ///
6 | public class CursorHeaderProperties : ApiHeaderProperties
7 | {
8 |
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/arangodb-net-standard/CursorApi/Models/CursorResponse.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 |
3 | namespace ArangoDBNetStandard.CursorApi.Models
4 | {
5 | ///
6 | /// Response from ArangoDB when creating a new cursor.
7 | ///
8 | ///
9 | public class CursorResponse : CursorResponseBase, ICursorResponse
10 | {
11 | ///
12 | /// Result documents (might be empty if query has no results).
13 | ///
14 | public IEnumerable Result { get; set; }
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/arangodb-net-standard/CursorApi/Models/CursorResponsePlan.cs:
--------------------------------------------------------------------------------
1 | using System.Collections.Generic;
2 |
3 | namespace ArangoDBNetStandard.CursorApi.Models
4 | {
5 | public class CursorResponsePlan
6 | {
7 | public IEnumerable