Class DBRPCreate
DBRPCreate
Inheritance
Namespace: InfluxDB.Client.Api.Domain
Assembly: InfluxDB.Client.dll
Syntax
public class DBRPCreate : IEquatable<DBRPCreate>
Constructors
DBRPCreate()
Initializes a new instance of the DBRPCreate class.
Declaration
protected DBRPCreate()
DBRPCreate(String, String, String, String, String, Nullable<Boolean>)
Initializes a new instance of the DBRPCreate class.
Declaration
public DBRPCreate(string orgID = null, string org = null, string bucketID = null, string database = null, string retentionPolicy = null, bool? _default = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | orgID | ID of the organization that owns this mapping.. |
System.String | org | Name of the organization that owns this mapping.. |
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.. |
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. |
Org
Name of the organization that owns this mapping.
Declaration
public string Org { get; set; }
Property Value
Type | Description |
---|---|
System.String | Name of the organization that owns this mapping. |
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(DBRPCreate)
Returns true if DBRPCreate instances are equal
Declaration
public bool Equals(DBRPCreate input)
Parameters
Type | Name | Description |
---|---|---|
DBRPCreate | input | Instance of DBRPCreate 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 |