Class LegacyAuthorizationPostRequest
LegacyAuthorizationPostRequest
Implements
Inherited Members
Namespace: InfluxDB.Client.Api.Domain
Assembly: InfluxDB.Client.dll
Syntax
public class LegacyAuthorizationPostRequest : AuthorizationUpdateRequest, IEquatable<LegacyAuthorizationPostRequest>
Constructors
LegacyAuthorizationPostRequest(String, String, String, List<Permission>, Nullable<AuthorizationUpdateRequest.StatusEnum>, String)
Initializes a new instance of the LegacyAuthorizationPostRequest class.
Declaration
public LegacyAuthorizationPostRequest(string orgID = null, string userID = null, string token = null, List<Permission> permissions = null, AuthorizationUpdateRequest.StatusEnum? status = null, string description = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | orgID | ID of org that authorization is scoped to.. |
System.String | userID | ID of user that authorization is scoped to.. |
System.String | token | Token (name) of the authorization. |
List<Permission> | permissions | List of permissions for an auth. An auth must have at least one Permission.. |
System.Nullable<AuthorizationUpdateRequest.StatusEnum> | status | |
System.String | description |
Properties
OrgID
ID of org that authorization is scoped to.
Declaration
public string OrgID { get; set; }
Property Value
Type | Description |
---|---|
System.String | ID of org that authorization is scoped to. |
Permissions
List of permissions for an auth. An auth must have at least one Permission.
Declaration
public List<Permission> Permissions { get; set; }
Property Value
Type | Description |
---|---|
List<Permission> | List of permissions for an auth. An auth must have at least one Permission. |
Token
Token (name) of the authorization
Declaration
public string Token { get; set; }
Property Value
Type | Description |
---|---|
System.String | Token (name) of the authorization |
UserID
ID of user that authorization is scoped to.
Declaration
public string UserID { get; set; }
Property Value
Type | Description |
---|---|
System.String | ID of user that authorization is scoped to. |
Methods
Equals(LegacyAuthorizationPostRequest)
Returns true if LegacyAuthorizationPostRequest instances are equal
Declaration
public bool Equals(LegacyAuthorizationPostRequest input)
Parameters
Type | Name | Description |
---|---|---|
LegacyAuthorizationPostRequest | input | Instance of LegacyAuthorizationPostRequest 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 |