-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api): update via SDK Studio (#10)
- Loading branch information
1 parent
b8d3c2c
commit 4e5bd56
Showing
8 changed files
with
2,122 additions
and
7,056 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
configured_endpoints: 59 | ||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/manugoyal%2Fbraintrust-sdk-kotlin-770b93fa08a7313e047f99e36199af1ec4939f724565d3eb991fe455473a82d5.yml | ||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/manugoyal%2Fbraintrust-sdk-kotlin-8c69b494e9958f062448f0e4bd2a61abccb4a223502869729fea0565f91ffaca.yml |
3,164 changes: 593 additions & 2,571 deletions
3,164
braintrust-kotlin-core/src/main/kotlin/com/braintrust/api/models/Acl.kt
Large diffs are not rendered by default.
Oops, something went wrong.
2,867 changes: 655 additions & 2,212 deletions
2,867
braintrust-kotlin-core/src/main/kotlin/com/braintrust/api/models/AclCreateParams.kt
Large diffs are not rendered by default.
Oops, something went wrong.
2,867 changes: 655 additions & 2,212 deletions
2,867
braintrust-kotlin-core/src/main/kotlin/com/braintrust/api/models/AclReplaceParams.kt
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
braintrust-kotlin-core/src/test/kotlin/com/braintrust/api/models/AclTest.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// File generated from our OpenAPI spec by Stainless. | ||
|
||
package com.braintrust.api.models | ||
|
||
import java.time.OffsetDateTime | ||
import org.assertj.core.api.Assertions.assertThat | ||
import org.junit.jupiter.api.Test | ||
|
||
class AclTest { | ||
|
||
@Test | ||
fun createAcl() { | ||
val acl = | ||
Acl.builder() | ||
.id("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") | ||
._objectOrgId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") | ||
.objectId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") | ||
.objectType(Acl.ObjectType.ORGANIZATION) | ||
.created(OffsetDateTime.parse("2019-12-27T18:11:19.117Z")) | ||
.groupId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") | ||
.permission(Acl.Permission.ofUnionMember0(Acl.Permission.UnionMember0.CREATE)) | ||
.restrictObjectType( | ||
Acl.RestrictObjectType.ofUnionMember0( | ||
Acl.RestrictObjectType.UnionMember0.ORGANIZATION | ||
) | ||
) | ||
.roleId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") | ||
.userId("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") | ||
.build() | ||
assertThat(acl).isNotNull | ||
assertThat(acl.id()).isEqualTo("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") | ||
assertThat(acl._objectOrgId()).isEqualTo("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") | ||
assertThat(acl.objectId()).isEqualTo("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") | ||
assertThat(acl.objectType()).isEqualTo(Acl.ObjectType.ORGANIZATION) | ||
assertThat(acl.created()).isEqualTo(OffsetDateTime.parse("2019-12-27T18:11:19.117Z")) | ||
assertThat(acl.groupId()).isEqualTo("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") | ||
assertThat(acl.permission()) | ||
.isEqualTo(Acl.Permission.ofUnionMember0(Acl.Permission.UnionMember0.CREATE)) | ||
assertThat(acl.restrictObjectType()) | ||
.isEqualTo( | ||
Acl.RestrictObjectType.ofUnionMember0( | ||
Acl.RestrictObjectType.UnionMember0.ORGANIZATION | ||
) | ||
) | ||
assertThat(acl.roleId()).isEqualTo("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") | ||
assertThat(acl.userId()).isEqualTo("182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e") | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters