Class AccountAccess
- Namespace
- Mailtrap.AccountAccesses.Models
- Assembly
- Mailtrap.Abstractions.dll
Represents account access details.
public sealed record AccountAccess : IEquatable<AccountAccess>
- Inheritance
-
AccountAccess
- Implements
Properties
Id
Gets the account access identifier.
[JsonPropertyName("id")]
[JsonPropertyOrder(1)]
[JsonRequired]
public long Id { get; set; }
Property Value
- long
Account access identifier.
Permissions
Gets specifier permissions for the account.
[JsonPropertyName("permissions")]
[JsonPropertyOrder(5)]
[JsonObjectCreationHandling(JsonObjectCreationHandling.Populate)]
public AccountAccessPermissions Permissions { get; }
Property Value
- AccountAccessPermissions
Specifier permissions for account.
Resources
Gets the list of resources with permissions, the specifier has access to.
[JsonPropertyName("resources")]
[JsonPropertyOrder(4)]
[JsonObjectCreationHandling(JsonObjectCreationHandling.Populate)]
public IList<ResourceAccess> Resources { get; }
Property Value
- IList<ResourceAccess>
Contains a list of resources with permissions, the specifier has access to.
Specifier
Gets the specifier details.
[JsonPropertyName("specifier")]
[JsonPropertyOrder(3)]
public Specifier? Specifier { get; set; }
Property Value
- Specifier
Specifier details.
SpecifierType
Gets the specifier type that has access to account resources.
[JsonPropertyName("specifier_type")]
[JsonPropertyOrder(2)]
public SpecifierType SpecifierType { get; set; }
Property Value
- SpecifierType
Specifier type that has access to account resources.