Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 110
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/manugoyal%2Fbraintrust-sdk-ce135a587d4ea037e39949984ed8f98578043e8c3a90fa203d24f28d234d8675.yml
configured_endpoints: 109
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/manugoyal%2Fbraintrust-sdk-f5b152de2bdc5370d7c823d3ca415e1b914897ad98b117f1f0db213f44c0798f.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ private constructor(
@ExcludeMissing
private val previewSecret: JsonField<String> = JsonMissing.of(),
@JsonProperty("type") @ExcludeMissing private val type: JsonField<String> = JsonMissing.of(),
@JsonProperty("updated_at")
@ExcludeMissing
private val updatedAt: JsonField<OffsetDateTime> = JsonMissing.of(),
@JsonAnySetter private val additionalProperties: Map<String, JsonValue> = immutableEmptyMap(),
) {

Expand All @@ -58,6 +61,10 @@ private constructor(

fun type(): Optional<String> = Optional.ofNullable(type.getNullable("type"))

/** Date of last AI secret update */
fun updatedAt(): Optional<OffsetDateTime> =
Optional.ofNullable(updatedAt.getNullable("updated_at"))

/** Unique identifier for the AI secret */
@JsonProperty("id") @ExcludeMissing fun _id(): JsonField<String> = id

Expand All @@ -78,6 +85,11 @@ private constructor(

@JsonProperty("type") @ExcludeMissing fun _type(): JsonField<String> = type

/** Date of last AI secret update */
@JsonProperty("updated_at")
@ExcludeMissing
fun _updatedAt(): JsonField<OffsetDateTime> = updatedAt

@JsonAnyGetter
@ExcludeMissing
fun _additionalProperties(): Map<String, JsonValue> = additionalProperties
Expand All @@ -96,6 +108,7 @@ private constructor(
metadata().ifPresent { it.validate() }
previewSecret()
type()
updatedAt()
validated = true
}

Expand Down Expand Up @@ -126,6 +139,7 @@ private constructor(
private var metadata: JsonField<Metadata> = JsonMissing.of()
private var previewSecret: JsonField<String> = JsonMissing.of()
private var type: JsonField<String> = JsonMissing.of()
private var updatedAt: JsonField<OffsetDateTime> = JsonMissing.of()
private var additionalProperties: MutableMap<String, JsonValue> = mutableMapOf()

@JvmSynthetic
Expand All @@ -137,6 +151,7 @@ private constructor(
metadata = aiSecret.metadata
previewSecret = aiSecret.previewSecret
type = aiSecret.type
updatedAt = aiSecret.updatedAt
additionalProperties = aiSecret.additionalProperties.toMutableMap()
}

Expand Down Expand Up @@ -189,6 +204,15 @@ private constructor(

fun type(type: JsonField<String>) = apply { this.type = type }

/** Date of last AI secret update */
fun updatedAt(updatedAt: OffsetDateTime?) = updatedAt(JsonField.ofNullable(updatedAt))

/** Date of last AI secret update */
fun updatedAt(updatedAt: Optional<OffsetDateTime>) = updatedAt(updatedAt.getOrNull())

/** Date of last AI secret update */
fun updatedAt(updatedAt: JsonField<OffsetDateTime>) = apply { this.updatedAt = updatedAt }

fun additionalProperties(additionalProperties: Map<String, JsonValue>) = apply {
this.additionalProperties.clear()
putAllAdditionalProperties(additionalProperties)
Expand Down Expand Up @@ -217,6 +241,7 @@ private constructor(
metadata,
previewSecret,
type,
updatedAt,
additionalProperties.toImmutable(),
)
}
Expand Down Expand Up @@ -305,15 +330,15 @@ private constructor(
return true
}

return /* spotless:off */ other is AISecret && id == other.id && name == other.name && orgId == other.orgId && created == other.created && metadata == other.metadata && previewSecret == other.previewSecret && type == other.type && additionalProperties == other.additionalProperties /* spotless:on */
return /* spotless:off */ other is AISecret && id == other.id && name == other.name && orgId == other.orgId && created == other.created && metadata == other.metadata && previewSecret == other.previewSecret && type == other.type && updatedAt == other.updatedAt && additionalProperties == other.additionalProperties /* spotless:on */
}

/* spotless:off */
private val hashCode: Int by lazy { Objects.hash(id, name, orgId, created, metadata, previewSecret, type, additionalProperties) }
private val hashCode: Int by lazy { Objects.hash(id, name, orgId, created, metadata, previewSecret, type, updatedAt, additionalProperties) }
/* spotless:on */

override fun hashCode(): Int = hashCode

override fun toString() =
"AISecret{id=$id, name=$name, orgId=$orgId, created=$created, metadata=$metadata, previewSecret=$previewSecret, type=$type, additionalProperties=$additionalProperties}"
"AISecret{id=$id, name=$name, orgId=$orgId, created=$created, metadata=$metadata, previewSecret=$previewSecret, type=$type, updatedAt=$updatedAt, additionalProperties=$additionalProperties}"
}
Loading