Class TokenEntry
Namespace: Consul
Assembly: Consul.dll
TokenEntry is used to represent an ACL Token in Consul
public class TokenEntry
Inheritance
Inherited Members
object.Equals(object) , object.Equals(object, object) , object.GetHashCode() , object.GetType() , object.MemberwiseClone() , object.ReferenceEquals(object, object) , object.ToString()
Constructors
TokenEntry()
public TokenEntry()
TokenEntry(string, PolicyLink[])
public TokenEntry(string description, PolicyLink[] policies)
Parameters
description
string
policies
PolicyLink []
TokenEntry(string, RoleLink[])
public TokenEntry(string description, RoleLink[] roles)
Parameters
description
string
roles
RoleLink []
TokenEntry(string, ServiceIdentity[])
public TokenEntry(string description, ServiceIdentity[] serviceIdentities)
Parameters
description
string
serviceIdentities
ServiceIdentity []
TokenEntry(string, string)
public TokenEntry(string accessorId, string description)
Parameters
accessorId
string
description
string
TokenEntry(string, string, PolicyLink[], RoleLink[], ServiceIdentity[])
public TokenEntry(string accessorId, string description, PolicyLink[] policies, RoleLink[] roles, ServiceIdentity[] serviceIdentities)
Parameters
accessorId
string
description
string
policies
PolicyLink []
roles
RoleLink []
serviceIdentities
ServiceIdentity []
Properties
AccessorID
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public string AccessorID { get; set; }
Property Value
AuthMethod
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public string AuthMethod { get; set; }
Property Value
Description
public string Description { get; set; }
Property Value
Local
public bool Local { get; set; }
Property Value
Policies
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public PolicyLink[] Policies { get; set; }
Property Value
PolicyLink []
Roles
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public RoleLink[] Roles { get; set; }
Property Value
RoleLink []
SecretID
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public string SecretID { get; set; }
Property Value
ServiceIdentities
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public ServiceIdentity[] ServiceIdentities { get; set; }
Property Value
Methods
ShouldSerializeCreateIndex()
public static bool ShouldSerializeCreateIndex()
Returns
ShouldSerializeModifyIndex()
public static bool ShouldSerializeModifyIndex()