diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 7e7a47c6..e61f04f0 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -18,7 +18,7 @@ jobs:
lint:
timeout-minutes: 15
name: lint
- runs-on: ${{ github.repository == 'stainless-sdks/openlayer-java' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
+ runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
steps:
@@ -45,7 +45,7 @@ jobs:
permissions:
contents: read
id-token: write
- runs-on: ${{ github.repository == 'stainless-sdks/openlayer-java' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
+ runs-on: ${{ startsWith(github.repository, 'stainless-sdks/') && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
steps:
diff --git a/.release-please-manifest.json b/.release-please-manifest.json
index 8cfc016b..091cfb12 100644
--- a/.release-please-manifest.json
+++ b/.release-please-manifest.json
@@ -1,3 +1,3 @@
{
- ".": "0.9.2"
+ ".": "0.10.0"
}
\ No newline at end of file
diff --git a/.stats.yml b/.stats.yml
index 0deea569..60080a09 100644
--- a/.stats.yml
+++ b/.stats.yml
@@ -1,3 +1,3 @@
-configured_endpoints: 31
-openapi_spec_hash: a574ef9082e992c25120554886a9ab7a
-config_hash: 2d4f9621ceae4bb25977853a964a0e54
+configured_endpoints: 32
+openapi_spec_hash: 72e2dd8871904fe6c130d1c81b033d5a
+config_hash: f75dd97d47c446f8fdc8bcb36f445eea
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2e2602fd..48cdc767 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,18 @@
# Changelog
+## 0.10.0 (2026-08-03)
+
+Full Changelog: [v0.9.2...v0.10.0](https://github.com/openlayer-ai/openlayer-java/compare/v0.9.2...v0.10.0)
+
+### Features
+
+* **stlc:** configurable CI runner and private-production-repo support in workflow templates ([1c4e1bd](https://github.com/openlayer-ai/openlayer-java/commit/1c4e1bd16d71bd85a311e32d360ca072a90b51af))
+
+
+### Chores
+
+* **closes OPEN-11851:** expose update project endpoint ([df645bf](https://github.com/openlayer-ai/openlayer-java/commit/df645bfc1a5cbd004d80c3aae5104f4b0ab12531))
+
## 0.9.2 (2026-07-01)
Full Changelog: [v0.9.1...v0.9.2](https://github.com/openlayer-ai/openlayer-java/compare/v0.9.1...v0.9.2)
diff --git a/README.md b/README.md
index a26cb4ee..d8bbe81e 100644
--- a/README.md
+++ b/README.md
@@ -2,8 +2,8 @@
-[](https://central.sonatype.com/artifact/com.openlayer.api/openlayer-java/0.9.2)
-[](https://javadoc.io/doc/com.openlayer.api/openlayer-java/0.9.2)
+[](https://central.sonatype.com/artifact/com.openlayer.api/openlayer-java/0.10.0)
+[](https://javadoc.io/doc/com.openlayer.api/openlayer-java/0.10.0)
@@ -13,7 +13,7 @@ It is generated with [Stainless](https://www.stainless.com/).
-The REST API documentation can be found on [openlayer.com](https://openlayer.com/docs/api-reference/rest/overview). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.openlayer.api/openlayer-java/0.9.2).
+The REST API documentation can be found on [openlayer.com](https://openlayer.com/docs/api-reference/rest/overview). Javadocs are available on [javadoc.io](https://javadoc.io/doc/com.openlayer.api/openlayer-java/0.10.0).
@@ -24,7 +24,7 @@ The REST API documentation can be found on [openlayer.com](https://openlayer.com
### Gradle
```kotlin
-implementation("com.openlayer.api:openlayer-java:0.9.2")
+implementation("com.openlayer.api:openlayer-java:0.10.0")
```
### Maven
@@ -33,7 +33,7 @@ implementation("com.openlayer.api:openlayer-java:0.9.2")
com.openlayer.api
openlayer-java
- 0.9.2
+ 0.10.0
```
diff --git a/build.gradle.kts b/build.gradle.kts
index 13a6e05f..a8d0c0b5 100644
--- a/build.gradle.kts
+++ b/build.gradle.kts
@@ -8,7 +8,7 @@ repositories {
allprojects {
group = "com.openlayer.api"
- version = "0.9.2" // x-release-please-version
+ version = "0.10.0" // x-release-please-version
}
subprojects {
diff --git a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/inferencepipelines/InferencePipelineRetrieveResponse.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/inferencepipelines/InferencePipelineRetrieveResponse.kt
index 38994255..4c9e736e 100644
--- a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/inferencepipelines/InferencePipelineRetrieveResponse.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/inferencepipelines/InferencePipelineRetrieveResponse.kt
@@ -6836,8 +6836,12 @@ private constructor(
private val taskType: JsonField,
private val versionCount: JsonField,
private val workspaceId: JsonField,
+ private val dataRetentionDays: JsonField,
private val description: JsonField,
private val gitRepo: JsonField,
+ private val modelDeveloper: JsonField,
+ private val modelTypes: JsonField>,
+ private val purpose: JsonField,
private val additionalProperties: MutableMap,
) {
@@ -6877,10 +6881,20 @@ private constructor(
@JsonProperty("workspaceId")
@ExcludeMissing
workspaceId: JsonField = JsonMissing.of(),
+ @JsonProperty("dataRetentionDays")
+ @ExcludeMissing
+ dataRetentionDays: JsonField = JsonMissing.of(),
@JsonProperty("description")
@ExcludeMissing
description: JsonField = JsonMissing.of(),
@JsonProperty("gitRepo") @ExcludeMissing gitRepo: JsonField = JsonMissing.of(),
+ @JsonProperty("modelDeveloper")
+ @ExcludeMissing
+ modelDeveloper: JsonField = JsonMissing.of(),
+ @JsonProperty("modelTypes")
+ @ExcludeMissing
+ modelTypes: JsonField> = JsonMissing.of(),
+ @JsonProperty("purpose") @ExcludeMissing purpose: JsonField = JsonMissing.of(),
) : this(
id,
creatorId,
@@ -6896,8 +6910,12 @@ private constructor(
taskType,
versionCount,
workspaceId,
+ dataRetentionDays,
description,
gitRepo,
+ modelDeveloper,
+ modelTypes,
+ purpose,
mutableMapOf(),
)
@@ -7014,6 +7032,15 @@ private constructor(
*/
fun workspaceId(): Optional = workspaceId.getOptional("workspaceId")
+ /**
+ * Number of days to retain monitoring data for this project. Null means data is retained
+ * indefinitely.
+ *
+ * @throws OpenlayerInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
+ */
+ fun dataRetentionDays(): Optional = dataRetentionDays.getOptional("dataRetentionDays")
+
/**
* The project description.
*
@@ -7028,6 +7055,30 @@ private constructor(
*/
fun gitRepo(): Optional = gitRepo.getOptional("gitRepo")
+ /**
+ * Who developed the model used in this project.
+ *
+ * @throws OpenlayerInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
+ */
+ fun modelDeveloper(): Optional = modelDeveloper.getOptional("modelDeveloper")
+
+ /**
+ * The kinds of model used in this project.
+ *
+ * @throws OpenlayerInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
+ */
+ fun modelTypes(): Optional> = modelTypes.getOptional("modelTypes")
+
+ /**
+ * What the system in this project is intended to do.
+ *
+ * @throws OpenlayerInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
+ */
+ fun purpose(): Optional = purpose.getOptional("purpose")
+
/**
* Returns the raw JSON value of [id].
*
@@ -7144,6 +7195,16 @@ private constructor(
@ExcludeMissing
fun _workspaceId(): JsonField = workspaceId
+ /**
+ * Returns the raw JSON value of [dataRetentionDays].
+ *
+ * Unlike [dataRetentionDays], this method doesn't throw if the JSON field has an unexpected
+ * type.
+ */
+ @JsonProperty("dataRetentionDays")
+ @ExcludeMissing
+ fun _dataRetentionDays(): JsonField = dataRetentionDays
+
/**
* Returns the raw JSON value of [description].
*
@@ -7160,6 +7221,32 @@ private constructor(
*/
@JsonProperty("gitRepo") @ExcludeMissing fun _gitRepo(): JsonField = gitRepo
+ /**
+ * Returns the raw JSON value of [modelDeveloper].
+ *
+ * Unlike [modelDeveloper], this method doesn't throw if the JSON field has an unexpected
+ * type.
+ */
+ @JsonProperty("modelDeveloper")
+ @ExcludeMissing
+ fun _modelDeveloper(): JsonField = modelDeveloper
+
+ /**
+ * Returns the raw JSON value of [modelTypes].
+ *
+ * Unlike [modelTypes], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ @JsonProperty("modelTypes")
+ @ExcludeMissing
+ fun _modelTypes(): JsonField> = modelTypes
+
+ /**
+ * Returns the raw JSON value of [purpose].
+ *
+ * Unlike [purpose], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ @JsonProperty("purpose") @ExcludeMissing fun _purpose(): JsonField = purpose
+
@JsonAnySetter
private fun putAdditionalProperty(key: String, value: JsonValue) {
additionalProperties.put(key, value)
@@ -7215,8 +7302,12 @@ private constructor(
private var taskType: JsonField? = null
private var versionCount: JsonField? = null
private var workspaceId: JsonField? = null
+ private var dataRetentionDays: JsonField = JsonMissing.of()
private var description: JsonField = JsonMissing.of()
private var gitRepo: JsonField = JsonMissing.of()
+ private var modelDeveloper: JsonField = JsonMissing.of()
+ private var modelTypes: JsonField>? = null
+ private var purpose: JsonField = JsonMissing.of()
private var additionalProperties: MutableMap = mutableMapOf()
@JvmSynthetic
@@ -7235,8 +7326,12 @@ private constructor(
taskType = project.taskType
versionCount = project.versionCount
workspaceId = project.workspaceId
+ dataRetentionDays = project.dataRetentionDays
description = project.description
gitRepo = project.gitRepo
+ modelDeveloper = project.modelDeveloper
+ modelTypes = project.modelTypes.map { it.toMutableList() }
+ purpose = project.purpose
additionalProperties = project.additionalProperties.toMutableMap()
}
@@ -7434,6 +7529,38 @@ private constructor(
this.workspaceId = workspaceId
}
+ /**
+ * Number of days to retain monitoring data for this project. Null means data is
+ * retained indefinitely.
+ */
+ fun dataRetentionDays(dataRetentionDays: Long?) =
+ dataRetentionDays(JsonField.ofNullable(dataRetentionDays))
+
+ /**
+ * Alias for [Builder.dataRetentionDays].
+ *
+ * This unboxed primitive overload exists for backwards compatibility.
+ */
+ fun dataRetentionDays(dataRetentionDays: Long) =
+ dataRetentionDays(dataRetentionDays as Long?)
+
+ /**
+ * Alias for calling [Builder.dataRetentionDays] with `dataRetentionDays.orElse(null)`.
+ */
+ fun dataRetentionDays(dataRetentionDays: Optional) =
+ dataRetentionDays(dataRetentionDays.getOrNull())
+
+ /**
+ * Sets [Builder.dataRetentionDays] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.dataRetentionDays] with a well-typed [Long] value
+ * instead. This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun dataRetentionDays(dataRetentionDays: JsonField) = apply {
+ this.dataRetentionDays = dataRetentionDays
+ }
+
/** The project description. */
fun description(description: String?) = description(JsonField.ofNullable(description))
@@ -7465,6 +7592,69 @@ private constructor(
*/
fun gitRepo(gitRepo: JsonField) = apply { this.gitRepo = gitRepo }
+ /** Who developed the model used in this project. */
+ fun modelDeveloper(modelDeveloper: String?) =
+ modelDeveloper(JsonField.ofNullable(modelDeveloper))
+
+ /** Alias for calling [Builder.modelDeveloper] with `modelDeveloper.orElse(null)`. */
+ fun modelDeveloper(modelDeveloper: Optional) =
+ modelDeveloper(modelDeveloper.getOrNull())
+
+ /**
+ * Sets [Builder.modelDeveloper] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.modelDeveloper] with a well-typed [String] value
+ * instead. This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun modelDeveloper(modelDeveloper: JsonField) = apply {
+ this.modelDeveloper = modelDeveloper
+ }
+
+ /** The kinds of model used in this project. */
+ fun modelTypes(modelTypes: List?) = modelTypes(JsonField.ofNullable(modelTypes))
+
+ /** Alias for calling [Builder.modelTypes] with `modelTypes.orElse(null)`. */
+ fun modelTypes(modelTypes: Optional>) = modelTypes(modelTypes.getOrNull())
+
+ /**
+ * Sets [Builder.modelTypes] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.modelTypes] with a well-typed `List` value
+ * instead. This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun modelTypes(modelTypes: JsonField>) = apply {
+ this.modelTypes = modelTypes.map { it.toMutableList() }
+ }
+
+ /**
+ * Adds a single [String] to [modelTypes].
+ *
+ * @throws IllegalStateException if the field was previously set to a non-list.
+ */
+ fun addModelType(modelType: String) = apply {
+ modelTypes =
+ (modelTypes ?: JsonField.of(mutableListOf())).also {
+ checkKnown("modelTypes", it).add(modelType)
+ }
+ }
+
+ /** What the system in this project is intended to do. */
+ fun purpose(purpose: String?) = purpose(JsonField.ofNullable(purpose))
+
+ /** Alias for calling [Builder.purpose] with `purpose.orElse(null)`. */
+ fun purpose(purpose: Optional) = purpose(purpose.getOrNull())
+
+ /**
+ * Sets [Builder.purpose] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.purpose] with a well-typed [String] value instead.
+ * This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun purpose(purpose: JsonField) = apply { this.purpose = purpose }
+
fun additionalProperties(additionalProperties: Map) = apply {
this.additionalProperties.clear()
putAllAdditionalProperties(additionalProperties)
@@ -7525,8 +7715,12 @@ private constructor(
checkRequired("taskType", taskType),
checkRequired("versionCount", versionCount),
checkRequired("workspaceId", workspaceId),
+ dataRetentionDays,
description,
gitRepo,
+ modelDeveloper,
+ (modelTypes ?: JsonMissing.of()).map { it.toImmutable() },
+ purpose,
additionalProperties.toMutableMap(),
)
}
@@ -7561,8 +7755,12 @@ private constructor(
taskType().validate()
versionCount()
workspaceId()
+ dataRetentionDays()
description()
gitRepo().ifPresent { it.validate() }
+ modelDeveloper()
+ modelTypes()
+ purpose()
validated = true
}
@@ -7596,8 +7794,12 @@ private constructor(
(taskType.asKnown().getOrNull()?.validity() ?: 0) +
(if (versionCount.asKnown().isPresent) 1 else 0) +
(if (workspaceId.asKnown().isPresent) 1 else 0) +
+ (if (dataRetentionDays.asKnown().isPresent) 1 else 0) +
(if (description.asKnown().isPresent) 1 else 0) +
- (gitRepo.asKnown().getOrNull()?.validity() ?: 0)
+ (gitRepo.asKnown().getOrNull()?.validity() ?: 0) +
+ (if (modelDeveloper.asKnown().isPresent) 1 else 0) +
+ (modelTypes.asKnown().getOrNull()?.size ?: 0) +
+ (if (purpose.asKnown().isPresent) 1 else 0)
/** Links to the project. */
class Links
@@ -8701,8 +8903,12 @@ private constructor(
taskType == other.taskType &&
versionCount == other.versionCount &&
workspaceId == other.workspaceId &&
+ dataRetentionDays == other.dataRetentionDays &&
description == other.description &&
gitRepo == other.gitRepo &&
+ modelDeveloper == other.modelDeveloper &&
+ modelTypes == other.modelTypes &&
+ purpose == other.purpose &&
additionalProperties == other.additionalProperties
}
@@ -8722,8 +8928,12 @@ private constructor(
taskType,
versionCount,
workspaceId,
+ dataRetentionDays,
description,
gitRepo,
+ modelDeveloper,
+ modelTypes,
+ purpose,
additionalProperties,
)
}
@@ -8731,7 +8941,7 @@ private constructor(
override fun hashCode(): Int = hashCode
override fun toString() =
- "Project{id=$id, creatorId=$creatorId, dateCreated=$dateCreated, dateUpdated=$dateUpdated, developmentGoalCount=$developmentGoalCount, goalCount=$goalCount, inferencePipelineCount=$inferencePipelineCount, links=$links, monitoringGoalCount=$monitoringGoalCount, name=$name, source=$source, taskType=$taskType, versionCount=$versionCount, workspaceId=$workspaceId, description=$description, gitRepo=$gitRepo, additionalProperties=$additionalProperties}"
+ "Project{id=$id, creatorId=$creatorId, dateCreated=$dateCreated, dateUpdated=$dateUpdated, developmentGoalCount=$developmentGoalCount, goalCount=$goalCount, inferencePipelineCount=$inferencePipelineCount, links=$links, monitoringGoalCount=$monitoringGoalCount, name=$name, source=$source, taskType=$taskType, versionCount=$versionCount, workspaceId=$workspaceId, dataRetentionDays=$dataRetentionDays, description=$description, gitRepo=$gitRepo, modelDeveloper=$modelDeveloper, modelTypes=$modelTypes, purpose=$purpose, additionalProperties=$additionalProperties}"
}
class Workspace
diff --git a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/inferencepipelines/InferencePipelineUpdateResponse.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/inferencepipelines/InferencePipelineUpdateResponse.kt
index 5d46c0e8..193ba8a9 100644
--- a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/inferencepipelines/InferencePipelineUpdateResponse.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/inferencepipelines/InferencePipelineUpdateResponse.kt
@@ -6836,8 +6836,12 @@ private constructor(
private val taskType: JsonField,
private val versionCount: JsonField,
private val workspaceId: JsonField,
+ private val dataRetentionDays: JsonField,
private val description: JsonField,
private val gitRepo: JsonField,
+ private val modelDeveloper: JsonField,
+ private val modelTypes: JsonField>,
+ private val purpose: JsonField,
private val additionalProperties: MutableMap,
) {
@@ -6877,10 +6881,20 @@ private constructor(
@JsonProperty("workspaceId")
@ExcludeMissing
workspaceId: JsonField = JsonMissing.of(),
+ @JsonProperty("dataRetentionDays")
+ @ExcludeMissing
+ dataRetentionDays: JsonField = JsonMissing.of(),
@JsonProperty("description")
@ExcludeMissing
description: JsonField = JsonMissing.of(),
@JsonProperty("gitRepo") @ExcludeMissing gitRepo: JsonField = JsonMissing.of(),
+ @JsonProperty("modelDeveloper")
+ @ExcludeMissing
+ modelDeveloper: JsonField = JsonMissing.of(),
+ @JsonProperty("modelTypes")
+ @ExcludeMissing
+ modelTypes: JsonField> = JsonMissing.of(),
+ @JsonProperty("purpose") @ExcludeMissing purpose: JsonField = JsonMissing.of(),
) : this(
id,
creatorId,
@@ -6896,8 +6910,12 @@ private constructor(
taskType,
versionCount,
workspaceId,
+ dataRetentionDays,
description,
gitRepo,
+ modelDeveloper,
+ modelTypes,
+ purpose,
mutableMapOf(),
)
@@ -7014,6 +7032,15 @@ private constructor(
*/
fun workspaceId(): Optional = workspaceId.getOptional("workspaceId")
+ /**
+ * Number of days to retain monitoring data for this project. Null means data is retained
+ * indefinitely.
+ *
+ * @throws OpenlayerInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
+ */
+ fun dataRetentionDays(): Optional = dataRetentionDays.getOptional("dataRetentionDays")
+
/**
* The project description.
*
@@ -7028,6 +7055,30 @@ private constructor(
*/
fun gitRepo(): Optional = gitRepo.getOptional("gitRepo")
+ /**
+ * Who developed the model used in this project.
+ *
+ * @throws OpenlayerInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
+ */
+ fun modelDeveloper(): Optional = modelDeveloper.getOptional("modelDeveloper")
+
+ /**
+ * The kinds of model used in this project.
+ *
+ * @throws OpenlayerInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
+ */
+ fun modelTypes(): Optional> = modelTypes.getOptional("modelTypes")
+
+ /**
+ * What the system in this project is intended to do.
+ *
+ * @throws OpenlayerInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
+ */
+ fun purpose(): Optional = purpose.getOptional("purpose")
+
/**
* Returns the raw JSON value of [id].
*
@@ -7144,6 +7195,16 @@ private constructor(
@ExcludeMissing
fun _workspaceId(): JsonField = workspaceId
+ /**
+ * Returns the raw JSON value of [dataRetentionDays].
+ *
+ * Unlike [dataRetentionDays], this method doesn't throw if the JSON field has an unexpected
+ * type.
+ */
+ @JsonProperty("dataRetentionDays")
+ @ExcludeMissing
+ fun _dataRetentionDays(): JsonField = dataRetentionDays
+
/**
* Returns the raw JSON value of [description].
*
@@ -7160,6 +7221,32 @@ private constructor(
*/
@JsonProperty("gitRepo") @ExcludeMissing fun _gitRepo(): JsonField = gitRepo
+ /**
+ * Returns the raw JSON value of [modelDeveloper].
+ *
+ * Unlike [modelDeveloper], this method doesn't throw if the JSON field has an unexpected
+ * type.
+ */
+ @JsonProperty("modelDeveloper")
+ @ExcludeMissing
+ fun _modelDeveloper(): JsonField = modelDeveloper
+
+ /**
+ * Returns the raw JSON value of [modelTypes].
+ *
+ * Unlike [modelTypes], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ @JsonProperty("modelTypes")
+ @ExcludeMissing
+ fun _modelTypes(): JsonField> = modelTypes
+
+ /**
+ * Returns the raw JSON value of [purpose].
+ *
+ * Unlike [purpose], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ @JsonProperty("purpose") @ExcludeMissing fun _purpose(): JsonField = purpose
+
@JsonAnySetter
private fun putAdditionalProperty(key: String, value: JsonValue) {
additionalProperties.put(key, value)
@@ -7215,8 +7302,12 @@ private constructor(
private var taskType: JsonField? = null
private var versionCount: JsonField? = null
private var workspaceId: JsonField? = null
+ private var dataRetentionDays: JsonField = JsonMissing.of()
private var description: JsonField = JsonMissing.of()
private var gitRepo: JsonField = JsonMissing.of()
+ private var modelDeveloper: JsonField = JsonMissing.of()
+ private var modelTypes: JsonField>? = null
+ private var purpose: JsonField = JsonMissing.of()
private var additionalProperties: MutableMap = mutableMapOf()
@JvmSynthetic
@@ -7235,8 +7326,12 @@ private constructor(
taskType = project.taskType
versionCount = project.versionCount
workspaceId = project.workspaceId
+ dataRetentionDays = project.dataRetentionDays
description = project.description
gitRepo = project.gitRepo
+ modelDeveloper = project.modelDeveloper
+ modelTypes = project.modelTypes.map { it.toMutableList() }
+ purpose = project.purpose
additionalProperties = project.additionalProperties.toMutableMap()
}
@@ -7434,6 +7529,38 @@ private constructor(
this.workspaceId = workspaceId
}
+ /**
+ * Number of days to retain monitoring data for this project. Null means data is
+ * retained indefinitely.
+ */
+ fun dataRetentionDays(dataRetentionDays: Long?) =
+ dataRetentionDays(JsonField.ofNullable(dataRetentionDays))
+
+ /**
+ * Alias for [Builder.dataRetentionDays].
+ *
+ * This unboxed primitive overload exists for backwards compatibility.
+ */
+ fun dataRetentionDays(dataRetentionDays: Long) =
+ dataRetentionDays(dataRetentionDays as Long?)
+
+ /**
+ * Alias for calling [Builder.dataRetentionDays] with `dataRetentionDays.orElse(null)`.
+ */
+ fun dataRetentionDays(dataRetentionDays: Optional) =
+ dataRetentionDays(dataRetentionDays.getOrNull())
+
+ /**
+ * Sets [Builder.dataRetentionDays] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.dataRetentionDays] with a well-typed [Long] value
+ * instead. This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun dataRetentionDays(dataRetentionDays: JsonField) = apply {
+ this.dataRetentionDays = dataRetentionDays
+ }
+
/** The project description. */
fun description(description: String?) = description(JsonField.ofNullable(description))
@@ -7465,6 +7592,69 @@ private constructor(
*/
fun gitRepo(gitRepo: JsonField) = apply { this.gitRepo = gitRepo }
+ /** Who developed the model used in this project. */
+ fun modelDeveloper(modelDeveloper: String?) =
+ modelDeveloper(JsonField.ofNullable(modelDeveloper))
+
+ /** Alias for calling [Builder.modelDeveloper] with `modelDeveloper.orElse(null)`. */
+ fun modelDeveloper(modelDeveloper: Optional) =
+ modelDeveloper(modelDeveloper.getOrNull())
+
+ /**
+ * Sets [Builder.modelDeveloper] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.modelDeveloper] with a well-typed [String] value
+ * instead. This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun modelDeveloper(modelDeveloper: JsonField) = apply {
+ this.modelDeveloper = modelDeveloper
+ }
+
+ /** The kinds of model used in this project. */
+ fun modelTypes(modelTypes: List?) = modelTypes(JsonField.ofNullable(modelTypes))
+
+ /** Alias for calling [Builder.modelTypes] with `modelTypes.orElse(null)`. */
+ fun modelTypes(modelTypes: Optional>) = modelTypes(modelTypes.getOrNull())
+
+ /**
+ * Sets [Builder.modelTypes] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.modelTypes] with a well-typed `List` value
+ * instead. This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun modelTypes(modelTypes: JsonField>) = apply {
+ this.modelTypes = modelTypes.map { it.toMutableList() }
+ }
+
+ /**
+ * Adds a single [String] to [modelTypes].
+ *
+ * @throws IllegalStateException if the field was previously set to a non-list.
+ */
+ fun addModelType(modelType: String) = apply {
+ modelTypes =
+ (modelTypes ?: JsonField.of(mutableListOf())).also {
+ checkKnown("modelTypes", it).add(modelType)
+ }
+ }
+
+ /** What the system in this project is intended to do. */
+ fun purpose(purpose: String?) = purpose(JsonField.ofNullable(purpose))
+
+ /** Alias for calling [Builder.purpose] with `purpose.orElse(null)`. */
+ fun purpose(purpose: Optional) = purpose(purpose.getOrNull())
+
+ /**
+ * Sets [Builder.purpose] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.purpose] with a well-typed [String] value instead.
+ * This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun purpose(purpose: JsonField) = apply { this.purpose = purpose }
+
fun additionalProperties(additionalProperties: Map) = apply {
this.additionalProperties.clear()
putAllAdditionalProperties(additionalProperties)
@@ -7525,8 +7715,12 @@ private constructor(
checkRequired("taskType", taskType),
checkRequired("versionCount", versionCount),
checkRequired("workspaceId", workspaceId),
+ dataRetentionDays,
description,
gitRepo,
+ modelDeveloper,
+ (modelTypes ?: JsonMissing.of()).map { it.toImmutable() },
+ purpose,
additionalProperties.toMutableMap(),
)
}
@@ -7561,8 +7755,12 @@ private constructor(
taskType().validate()
versionCount()
workspaceId()
+ dataRetentionDays()
description()
gitRepo().ifPresent { it.validate() }
+ modelDeveloper()
+ modelTypes()
+ purpose()
validated = true
}
@@ -7596,8 +7794,12 @@ private constructor(
(taskType.asKnown().getOrNull()?.validity() ?: 0) +
(if (versionCount.asKnown().isPresent) 1 else 0) +
(if (workspaceId.asKnown().isPresent) 1 else 0) +
+ (if (dataRetentionDays.asKnown().isPresent) 1 else 0) +
(if (description.asKnown().isPresent) 1 else 0) +
- (gitRepo.asKnown().getOrNull()?.validity() ?: 0)
+ (gitRepo.asKnown().getOrNull()?.validity() ?: 0) +
+ (if (modelDeveloper.asKnown().isPresent) 1 else 0) +
+ (modelTypes.asKnown().getOrNull()?.size ?: 0) +
+ (if (purpose.asKnown().isPresent) 1 else 0)
/** Links to the project. */
class Links
@@ -8701,8 +8903,12 @@ private constructor(
taskType == other.taskType &&
versionCount == other.versionCount &&
workspaceId == other.workspaceId &&
+ dataRetentionDays == other.dataRetentionDays &&
description == other.description &&
gitRepo == other.gitRepo &&
+ modelDeveloper == other.modelDeveloper &&
+ modelTypes == other.modelTypes &&
+ purpose == other.purpose &&
additionalProperties == other.additionalProperties
}
@@ -8722,8 +8928,12 @@ private constructor(
taskType,
versionCount,
workspaceId,
+ dataRetentionDays,
description,
gitRepo,
+ modelDeveloper,
+ modelTypes,
+ purpose,
additionalProperties,
)
}
@@ -8731,7 +8941,7 @@ private constructor(
override fun hashCode(): Int = hashCode
override fun toString() =
- "Project{id=$id, creatorId=$creatorId, dateCreated=$dateCreated, dateUpdated=$dateUpdated, developmentGoalCount=$developmentGoalCount, goalCount=$goalCount, inferencePipelineCount=$inferencePipelineCount, links=$links, monitoringGoalCount=$monitoringGoalCount, name=$name, source=$source, taskType=$taskType, versionCount=$versionCount, workspaceId=$workspaceId, description=$description, gitRepo=$gitRepo, additionalProperties=$additionalProperties}"
+ "Project{id=$id, creatorId=$creatorId, dateCreated=$dateCreated, dateUpdated=$dateUpdated, developmentGoalCount=$developmentGoalCount, goalCount=$goalCount, inferencePipelineCount=$inferencePipelineCount, links=$links, monitoringGoalCount=$monitoringGoalCount, name=$name, source=$source, taskType=$taskType, versionCount=$versionCount, workspaceId=$workspaceId, dataRetentionDays=$dataRetentionDays, description=$description, gitRepo=$gitRepo, modelDeveloper=$modelDeveloper, modelTypes=$modelTypes, purpose=$purpose, additionalProperties=$additionalProperties}"
}
class Workspace
diff --git a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/projects/ProjectCreateParams.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/projects/ProjectCreateParams.kt
index 56ecdcb6..950cd7f8 100644
--- a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/projects/ProjectCreateParams.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/projects/ProjectCreateParams.kt
@@ -12,9 +12,11 @@ import com.openlayer.api.core.JsonField
import com.openlayer.api.core.JsonMissing
import com.openlayer.api.core.JsonValue
import com.openlayer.api.core.Params
+import com.openlayer.api.core.checkKnown
import com.openlayer.api.core.checkRequired
import com.openlayer.api.core.http.Headers
import com.openlayer.api.core.http.QueryParams
+import com.openlayer.api.core.toImmutable
import com.openlayer.api.errors.OpenlayerInvalidDataException
import java.time.OffsetDateTime
import java.util.Collections
@@ -142,6 +144,15 @@ private constructor(
*/
fun workspaceId(): Optional = body.workspaceId()
+ /**
+ * Number of days to retain monitoring data for this project. Null means data is retained
+ * indefinitely.
+ *
+ * @throws OpenlayerInvalidDataException if the JSON field has an unexpected type (e.g. if the
+ * server responded with an unexpected value).
+ */
+ fun dataRetentionDays(): Optional = body.dataRetentionDays()
+
/**
* The project description.
*
@@ -156,6 +167,30 @@ private constructor(
*/
fun gitRepo(): Optional = body.gitRepo()
+ /**
+ * Who developed the model used in this project.
+ *
+ * @throws OpenlayerInvalidDataException if the JSON field has an unexpected type (e.g. if the
+ * server responded with an unexpected value).
+ */
+ fun modelDeveloper(): Optional = body.modelDeveloper()
+
+ /**
+ * The kinds of model used in this project.
+ *
+ * @throws OpenlayerInvalidDataException if the JSON field has an unexpected type (e.g. if the
+ * server responded with an unexpected value).
+ */
+ fun modelTypes(): Optional> = body.modelTypes()
+
+ /**
+ * What the system in this project is intended to do.
+ *
+ * @throws OpenlayerInvalidDataException if the JSON field has an unexpected type (e.g. if the
+ * server responded with an unexpected value).
+ */
+ fun purpose(): Optional = body.purpose()
+
/**
* Returns the raw JSON value of [id].
*
@@ -257,6 +292,14 @@ private constructor(
*/
fun _workspaceId(): JsonField = body._workspaceId()
+ /**
+ * Returns the raw JSON value of [dataRetentionDays].
+ *
+ * Unlike [dataRetentionDays], this method doesn't throw if the JSON field has an unexpected
+ * type.
+ */
+ fun _dataRetentionDays(): JsonField = body._dataRetentionDays()
+
/**
* Returns the raw JSON value of [description].
*
@@ -271,6 +314,27 @@ private constructor(
*/
fun _gitRepo(): JsonField = body._gitRepo()
+ /**
+ * Returns the raw JSON value of [modelDeveloper].
+ *
+ * Unlike [modelDeveloper], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ fun _modelDeveloper(): JsonField = body._modelDeveloper()
+
+ /**
+ * Returns the raw JSON value of [modelTypes].
+ *
+ * Unlike [modelTypes], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ fun _modelTypes(): JsonField> = body._modelTypes()
+
+ /**
+ * Returns the raw JSON value of [purpose].
+ *
+ * Unlike [purpose], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ fun _purpose(): JsonField = body._purpose()
+
fun _additionalBodyProperties(): Map = body._additionalProperties()
/** Additional headers to send with the request. */
@@ -523,6 +587,37 @@ private constructor(
*/
fun workspaceId(workspaceId: JsonField) = apply { body.workspaceId(workspaceId) }
+ /**
+ * Number of days to retain monitoring data for this project. Null means data is retained
+ * indefinitely.
+ */
+ fun dataRetentionDays(dataRetentionDays: Long?) = apply {
+ body.dataRetentionDays(dataRetentionDays)
+ }
+
+ /**
+ * Alias for [Builder.dataRetentionDays].
+ *
+ * This unboxed primitive overload exists for backwards compatibility.
+ */
+ fun dataRetentionDays(dataRetentionDays: Long) =
+ dataRetentionDays(dataRetentionDays as Long?)
+
+ /** Alias for calling [Builder.dataRetentionDays] with `dataRetentionDays.orElse(null)`. */
+ fun dataRetentionDays(dataRetentionDays: Optional) =
+ dataRetentionDays(dataRetentionDays.getOrNull())
+
+ /**
+ * Sets [Builder.dataRetentionDays] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.dataRetentionDays] with a well-typed [Long] value
+ * instead. This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun dataRetentionDays(dataRetentionDays: JsonField) = apply {
+ body.dataRetentionDays(dataRetentionDays)
+ }
+
/** The project description. */
fun description(description: String?) = apply { body.description(description) }
@@ -551,6 +646,60 @@ private constructor(
*/
fun gitRepo(gitRepo: JsonField) = apply { body.gitRepo(gitRepo) }
+ /** Who developed the model used in this project. */
+ fun modelDeveloper(modelDeveloper: String?) = apply { body.modelDeveloper(modelDeveloper) }
+
+ /** Alias for calling [Builder.modelDeveloper] with `modelDeveloper.orElse(null)`. */
+ fun modelDeveloper(modelDeveloper: Optional) =
+ modelDeveloper(modelDeveloper.getOrNull())
+
+ /**
+ * Sets [Builder.modelDeveloper] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.modelDeveloper] with a well-typed [String] value
+ * instead. This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun modelDeveloper(modelDeveloper: JsonField) = apply {
+ body.modelDeveloper(modelDeveloper)
+ }
+
+ /** The kinds of model used in this project. */
+ fun modelTypes(modelTypes: List?) = apply { body.modelTypes(modelTypes) }
+
+ /** Alias for calling [Builder.modelTypes] with `modelTypes.orElse(null)`. */
+ fun modelTypes(modelTypes: Optional>) = modelTypes(modelTypes.getOrNull())
+
+ /**
+ * Sets [Builder.modelTypes] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.modelTypes] with a well-typed `List` value
+ * instead. This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun modelTypes(modelTypes: JsonField>) = apply { body.modelTypes(modelTypes) }
+
+ /**
+ * Adds a single [String] to [modelTypes].
+ *
+ * @throws IllegalStateException if the field was previously set to a non-list.
+ */
+ fun addModelType(modelType: String) = apply { body.addModelType(modelType) }
+
+ /** What the system in this project is intended to do. */
+ fun purpose(purpose: String?) = apply { body.purpose(purpose) }
+
+ /** Alias for calling [Builder.purpose] with `purpose.orElse(null)`. */
+ fun purpose(purpose: Optional) = purpose(purpose.getOrNull())
+
+ /**
+ * Sets [Builder.purpose] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.purpose] with a well-typed [String] value instead. This
+ * method is primarily for setting the field to an undocumented or not yet supported value.
+ */
+ fun purpose(purpose: JsonField) = apply { body.purpose(purpose) }
+
fun additionalBodyProperties(additionalBodyProperties: Map) = apply {
body.additionalProperties(additionalBodyProperties)
}
@@ -724,8 +873,12 @@ private constructor(
private val taskType: JsonField,
private val versionCount: JsonField,
private val workspaceId: JsonField,
+ private val dataRetentionDays: JsonField,
private val description: JsonField,
private val gitRepo: JsonField,
+ private val modelDeveloper: JsonField,
+ private val modelTypes: JsonField>,
+ private val purpose: JsonField,
private val additionalProperties: MutableMap,
) {
@@ -765,10 +918,20 @@ private constructor(
@JsonProperty("workspaceId")
@ExcludeMissing
workspaceId: JsonField = JsonMissing.of(),
+ @JsonProperty("dataRetentionDays")
+ @ExcludeMissing
+ dataRetentionDays: JsonField = JsonMissing.of(),
@JsonProperty("description")
@ExcludeMissing
description: JsonField = JsonMissing.of(),
@JsonProperty("gitRepo") @ExcludeMissing gitRepo: JsonField = JsonMissing.of(),
+ @JsonProperty("modelDeveloper")
+ @ExcludeMissing
+ modelDeveloper: JsonField = JsonMissing.of(),
+ @JsonProperty("modelTypes")
+ @ExcludeMissing
+ modelTypes: JsonField> = JsonMissing.of(),
+ @JsonProperty("purpose") @ExcludeMissing purpose: JsonField = JsonMissing.of(),
) : this(
id,
creatorId,
@@ -784,8 +947,12 @@ private constructor(
taskType,
versionCount,
workspaceId,
+ dataRetentionDays,
description,
gitRepo,
+ modelDeveloper,
+ modelTypes,
+ purpose,
mutableMapOf(),
)
@@ -902,6 +1069,15 @@ private constructor(
*/
fun workspaceId(): Optional = workspaceId.getOptional("workspaceId")
+ /**
+ * Number of days to retain monitoring data for this project. Null means data is retained
+ * indefinitely.
+ *
+ * @throws OpenlayerInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
+ */
+ fun dataRetentionDays(): Optional = dataRetentionDays.getOptional("dataRetentionDays")
+
/**
* The project description.
*
@@ -916,6 +1092,30 @@ private constructor(
*/
fun gitRepo(): Optional = gitRepo.getOptional("gitRepo")
+ /**
+ * Who developed the model used in this project.
+ *
+ * @throws OpenlayerInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
+ */
+ fun modelDeveloper(): Optional = modelDeveloper.getOptional("modelDeveloper")
+
+ /**
+ * The kinds of model used in this project.
+ *
+ * @throws OpenlayerInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
+ */
+ fun modelTypes(): Optional> = modelTypes.getOptional("modelTypes")
+
+ /**
+ * What the system in this project is intended to do.
+ *
+ * @throws OpenlayerInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
+ */
+ fun purpose(): Optional = purpose.getOptional("purpose")
+
/**
* Returns the raw JSON value of [id].
*
@@ -1032,6 +1232,16 @@ private constructor(
@ExcludeMissing
fun _workspaceId(): JsonField = workspaceId
+ /**
+ * Returns the raw JSON value of [dataRetentionDays].
+ *
+ * Unlike [dataRetentionDays], this method doesn't throw if the JSON field has an unexpected
+ * type.
+ */
+ @JsonProperty("dataRetentionDays")
+ @ExcludeMissing
+ fun _dataRetentionDays(): JsonField = dataRetentionDays
+
/**
* Returns the raw JSON value of [description].
*
@@ -1048,6 +1258,32 @@ private constructor(
*/
@JsonProperty("gitRepo") @ExcludeMissing fun _gitRepo(): JsonField = gitRepo
+ /**
+ * Returns the raw JSON value of [modelDeveloper].
+ *
+ * Unlike [modelDeveloper], this method doesn't throw if the JSON field has an unexpected
+ * type.
+ */
+ @JsonProperty("modelDeveloper")
+ @ExcludeMissing
+ fun _modelDeveloper(): JsonField = modelDeveloper
+
+ /**
+ * Returns the raw JSON value of [modelTypes].
+ *
+ * Unlike [modelTypes], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ @JsonProperty("modelTypes")
+ @ExcludeMissing
+ fun _modelTypes(): JsonField> = modelTypes
+
+ /**
+ * Returns the raw JSON value of [purpose].
+ *
+ * Unlike [purpose], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ @JsonProperty("purpose") @ExcludeMissing fun _purpose(): JsonField = purpose
+
@JsonAnySetter
private fun putAdditionalProperty(key: String, value: JsonValue) {
additionalProperties.put(key, value)
@@ -1103,8 +1339,12 @@ private constructor(
private var taskType: JsonField? = null
private var versionCount: JsonField? = null
private var workspaceId: JsonField? = null
+ private var dataRetentionDays: JsonField = JsonMissing.of()
private var description: JsonField = JsonMissing.of()
private var gitRepo: JsonField = JsonMissing.of()
+ private var modelDeveloper: JsonField = JsonMissing.of()
+ private var modelTypes: JsonField>? = null
+ private var purpose: JsonField = JsonMissing.of()
private var additionalProperties: MutableMap = mutableMapOf()
@JvmSynthetic
@@ -1123,8 +1363,12 @@ private constructor(
taskType = body.taskType
versionCount = body.versionCount
workspaceId = body.workspaceId
+ dataRetentionDays = body.dataRetentionDays
description = body.description
gitRepo = body.gitRepo
+ modelDeveloper = body.modelDeveloper
+ modelTypes = body.modelTypes.map { it.toMutableList() }
+ purpose = body.purpose
additionalProperties = body.additionalProperties.toMutableMap()
}
@@ -1322,6 +1566,38 @@ private constructor(
this.workspaceId = workspaceId
}
+ /**
+ * Number of days to retain monitoring data for this project. Null means data is
+ * retained indefinitely.
+ */
+ fun dataRetentionDays(dataRetentionDays: Long?) =
+ dataRetentionDays(JsonField.ofNullable(dataRetentionDays))
+
+ /**
+ * Alias for [Builder.dataRetentionDays].
+ *
+ * This unboxed primitive overload exists for backwards compatibility.
+ */
+ fun dataRetentionDays(dataRetentionDays: Long) =
+ dataRetentionDays(dataRetentionDays as Long?)
+
+ /**
+ * Alias for calling [Builder.dataRetentionDays] with `dataRetentionDays.orElse(null)`.
+ */
+ fun dataRetentionDays(dataRetentionDays: Optional) =
+ dataRetentionDays(dataRetentionDays.getOrNull())
+
+ /**
+ * Sets [Builder.dataRetentionDays] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.dataRetentionDays] with a well-typed [Long] value
+ * instead. This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun dataRetentionDays(dataRetentionDays: JsonField) = apply {
+ this.dataRetentionDays = dataRetentionDays
+ }
+
/** The project description. */
fun description(description: String?) = description(JsonField.ofNullable(description))
@@ -1353,6 +1629,69 @@ private constructor(
*/
fun gitRepo(gitRepo: JsonField) = apply { this.gitRepo = gitRepo }
+ /** Who developed the model used in this project. */
+ fun modelDeveloper(modelDeveloper: String?) =
+ modelDeveloper(JsonField.ofNullable(modelDeveloper))
+
+ /** Alias for calling [Builder.modelDeveloper] with `modelDeveloper.orElse(null)`. */
+ fun modelDeveloper(modelDeveloper: Optional) =
+ modelDeveloper(modelDeveloper.getOrNull())
+
+ /**
+ * Sets [Builder.modelDeveloper] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.modelDeveloper] with a well-typed [String] value
+ * instead. This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun modelDeveloper(modelDeveloper: JsonField) = apply {
+ this.modelDeveloper = modelDeveloper
+ }
+
+ /** The kinds of model used in this project. */
+ fun modelTypes(modelTypes: List?) = modelTypes(JsonField.ofNullable(modelTypes))
+
+ /** Alias for calling [Builder.modelTypes] with `modelTypes.orElse(null)`. */
+ fun modelTypes(modelTypes: Optional>) = modelTypes(modelTypes.getOrNull())
+
+ /**
+ * Sets [Builder.modelTypes] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.modelTypes] with a well-typed `List` value
+ * instead. This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun modelTypes(modelTypes: JsonField>) = apply {
+ this.modelTypes = modelTypes.map { it.toMutableList() }
+ }
+
+ /**
+ * Adds a single [String] to [modelTypes].
+ *
+ * @throws IllegalStateException if the field was previously set to a non-list.
+ */
+ fun addModelType(modelType: String) = apply {
+ modelTypes =
+ (modelTypes ?: JsonField.of(mutableListOf())).also {
+ checkKnown("modelTypes", it).add(modelType)
+ }
+ }
+
+ /** What the system in this project is intended to do. */
+ fun purpose(purpose: String?) = purpose(JsonField.ofNullable(purpose))
+
+ /** Alias for calling [Builder.purpose] with `purpose.orElse(null)`. */
+ fun purpose(purpose: Optional) = purpose(purpose.getOrNull())
+
+ /**
+ * Sets [Builder.purpose] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.purpose] with a well-typed [String] value instead.
+ * This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun purpose(purpose: JsonField) = apply { this.purpose = purpose }
+
fun additionalProperties(additionalProperties: Map) = apply {
this.additionalProperties.clear()
putAllAdditionalProperties(additionalProperties)
@@ -1413,8 +1752,12 @@ private constructor(
checkRequired("taskType", taskType),
checkRequired("versionCount", versionCount),
checkRequired("workspaceId", workspaceId),
+ dataRetentionDays,
description,
gitRepo,
+ modelDeveloper,
+ (modelTypes ?: JsonMissing.of()).map { it.toImmutable() },
+ purpose,
additionalProperties.toMutableMap(),
)
}
@@ -1449,8 +1792,12 @@ private constructor(
taskType().validate()
versionCount()
workspaceId()
+ dataRetentionDays()
description()
gitRepo().ifPresent { it.validate() }
+ modelDeveloper()
+ modelTypes()
+ purpose()
validated = true
}
@@ -1484,8 +1831,12 @@ private constructor(
(taskType.asKnown().getOrNull()?.validity() ?: 0) +
(if (versionCount.asKnown().isPresent) 1 else 0) +
(if (workspaceId.asKnown().isPresent) 1 else 0) +
+ (if (dataRetentionDays.asKnown().isPresent) 1 else 0) +
(if (description.asKnown().isPresent) 1 else 0) +
- (gitRepo.asKnown().getOrNull()?.validity() ?: 0)
+ (gitRepo.asKnown().getOrNull()?.validity() ?: 0) +
+ (if (modelDeveloper.asKnown().isPresent) 1 else 0) +
+ (modelTypes.asKnown().getOrNull()?.size ?: 0) +
+ (if (purpose.asKnown().isPresent) 1 else 0)
override fun equals(other: Any?): Boolean {
if (this === other) {
@@ -1507,8 +1858,12 @@ private constructor(
taskType == other.taskType &&
versionCount == other.versionCount &&
workspaceId == other.workspaceId &&
+ dataRetentionDays == other.dataRetentionDays &&
description == other.description &&
gitRepo == other.gitRepo &&
+ modelDeveloper == other.modelDeveloper &&
+ modelTypes == other.modelTypes &&
+ purpose == other.purpose &&
additionalProperties == other.additionalProperties
}
@@ -1528,8 +1883,12 @@ private constructor(
taskType,
versionCount,
workspaceId,
+ dataRetentionDays,
description,
gitRepo,
+ modelDeveloper,
+ modelTypes,
+ purpose,
additionalProperties,
)
}
@@ -1537,7 +1896,7 @@ private constructor(
override fun hashCode(): Int = hashCode
override fun toString() =
- "Body{id=$id, creatorId=$creatorId, dateCreated=$dateCreated, dateUpdated=$dateUpdated, developmentGoalCount=$developmentGoalCount, goalCount=$goalCount, inferencePipelineCount=$inferencePipelineCount, links=$links, monitoringGoalCount=$monitoringGoalCount, name=$name, source=$source, taskType=$taskType, versionCount=$versionCount, workspaceId=$workspaceId, description=$description, gitRepo=$gitRepo, additionalProperties=$additionalProperties}"
+ "Body{id=$id, creatorId=$creatorId, dateCreated=$dateCreated, dateUpdated=$dateUpdated, developmentGoalCount=$developmentGoalCount, goalCount=$goalCount, inferencePipelineCount=$inferencePipelineCount, links=$links, monitoringGoalCount=$monitoringGoalCount, name=$name, source=$source, taskType=$taskType, versionCount=$versionCount, workspaceId=$workspaceId, dataRetentionDays=$dataRetentionDays, description=$description, gitRepo=$gitRepo, modelDeveloper=$modelDeveloper, modelTypes=$modelTypes, purpose=$purpose, additionalProperties=$additionalProperties}"
}
/** Links to the project. */
diff --git a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/projects/ProjectCreateResponse.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/projects/ProjectCreateResponse.kt
index ec1d77e4..3ca748e3 100644
--- a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/projects/ProjectCreateResponse.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/projects/ProjectCreateResponse.kt
@@ -11,7 +11,9 @@ import com.openlayer.api.core.ExcludeMissing
import com.openlayer.api.core.JsonField
import com.openlayer.api.core.JsonMissing
import com.openlayer.api.core.JsonValue
+import com.openlayer.api.core.checkKnown
import com.openlayer.api.core.checkRequired
+import com.openlayer.api.core.toImmutable
import com.openlayer.api.errors.OpenlayerInvalidDataException
import java.time.OffsetDateTime
import java.util.Collections
@@ -36,8 +38,12 @@ private constructor(
private val taskType: JsonField,
private val versionCount: JsonField,
private val workspaceId: JsonField,
+ private val dataRetentionDays: JsonField,
private val description: JsonField,
private val gitRepo: JsonField,
+ private val modelDeveloper: JsonField,
+ private val modelTypes: JsonField>,
+ private val purpose: JsonField,
private val additionalProperties: MutableMap,
) {
@@ -71,10 +77,20 @@ private constructor(
@JsonProperty("workspaceId")
@ExcludeMissing
workspaceId: JsonField = JsonMissing.of(),
+ @JsonProperty("dataRetentionDays")
+ @ExcludeMissing
+ dataRetentionDays: JsonField = JsonMissing.of(),
@JsonProperty("description")
@ExcludeMissing
description: JsonField = JsonMissing.of(),
@JsonProperty("gitRepo") @ExcludeMissing gitRepo: JsonField = JsonMissing.of(),
+ @JsonProperty("modelDeveloper")
+ @ExcludeMissing
+ modelDeveloper: JsonField = JsonMissing.of(),
+ @JsonProperty("modelTypes")
+ @ExcludeMissing
+ modelTypes: JsonField> = JsonMissing.of(),
+ @JsonProperty("purpose") @ExcludeMissing purpose: JsonField = JsonMissing.of(),
) : this(
id,
creatorId,
@@ -90,8 +106,12 @@ private constructor(
taskType,
versionCount,
workspaceId,
+ dataRetentionDays,
description,
gitRepo,
+ modelDeveloper,
+ modelTypes,
+ purpose,
mutableMapOf(),
)
@@ -208,6 +228,15 @@ private constructor(
*/
fun workspaceId(): Optional = workspaceId.getOptional("workspaceId")
+ /**
+ * Number of days to retain monitoring data for this project. Null means data is retained
+ * indefinitely.
+ *
+ * @throws OpenlayerInvalidDataException if the JSON field has an unexpected type (e.g. if the
+ * server responded with an unexpected value).
+ */
+ fun dataRetentionDays(): Optional = dataRetentionDays.getOptional("dataRetentionDays")
+
/**
* The project description.
*
@@ -222,6 +251,30 @@ private constructor(
*/
fun gitRepo(): Optional = gitRepo.getOptional("gitRepo")
+ /**
+ * Who developed the model used in this project.
+ *
+ * @throws OpenlayerInvalidDataException if the JSON field has an unexpected type (e.g. if the
+ * server responded with an unexpected value).
+ */
+ fun modelDeveloper(): Optional = modelDeveloper.getOptional("modelDeveloper")
+
+ /**
+ * The kinds of model used in this project.
+ *
+ * @throws OpenlayerInvalidDataException if the JSON field has an unexpected type (e.g. if the
+ * server responded with an unexpected value).
+ */
+ fun modelTypes(): Optional> = modelTypes.getOptional("modelTypes")
+
+ /**
+ * What the system in this project is intended to do.
+ *
+ * @throws OpenlayerInvalidDataException if the JSON field has an unexpected type (e.g. if the
+ * server responded with an unexpected value).
+ */
+ fun purpose(): Optional = purpose.getOptional("purpose")
+
/**
* Returns the raw JSON value of [id].
*
@@ -335,6 +388,16 @@ private constructor(
*/
@JsonProperty("workspaceId") @ExcludeMissing fun _workspaceId(): JsonField = workspaceId
+ /**
+ * Returns the raw JSON value of [dataRetentionDays].
+ *
+ * Unlike [dataRetentionDays], this method doesn't throw if the JSON field has an unexpected
+ * type.
+ */
+ @JsonProperty("dataRetentionDays")
+ @ExcludeMissing
+ fun _dataRetentionDays(): JsonField = dataRetentionDays
+
/**
* Returns the raw JSON value of [description].
*
@@ -349,6 +412,31 @@ private constructor(
*/
@JsonProperty("gitRepo") @ExcludeMissing fun _gitRepo(): JsonField = gitRepo
+ /**
+ * Returns the raw JSON value of [modelDeveloper].
+ *
+ * Unlike [modelDeveloper], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ @JsonProperty("modelDeveloper")
+ @ExcludeMissing
+ fun _modelDeveloper(): JsonField = modelDeveloper
+
+ /**
+ * Returns the raw JSON value of [modelTypes].
+ *
+ * Unlike [modelTypes], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ @JsonProperty("modelTypes")
+ @ExcludeMissing
+ fun _modelTypes(): JsonField> = modelTypes
+
+ /**
+ * Returns the raw JSON value of [purpose].
+ *
+ * Unlike [purpose], this method doesn't throw if the JSON field has an unexpected type.
+ */
+ @JsonProperty("purpose") @ExcludeMissing fun _purpose(): JsonField = purpose
+
@JsonAnySetter
private fun putAdditionalProperty(key: String, value: JsonValue) {
additionalProperties.put(key, value)
@@ -404,8 +492,12 @@ private constructor(
private var taskType: JsonField? = null
private var versionCount: JsonField? = null
private var workspaceId: JsonField? = null
+ private var dataRetentionDays: JsonField = JsonMissing.of()
private var description: JsonField = JsonMissing.of()
private var gitRepo: JsonField = JsonMissing.of()
+ private var modelDeveloper: JsonField = JsonMissing.of()
+ private var modelTypes: JsonField>? = null
+ private var purpose: JsonField = JsonMissing.of()
private var additionalProperties: MutableMap = mutableMapOf()
@JvmSynthetic
@@ -424,8 +516,12 @@ private constructor(
taskType = projectCreateResponse.taskType
versionCount = projectCreateResponse.versionCount
workspaceId = projectCreateResponse.workspaceId
+ dataRetentionDays = projectCreateResponse.dataRetentionDays
description = projectCreateResponse.description
gitRepo = projectCreateResponse.gitRepo
+ modelDeveloper = projectCreateResponse.modelDeveloper
+ modelTypes = projectCreateResponse.modelTypes.map { it.toMutableList() }
+ purpose = projectCreateResponse.purpose
additionalProperties = projectCreateResponse.additionalProperties.toMutableMap()
}
@@ -614,6 +710,36 @@ private constructor(
*/
fun workspaceId(workspaceId: JsonField) = apply { this.workspaceId = workspaceId }
+ /**
+ * Number of days to retain monitoring data for this project. Null means data is retained
+ * indefinitely.
+ */
+ fun dataRetentionDays(dataRetentionDays: Long?) =
+ dataRetentionDays(JsonField.ofNullable(dataRetentionDays))
+
+ /**
+ * Alias for [Builder.dataRetentionDays].
+ *
+ * This unboxed primitive overload exists for backwards compatibility.
+ */
+ fun dataRetentionDays(dataRetentionDays: Long) =
+ dataRetentionDays(dataRetentionDays as Long?)
+
+ /** Alias for calling [Builder.dataRetentionDays] with `dataRetentionDays.orElse(null)`. */
+ fun dataRetentionDays(dataRetentionDays: Optional) =
+ dataRetentionDays(dataRetentionDays.getOrNull())
+
+ /**
+ * Sets [Builder.dataRetentionDays] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.dataRetentionDays] with a well-typed [Long] value
+ * instead. This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun dataRetentionDays(dataRetentionDays: JsonField) = apply {
+ this.dataRetentionDays = dataRetentionDays
+ }
+
/** The project description. */
fun description(description: String?) = description(JsonField.ofNullable(description))
@@ -642,6 +768,68 @@ private constructor(
*/
fun gitRepo(gitRepo: JsonField) = apply { this.gitRepo = gitRepo }
+ /** Who developed the model used in this project. */
+ fun modelDeveloper(modelDeveloper: String?) =
+ modelDeveloper(JsonField.ofNullable(modelDeveloper))
+
+ /** Alias for calling [Builder.modelDeveloper] with `modelDeveloper.orElse(null)`. */
+ fun modelDeveloper(modelDeveloper: Optional) =
+ modelDeveloper(modelDeveloper.getOrNull())
+
+ /**
+ * Sets [Builder.modelDeveloper] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.modelDeveloper] with a well-typed [String] value
+ * instead. This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun modelDeveloper(modelDeveloper: JsonField) = apply {
+ this.modelDeveloper = modelDeveloper
+ }
+
+ /** The kinds of model used in this project. */
+ fun modelTypes(modelTypes: List?) = modelTypes(JsonField.ofNullable(modelTypes))
+
+ /** Alias for calling [Builder.modelTypes] with `modelTypes.orElse(null)`. */
+ fun modelTypes(modelTypes: Optional>) = modelTypes(modelTypes.getOrNull())
+
+ /**
+ * Sets [Builder.modelTypes] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.modelTypes] with a well-typed `List` value
+ * instead. This method is primarily for setting the field to an undocumented or not yet
+ * supported value.
+ */
+ fun modelTypes(modelTypes: JsonField>) = apply {
+ this.modelTypes = modelTypes.map { it.toMutableList() }
+ }
+
+ /**
+ * Adds a single [String] to [modelTypes].
+ *
+ * @throws IllegalStateException if the field was previously set to a non-list.
+ */
+ fun addModelType(modelType: String) = apply {
+ modelTypes =
+ (modelTypes ?: JsonField.of(mutableListOf())).also {
+ checkKnown("modelTypes", it).add(modelType)
+ }
+ }
+
+ /** What the system in this project is intended to do. */
+ fun purpose(purpose: String?) = purpose(JsonField.ofNullable(purpose))
+
+ /** Alias for calling [Builder.purpose] with `purpose.orElse(null)`. */
+ fun purpose(purpose: Optional) = purpose(purpose.getOrNull())
+
+ /**
+ * Sets [Builder.purpose] to an arbitrary JSON value.
+ *
+ * You should usually call [Builder.purpose] with a well-typed [String] value instead. This
+ * method is primarily for setting the field to an undocumented or not yet supported value.
+ */
+ fun purpose(purpose: JsonField) = apply { this.purpose = purpose }
+
fun additionalProperties(additionalProperties: Map) = apply {
this.additionalProperties.clear()
putAllAdditionalProperties(additionalProperties)
@@ -702,8 +890,12 @@ private constructor(
checkRequired("taskType", taskType),
checkRequired("versionCount", versionCount),
checkRequired("workspaceId", workspaceId),
+ dataRetentionDays,
description,
gitRepo,
+ modelDeveloper,
+ (modelTypes ?: JsonMissing.of()).map { it.toImmutable() },
+ purpose,
additionalProperties.toMutableMap(),
)
}
@@ -737,8 +929,12 @@ private constructor(
taskType().validate()
versionCount()
workspaceId()
+ dataRetentionDays()
description()
gitRepo().ifPresent { it.validate() }
+ modelDeveloper()
+ modelTypes()
+ purpose()
validated = true
}
@@ -771,8 +967,12 @@ private constructor(
(taskType.asKnown().getOrNull()?.validity() ?: 0) +
(if (versionCount.asKnown().isPresent) 1 else 0) +
(if (workspaceId.asKnown().isPresent) 1 else 0) +
+ (if (dataRetentionDays.asKnown().isPresent) 1 else 0) +
(if (description.asKnown().isPresent) 1 else 0) +
- (gitRepo.asKnown().getOrNull()?.validity() ?: 0)
+ (gitRepo.asKnown().getOrNull()?.validity() ?: 0) +
+ (if (modelDeveloper.asKnown().isPresent) 1 else 0) +
+ (modelTypes.asKnown().getOrNull()?.size ?: 0) +
+ (if (purpose.asKnown().isPresent) 1 else 0)
/** Links to the project. */
class Links
@@ -1840,8 +2040,12 @@ private constructor(
taskType == other.taskType &&
versionCount == other.versionCount &&
workspaceId == other.workspaceId &&
+ dataRetentionDays == other.dataRetentionDays &&
description == other.description &&
gitRepo == other.gitRepo &&
+ modelDeveloper == other.modelDeveloper &&
+ modelTypes == other.modelTypes &&
+ purpose == other.purpose &&
additionalProperties == other.additionalProperties
}
@@ -1861,8 +2065,12 @@ private constructor(
taskType,
versionCount,
workspaceId,
+ dataRetentionDays,
description,
gitRepo,
+ modelDeveloper,
+ modelTypes,
+ purpose,
additionalProperties,
)
}
@@ -1870,5 +2078,5 @@ private constructor(
override fun hashCode(): Int = hashCode
override fun toString() =
- "ProjectCreateResponse{id=$id, creatorId=$creatorId, dateCreated=$dateCreated, dateUpdated=$dateUpdated, developmentGoalCount=$developmentGoalCount, goalCount=$goalCount, inferencePipelineCount=$inferencePipelineCount, links=$links, monitoringGoalCount=$monitoringGoalCount, name=$name, source=$source, taskType=$taskType, versionCount=$versionCount, workspaceId=$workspaceId, description=$description, gitRepo=$gitRepo, additionalProperties=$additionalProperties}"
+ "ProjectCreateResponse{id=$id, creatorId=$creatorId, dateCreated=$dateCreated, dateUpdated=$dateUpdated, developmentGoalCount=$developmentGoalCount, goalCount=$goalCount, inferencePipelineCount=$inferencePipelineCount, links=$links, monitoringGoalCount=$monitoringGoalCount, name=$name, source=$source, taskType=$taskType, versionCount=$versionCount, workspaceId=$workspaceId, dataRetentionDays=$dataRetentionDays, description=$description, gitRepo=$gitRepo, modelDeveloper=$modelDeveloper, modelTypes=$modelTypes, purpose=$purpose, additionalProperties=$additionalProperties}"
}
diff --git a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/projects/ProjectListResponse.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/projects/ProjectListResponse.kt
index 40b9490a..6949d350 100644
--- a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/projects/ProjectListResponse.kt
+++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/projects/ProjectListResponse.kt
@@ -197,8 +197,12 @@ private constructor(
private val taskType: JsonField,
private val versionCount: JsonField,
private val workspaceId: JsonField,
+ private val dataRetentionDays: JsonField,
private val description: JsonField,
private val gitRepo: JsonField,
+ private val modelDeveloper: JsonField,
+ private val modelTypes: JsonField>,
+ private val purpose: JsonField,
private val additionalProperties: MutableMap,
) {
@@ -238,10 +242,20 @@ private constructor(
@JsonProperty("workspaceId")
@ExcludeMissing
workspaceId: JsonField = JsonMissing.of(),
+ @JsonProperty("dataRetentionDays")
+ @ExcludeMissing
+ dataRetentionDays: JsonField = JsonMissing.of(),
@JsonProperty("description")
@ExcludeMissing
description: JsonField = JsonMissing.of(),
@JsonProperty("gitRepo") @ExcludeMissing gitRepo: JsonField = JsonMissing.of(),
+ @JsonProperty("modelDeveloper")
+ @ExcludeMissing
+ modelDeveloper: JsonField = JsonMissing.of(),
+ @JsonProperty("modelTypes")
+ @ExcludeMissing
+ modelTypes: JsonField> = JsonMissing.of(),
+ @JsonProperty("purpose") @ExcludeMissing purpose: JsonField = JsonMissing.of(),
) : this(
id,
creatorId,
@@ -257,8 +271,12 @@ private constructor(
taskType,
versionCount,
workspaceId,
+ dataRetentionDays,
description,
gitRepo,
+ modelDeveloper,
+ modelTypes,
+ purpose,
mutableMapOf(),
)
@@ -375,6 +393,15 @@ private constructor(
*/
fun workspaceId(): Optional = workspaceId.getOptional("workspaceId")
+ /**
+ * Number of days to retain monitoring data for this project. Null means data is retained
+ * indefinitely.
+ *
+ * @throws OpenlayerInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
+ */
+ fun dataRetentionDays(): Optional = dataRetentionDays.getOptional("dataRetentionDays")
+
/**
* The project description.
*
@@ -389,6 +416,30 @@ private constructor(
*/
fun gitRepo(): Optional = gitRepo.getOptional("gitRepo")
+ /**
+ * Who developed the model used in this project.
+ *
+ * @throws OpenlayerInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
+ */
+ fun modelDeveloper(): Optional = modelDeveloper.getOptional("modelDeveloper")
+
+ /**
+ * The kinds of model used in this project.
+ *
+ * @throws OpenlayerInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
+ */
+ fun modelTypes(): Optional> = modelTypes.getOptional("modelTypes")
+
+ /**
+ * What the system in this project is intended to do.
+ *
+ * @throws OpenlayerInvalidDataException if the JSON field has an unexpected type (e.g. if
+ * the server responded with an unexpected value).
+ */
+ fun purpose(): Optional = purpose.getOptional("purpose")
+
/**
* Returns the raw JSON value of [id].
*
@@ -505,6 +556,16 @@ private constructor(
@ExcludeMissing
fun _workspaceId(): JsonField