Skip to content

Commit b487509

Browse files
feat(api): api update
1 parent e7d3a36 commit b487509

5 files changed

Lines changed: 6 additions & 241 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 123
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/langsmith%2Flangsmith-api-cd2da4f13cdedbdc960da05fdbbedad6aaf8ab49ee4c2d2cb3c7e5e2b97432e5.yml
3-
openapi_spec_hash: 9e8dd962d9dcfb76378bcce11aaddb84
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/langsmith%2Flangsmith-api-efbf1e4a38a848b9caed9326f3997f6a2e7aff0cd27f2656d4029bae62439b88.yml
3+
openapi_spec_hash: ddb2cf4e26493a413ea4d6c103f8c32f
44
config_hash: 0147e25a53ffe0e5055ad212e0c985ba

langsmith-java-core/src/main/kotlin/com/langchain/smith/models/sandboxes/snapshots/SnapshotCreateParams.kt

Lines changed: 4 additions & 224 deletions
Original file line numberDiff line numberDiff line change
@@ -51,24 +51,6 @@ private constructor(
5151
*/
5252
fun registryId(): Optional<String> = body.registryId()
5353

54-
/**
55-
* @throws LangChainInvalidDataException if the JSON field has an unexpected type (e.g. if the
56-
* server responded with an unexpected value).
57-
*/
58-
fun registryPassword(): Optional<String> = body.registryPassword()
59-
60-
/**
61-
* @throws LangChainInvalidDataException if the JSON field has an unexpected type (e.g. if the
62-
* server responded with an unexpected value).
63-
*/
64-
fun registryUrl(): Optional<String> = body.registryUrl()
65-
66-
/**
67-
* @throws LangChainInvalidDataException if the JSON field has an unexpected type (e.g. if the
68-
* server responded with an unexpected value).
69-
*/
70-
fun registryUsername(): Optional<String> = body.registryUsername()
71-
7254
/**
7355
* Returns the raw JSON value of [dockerImage].
7456
*
@@ -97,29 +79,6 @@ private constructor(
9779
*/
9880
fun _registryId(): JsonField<String> = body._registryId()
9981

100-
/**
101-
* Returns the raw JSON value of [registryPassword].
102-
*
103-
* Unlike [registryPassword], this method doesn't throw if the JSON field has an unexpected
104-
* type.
105-
*/
106-
fun _registryPassword(): JsonField<String> = body._registryPassword()
107-
108-
/**
109-
* Returns the raw JSON value of [registryUrl].
110-
*
111-
* Unlike [registryUrl], this method doesn't throw if the JSON field has an unexpected type.
112-
*/
113-
fun _registryUrl(): JsonField<String> = body._registryUrl()
114-
115-
/**
116-
* Returns the raw JSON value of [registryUsername].
117-
*
118-
* Unlike [registryUsername], this method doesn't throw if the JSON field has an unexpected
119-
* type.
120-
*/
121-
fun _registryUsername(): JsonField<String> = body._registryUsername()
122-
12382
fun _additionalBodyProperties(): Map<String, JsonValue> = body._additionalProperties()
12483

12584
/** Additional headers to send with the request. */
@@ -168,8 +127,6 @@ private constructor(
168127
* - [fsCapacityBytes]
169128
* - [name]
170129
* - [registryId]
171-
* - [registryPassword]
172-
* - etc.
173130
*/
174131
fun body(body: Body) = apply { this.body = body.toBuilder() }
175132

@@ -218,47 +175,6 @@ private constructor(
218175
*/
219176
fun registryId(registryId: JsonField<String>) = apply { body.registryId(registryId) }
220177

221-
fun registryPassword(registryPassword: String) = apply {
222-
body.registryPassword(registryPassword)
223-
}
224-
225-
/**
226-
* Sets [Builder.registryPassword] to an arbitrary JSON value.
227-
*
228-
* You should usually call [Builder.registryPassword] with a well-typed [String] value
229-
* instead. This method is primarily for setting the field to an undocumented or not yet
230-
* supported value.
231-
*/
232-
fun registryPassword(registryPassword: JsonField<String>) = apply {
233-
body.registryPassword(registryPassword)
234-
}
235-
236-
fun registryUrl(registryUrl: String) = apply { body.registryUrl(registryUrl) }
237-
238-
/**
239-
* Sets [Builder.registryUrl] to an arbitrary JSON value.
240-
*
241-
* You should usually call [Builder.registryUrl] with a well-typed [String] value instead.
242-
* This method is primarily for setting the field to an undocumented or not yet supported
243-
* value.
244-
*/
245-
fun registryUrl(registryUrl: JsonField<String>) = apply { body.registryUrl(registryUrl) }
246-
247-
fun registryUsername(registryUsername: String) = apply {
248-
body.registryUsername(registryUsername)
249-
}
250-
251-
/**
252-
* Sets [Builder.registryUsername] to an arbitrary JSON value.
253-
*
254-
* You should usually call [Builder.registryUsername] with a well-typed [String] value
255-
* instead. This method is primarily for setting the field to an undocumented or not yet
256-
* supported value.
257-
*/
258-
fun registryUsername(registryUsername: JsonField<String>) = apply {
259-
body.registryUsername(registryUsername)
260-
}
261-
262178
fun additionalBodyProperties(additionalBodyProperties: Map<String, JsonValue>) = apply {
263179
body.additionalProperties(additionalBodyProperties)
264180
}
@@ -411,9 +327,6 @@ private constructor(
411327
private val fsCapacityBytes: JsonField<Long>,
412328
private val name: JsonField<String>,
413329
private val registryId: JsonField<String>,
414-
private val registryPassword: JsonField<String>,
415-
private val registryUrl: JsonField<String>,
416-
private val registryUsername: JsonField<String>,
417330
private val additionalProperties: MutableMap<String, JsonValue>,
418331
) {
419332

@@ -429,25 +342,7 @@ private constructor(
429342
@JsonProperty("registry_id")
430343
@ExcludeMissing
431344
registryId: JsonField<String> = JsonMissing.of(),
432-
@JsonProperty("registry_password")
433-
@ExcludeMissing
434-
registryPassword: JsonField<String> = JsonMissing.of(),
435-
@JsonProperty("registry_url")
436-
@ExcludeMissing
437-
registryUrl: JsonField<String> = JsonMissing.of(),
438-
@JsonProperty("registry_username")
439-
@ExcludeMissing
440-
registryUsername: JsonField<String> = JsonMissing.of(),
441-
) : this(
442-
dockerImage,
443-
fsCapacityBytes,
444-
name,
445-
registryId,
446-
registryPassword,
447-
registryUrl,
448-
registryUsername,
449-
mutableMapOf(),
450-
)
345+
) : this(dockerImage, fsCapacityBytes, name, registryId, mutableMapOf())
451346

452347
/**
453348
* @throws LangChainInvalidDataException if the JSON field has an unexpected type or is
@@ -473,24 +368,6 @@ private constructor(
473368
*/
474369
fun registryId(): Optional<String> = registryId.getOptional("registry_id")
475370

476-
/**
477-
* @throws LangChainInvalidDataException if the JSON field has an unexpected type (e.g. if
478-
* the server responded with an unexpected value).
479-
*/
480-
fun registryPassword(): Optional<String> = registryPassword.getOptional("registry_password")
481-
482-
/**
483-
* @throws LangChainInvalidDataException if the JSON field has an unexpected type (e.g. if
484-
* the server responded with an unexpected value).
485-
*/
486-
fun registryUrl(): Optional<String> = registryUrl.getOptional("registry_url")
487-
488-
/**
489-
* @throws LangChainInvalidDataException if the JSON field has an unexpected type (e.g. if
490-
* the server responded with an unexpected value).
491-
*/
492-
fun registryUsername(): Optional<String> = registryUsername.getOptional("registry_username")
493-
494371
/**
495372
* Returns the raw JSON value of [dockerImage].
496373
*
@@ -526,35 +403,6 @@ private constructor(
526403
@ExcludeMissing
527404
fun _registryId(): JsonField<String> = registryId
528405

529-
/**
530-
* Returns the raw JSON value of [registryPassword].
531-
*
532-
* Unlike [registryPassword], this method doesn't throw if the JSON field has an unexpected
533-
* type.
534-
*/
535-
@JsonProperty("registry_password")
536-
@ExcludeMissing
537-
fun _registryPassword(): JsonField<String> = registryPassword
538-
539-
/**
540-
* Returns the raw JSON value of [registryUrl].
541-
*
542-
* Unlike [registryUrl], this method doesn't throw if the JSON field has an unexpected type.
543-
*/
544-
@JsonProperty("registry_url")
545-
@ExcludeMissing
546-
fun _registryUrl(): JsonField<String> = registryUrl
547-
548-
/**
549-
* Returns the raw JSON value of [registryUsername].
550-
*
551-
* Unlike [registryUsername], this method doesn't throw if the JSON field has an unexpected
552-
* type.
553-
*/
554-
@JsonProperty("registry_username")
555-
@ExcludeMissing
556-
fun _registryUsername(): JsonField<String> = registryUsername
557-
558406
@JsonAnySetter
559407
private fun putAdditionalProperty(key: String, value: JsonValue) {
560408
additionalProperties.put(key, value)
@@ -589,9 +437,6 @@ private constructor(
589437
private var fsCapacityBytes: JsonField<Long>? = null
590438
private var name: JsonField<String>? = null
591439
private var registryId: JsonField<String> = JsonMissing.of()
592-
private var registryPassword: JsonField<String> = JsonMissing.of()
593-
private var registryUrl: JsonField<String> = JsonMissing.of()
594-
private var registryUsername: JsonField<String> = JsonMissing.of()
595440
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()
596441

597442
@JvmSynthetic
@@ -600,9 +445,6 @@ private constructor(
600445
fsCapacityBytes = body.fsCapacityBytes
601446
name = body.name
602447
registryId = body.registryId
603-
registryPassword = body.registryPassword
604-
registryUrl = body.registryUrl
605-
registryUsername = body.registryUsername
606448
additionalProperties = body.additionalProperties.toMutableMap()
607449
}
608450

@@ -655,47 +497,6 @@ private constructor(
655497
*/
656498
fun registryId(registryId: JsonField<String>) = apply { this.registryId = registryId }
657499

658-
fun registryPassword(registryPassword: String) =
659-
registryPassword(JsonField.of(registryPassword))
660-
661-
/**
662-
* Sets [Builder.registryPassword] to an arbitrary JSON value.
663-
*
664-
* You should usually call [Builder.registryPassword] with a well-typed [String] value
665-
* instead. This method is primarily for setting the field to an undocumented or not yet
666-
* supported value.
667-
*/
668-
fun registryPassword(registryPassword: JsonField<String>) = apply {
669-
this.registryPassword = registryPassword
670-
}
671-
672-
fun registryUrl(registryUrl: String) = registryUrl(JsonField.of(registryUrl))
673-
674-
/**
675-
* Sets [Builder.registryUrl] to an arbitrary JSON value.
676-
*
677-
* You should usually call [Builder.registryUrl] with a well-typed [String] value
678-
* instead. This method is primarily for setting the field to an undocumented or not yet
679-
* supported value.
680-
*/
681-
fun registryUrl(registryUrl: JsonField<String>) = apply {
682-
this.registryUrl = registryUrl
683-
}
684-
685-
fun registryUsername(registryUsername: String) =
686-
registryUsername(JsonField.of(registryUsername))
687-
688-
/**
689-
* Sets [Builder.registryUsername] to an arbitrary JSON value.
690-
*
691-
* You should usually call [Builder.registryUsername] with a well-typed [String] value
692-
* instead. This method is primarily for setting the field to an undocumented or not yet
693-
* supported value.
694-
*/
695-
fun registryUsername(registryUsername: JsonField<String>) = apply {
696-
this.registryUsername = registryUsername
697-
}
698-
699500
fun additionalProperties(additionalProperties: Map<String, JsonValue>) = apply {
700501
this.additionalProperties.clear()
701502
putAllAdditionalProperties(additionalProperties)
@@ -735,9 +536,6 @@ private constructor(
735536
checkRequired("fsCapacityBytes", fsCapacityBytes),
736537
checkRequired("name", name),
737538
registryId,
738-
registryPassword,
739-
registryUrl,
740-
registryUsername,
741539
additionalProperties.toMutableMap(),
742540
)
743541
}
@@ -753,9 +551,6 @@ private constructor(
753551
fsCapacityBytes()
754552
name()
755553
registryId()
756-
registryPassword()
757-
registryUrl()
758-
registryUsername()
759554
validated = true
760555
}
761556

@@ -778,10 +573,7 @@ private constructor(
778573
(if (dockerImage.asKnown().isPresent) 1 else 0) +
779574
(if (fsCapacityBytes.asKnown().isPresent) 1 else 0) +
780575
(if (name.asKnown().isPresent) 1 else 0) +
781-
(if (registryId.asKnown().isPresent) 1 else 0) +
782-
(if (registryPassword.asKnown().isPresent) 1 else 0) +
783-
(if (registryUrl.asKnown().isPresent) 1 else 0) +
784-
(if (registryUsername.asKnown().isPresent) 1 else 0)
576+
(if (registryId.asKnown().isPresent) 1 else 0)
785577

786578
override fun equals(other: Any?): Boolean {
787579
if (this === other) {
@@ -793,29 +585,17 @@ private constructor(
793585
fsCapacityBytes == other.fsCapacityBytes &&
794586
name == other.name &&
795587
registryId == other.registryId &&
796-
registryPassword == other.registryPassword &&
797-
registryUrl == other.registryUrl &&
798-
registryUsername == other.registryUsername &&
799588
additionalProperties == other.additionalProperties
800589
}
801590

802591
private val hashCode: Int by lazy {
803-
Objects.hash(
804-
dockerImage,
805-
fsCapacityBytes,
806-
name,
807-
registryId,
808-
registryPassword,
809-
registryUrl,
810-
registryUsername,
811-
additionalProperties,
812-
)
592+
Objects.hash(dockerImage, fsCapacityBytes, name, registryId, additionalProperties)
813593
}
814594

815595
override fun hashCode(): Int = hashCode
816596

817597
override fun toString() =
818-
"Body{dockerImage=$dockerImage, fsCapacityBytes=$fsCapacityBytes, name=$name, registryId=$registryId, registryPassword=$registryPassword, registryUrl=$registryUrl, registryUsername=$registryUsername, additionalProperties=$additionalProperties}"
598+
"Body{dockerImage=$dockerImage, fsCapacityBytes=$fsCapacityBytes, name=$name, registryId=$registryId, additionalProperties=$additionalProperties}"
819599
}
820600

821601
override fun equals(other: Any?): Boolean {

langsmith-java-core/src/test/kotlin/com/langchain/smith/models/sandboxes/snapshots/SnapshotCreateParamsTest.kt

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ internal class SnapshotCreateParamsTest {
1414
.fsCapacityBytes(0L)
1515
.name("name")
1616
.registryId("registry_id")
17-
.registryPassword("registry_password")
18-
.registryUrl("registry_url")
19-
.registryUsername("registry_username")
2017
.build()
2118
}
2219

@@ -28,9 +25,6 @@ internal class SnapshotCreateParamsTest {
2825
.fsCapacityBytes(0L)
2926
.name("name")
3027
.registryId("registry_id")
31-
.registryPassword("registry_password")
32-
.registryUrl("registry_url")
33-
.registryUsername("registry_username")
3428
.build()
3529

3630
val body = params._body()
@@ -39,9 +33,6 @@ internal class SnapshotCreateParamsTest {
3933
assertThat(body.fsCapacityBytes()).isEqualTo(0L)
4034
assertThat(body.name()).isEqualTo("name")
4135
assertThat(body.registryId()).contains("registry_id")
42-
assertThat(body.registryPassword()).contains("registry_password")
43-
assertThat(body.registryUrl()).contains("registry_url")
44-
assertThat(body.registryUsername()).contains("registry_username")
4536
}
4637

4738
@Test

langsmith-java-core/src/test/kotlin/com/langchain/smith/services/async/sandboxes/SnapshotServiceAsyncTest.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ internal class SnapshotServiceAsyncTest {
2828
.fsCapacityBytes(0L)
2929
.name("name")
3030
.registryId("registry_id")
31-
.registryPassword("registry_password")
32-
.registryUrl("registry_url")
33-
.registryUsername("registry_username")
3431
.build()
3532
)
3633

langsmith-java-core/src/test/kotlin/com/langchain/smith/services/blocking/sandboxes/SnapshotServiceTest.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ internal class SnapshotServiceTest {
2828
.fsCapacityBytes(0L)
2929
.name("name")
3030
.registryId("registry_id")
31-
.registryPassword("registry_password")
32-
.registryUrl("registry_url")
33-
.registryUsername("registry_username")
3431
.build()
3532
)
3633

0 commit comments

Comments
 (0)