o
ExternalUploadClientConfig
object ExternalUploadClientConfigConstructors for validated external uploader client configuration.
Exported from scalive.upload.ExternalUploadClientConfig. View source (scalive/api/src/scalive/upload/LiveUpload.scala:585-606)
Methods2
apply
def apply(json: zio.json.ast.Json.Obj): ExternalUploadClientConfigCreates a client configuration or throws when json.uploader is absent, empty, or not a
string.
Throws
IllegalArgumentExceptionif
jsonhas no non-empty stringuploaderfield
Exported from scalive.upload.ExternalUploadClientConfig.apply. View source (scalive/api/src/scalive/upload/LiveUpload.scala:592-593)
validated
def validated(json: zio.json.ast.Json.Obj): Either[IllegalArgumentException, ExternalUploadClientConfig]Validates that json contains a non-empty string uploader field without throwing.
Exported from scalive.upload.ExternalUploadClientConfig.validated. View source (scalive/api/src/scalive/upload/LiveUpload.scala:596-606)