com.cognite.sdk.scala.v1.labels.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cognite-sdk-scala_2.13 Show documentation
Show all versions of cognite-sdk-scala_2.13 Show documentation
Scala SDK for Cognite Data Fusion.
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