Class Bucket
Bucket
Inheritance
Namespace: InfluxDB.Client.Api.Domain
Assembly: InfluxDB.Client.dll
Syntax
public class Bucket : IEquatable<Bucket>
Constructors
Bucket()
Initializes a new instance of the Bucket class.
Declaration
protected Bucket()
Bucket(BucketLinks, String, String, String, String, Nullable<SchemaType>, List<BucketRetentionRules>, List<Label>)
Initializes a new instance of the Bucket class.
Declaration
public Bucket(BucketLinks links = null, string name = null, string description = null, string orgID = null, string rp = null, SchemaType? schemaType = null, List<BucketRetentionRules> retentionRules = null, List<Label> labels = null)
Parameters
Type | Name | Description |
---|---|---|
Bucket |
links | links. |
System. |
name | name (required). |
System. |
description | description. |
System. |
orgID | orgID. |
System. |
rp | rp. |
System. |
schemaType | schemaType. |
List<Bucket |
retentionRules | Rules to expire or retain data. No rules means data never expires. (required). |
List<Label> | labels | labels. |
Properties
CreatedAt
Gets or Sets CreatedAt
Declaration
public DateTime? CreatedAt { get; }
Property Value
Type | Description |
---|---|
System. |
Description
Gets or Sets Description
Declaration
public string Description { get; set; }
Property Value
Type | Description |
---|---|
System. |
Id
Gets or Sets Id
Declaration
public string Id { get; }
Property Value
Type | Description |
---|---|
System. |
Labels
Gets or Sets Labels
Declaration
public List<Label> Labels { get; set; }
Property Value
Type | Description |
---|---|
List<Label> |
Links
Gets or Sets Links
Declaration
public BucketLinks Links { get; set; }
Property Value
Type | Description |
---|---|
Bucket |
Name
Gets or Sets Name
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System. |
OrgID
Gets or Sets OrgID
Declaration
public string OrgID { get; set; }
Property Value
Type | Description |
---|---|
System. |
RetentionRules
Rules to expire or retain data. No rules means data never expires.
Declaration
public List<BucketRetentionRules> RetentionRules { get; set; }
Property Value
Type | Description |
---|---|
List<Bucket |
Rules to expire or retain data. No rules means data never expires. |
Rp
Gets or Sets Rp
Declaration
public string Rp { get; set; }
Property Value
Type | Description |
---|---|
System. |
SchemaType
Gets or Sets SchemaType
Declaration
public SchemaType? SchemaType { get; set; }
Property Value
Type | Description |
---|---|
System. |
Type
Gets or Sets Type
Declaration
public Bucket.TypeEnum? Type { get; set; }
Property Value
Type | Description |
---|---|
System. |
UpdatedAt
Gets or Sets UpdatedAt
Declaration
public DateTime? UpdatedAt { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
Equals(Bucket)
Returns true if Bucket instances are equal
Declaration
public bool Equals(Bucket input)
Parameters
Type | Name | Description |
---|---|---|
Bucket | input | Instance of Bucket to be compared |
Returns
Type | Description |
---|---|
System. |
Boolean |
Equals(Object)
Returns true if objects are equal
Declaration
public override bool Equals(object input)
Parameters
Type | Name | Description |
---|---|---|
System. |
input | Object to be compared |
Returns
Type | Description |
---|---|
System. |
Boolean |
GetHashCode()
Gets the hash code
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System. |
Hash code |
ToJson()
Returns the JSON string presentation of the object
Declaration
public virtual string ToJson()
Returns
Type | Description |
---|---|
System. |
JSON string presentation of the object |
ToString()
Returns the string presentation of the object
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System. |
String presentation of the object |