All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.cognite.sdk.scala.v1.labels.scala Maven / Gradle / Ivy

The newest version!
// Copyright 2020 Cognite AS
// SPDX-License-Identifier: Apache-2.0

package com.cognite.sdk.scala.v1

import java.time.Instant
import com.cognite.sdk.scala.common._

final case class Label(
    externalId: String,
    name: String,
    description: Option[String] = None,
    createdTime: Instant = Instant.ofEpochMilli(0),
    dataSetId: Option[Long] = None
) extends WithRequiredExternalId
    with WithCreatedTime
    with ToCreate[LabelCreate] {
  override def toCreate: LabelCreate =
    LabelCreate(
      externalId,
      name,
      description,
      dataSetId
    )
}

final case class LabelCreate(
    externalId: String,
    name: String,
    description: Option[String] = None,
    dataSetId: Option[Long] = None
) extends WithRequiredExternalId

final case class LabelsFilter(
    name: Option[String] = None,
    externalIdPrefix: Option[String] = None,
    dataSetIds: Option[Seq[CogniteId]] = None
)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy