Class Permission
Permission
Inheritance
System.Object
Permission
Namespace: InfluxDB.Client.Api.Domain
Assembly: InfluxDB.Client.dll
Syntax
public class Permission : IEquatable<Permission>
Constructors
Permission()
Initializes a new instance of the Permission class.
Declaration
protected Permission()
Permission(Permission.ActionEnum, PermissionResource)
Initializes a new instance of the Permission class.
Declaration
public Permission(Permission.ActionEnum action = (Permission.ActionEnum)0, PermissionResource resource = null)
Parameters
Type | Name | Description |
---|---|---|
Permission.ActionEnum | action | action (required). |
PermissionResource | resource | resource (required). |
Properties
Action
Gets or Sets Action
Declaration
public Permission.ActionEnum Action { get; set; }
Property Value
Type | Description |
---|---|
Permission.ActionEnum |
Resource
Gets or Sets Resource
Declaration
public PermissionResource Resource { get; set; }
Property Value
Type | Description |
---|---|
PermissionResource |
Methods
Equals(Permission)
Returns true if Permission instances are equal
Declaration
public bool Equals(Permission input)
Parameters
Type | Name | Description |
---|---|---|
Permission | input | Instance of Permission 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 |
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code |
ToJson()
Returns the JSON string presentation of the object
Declaration
public virtual string ToJson()
Returns
Type | Description |
---|---|
System.String | JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | String presentation of the object |