//
// DBRP.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//

import Foundation

public struct DBRP: Codable {

    /** the mapping identifier */
    public var id: String?
    /** the organization ID that owns this mapping. */
    public var orgID: String?
    /** the organization that owns this mapping. */
    public var org: String?
    /** the bucket ID used as target for the translation. */
    public var bucketID: String?
    /** InfluxDB v1 database */
    public var database: String?
    /** InfluxDB v1 retention policy */
    public var retentionPolicy: String?
    /** Specify if this mapping represents the default retention policy for the database specificed. */
    public var _default: Bool?
    public var links: Links?

    public init(id: String? = nil, orgID: String? = nil, org: String? = nil, bucketID: String? = nil, database: String? = nil, retentionPolicy: String? = nil, _default: Bool? = nil, links: Links? = nil) {
        self.id = id
        self.orgID = orgID
        self.org = org
        self.bucketID = bucketID
        self.database = database
        self.retentionPolicy = retentionPolicy
        self._default = _default
        self.links = links
    }

    public enum CodingKeys: String, CodingKey, CaseIterable {
        case id
        case orgID
        case org
        case bucketID
        case database
        case retentionPolicy = "retention_policy"
        case _default = "default"
        case links
    }

}
