diff --git a/openlayer-java-core/src/main/kotlin/com/openlayer/api/core/http/QueryParams.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/core/http/QueryParams.kt index fdc3591..8810d78 100644 --- a/openlayer-java-core/src/main/kotlin/com/openlayer/api/core/http/QueryParams.kt +++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/core/http/QueryParams.kt @@ -1,3 +1,5 @@ +// File generated from our OpenAPI spec by Stainless. + package com.openlayer.api.core.http import com.openlayer.api.core.toImmutable diff --git a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/projects/commits/CommitCreateParams.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/projects/commits/CommitCreateParams.kt index 3bc7d1f..03135c9 100644 --- a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/projects/commits/CommitCreateParams.kt +++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/projects/commits/CommitCreateParams.kt @@ -27,13 +27,13 @@ import kotlin.jvm.optionals.getOrNull /** Create a new commit (project version) in a project. */ class CommitCreateParams private constructor( - private val projectId: String, + private val pathProjectId: String, private val body: Body, private val additionalHeaders: Headers, private val additionalQueryParams: QueryParams, ) : Params { - fun projectId(): String = projectId + fun pathProjectId(): String = pathProjectId /** * The project version (commit) id. @@ -97,7 +97,7 @@ private constructor( * @throws OpenlayerInvalidDataException if the JSON field has an unexpected type or is * unexpectedly missing or null (e.g. if the server responded with an unexpected value). */ - fun projectId(): String = body.projectId() + fun bodyProjectId(): String = body.bodyProjectId() /** * The commit status. Initially, the commit is `queued`, then, it switches to `running`. @@ -222,11 +222,11 @@ private constructor( fun _passingGoalCount(): JsonField = body._passingGoalCount() /** - * Returns the raw JSON value of [projectId]. + * Returns the raw JSON value of [bodyProjectId]. * - * Unlike [projectId], this method doesn't throw if the JSON field has an unexpected type. + * Unlike [bodyProjectId], this method doesn't throw if the JSON field has an unexpected type. */ - fun _projectId(): JsonField = body._projectId() + fun _bodyProjectId(): JsonField = body._bodyProjectId() /** * Returns the raw JSON value of [status]. @@ -308,7 +308,7 @@ private constructor( fun getPathParam(index: Int): String { return when (index) { - 0 -> projectId + 0 -> pathProjectId else -> "" } } @@ -338,7 +338,7 @@ private constructor( private val passingGoalCount: JsonField = JsonMissing.of(), @JsonProperty("projectId") @ExcludeMissing - private val projectId: JsonField = JsonMissing.of(), + private val bodyProjectId: JsonField = JsonMissing.of(), @JsonProperty("status") @ExcludeMissing private val status: JsonField = JsonMissing.of(), @@ -433,7 +433,7 @@ private constructor( * @throws OpenlayerInvalidDataException if the JSON field has an unexpected type or is * unexpectedly missing or null (e.g. if the server responded with an unexpected value). */ - fun projectId(): String = projectId.getRequired("projectId") + fun bodyProjectId(): String = bodyProjectId.getRequired("projectId") /** * The commit status. Initially, the commit is `queued`, then, it switches to `running`. @@ -571,11 +571,14 @@ private constructor( fun _passingGoalCount(): JsonField = passingGoalCount /** - * Returns the raw JSON value of [projectId]. + * Returns the raw JSON value of [bodyProjectId]. * - * Unlike [projectId], this method doesn't throw if the JSON field has an unexpected type. + * Unlike [bodyProjectId], this method doesn't throw if the JSON field has an unexpected + * type. */ - @JsonProperty("projectId") @ExcludeMissing fun _projectId(): JsonField = projectId + @JsonProperty("projectId") + @ExcludeMissing + fun _bodyProjectId(): JsonField = bodyProjectId /** * Returns the raw JSON value of [status]. @@ -675,7 +678,7 @@ private constructor( failingGoalCount() mlModelId() passingGoalCount() - projectId() + bodyProjectId() status() statusMessage() storageUri() @@ -704,7 +707,7 @@ private constructor( * .failingGoalCount() * .mlModelId() * .passingGoalCount() - * .projectId() + * .bodyProjectId() * .status() * .statusMessage() * .storageUri() @@ -726,7 +729,7 @@ private constructor( private var failingGoalCount: JsonField? = null private var mlModelId: JsonField? = null private var passingGoalCount: JsonField? = null - private var projectId: JsonField? = null + private var bodyProjectId: JsonField? = null private var status: JsonField? = null private var statusMessage: JsonField? = null private var storageUri: JsonField? = null @@ -747,7 +750,7 @@ private constructor( failingGoalCount = body.failingGoalCount mlModelId = body.mlModelId passingGoalCount = body.passingGoalCount - projectId = body.projectId + bodyProjectId = body.bodyProjectId status = body.status statusMessage = body.statusMessage storageUri = body.storageUri @@ -863,16 +866,18 @@ private constructor( } /** The project id. */ - fun projectId(projectId: String) = projectId(JsonField.of(projectId)) + fun bodyProjectId(bodyProjectId: String) = bodyProjectId(JsonField.of(bodyProjectId)) /** - * Sets [Builder.projectId] to an arbitrary JSON value. + * Sets [Builder.bodyProjectId] to an arbitrary JSON value. * - * You should usually call [Builder.projectId] with a well-typed [String] value instead. - * This method is primarily for setting the field to an undocumented or not yet + * You should usually call [Builder.bodyProjectId] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or not yet * supported value. */ - fun projectId(projectId: JsonField) = apply { this.projectId = projectId } + fun bodyProjectId(bodyProjectId: JsonField) = apply { + this.bodyProjectId = bodyProjectId + } /** * The commit status. Initially, the commit is `queued`, then, it switches to `running`. @@ -1053,7 +1058,7 @@ private constructor( checkRequired("failingGoalCount", failingGoalCount), checkRequired("mlModelId", mlModelId), checkRequired("passingGoalCount", passingGoalCount), - checkRequired("projectId", projectId), + checkRequired("bodyProjectId", bodyProjectId), checkRequired("status", status), checkRequired("statusMessage", statusMessage), checkRequired("storageUri", storageUri), @@ -1072,17 +1077,17 @@ private constructor( return true } - return /* spotless:off */ other is Body && id == other.id && commit == other.commit && dateArchived == other.dateArchived && dateCreated == other.dateCreated && failingGoalCount == other.failingGoalCount && mlModelId == other.mlModelId && passingGoalCount == other.passingGoalCount && projectId == other.projectId && status == other.status && statusMessage == other.statusMessage && storageUri == other.storageUri && totalGoalCount == other.totalGoalCount && trainingDatasetId == other.trainingDatasetId && validationDatasetId == other.validationDatasetId && archived == other.archived && deploymentStatus == other.deploymentStatus && links == other.links && additionalProperties == other.additionalProperties /* spotless:on */ + return /* spotless:off */ other is Body && id == other.id && commit == other.commit && dateArchived == other.dateArchived && dateCreated == other.dateCreated && failingGoalCount == other.failingGoalCount && mlModelId == other.mlModelId && passingGoalCount == other.passingGoalCount && bodyProjectId == other.bodyProjectId && status == other.status && statusMessage == other.statusMessage && storageUri == other.storageUri && totalGoalCount == other.totalGoalCount && trainingDatasetId == other.trainingDatasetId && validationDatasetId == other.validationDatasetId && archived == other.archived && deploymentStatus == other.deploymentStatus && links == other.links && additionalProperties == other.additionalProperties /* spotless:on */ } /* spotless:off */ - private val hashCode: Int by lazy { Objects.hash(id, commit, dateArchived, dateCreated, failingGoalCount, mlModelId, passingGoalCount, projectId, status, statusMessage, storageUri, totalGoalCount, trainingDatasetId, validationDatasetId, archived, deploymentStatus, links, additionalProperties) } + private val hashCode: Int by lazy { Objects.hash(id, commit, dateArchived, dateCreated, failingGoalCount, mlModelId, passingGoalCount, bodyProjectId, status, statusMessage, storageUri, totalGoalCount, trainingDatasetId, validationDatasetId, archived, deploymentStatus, links, additionalProperties) } /* spotless:on */ override fun hashCode(): Int = hashCode override fun toString() = - "Body{id=$id, commit=$commit, dateArchived=$dateArchived, dateCreated=$dateCreated, failingGoalCount=$failingGoalCount, mlModelId=$mlModelId, passingGoalCount=$passingGoalCount, projectId=$projectId, status=$status, statusMessage=$statusMessage, storageUri=$storageUri, totalGoalCount=$totalGoalCount, trainingDatasetId=$trainingDatasetId, validationDatasetId=$validationDatasetId, archived=$archived, deploymentStatus=$deploymentStatus, links=$links, additionalProperties=$additionalProperties}" + "Body{id=$id, commit=$commit, dateArchived=$dateArchived, dateCreated=$dateCreated, failingGoalCount=$failingGoalCount, mlModelId=$mlModelId, passingGoalCount=$passingGoalCount, bodyProjectId=$bodyProjectId, status=$status, statusMessage=$statusMessage, storageUri=$storageUri, totalGoalCount=$totalGoalCount, trainingDatasetId=$trainingDatasetId, validationDatasetId=$validationDatasetId, archived=$archived, deploymentStatus=$deploymentStatus, links=$links, additionalProperties=$additionalProperties}" } fun toBuilder() = Builder().from(this) @@ -1094,7 +1099,7 @@ private constructor( * * The following fields are required: * ```java - * .projectId() + * .pathProjectId() * .id() * .commit() * .dateArchived() @@ -1102,7 +1107,7 @@ private constructor( * .failingGoalCount() * .mlModelId() * .passingGoalCount() - * .projectId() + * .bodyProjectId() * .status() * .statusMessage() * .storageUri() @@ -1118,20 +1123,20 @@ private constructor( @NoAutoDetect class Builder internal constructor() { - private var projectId: String? = null + private var pathProjectId: String? = null private var body: Body.Builder = Body.builder() private var additionalHeaders: Headers.Builder = Headers.builder() private var additionalQueryParams: QueryParams.Builder = QueryParams.builder() @JvmSynthetic internal fun from(commitCreateParams: CommitCreateParams) = apply { - projectId = commitCreateParams.projectId + pathProjectId = commitCreateParams.pathProjectId body = commitCreateParams.body.toBuilder() additionalHeaders = commitCreateParams.additionalHeaders.toBuilder() additionalQueryParams = commitCreateParams.additionalQueryParams.toBuilder() } - fun projectId(projectId: String) = apply { this.projectId = projectId } + fun pathProjectId(pathProjectId: String) = apply { this.pathProjectId = pathProjectId } /** The project version (commit) id. */ fun id(id: String) = apply { body.id(id) } @@ -1235,16 +1240,18 @@ private constructor( } /** The project id. */ - fun projectId(projectId: String) = apply { body.projectId(projectId) } + fun bodyProjectId(bodyProjectId: String) = apply { body.bodyProjectId(bodyProjectId) } /** - * Sets [Builder.projectId] to an arbitrary JSON value. + * Sets [Builder.bodyProjectId] to an arbitrary JSON value. * - * You should usually call [Builder.projectId] with a well-typed [String] value instead. + * You should usually call [Builder.bodyProjectId] with a well-typed [String] value instead. * This method is primarily for setting the field to an undocumented or not yet supported * value. */ - fun projectId(projectId: JsonField) = apply { body.projectId(projectId) } + fun bodyProjectId(bodyProjectId: JsonField) = apply { + body.bodyProjectId(bodyProjectId) + } /** * The commit status. Initially, the commit is `queued`, then, it switches to `running`. @@ -1513,7 +1520,7 @@ private constructor( fun build(): CommitCreateParams = CommitCreateParams( - checkRequired("projectId", projectId), + checkRequired("pathProjectId", pathProjectId), body.build(), additionalHeaders.build(), additionalQueryParams.build(), @@ -2337,11 +2344,11 @@ private constructor( return true } - return /* spotless:off */ other is CommitCreateParams && projectId == other.projectId && body == other.body && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */ + return /* spotless:off */ other is CommitCreateParams && pathProjectId == other.pathProjectId && body == other.body && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */ } - override fun hashCode(): Int = /* spotless:off */ Objects.hash(projectId, body, additionalHeaders, additionalQueryParams) /* spotless:on */ + override fun hashCode(): Int = /* spotless:off */ Objects.hash(pathProjectId, body, additionalHeaders, additionalQueryParams) /* spotless:on */ override fun toString() = - "CommitCreateParams{projectId=$projectId, body=$body, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}" + "CommitCreateParams{pathProjectId=$pathProjectId, body=$body, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}" } diff --git a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/projects/inferencepipelines/InferencePipelineCreateParams.kt b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/projects/inferencepipelines/InferencePipelineCreateParams.kt index 02a82df..f1606c1 100644 --- a/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/projects/inferencepipelines/InferencePipelineCreateParams.kt +++ b/openlayer-java-core/src/main/kotlin/com/openlayer/api/models/projects/inferencepipelines/InferencePipelineCreateParams.kt @@ -29,13 +29,13 @@ import kotlin.jvm.optionals.getOrNull /** Create an inference pipeline in a project. */ class InferencePipelineCreateParams private constructor( - private val projectId: String, + private val pathProjectId: String, private val body: Body, private val additionalHeaders: Headers, private val additionalQueryParams: QueryParams, ) : Params { - fun projectId(): String = projectId + fun pathProjectId(): String = pathProjectId /** * The inference pipeline id. @@ -129,7 +129,7 @@ private constructor( * @throws OpenlayerInvalidDataException if the JSON field has an unexpected type or is * unexpectedly missing or null (e.g. if the server responded with an unexpected value). */ - fun projectId(): String = body.projectId() + fun bodyProjectId(): String = body.bodyProjectId() /** * The status of test evaluation for the inference pipeline. @@ -258,11 +258,11 @@ private constructor( fun _passingGoalCount(): JsonField = body._passingGoalCount() /** - * Returns the raw JSON value of [projectId]. + * Returns the raw JSON value of [bodyProjectId]. * - * Unlike [projectId], this method doesn't throw if the JSON field has an unexpected type. + * Unlike [bodyProjectId], this method doesn't throw if the JSON field has an unexpected type. */ - fun _projectId(): JsonField = body._projectId() + fun _bodyProjectId(): JsonField = body._bodyProjectId() /** * Returns the raw JSON value of [status]. @@ -320,7 +320,7 @@ private constructor( fun getPathParam(index: Int): String { return when (index) { - 0 -> projectId + 0 -> pathProjectId else -> "" } } @@ -362,7 +362,7 @@ private constructor( private val passingGoalCount: JsonField = JsonMissing.of(), @JsonProperty("projectId") @ExcludeMissing - private val projectId: JsonField = JsonMissing.of(), + private val bodyProjectId: JsonField = JsonMissing.of(), @JsonProperty("status") @ExcludeMissing private val status: JsonField = JsonMissing.of(), @@ -481,7 +481,7 @@ private constructor( * @throws OpenlayerInvalidDataException if the JSON field has an unexpected type or is * unexpectedly missing or null (e.g. if the server responded with an unexpected value). */ - fun projectId(): String = projectId.getRequired("projectId") + fun bodyProjectId(): String = bodyProjectId.getRequired("projectId") /** * The status of test evaluation for the inference pipeline. @@ -629,11 +629,14 @@ private constructor( fun _passingGoalCount(): JsonField = passingGoalCount /** - * Returns the raw JSON value of [projectId]. + * Returns the raw JSON value of [bodyProjectId]. * - * Unlike [projectId], this method doesn't throw if the JSON field has an unexpected type. + * Unlike [bodyProjectId], this method doesn't throw if the JSON field has an unexpected + * type. */ - @JsonProperty("projectId") @ExcludeMissing fun _projectId(): JsonField = projectId + @JsonProperty("projectId") + @ExcludeMissing + fun _bodyProjectId(): JsonField = bodyProjectId /** * Returns the raw JSON value of [status]. @@ -709,7 +712,7 @@ private constructor( links().validate() name() passingGoalCount() - projectId() + bodyProjectId() status() statusMessage() totalGoalCount() @@ -739,7 +742,7 @@ private constructor( * .links() * .name() * .passingGoalCount() - * .projectId() + * .bodyProjectId() * .status() * .statusMessage() * .totalGoalCount() @@ -762,7 +765,7 @@ private constructor( private var links: JsonField? = null private var name: JsonField? = null private var passingGoalCount: JsonField? = null - private var projectId: JsonField? = null + private var bodyProjectId: JsonField? = null private var status: JsonField? = null private var statusMessage: JsonField? = null private var totalGoalCount: JsonField? = null @@ -784,7 +787,7 @@ private constructor( links = body.links name = body.name passingGoalCount = body.passingGoalCount - projectId = body.projectId + bodyProjectId = body.bodyProjectId status = body.status statusMessage = body.statusMessage totalGoalCount = body.totalGoalCount @@ -970,16 +973,18 @@ private constructor( } /** The project id. */ - fun projectId(projectId: String) = projectId(JsonField.of(projectId)) + fun bodyProjectId(bodyProjectId: String) = bodyProjectId(JsonField.of(bodyProjectId)) /** - * Sets [Builder.projectId] to an arbitrary JSON value. + * Sets [Builder.bodyProjectId] to an arbitrary JSON value. * - * You should usually call [Builder.projectId] with a well-typed [String] value instead. - * This method is primarily for setting the field to an undocumented or not yet + * You should usually call [Builder.bodyProjectId] with a well-typed [String] value + * instead. This method is primarily for setting the field to an undocumented or not yet * supported value. */ - fun projectId(projectId: JsonField) = apply { this.projectId = projectId } + fun bodyProjectId(bodyProjectId: JsonField) = apply { + this.bodyProjectId = bodyProjectId + } /** The status of test evaluation for the inference pipeline. */ fun status(status: Status) = status(JsonField.of(status)) @@ -1100,7 +1105,7 @@ private constructor( checkRequired("links", links), checkRequired("name", name), checkRequired("passingGoalCount", passingGoalCount), - checkRequired("projectId", projectId), + checkRequired("bodyProjectId", bodyProjectId), checkRequired("status", status), checkRequired("statusMessage", statusMessage), checkRequired("totalGoalCount", totalGoalCount), @@ -1116,17 +1121,17 @@ private constructor( return true } - return /* spotless:off */ other is Body && id == other.id && dateCreated == other.dateCreated && dateLastEvaluated == other.dateLastEvaluated && dateLastSampleReceived == other.dateLastSampleReceived && dateOfNextEvaluation == other.dateOfNextEvaluation && dateUpdated == other.dateUpdated && description == other.description && failingGoalCount == other.failingGoalCount && links == other.links && name == other.name && passingGoalCount == other.passingGoalCount && projectId == other.projectId && status == other.status && statusMessage == other.statusMessage && totalGoalCount == other.totalGoalCount && project == other.project && workspace == other.workspace && workspaceId == other.workspaceId && additionalProperties == other.additionalProperties /* spotless:on */ + return /* spotless:off */ other is Body && id == other.id && dateCreated == other.dateCreated && dateLastEvaluated == other.dateLastEvaluated && dateLastSampleReceived == other.dateLastSampleReceived && dateOfNextEvaluation == other.dateOfNextEvaluation && dateUpdated == other.dateUpdated && description == other.description && failingGoalCount == other.failingGoalCount && links == other.links && name == other.name && passingGoalCount == other.passingGoalCount && bodyProjectId == other.bodyProjectId && status == other.status && statusMessage == other.statusMessage && totalGoalCount == other.totalGoalCount && project == other.project && workspace == other.workspace && workspaceId == other.workspaceId && additionalProperties == other.additionalProperties /* spotless:on */ } /* spotless:off */ - private val hashCode: Int by lazy { Objects.hash(id, dateCreated, dateLastEvaluated, dateLastSampleReceived, dateOfNextEvaluation, dateUpdated, description, failingGoalCount, links, name, passingGoalCount, projectId, status, statusMessage, totalGoalCount, project, workspace, workspaceId, additionalProperties) } + private val hashCode: Int by lazy { Objects.hash(id, dateCreated, dateLastEvaluated, dateLastSampleReceived, dateOfNextEvaluation, dateUpdated, description, failingGoalCount, links, name, passingGoalCount, bodyProjectId, status, statusMessage, totalGoalCount, project, workspace, workspaceId, additionalProperties) } /* spotless:on */ override fun hashCode(): Int = hashCode override fun toString() = - "Body{id=$id, dateCreated=$dateCreated, dateLastEvaluated=$dateLastEvaluated, dateLastSampleReceived=$dateLastSampleReceived, dateOfNextEvaluation=$dateOfNextEvaluation, dateUpdated=$dateUpdated, description=$description, failingGoalCount=$failingGoalCount, links=$links, name=$name, passingGoalCount=$passingGoalCount, projectId=$projectId, status=$status, statusMessage=$statusMessage, totalGoalCount=$totalGoalCount, project=$project, workspace=$workspace, workspaceId=$workspaceId, additionalProperties=$additionalProperties}" + "Body{id=$id, dateCreated=$dateCreated, dateLastEvaluated=$dateLastEvaluated, dateLastSampleReceived=$dateLastSampleReceived, dateOfNextEvaluation=$dateOfNextEvaluation, dateUpdated=$dateUpdated, description=$description, failingGoalCount=$failingGoalCount, links=$links, name=$name, passingGoalCount=$passingGoalCount, bodyProjectId=$bodyProjectId, status=$status, statusMessage=$statusMessage, totalGoalCount=$totalGoalCount, project=$project, workspace=$workspace, workspaceId=$workspaceId, additionalProperties=$additionalProperties}" } fun toBuilder() = Builder().from(this) @@ -1139,7 +1144,7 @@ private constructor( * * The following fields are required: * ```java - * .projectId() + * .pathProjectId() * .id() * .dateCreated() * .dateLastEvaluated() @@ -1151,7 +1156,7 @@ private constructor( * .links() * .name() * .passingGoalCount() - * .projectId() + * .bodyProjectId() * .status() * .statusMessage() * .totalGoalCount() @@ -1164,20 +1169,20 @@ private constructor( @NoAutoDetect class Builder internal constructor() { - private var projectId: String? = null + private var pathProjectId: String? = null private var body: Body.Builder = Body.builder() private var additionalHeaders: Headers.Builder = Headers.builder() private var additionalQueryParams: QueryParams.Builder = QueryParams.builder() @JvmSynthetic internal fun from(inferencePipelineCreateParams: InferencePipelineCreateParams) = apply { - projectId = inferencePipelineCreateParams.projectId + pathProjectId = inferencePipelineCreateParams.pathProjectId body = inferencePipelineCreateParams.body.toBuilder() additionalHeaders = inferencePipelineCreateParams.additionalHeaders.toBuilder() additionalQueryParams = inferencePipelineCreateParams.additionalQueryParams.toBuilder() } - fun projectId(projectId: String) = apply { this.projectId = projectId } + fun pathProjectId(pathProjectId: String) = apply { this.pathProjectId = pathProjectId } /** The inference pipeline id. */ fun id(id: String) = apply { body.id(id) } @@ -1353,16 +1358,18 @@ private constructor( } /** The project id. */ - fun projectId(projectId: String) = apply { body.projectId(projectId) } + fun bodyProjectId(bodyProjectId: String) = apply { body.bodyProjectId(bodyProjectId) } /** - * Sets [Builder.projectId] to an arbitrary JSON value. + * Sets [Builder.bodyProjectId] to an arbitrary JSON value. * - * You should usually call [Builder.projectId] with a well-typed [String] value instead. + * You should usually call [Builder.bodyProjectId] with a well-typed [String] value instead. * This method is primarily for setting the field to an undocumented or not yet supported * value. */ - fun projectId(projectId: JsonField) = apply { body.projectId(projectId) } + fun bodyProjectId(bodyProjectId: JsonField) = apply { + body.bodyProjectId(bodyProjectId) + } /** The status of test evaluation for the inference pipeline. */ fun status(status: Status) = apply { body.status(status) } @@ -1565,7 +1572,7 @@ private constructor( fun build(): InferencePipelineCreateParams = InferencePipelineCreateParams( - checkRequired("projectId", projectId), + checkRequired("pathProjectId", pathProjectId), body.build(), additionalHeaders.build(), additionalQueryParams.build(), @@ -4443,11 +4450,11 @@ private constructor( return true } - return /* spotless:off */ other is InferencePipelineCreateParams && projectId == other.projectId && body == other.body && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */ + return /* spotless:off */ other is InferencePipelineCreateParams && pathProjectId == other.pathProjectId && body == other.body && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */ } - override fun hashCode(): Int = /* spotless:off */ Objects.hash(projectId, body, additionalHeaders, additionalQueryParams) /* spotless:on */ + override fun hashCode(): Int = /* spotless:off */ Objects.hash(pathProjectId, body, additionalHeaders, additionalQueryParams) /* spotless:on */ override fun toString() = - "InferencePipelineCreateParams{projectId=$projectId, body=$body, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}" + "InferencePipelineCreateParams{pathProjectId=$pathProjectId, body=$body, additionalHeaders=$additionalHeaders, additionalQueryParams=$additionalQueryParams}" } diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/commits/CommitRetrieveParamsTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/commits/CommitRetrieveParamsTest.kt index 4ad5908..4c7b854 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/commits/CommitRetrieveParamsTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/commits/CommitRetrieveParamsTest.kt @@ -5,7 +5,7 @@ package com.openlayer.api.models.commits import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test -class CommitRetrieveParamsTest { +internal class CommitRetrieveParamsTest { @Test fun create() { diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/commits/CommitRetrieveResponseTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/commits/CommitRetrieveResponseTest.kt index 11f1b13..765b470 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/commits/CommitRetrieveResponseTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/commits/CommitRetrieveResponseTest.kt @@ -6,7 +6,7 @@ import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test -class CommitRetrieveResponseTest { +internal class CommitRetrieveResponseTest { @Test fun createCommitRetrieveResponse() { diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/commits/testresults/TestResultListParamsTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/commits/testresults/TestResultListParamsTest.kt index 75b13ea..9b52469 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/commits/testresults/TestResultListParamsTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/commits/testresults/TestResultListParamsTest.kt @@ -6,7 +6,7 @@ import com.openlayer.api.core.http.QueryParams import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test -class TestResultListParamsTest { +internal class TestResultListParamsTest { @Test fun create() { diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/commits/testresults/TestResultListResponseTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/commits/testresults/TestResultListResponseTest.kt index cfc41f7..16dc4c8 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/commits/testresults/TestResultListResponseTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/commits/testresults/TestResultListResponseTest.kt @@ -7,7 +7,7 @@ import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test -class TestResultListResponseTest { +internal class TestResultListResponseTest { @Test fun createTestResultListResponse() { @@ -32,7 +32,11 @@ class TestResultListResponseTest { .dateArchived(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) .dateCreated(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) .dateUpdated(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) - .description("This test checks for duplicate rows in the dataset.") + .description( + JsonValue.from( + "This test checks for duplicate rows in the dataset." + ) + ) .name("No duplicate rows") .number(1L) .originProjectVersionId("3fa85f64-5717-4562-b3fc-2c963f66afa6") @@ -83,7 +87,11 @@ class TestResultListResponseTest { .dateArchived(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) .dateCreated(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) .dateUpdated(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) - .description("This test checks for duplicate rows in the dataset.") + .description( + JsonValue.from( + "This test checks for duplicate rows in the dataset." + ) + ) .name("No duplicate rows") .number(1L) .originProjectVersionId("3fa85f64-5717-4562-b3fc-2c963f66afa6") diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/InferencePipelineDeleteParamsTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/InferencePipelineDeleteParamsTest.kt index 7d1e1cf..3fdfc63 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/InferencePipelineDeleteParamsTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/InferencePipelineDeleteParamsTest.kt @@ -5,7 +5,7 @@ package com.openlayer.api.models.inferencepipelines import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test -class InferencePipelineDeleteParamsTest { +internal class InferencePipelineDeleteParamsTest { @Test fun create() { diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/InferencePipelineRetrieveParamsTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/InferencePipelineRetrieveParamsTest.kt index a7d1611..92d490a 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/InferencePipelineRetrieveParamsTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/InferencePipelineRetrieveParamsTest.kt @@ -6,7 +6,7 @@ import com.openlayer.api.core.http.QueryParams import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test -class InferencePipelineRetrieveParamsTest { +internal class InferencePipelineRetrieveParamsTest { @Test fun create() { diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/InferencePipelineRetrieveResponseTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/InferencePipelineRetrieveResponseTest.kt index a57ab20..474d298 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/InferencePipelineRetrieveResponseTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/InferencePipelineRetrieveResponseTest.kt @@ -7,7 +7,7 @@ import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test -class InferencePipelineRetrieveResponseTest { +internal class InferencePipelineRetrieveResponseTest { @Test fun createInferencePipelineRetrieveResponse() { diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/InferencePipelineUpdateParamsTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/InferencePipelineUpdateParamsTest.kt index d58a401..dd528e3 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/InferencePipelineUpdateParamsTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/InferencePipelineUpdateParamsTest.kt @@ -6,7 +6,7 @@ import kotlin.test.assertNotNull import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test -class InferencePipelineUpdateParamsTest { +internal class InferencePipelineUpdateParamsTest { @Test fun create() { diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/InferencePipelineUpdateResponseTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/InferencePipelineUpdateResponseTest.kt index 8d35abb..e65d844 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/InferencePipelineUpdateResponseTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/InferencePipelineUpdateResponseTest.kt @@ -7,7 +7,7 @@ import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test -class InferencePipelineUpdateResponseTest { +internal class InferencePipelineUpdateResponseTest { @Test fun createInferencePipelineUpdateResponse() { diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/data/DataStreamParamsTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/data/DataStreamParamsTest.kt index e36d69c..b0f593f 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/data/DataStreamParamsTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/data/DataStreamParamsTest.kt @@ -7,7 +7,7 @@ import kotlin.test.assertNotNull import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test -class DataStreamParamsTest { +internal class DataStreamParamsTest { @Test fun create() { diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/data/DataStreamResponseTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/data/DataStreamResponseTest.kt index 9cbd238..6418f01 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/data/DataStreamResponseTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/data/DataStreamResponseTest.kt @@ -5,7 +5,7 @@ package com.openlayer.api.models.inferencepipelines.data import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test -class DataStreamResponseTest { +internal class DataStreamResponseTest { @Test fun createDataStreamResponse() { diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/rows/RowUpdateParamsTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/rows/RowUpdateParamsTest.kt index 3013696..9476889 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/rows/RowUpdateParamsTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/rows/RowUpdateParamsTest.kt @@ -8,7 +8,7 @@ import kotlin.test.assertNotNull import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test -class RowUpdateParamsTest { +internal class RowUpdateParamsTest { @Test fun create() { diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/rows/RowUpdateResponseTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/rows/RowUpdateResponseTest.kt index a423a57..8d93ea5 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/rows/RowUpdateResponseTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/rows/RowUpdateResponseTest.kt @@ -5,7 +5,7 @@ package com.openlayer.api.models.inferencepipelines.rows import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test -class RowUpdateResponseTest { +internal class RowUpdateResponseTest { @Test fun createRowUpdateResponse() { diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/testresults/TestResultListParamsTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/testresults/TestResultListParamsTest.kt index 4e0fae1..94baac0 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/testresults/TestResultListParamsTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/testresults/TestResultListParamsTest.kt @@ -6,7 +6,7 @@ import com.openlayer.api.core.http.QueryParams import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test -class TestResultListParamsTest { +internal class TestResultListParamsTest { @Test fun create() { diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/testresults/TestResultListResponseTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/testresults/TestResultListResponseTest.kt index dcaa341..2b0c06c 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/testresults/TestResultListResponseTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/inferencepipelines/testresults/TestResultListResponseTest.kt @@ -7,7 +7,7 @@ import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test -class TestResultListResponseTest { +internal class TestResultListResponseTest { @Test fun createTestResultListResponse() { @@ -32,7 +32,11 @@ class TestResultListResponseTest { .dateArchived(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) .dateCreated(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) .dateUpdated(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) - .description("This test checks for duplicate rows in the dataset.") + .description( + JsonValue.from( + "This test checks for duplicate rows in the dataset." + ) + ) .name("No duplicate rows") .number(1L) .originProjectVersionId("3fa85f64-5717-4562-b3fc-2c963f66afa6") @@ -83,7 +87,11 @@ class TestResultListResponseTest { .dateArchived(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) .dateCreated(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) .dateUpdated(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) - .description("This test checks for duplicate rows in the dataset.") + .description( + JsonValue.from( + "This test checks for duplicate rows in the dataset." + ) + ) .name("No duplicate rows") .number(1L) .originProjectVersionId("3fa85f64-5717-4562-b3fc-2c963f66afa6") diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/ProjectCreateParamsTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/ProjectCreateParamsTest.kt index c40e6d2..a6dd32d 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/ProjectCreateParamsTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/ProjectCreateParamsTest.kt @@ -7,7 +7,7 @@ import kotlin.test.assertNotNull import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test -class ProjectCreateParamsTest { +internal class ProjectCreateParamsTest { @Test fun create() { diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/ProjectCreateResponseTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/ProjectCreateResponseTest.kt index a3b4215..bab6428 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/ProjectCreateResponseTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/ProjectCreateResponseTest.kt @@ -6,7 +6,7 @@ import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test -class ProjectCreateResponseTest { +internal class ProjectCreateResponseTest { @Test fun createProjectCreateResponse() { diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/ProjectListParamsTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/ProjectListParamsTest.kt index 15fe616..2c31af9 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/ProjectListParamsTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/ProjectListParamsTest.kt @@ -6,7 +6,7 @@ import com.openlayer.api.core.http.QueryParams import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test -class ProjectListParamsTest { +internal class ProjectListParamsTest { @Test fun create() { diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/ProjectListResponseTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/ProjectListResponseTest.kt index dbc6829..19949a5 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/ProjectListResponseTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/ProjectListResponseTest.kt @@ -6,7 +6,7 @@ import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test -class ProjectListResponseTest { +internal class ProjectListResponseTest { @Test fun createProjectListResponse() { diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/commits/CommitCreateParamsTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/commits/CommitCreateParamsTest.kt index 3614d30..8c38b26 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/commits/CommitCreateParamsTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/commits/CommitCreateParamsTest.kt @@ -7,12 +7,12 @@ import kotlin.test.assertNotNull import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test -class CommitCreateParamsTest { +internal class CommitCreateParamsTest { @Test fun create() { CommitCreateParams.builder() - .projectId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") + .pathProjectId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") .id("3fa85f64-5717-4562-b3fc-2c963f66afa6") .commit( CommitCreateParams.Commit.builder() @@ -35,7 +35,7 @@ class CommitCreateParamsTest { .failingGoalCount(1L) .mlModelId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .passingGoalCount(5L) - .projectId("3fa85f64-5717-4562-b3fc-2c963f66afa6") + .bodyProjectId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .status(CommitCreateParams.Status.QUEUED) .statusMessage("Commit successfully processed.") .storageUri("s3://...") @@ -58,7 +58,7 @@ class CommitCreateParamsTest { fun body() { val params = CommitCreateParams.builder() - .projectId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") + .pathProjectId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") .id("3fa85f64-5717-4562-b3fc-2c963f66afa6") .commit( CommitCreateParams.Commit.builder() @@ -81,7 +81,7 @@ class CommitCreateParamsTest { .failingGoalCount(1L) .mlModelId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .passingGoalCount(5L) - .projectId("3fa85f64-5717-4562-b3fc-2c963f66afa6") + .bodyProjectId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .status(CommitCreateParams.Status.QUEUED) .statusMessage("Commit successfully processed.") .storageUri("s3://...") @@ -125,7 +125,7 @@ class CommitCreateParamsTest { assertThat(body.failingGoalCount()).isEqualTo(1L) assertThat(body.mlModelId()).contains("3fa85f64-5717-4562-b3fc-2c963f66afa6") assertThat(body.passingGoalCount()).isEqualTo(5L) - assertThat(body.projectId()).isEqualTo("3fa85f64-5717-4562-b3fc-2c963f66afa6") + assertThat(body.bodyProjectId()).isEqualTo("3fa85f64-5717-4562-b3fc-2c963f66afa6") assertThat(body.status()).isEqualTo(CommitCreateParams.Status.QUEUED) assertThat(body.statusMessage()).contains("Commit successfully processed.") assertThat(body.storageUri()).isEqualTo("s3://...") @@ -148,7 +148,7 @@ class CommitCreateParamsTest { fun bodyWithoutOptionalFields() { val params = CommitCreateParams.builder() - .projectId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") + .pathProjectId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") .id("3fa85f64-5717-4562-b3fc-2c963f66afa6") .commit( CommitCreateParams.Commit.builder() @@ -167,7 +167,7 @@ class CommitCreateParamsTest { .failingGoalCount(1L) .mlModelId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .passingGoalCount(5L) - .projectId("3fa85f64-5717-4562-b3fc-2c963f66afa6") + .bodyProjectId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .status(CommitCreateParams.Status.QUEUED) .statusMessage("Commit successfully processed.") .storageUri("s3://...") @@ -198,7 +198,7 @@ class CommitCreateParamsTest { assertThat(body.failingGoalCount()).isEqualTo(1L) assertThat(body.mlModelId()).contains("3fa85f64-5717-4562-b3fc-2c963f66afa6") assertThat(body.passingGoalCount()).isEqualTo(5L) - assertThat(body.projectId()).isEqualTo("3fa85f64-5717-4562-b3fc-2c963f66afa6") + assertThat(body.bodyProjectId()).isEqualTo("3fa85f64-5717-4562-b3fc-2c963f66afa6") assertThat(body.status()).isEqualTo(CommitCreateParams.Status.QUEUED) assertThat(body.statusMessage()).contains("Commit successfully processed.") assertThat(body.storageUri()).isEqualTo("s3://...") @@ -211,7 +211,7 @@ class CommitCreateParamsTest { fun getPathParam() { val params = CommitCreateParams.builder() - .projectId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") + .pathProjectId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") .id("3fa85f64-5717-4562-b3fc-2c963f66afa6") .commit( CommitCreateParams.Commit.builder() @@ -230,7 +230,7 @@ class CommitCreateParamsTest { .failingGoalCount(1L) .mlModelId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .passingGoalCount(5L) - .projectId("3fa85f64-5717-4562-b3fc-2c963f66afa6") + .bodyProjectId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .status(CommitCreateParams.Status.QUEUED) .statusMessage("Commit successfully processed.") .storageUri("s3://...") @@ -239,7 +239,7 @@ class CommitCreateParamsTest { .validationDatasetId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .build() assertThat(params).isNotNull - // path param "projectId" + // path param "pathProjectId" assertThat(params.getPathParam(0)).isEqualTo("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") // out-of-bound path param assertThat(params.getPathParam(1)).isEqualTo("") diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/commits/CommitCreateResponseTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/commits/CommitCreateResponseTest.kt index 9e75a5b..190d61f 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/commits/CommitCreateResponseTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/commits/CommitCreateResponseTest.kt @@ -6,7 +6,7 @@ import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test -class CommitCreateResponseTest { +internal class CommitCreateResponseTest { @Test fun createCommitCreateResponse() { diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/commits/CommitListParamsTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/commits/CommitListParamsTest.kt index 634d513..fc48ccc 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/commits/CommitListParamsTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/commits/CommitListParamsTest.kt @@ -6,7 +6,7 @@ import com.openlayer.api.core.http.QueryParams import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test -class CommitListParamsTest { +internal class CommitListParamsTest { @Test fun create() { diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/commits/CommitListResponseTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/commits/CommitListResponseTest.kt index 8ba1ffe..eef2969 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/commits/CommitListResponseTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/commits/CommitListResponseTest.kt @@ -6,7 +6,7 @@ import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test -class CommitListResponseTest { +internal class CommitListResponseTest { @Test fun createCommitListResponse() { diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/inferencepipelines/InferencePipelineCreateParamsTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/inferencepipelines/InferencePipelineCreateParamsTest.kt index 7e7edb1..f4e460a 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/inferencepipelines/InferencePipelineCreateParamsTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/inferencepipelines/InferencePipelineCreateParamsTest.kt @@ -8,12 +8,12 @@ import kotlin.test.assertNotNull import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test -class InferencePipelineCreateParamsTest { +internal class InferencePipelineCreateParamsTest { @Test fun create() { InferencePipelineCreateParams.builder() - .projectId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") + .pathProjectId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") .id("3fa85f64-5717-4562-b3fc-2c963f66afa6") .dateCreated(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) .dateLastEvaluated(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) @@ -31,7 +31,7 @@ class InferencePipelineCreateParamsTest { ) .name("production") .passingGoalCount(5L) - .projectId("3fa85f64-5717-4562-b3fc-2c963f66afa6") + .bodyProjectId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .status(InferencePipelineCreateParams.Status.QUEUED) .statusMessage("Tests successfully evaluated") .totalGoalCount(6L) @@ -109,7 +109,7 @@ class InferencePipelineCreateParamsTest { fun body() { val params = InferencePipelineCreateParams.builder() - .projectId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") + .pathProjectId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") .id("3fa85f64-5717-4562-b3fc-2c963f66afa6") .dateCreated(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) .dateLastEvaluated(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) @@ -127,7 +127,7 @@ class InferencePipelineCreateParamsTest { ) .name("production") .passingGoalCount(5L) - .projectId("3fa85f64-5717-4562-b3fc-2c963f66afa6") + .bodyProjectId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .status(InferencePipelineCreateParams.Status.QUEUED) .statusMessage("Tests successfully evaluated") .totalGoalCount(6L) @@ -224,7 +224,7 @@ class InferencePipelineCreateParamsTest { ) assertThat(body.name()).isEqualTo("production") assertThat(body.passingGoalCount()).isEqualTo(5L) - assertThat(body.projectId()).isEqualTo("3fa85f64-5717-4562-b3fc-2c963f66afa6") + assertThat(body.bodyProjectId()).isEqualTo("3fa85f64-5717-4562-b3fc-2c963f66afa6") assertThat(body.status()).isEqualTo(InferencePipelineCreateParams.Status.QUEUED) assertThat(body.statusMessage()).contains("Tests successfully evaluated") assertThat(body.totalGoalCount()).isEqualTo(6L) @@ -303,7 +303,7 @@ class InferencePipelineCreateParamsTest { fun bodyWithoutOptionalFields() { val params = InferencePipelineCreateParams.builder() - .projectId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") + .pathProjectId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") .id("3fa85f64-5717-4562-b3fc-2c963f66afa6") .dateCreated(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) .dateLastEvaluated(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) @@ -321,7 +321,7 @@ class InferencePipelineCreateParamsTest { ) .name("production") .passingGoalCount(5L) - .projectId("3fa85f64-5717-4562-b3fc-2c963f66afa6") + .bodyProjectId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .status(InferencePipelineCreateParams.Status.QUEUED) .statusMessage("Tests successfully evaluated") .totalGoalCount(6L) @@ -351,7 +351,7 @@ class InferencePipelineCreateParamsTest { ) assertThat(body.name()).isEqualTo("production") assertThat(body.passingGoalCount()).isEqualTo(5L) - assertThat(body.projectId()).isEqualTo("3fa85f64-5717-4562-b3fc-2c963f66afa6") + assertThat(body.bodyProjectId()).isEqualTo("3fa85f64-5717-4562-b3fc-2c963f66afa6") assertThat(body.status()).isEqualTo(InferencePipelineCreateParams.Status.QUEUED) assertThat(body.statusMessage()).contains("Tests successfully evaluated") assertThat(body.totalGoalCount()).isEqualTo(6L) @@ -361,7 +361,7 @@ class InferencePipelineCreateParamsTest { fun getPathParam() { val params = InferencePipelineCreateParams.builder() - .projectId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") + .pathProjectId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") .id("3fa85f64-5717-4562-b3fc-2c963f66afa6") .dateCreated(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) .dateLastEvaluated(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) @@ -379,13 +379,13 @@ class InferencePipelineCreateParamsTest { ) .name("production") .passingGoalCount(5L) - .projectId("3fa85f64-5717-4562-b3fc-2c963f66afa6") + .bodyProjectId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .status(InferencePipelineCreateParams.Status.QUEUED) .statusMessage("Tests successfully evaluated") .totalGoalCount(6L) .build() assertThat(params).isNotNull - // path param "projectId" + // path param "pathProjectId" assertThat(params.getPathParam(0)).isEqualTo("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") // out-of-bound path param assertThat(params.getPathParam(1)).isEqualTo("") diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/inferencepipelines/InferencePipelineCreateResponseTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/inferencepipelines/InferencePipelineCreateResponseTest.kt index 38e7509..bc1d786 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/inferencepipelines/InferencePipelineCreateResponseTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/inferencepipelines/InferencePipelineCreateResponseTest.kt @@ -7,7 +7,7 @@ import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test -class InferencePipelineCreateResponseTest { +internal class InferencePipelineCreateResponseTest { @Test fun createInferencePipelineCreateResponse() { diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/inferencepipelines/InferencePipelineListParamsTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/inferencepipelines/InferencePipelineListParamsTest.kt index 7f12713..3621d38 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/inferencepipelines/InferencePipelineListParamsTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/inferencepipelines/InferencePipelineListParamsTest.kt @@ -6,7 +6,7 @@ import com.openlayer.api.core.http.QueryParams import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test -class InferencePipelineListParamsTest { +internal class InferencePipelineListParamsTest { @Test fun create() { diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/inferencepipelines/InferencePipelineListResponseTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/inferencepipelines/InferencePipelineListResponseTest.kt index 8fa2107..e33f262 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/inferencepipelines/InferencePipelineListResponseTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/projects/inferencepipelines/InferencePipelineListResponseTest.kt @@ -7,7 +7,7 @@ import java.time.OffsetDateTime import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test -class InferencePipelineListResponseTest { +internal class InferencePipelineListResponseTest { @Test fun createInferencePipelineListResponse() { diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/storage/presignedurl/PresignedUrlCreateParamsTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/storage/presignedurl/PresignedUrlCreateParamsTest.kt index fac4f9f..58ed9d3 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/storage/presignedurl/PresignedUrlCreateParamsTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/storage/presignedurl/PresignedUrlCreateParamsTest.kt @@ -6,7 +6,7 @@ import com.openlayer.api.core.http.QueryParams import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test -class PresignedUrlCreateParamsTest { +internal class PresignedUrlCreateParamsTest { @Test fun create() { diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/storage/presignedurl/PresignedUrlCreateResponseTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/storage/presignedurl/PresignedUrlCreateResponseTest.kt index f062a9e..7de37b9 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/storage/presignedurl/PresignedUrlCreateResponseTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/models/storage/presignedurl/PresignedUrlCreateResponseTest.kt @@ -6,7 +6,7 @@ import com.openlayer.api.core.JsonValue import org.assertj.core.api.Assertions.assertThat import org.junit.jupiter.api.Test -class PresignedUrlCreateResponseTest { +internal class PresignedUrlCreateResponseTest { @Test fun createPresignedUrlCreateResponse() { diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/ErrorHandlingTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/ErrorHandlingTest.kt index a04cb4d..951d0b2 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/ErrorHandlingTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/ErrorHandlingTest.kt @@ -31,7 +31,7 @@ import org.junit.jupiter.api.Test import org.junit.jupiter.api.assertThrows @WireMockTest -class ErrorHandlingTest { +internal class ErrorHandlingTest { companion object { diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/async/CommitServiceAsyncTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/async/CommitServiceAsyncTest.kt index dade0f9..9696a52 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/async/CommitServiceAsyncTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/async/CommitServiceAsyncTest.kt @@ -9,7 +9,7 @@ import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith @ExtendWith(TestServerExtension::class) -class CommitServiceAsyncTest { +internal class CommitServiceAsyncTest { @Test fun retrieve() { diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/async/InferencePipelineServiceAsyncTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/async/InferencePipelineServiceAsyncTest.kt index c1fce26..31daf77 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/async/InferencePipelineServiceAsyncTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/async/InferencePipelineServiceAsyncTest.kt @@ -11,7 +11,7 @@ import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith @ExtendWith(TestServerExtension::class) -class InferencePipelineServiceAsyncTest { +internal class InferencePipelineServiceAsyncTest { @Test fun retrieve() { diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/async/ProjectServiceAsyncTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/async/ProjectServiceAsyncTest.kt index c63b659..428155b 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/async/ProjectServiceAsyncTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/async/ProjectServiceAsyncTest.kt @@ -11,7 +11,7 @@ import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith @ExtendWith(TestServerExtension::class) -class ProjectServiceAsyncTest { +internal class ProjectServiceAsyncTest { @Test fun create() { diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/async/commits/TestResultServiceAsyncTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/async/commits/TestResultServiceAsyncTest.kt index b9d1230..afbe6fc 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/async/commits/TestResultServiceAsyncTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/async/commits/TestResultServiceAsyncTest.kt @@ -9,7 +9,7 @@ import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith @ExtendWith(TestServerExtension::class) -class TestResultServiceAsyncTest { +internal class TestResultServiceAsyncTest { @Test fun list() { diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/async/inferencepipelines/DataServiceAsyncTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/async/inferencepipelines/DataServiceAsyncTest.kt index 8062d7a..e1a0cce 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/async/inferencepipelines/DataServiceAsyncTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/async/inferencepipelines/DataServiceAsyncTest.kt @@ -10,7 +10,7 @@ import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith @ExtendWith(TestServerExtension::class) -class DataServiceAsyncTest { +internal class DataServiceAsyncTest { @Test fun stream() { diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/async/inferencepipelines/RowServiceAsyncTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/async/inferencepipelines/RowServiceAsyncTest.kt index cb6b789..539670b 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/async/inferencepipelines/RowServiceAsyncTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/async/inferencepipelines/RowServiceAsyncTest.kt @@ -10,7 +10,7 @@ import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith @ExtendWith(TestServerExtension::class) -class RowServiceAsyncTest { +internal class RowServiceAsyncTest { @Test fun update() { diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/async/inferencepipelines/TestResultServiceAsyncTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/async/inferencepipelines/TestResultServiceAsyncTest.kt index fa3abb7..b939f9d 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/async/inferencepipelines/TestResultServiceAsyncTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/async/inferencepipelines/TestResultServiceAsyncTest.kt @@ -9,7 +9,7 @@ import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith @ExtendWith(TestServerExtension::class) -class TestResultServiceAsyncTest { +internal class TestResultServiceAsyncTest { @Test fun list() { diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/async/projects/CommitServiceAsyncTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/async/projects/CommitServiceAsyncTest.kt index a5be2c6..9c5c3e0 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/async/projects/CommitServiceAsyncTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/async/projects/CommitServiceAsyncTest.kt @@ -11,7 +11,7 @@ import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith @ExtendWith(TestServerExtension::class) -class CommitServiceAsyncTest { +internal class CommitServiceAsyncTest { @Test fun create() { @@ -25,7 +25,7 @@ class CommitServiceAsyncTest { val commitFuture = commitServiceAsync.create( CommitCreateParams.builder() - .projectId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") + .pathProjectId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") .id("3fa85f64-5717-4562-b3fc-2c963f66afa6") .commit( CommitCreateParams.Commit.builder() @@ -48,7 +48,7 @@ class CommitServiceAsyncTest { .failingGoalCount(1L) .mlModelId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .passingGoalCount(5L) - .projectId("3fa85f64-5717-4562-b3fc-2c963f66afa6") + .bodyProjectId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .status(CommitCreateParams.Status.QUEUED) .statusMessage("Commit successfully processed.") .storageUri("s3://...") diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/async/projects/InferencePipelineServiceAsyncTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/async/projects/InferencePipelineServiceAsyncTest.kt index d23f1d0..4455075 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/async/projects/InferencePipelineServiceAsyncTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/async/projects/InferencePipelineServiceAsyncTest.kt @@ -12,7 +12,7 @@ import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith @ExtendWith(TestServerExtension::class) -class InferencePipelineServiceAsyncTest { +internal class InferencePipelineServiceAsyncTest { @Test fun create() { @@ -26,7 +26,7 @@ class InferencePipelineServiceAsyncTest { val inferencePipelineFuture = inferencePipelineServiceAsync.create( InferencePipelineCreateParams.builder() - .projectId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") + .pathProjectId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") .id("3fa85f64-5717-4562-b3fc-2c963f66afa6") .dateCreated(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) .dateLastEvaluated(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) @@ -44,7 +44,7 @@ class InferencePipelineServiceAsyncTest { ) .name("production") .passingGoalCount(5L) - .projectId("3fa85f64-5717-4562-b3fc-2c963f66afa6") + .bodyProjectId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .status(InferencePipelineCreateParams.Status.QUEUED) .statusMessage("Tests successfully evaluated") .totalGoalCount(6L) diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/async/storage/PresignedUrlServiceAsyncTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/async/storage/PresignedUrlServiceAsyncTest.kt index c8ffdc7..e98d12f 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/async/storage/PresignedUrlServiceAsyncTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/async/storage/PresignedUrlServiceAsyncTest.kt @@ -9,7 +9,7 @@ import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith @ExtendWith(TestServerExtension::class) -class PresignedUrlServiceAsyncTest { +internal class PresignedUrlServiceAsyncTest { @Test fun create() { diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/CommitServiceTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/CommitServiceTest.kt index 0d98e9d..d923563 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/CommitServiceTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/CommitServiceTest.kt @@ -9,7 +9,7 @@ import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith @ExtendWith(TestServerExtension::class) -class CommitServiceTest { +internal class CommitServiceTest { @Test fun retrieve() { diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/InferencePipelineServiceTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/InferencePipelineServiceTest.kt index 6b168a1..ce6a650 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/InferencePipelineServiceTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/InferencePipelineServiceTest.kt @@ -11,7 +11,7 @@ import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith @ExtendWith(TestServerExtension::class) -class InferencePipelineServiceTest { +internal class InferencePipelineServiceTest { @Test fun retrieve() { diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/ProjectServiceTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/ProjectServiceTest.kt index a534243..7cc888f 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/ProjectServiceTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/ProjectServiceTest.kt @@ -11,7 +11,7 @@ import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith @ExtendWith(TestServerExtension::class) -class ProjectServiceTest { +internal class ProjectServiceTest { @Test fun create() { diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/commits/TestResultServiceTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/commits/TestResultServiceTest.kt index 7543512..b17bc64 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/commits/TestResultServiceTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/commits/TestResultServiceTest.kt @@ -9,7 +9,7 @@ import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith @ExtendWith(TestServerExtension::class) -class TestResultServiceTest { +internal class TestResultServiceTest { @Test fun list() { diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/inferencepipelines/DataServiceTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/inferencepipelines/DataServiceTest.kt index a8762af..fc46b19 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/inferencepipelines/DataServiceTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/inferencepipelines/DataServiceTest.kt @@ -10,7 +10,7 @@ import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith @ExtendWith(TestServerExtension::class) -class DataServiceTest { +internal class DataServiceTest { @Test fun stream() { diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/inferencepipelines/RowServiceTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/inferencepipelines/RowServiceTest.kt index 9b43392..847f7b1 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/inferencepipelines/RowServiceTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/inferencepipelines/RowServiceTest.kt @@ -10,7 +10,7 @@ import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith @ExtendWith(TestServerExtension::class) -class RowServiceTest { +internal class RowServiceTest { @Test fun update() { diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/inferencepipelines/TestResultServiceTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/inferencepipelines/TestResultServiceTest.kt index 2be4703..b8662c5 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/inferencepipelines/TestResultServiceTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/inferencepipelines/TestResultServiceTest.kt @@ -9,7 +9,7 @@ import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith @ExtendWith(TestServerExtension::class) -class TestResultServiceTest { +internal class TestResultServiceTest { @Test fun list() { diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/projects/CommitServiceTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/projects/CommitServiceTest.kt index e94a74c..9c7ca4f 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/projects/CommitServiceTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/projects/CommitServiceTest.kt @@ -11,7 +11,7 @@ import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith @ExtendWith(TestServerExtension::class) -class CommitServiceTest { +internal class CommitServiceTest { @Test fun create() { @@ -25,7 +25,7 @@ class CommitServiceTest { val commit = commitService.create( CommitCreateParams.builder() - .projectId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") + .pathProjectId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") .id("3fa85f64-5717-4562-b3fc-2c963f66afa6") .commit( CommitCreateParams.Commit.builder() @@ -48,7 +48,7 @@ class CommitServiceTest { .failingGoalCount(1L) .mlModelId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .passingGoalCount(5L) - .projectId("3fa85f64-5717-4562-b3fc-2c963f66afa6") + .bodyProjectId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .status(CommitCreateParams.Status.QUEUED) .statusMessage("Commit successfully processed.") .storageUri("s3://...") diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/projects/InferencePipelineServiceTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/projects/InferencePipelineServiceTest.kt index 56d21e5..8d83721 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/projects/InferencePipelineServiceTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/projects/InferencePipelineServiceTest.kt @@ -12,7 +12,7 @@ import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith @ExtendWith(TestServerExtension::class) -class InferencePipelineServiceTest { +internal class InferencePipelineServiceTest { @Test fun create() { @@ -26,7 +26,7 @@ class InferencePipelineServiceTest { val inferencePipeline = inferencePipelineService.create( InferencePipelineCreateParams.builder() - .projectId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") + .pathProjectId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") .id("3fa85f64-5717-4562-b3fc-2c963f66afa6") .dateCreated(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) .dateLastEvaluated(OffsetDateTime.parse("2024-03-22T11:31:01.185Z")) @@ -44,7 +44,7 @@ class InferencePipelineServiceTest { ) .name("production") .passingGoalCount(5L) - .projectId("3fa85f64-5717-4562-b3fc-2c963f66afa6") + .bodyProjectId("3fa85f64-5717-4562-b3fc-2c963f66afa6") .status(InferencePipelineCreateParams.Status.QUEUED) .statusMessage("Tests successfully evaluated") .totalGoalCount(6L) diff --git a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/storage/PresignedUrlServiceTest.kt b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/storage/PresignedUrlServiceTest.kt index 33d211f..f165113 100644 --- a/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/storage/PresignedUrlServiceTest.kt +++ b/openlayer-java-core/src/test/kotlin/com/openlayer/api/services/blocking/storage/PresignedUrlServiceTest.kt @@ -9,7 +9,7 @@ import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.ExtendWith @ExtendWith(TestServerExtension::class) -class PresignedUrlServiceTest { +internal class PresignedUrlServiceTest { @Test fun create() {