Class DBRP
DBRP
Inheritance
Namespace: InfluxDB.Client.Api.Domain
Assembly: InfluxDB.Client.dll
Syntax
public class DBRP : IEquatable<DBRP>
Constructors
DBRP()
Initializes a new instance of the DBRP class.
Declaration
protected DBRP()
DBRP(String, String, String, String, Nullable<Boolean>, Links)
Initializes a new instance of the DBRP class.
Declaration
public DBRP(string orgID = null, string bucketID = null, string database = null, string retentionPolicy = null, bool? _default = null, Links links = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | orgID | ID of the organization that owns this mapping. (required). |
System.String | bucketID | ID of the bucket used as the target for the translation. (required). |
System.String | database | InfluxDB v1 database (required). |
System.String | retentionPolicy | InfluxDB v1 retention policy (required). |
System.Nullable<System.Boolean> | _default | Mapping represents the default retention policy for the database specified. (required). |
Links | links | links. |
Properties
BucketID
ID of the bucket used as the target for the translation.
Declaration
public string BucketID { get; set; }
Property Value
Type | Description |
---|---|
System.String | ID of the bucket used as the target for the translation. |
Database
InfluxDB v1 database
Declaration
public string Database { get; set; }
Property Value
Type | Description |
---|---|
System.String | InfluxDB v1 database |
Default
Mapping represents the default retention policy for the database specified.
Declaration
public bool? Default { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Boolean> | Mapping represents the default retention policy for the database specified. |
Id
ID of the DBRP mapping.
Declaration
public string Id { get; }
Property Value
Type | Description |
---|---|
System.String | ID of the DBRP mapping. |
Links
Gets or Sets Links
Declaration
public Links Links { get; set; }
Property Value
Type | Description |
---|---|
Links |
OrgID
ID of the organization that owns this mapping.
Declaration
public string OrgID { get; set; }
Property Value
Type | Description |
---|---|
System.String | ID of the organization that owns this mapping. |
RetentionPolicy
InfluxDB v1 retention policy
Declaration
public string RetentionPolicy { get; set; }
Property Value
Type | Description |
---|---|
System.String | InfluxDB v1 retention policy |
Methods
Equals(DBRP)
Returns true if DBRP instances are equal
Declaration
public bool Equals(DBRP input)
Parameters
Type | Name | Description |
---|---|---|
DBRP | input | Instance of DBRP 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 |