Class ResourceOwner
ResourceOwner
Implements
IEquatable<ResourceOwner>
Namespace: InfluxDB.Client.Api.Domain
Assembly: InfluxDB.Client.dll
Syntax
public class ResourceOwner : User, IEquatable<ResourceOwner>
Constructors
ResourceOwner()
Initializes a new instance of the ResourceOwner class.
Declaration
protected ResourceOwner()
ResourceOwner(Nullable<ResourceOwner.RoleEnum>, String, String, Nullable<User.StatusEnum>, UserLinks)
Initializes a new instance of the ResourceOwner class.
Declaration
public ResourceOwner(ResourceOwner.RoleEnum? role = null, string oauthID = null, string name = null, User.StatusEnum? status = null, UserLinks links = null)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<ResourceOwner.RoleEnum> | role | role (default to RoleEnum.Owner). |
System.String | oauthID | |
System.String | name | |
System.Nullable<User.StatusEnum> | status | |
UserLinks | links |
Properties
Role
Gets or Sets Role
Declaration
public ResourceOwner.RoleEnum? Role { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<ResourceOwner.RoleEnum> |
Methods
Equals(ResourceOwner)
Returns true if ResourceOwner instances are equal
Declaration
public bool Equals(ResourceOwner input)
Parameters
Type | Name | Description |
---|---|---|
ResourceOwner | input | Instance of ResourceOwner 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 |
Overrides
Implements
IEquatable<>