@@ -27,13 +27,13 @@ import kotlin.jvm.optionals.getOrNull
27
27
/* * Create a new commit (project version) in a project. */
28
28
class CommitCreateParams
29
29
private constructor (
30
- private val projectId : String ,
30
+ private val pathProjectId : String ,
31
31
private val body: Body ,
32
32
private val additionalHeaders: Headers ,
33
33
private val additionalQueryParams: QueryParams ,
34
34
) : Params {
35
35
36
- fun projectId (): String = projectId
36
+ fun pathProjectId (): String = pathProjectId
37
37
38
38
/* *
39
39
* The project version (commit) id.
@@ -97,7 +97,7 @@ private constructor(
97
97
* @throws OpenlayerInvalidDataException if the JSON field has an unexpected type or is
98
98
* unexpectedly missing or null (e.g. if the server responded with an unexpected value).
99
99
*/
100
- fun projectId (): String = body.projectId ()
100
+ fun bodyProjectId (): String = body.bodyProjectId ()
101
101
102
102
/* *
103
103
* The commit status. Initially, the commit is `queued`, then, it switches to `running`.
@@ -222,11 +222,11 @@ private constructor(
222
222
fun _passingGoalCount (): JsonField <Long > = body._passingGoalCount ()
223
223
224
224
/* *
225
- * Returns the raw JSON value of [projectId ].
225
+ * Returns the raw JSON value of [bodyProjectId ].
226
226
*
227
- * Unlike [projectId ], this method doesn't throw if the JSON field has an unexpected type.
227
+ * Unlike [bodyProjectId ], this method doesn't throw if the JSON field has an unexpected type.
228
228
*/
229
- fun _projectId (): JsonField <String > = body._projectId ()
229
+ fun _bodyProjectId (): JsonField <String > = body._bodyProjectId ()
230
230
231
231
/* *
232
232
* Returns the raw JSON value of [status].
@@ -308,7 +308,7 @@ private constructor(
308
308
309
309
fun getPathParam (index : Int ): String {
310
310
return when (index) {
311
- 0 -> projectId
311
+ 0 -> pathProjectId
312
312
else -> " "
313
313
}
314
314
}
@@ -338,7 +338,7 @@ private constructor(
338
338
private val passingGoalCount: JsonField <Long > = JsonMissing .of(),
339
339
@JsonProperty(" projectId" )
340
340
@ExcludeMissing
341
- private val projectId : JsonField <String > = JsonMissing .of(),
341
+ private val bodyProjectId : JsonField <String > = JsonMissing .of(),
342
342
@JsonProperty(" status" )
343
343
@ExcludeMissing
344
344
private val status: JsonField <Status > = JsonMissing .of(),
@@ -433,7 +433,7 @@ private constructor(
433
433
* @throws OpenlayerInvalidDataException if the JSON field has an unexpected type or is
434
434
* unexpectedly missing or null (e.g. if the server responded with an unexpected value).
435
435
*/
436
- fun projectId (): String = projectId .getRequired(" projectId" )
436
+ fun bodyProjectId (): String = bodyProjectId .getRequired(" projectId" )
437
437
438
438
/* *
439
439
* The commit status. Initially, the commit is `queued`, then, it switches to `running`.
@@ -571,11 +571,14 @@ private constructor(
571
571
fun _passingGoalCount (): JsonField <Long > = passingGoalCount
572
572
573
573
/* *
574
- * Returns the raw JSON value of [projectId ].
574
+ * Returns the raw JSON value of [bodyProjectId ].
575
575
*
576
- * Unlike [projectId], this method doesn't throw if the JSON field has an unexpected type.
576
+ * Unlike [bodyProjectId], this method doesn't throw if the JSON field has an unexpected
577
+ * type.
577
578
*/
578
- @JsonProperty(" projectId" ) @ExcludeMissing fun _projectId (): JsonField <String > = projectId
579
+ @JsonProperty(" projectId" )
580
+ @ExcludeMissing
581
+ fun _bodyProjectId (): JsonField <String > = bodyProjectId
579
582
580
583
/* *
581
584
* Returns the raw JSON value of [status].
@@ -675,7 +678,7 @@ private constructor(
675
678
failingGoalCount()
676
679
mlModelId()
677
680
passingGoalCount()
678
- projectId ()
681
+ bodyProjectId ()
679
682
status()
680
683
statusMessage()
681
684
storageUri()
@@ -704,7 +707,7 @@ private constructor(
704
707
* .failingGoalCount()
705
708
* .mlModelId()
706
709
* .passingGoalCount()
707
- * .projectId ()
710
+ * .bodyProjectId ()
708
711
* .status()
709
712
* .statusMessage()
710
713
* .storageUri()
@@ -726,7 +729,7 @@ private constructor(
726
729
private var failingGoalCount: JsonField <Long >? = null
727
730
private var mlModelId: JsonField <String >? = null
728
731
private var passingGoalCount: JsonField <Long >? = null
729
- private var projectId : JsonField <String >? = null
732
+ private var bodyProjectId : JsonField <String >? = null
730
733
private var status: JsonField <Status >? = null
731
734
private var statusMessage: JsonField <String >? = null
732
735
private var storageUri: JsonField <String >? = null
@@ -747,7 +750,7 @@ private constructor(
747
750
failingGoalCount = body.failingGoalCount
748
751
mlModelId = body.mlModelId
749
752
passingGoalCount = body.passingGoalCount
750
- projectId = body.projectId
753
+ bodyProjectId = body.bodyProjectId
751
754
status = body.status
752
755
statusMessage = body.statusMessage
753
756
storageUri = body.storageUri
@@ -863,16 +866,18 @@ private constructor(
863
866
}
864
867
865
868
/* * The project id. */
866
- fun projectId ( projectId : String ) = projectId (JsonField .of(projectId ))
869
+ fun bodyProjectId ( bodyProjectId : String ) = bodyProjectId (JsonField .of(bodyProjectId ))
867
870
868
871
/* *
869
- * Sets [Builder.projectId ] to an arbitrary JSON value.
872
+ * Sets [Builder.bodyProjectId ] to an arbitrary JSON value.
870
873
*
871
- * You should usually call [Builder.projectId ] with a well-typed [String] value instead.
872
- * This method is primarily for setting the field to an undocumented or not yet
874
+ * You should usually call [Builder.bodyProjectId ] with a well-typed [String] value
875
+ * instead. This method is primarily for setting the field to an undocumented or not yet
873
876
* supported value.
874
877
*/
875
- fun projectId (projectId : JsonField <String >) = apply { this .projectId = projectId }
878
+ fun bodyProjectId (bodyProjectId : JsonField <String >) = apply {
879
+ this .bodyProjectId = bodyProjectId
880
+ }
876
881
877
882
/* *
878
883
* The commit status. Initially, the commit is `queued`, then, it switches to `running`.
@@ -1053,7 +1058,7 @@ private constructor(
1053
1058
checkRequired(" failingGoalCount" , failingGoalCount),
1054
1059
checkRequired(" mlModelId" , mlModelId),
1055
1060
checkRequired(" passingGoalCount" , passingGoalCount),
1056
- checkRequired(" projectId " , projectId ),
1061
+ checkRequired(" bodyProjectId " , bodyProjectId ),
1057
1062
checkRequired(" status" , status),
1058
1063
checkRequired(" statusMessage" , statusMessage),
1059
1064
checkRequired(" storageUri" , storageUri),
@@ -1072,17 +1077,17 @@ private constructor(
1072
1077
return true
1073
1078
}
1074
1079
1075
- 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 */
1080
+ 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 */
1076
1081
}
1077
1082
1078
1083
/* spotless:off */
1079
- 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) }
1084
+ 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) }
1080
1085
/* spotless:on */
1081
1086
1082
1087
override fun hashCode (): Int = hashCode
1083
1088
1084
1089
override fun toString () =
1085
- " 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 }"
1090
+ " 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 }"
1086
1091
}
1087
1092
1088
1093
fun toBuilder () = Builder ().from(this )
@@ -1094,15 +1099,15 @@ private constructor(
1094
1099
*
1095
1100
* The following fields are required:
1096
1101
* ```java
1097
- * .projectId ()
1102
+ * .pathProjectId ()
1098
1103
* .id()
1099
1104
* .commit()
1100
1105
* .dateArchived()
1101
1106
* .dateCreated()
1102
1107
* .failingGoalCount()
1103
1108
* .mlModelId()
1104
1109
* .passingGoalCount()
1105
- * .projectId ()
1110
+ * .bodyProjectId ()
1106
1111
* .status()
1107
1112
* .statusMessage()
1108
1113
* .storageUri()
@@ -1118,20 +1123,20 @@ private constructor(
1118
1123
@NoAutoDetect
1119
1124
class Builder internal constructor() {
1120
1125
1121
- private var projectId : String? = null
1126
+ private var pathProjectId : String? = null
1122
1127
private var body: Body .Builder = Body .builder()
1123
1128
private var additionalHeaders: Headers .Builder = Headers .builder()
1124
1129
private var additionalQueryParams: QueryParams .Builder = QueryParams .builder()
1125
1130
1126
1131
@JvmSynthetic
1127
1132
internal fun from (commitCreateParams : CommitCreateParams ) = apply {
1128
- projectId = commitCreateParams.projectId
1133
+ pathProjectId = commitCreateParams.pathProjectId
1129
1134
body = commitCreateParams.body.toBuilder()
1130
1135
additionalHeaders = commitCreateParams.additionalHeaders.toBuilder()
1131
1136
additionalQueryParams = commitCreateParams.additionalQueryParams.toBuilder()
1132
1137
}
1133
1138
1134
- fun projectId ( projectId : String ) = apply { this .projectId = projectId }
1139
+ fun pathProjectId ( pathProjectId : String ) = apply { this .pathProjectId = pathProjectId }
1135
1140
1136
1141
/* * The project version (commit) id. */
1137
1142
fun id (id : String ) = apply { body.id(id) }
@@ -1235,16 +1240,18 @@ private constructor(
1235
1240
}
1236
1241
1237
1242
/* * The project id. */
1238
- fun projectId ( projectId : String ) = apply { body.projectId(projectId ) }
1243
+ fun bodyProjectId ( bodyProjectId : String ) = apply { body.bodyProjectId(bodyProjectId ) }
1239
1244
1240
1245
/* *
1241
- * Sets [Builder.projectId ] to an arbitrary JSON value.
1246
+ * Sets [Builder.bodyProjectId ] to an arbitrary JSON value.
1242
1247
*
1243
- * You should usually call [Builder.projectId ] with a well-typed [String] value instead.
1248
+ * You should usually call [Builder.bodyProjectId ] with a well-typed [String] value instead.
1244
1249
* This method is primarily for setting the field to an undocumented or not yet supported
1245
1250
* value.
1246
1251
*/
1247
- fun projectId (projectId : JsonField <String >) = apply { body.projectId(projectId) }
1252
+ fun bodyProjectId (bodyProjectId : JsonField <String >) = apply {
1253
+ body.bodyProjectId(bodyProjectId)
1254
+ }
1248
1255
1249
1256
/* *
1250
1257
* The commit status. Initially, the commit is `queued`, then, it switches to `running`.
@@ -1513,7 +1520,7 @@ private constructor(
1513
1520
1514
1521
fun build (): CommitCreateParams =
1515
1522
CommitCreateParams (
1516
- checkRequired(" projectId " , projectId ),
1523
+ checkRequired(" pathProjectId " , pathProjectId ),
1517
1524
body.build(),
1518
1525
additionalHeaders.build(),
1519
1526
additionalQueryParams.build(),
@@ -2337,11 +2344,11 @@ private constructor(
2337
2344
return true
2338
2345
}
2339
2346
2340
- return /* spotless:off */ other is CommitCreateParams && projectId == other.projectId && body == other.body && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */
2347
+ return /* spotless:off */ other is CommitCreateParams && pathProjectId == other.pathProjectId && body == other.body && additionalHeaders == other.additionalHeaders && additionalQueryParams == other.additionalQueryParams /* spotless:on */
2341
2348
}
2342
2349
2343
- override fun hashCode (): Int = /* spotless:off */ Objects .hash(projectId , body, additionalHeaders, additionalQueryParams) /* spotless:on */
2350
+ override fun hashCode (): Int = /* spotless:off */ Objects .hash(pathProjectId , body, additionalHeaders, additionalQueryParams) /* spotless:on */
2344
2351
2345
2352
override fun toString () =
2346
- " CommitCreateParams{projectId= $projectId , body=$body , additionalHeaders=$additionalHeaders , additionalQueryParams=$additionalQueryParams }"
2353
+ " CommitCreateParams{pathProjectId= $pathProjectId , body=$body , additionalHeaders=$additionalHeaders , additionalQueryParams=$additionalQueryParams }"
2347
2354
}
0 commit comments