Class LabelCreateRequest
LabelCreateRequest
Inheritance
Namespace: InfluxDB.Client.Api.Domain
Assembly: InfluxDB.Client.dll
Syntax
public class LabelCreateRequest : IEquatable<LabelCreateRequest>
Constructors
LabelCreateRequest()
Initializes a new instance of the LabelCreateRequest class.
Declaration
protected LabelCreateRequest()
LabelCreateRequest(String, String, Dictionary<String, String>)
Initializes a new instance of the LabelCreateRequest class.
Declaration
public LabelCreateRequest(string orgID = null, string name = null, Dictionary<string, string> properties = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | orgID | orgID (required). |
System.String | name | name (required). |
Dictionary<System.String, System.String> | properties | Key/Value pairs associated with this label. Keys can be removed by sending an update with an empty value.. |
Properties
Name
Gets or Sets Name
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
OrgID
Gets or Sets OrgID
Declaration
public string OrgID { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Properties
Key/Value pairs associated with this label. Keys can be removed by sending an update with an empty value.
Declaration
public Dictionary<string, string> Properties { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<System.String, System.String> | Key/Value pairs associated with this label. Keys can be removed by sending an update with an empty value. |
Methods
Equals(LabelCreateRequest)
Returns true if LabelCreateRequest instances are equal
Declaration
public bool Equals(LabelCreateRequest input)
Parameters
Type | Name | Description |
---|---|---|
LabelCreateRequest | input | Instance of LabelCreateRequest 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 |