Class Authorization
Authorization
Implements
Inherited Members
Namespace: InfluxDB.Client.Api.Domain
Assembly: InfluxDB.Client.dll
Syntax
public class Authorization : AuthorizationUpdateRequest, IEquatable<Authorization>
Constructors
Authorization(String, List<Permission>, AuthorizationLinks, Nullable<AuthorizationUpdateRequest.StatusEnum>, String)
Initializes a new instance of the Authorization class.
Declaration
public Authorization(string orgID = null, List<Permission> permissions = null, AuthorizationLinks links = null, AuthorizationUpdateRequest.StatusEnum? status = null, string description = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | orgID | ID of the organization that the authorization is scoped to.. |
List<Permission> | permissions | List of permissions for an authorization. An authorization must have at least one permission.. |
AuthorizationLinks | links | links. |
System.Nullable<AuthorizationUpdateRequest.StatusEnum> | status | |
System.String | description |
Properties
CreatedAt
Gets or Sets CreatedAt
Declaration
public DateTime? CreatedAt { get; }
Property Value
Type | Description |
---|---|
System.Nullable<DateTime> |
Id
Gets or Sets Id
Declaration
public string Id { get; }
Property Value
Type | Description |
---|---|
System.String |
Links
Gets or Sets Links
Declaration
public AuthorizationLinks Links { get; set; }
Property Value
Type | Description |
---|---|
AuthorizationLinks |
Org
Name of the organization that the token is scoped to.
Declaration
public string Org { get; }
Property Value
Type | Description |
---|---|
System.String | Name of the organization that the token is scoped to. |
OrgID
ID of the organization that the authorization is scoped to.
Declaration
public string OrgID { get; set; }
Property Value
Type | Description |
---|---|
System.String | ID of the organization that the authorization is scoped to. |
Permissions
List of permissions for an authorization. An authorization must have at least one permission.
Declaration
public List<Permission> Permissions { get; set; }
Property Value
Type | Description |
---|---|
List<Permission> | List of permissions for an authorization. An authorization must have at least one permission. |
Token
Token used to authenticate API requests.
Declaration
public string Token { get; }
Property Value
Type | Description |
---|---|
System.String | Token used to authenticate API requests. |
UpdatedAt
Gets or Sets UpdatedAt
Declaration
public DateTime? UpdatedAt { get; }
Property Value
Type | Description |
---|---|
System.Nullable<DateTime> |
User
Name of the user that created and owns the token.
Declaration
public string User { get; }
Property Value
Type | Description |
---|---|
System.String | Name of the user that created and owns the token. |
UserID
ID of the user that created and owns the token.
Declaration
public string UserID { get; }
Property Value
Type | Description |
---|---|
System.String | ID of the user that created and owns the token. |
Methods
Equals(Authorization)
Returns true if Authorization instances are equal
Declaration
public bool Equals(Authorization input)
Parameters
Type | Name | Description |
---|---|---|
Authorization | input | Instance of Authorization to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Equals(Object)
Returns true if objects are equal
Declaration
public override bool Equals(object input)
Parameters
Type | Name | Description |
---|---|---|
System.Object | input | Object to be compared |
Returns
Type | Description |
---|---|
System.Boolean | Boolean |
Overrides
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code |
Overrides
ToJson()
Returns the JSON string presentation of the object
Declaration
public override string ToJson()
Returns
Type | Description |
---|---|
System.String | JSON string presentation of the object |
Overrides
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String presentation of the object |