forked from ArangoDB-Community/arangodb-net-standard
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
163 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace ArangoDBNetStandard.UserApi.Models | ||
{ | ||
/// <summary> | ||
/// Represents a request body to create a user. | ||
/// </summary> | ||
public class PostUserBody | ||
{ | ||
/// <summary> | ||
/// The name of the user. | ||
/// </summary> | ||
public string User { get; set; } | ||
|
||
/// <summary> | ||
/// The user password. | ||
/// If no password is specified, the empty string will be used. | ||
/// If you pass the special value ARANGODB_DEFAULT_ROOT_PASSWORD, | ||
/// then the password will be set the value stored in the environment variable | ||
/// ARANGODB_DEFAULT_ROOT_PASSWORD. | ||
/// This can be used to pass an instance variable into ArangoDB. | ||
/// </summary> | ||
public string Passwd { get; set; } | ||
|
||
/// <summary> | ||
/// An optional flag that specifies whether the user is active. | ||
/// If not specified, this will default to true. | ||
/// </summary> | ||
public bool? Active { get; set; } | ||
|
||
/// <summary> | ||
/// Optional object with arbitrary extra data about the user. | ||
/// </summary> | ||
public Dictionary<string, object> Extra { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using System.Collections.Generic; | ||
using System.Net; | ||
|
||
namespace ArangoDBNetStandard.UserApi.Models | ||
{ | ||
public class PostUserResponse | ||
{ | ||
/// <summary> | ||
/// The name of the user. | ||
/// </summary> | ||
public string User { get; set; } | ||
|
||
/// <summary> | ||
/// Whether the user is active. | ||
/// </summary> | ||
public bool Active { get; set; } | ||
|
||
/// <summary> | ||
/// Object with arbitrary extra data about the user. | ||
/// </summary> | ||
public Dictionary<string, object> Extra { get; set; } | ||
|
||
/// <summary> | ||
/// Indicates whether an error occurred (false in this case). | ||
/// </summary> | ||
public bool Error { get; set; } | ||
|
||
/// <summary> | ||
/// The HTTP status code. | ||
/// </summary> | ||
public HttpStatusCode Code { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters