Reorganize, shared entities from TypeScript SDK
https://github.com/cloudflare/cloudflare-typescript/blob/v4.4.1/src/resources/shared.ts
This commit is contained in:
21
Cloudflare/Models/PermissionGrant.cs
Normal file
21
Cloudflare/Models/PermissionGrant.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
namespace AMWD.Net.Api.Cloudflare
|
||||
{
|
||||
/// <summary>
|
||||
/// A permission grant.
|
||||
/// <see href="https://github.com/cloudflare/cloudflare-typescript/blob/v4.4.1/src/resources/shared.ts#L488">Source</see>
|
||||
/// </summary>
|
||||
public class PermissionGrant
|
||||
{
|
||||
/// <summary>
|
||||
/// Whether the member can read the resource.
|
||||
/// </summary>
|
||||
[JsonProperty("read")]
|
||||
public bool? CanRead { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Whether the member can write to the resource.
|
||||
/// </summary>
|
||||
[JsonProperty("write")]
|
||||
public bool? CanWrite { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user