zio.aws.tnb.TnbMock.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zio-aws-tnb_3 Show documentation
Show all versions of zio-aws-tnb_3 Show documentation
Low-level AWS wrapper for ZIO
package zio.aws.tnb
import zio.aws.tnb.model.GetSolNetworkInstanceResponse.ReadOnly
import software.amazon.awssdk.services.tnb.TnbAsyncClient
import zio.mock.{Proxy, Mock}
import zio.aws.tnb.model.{
GetSolFunctionPackageDescriptorRequest,
UpdateSolNetworkInstanceRequest,
CreateSolNetworkPackageRequest,
GetSolNetworkInstanceRequest,
GetSolNetworkOperationRequest,
GetSolFunctionPackageRequest,
DeleteSolFunctionPackageRequest,
UpdateSolFunctionPackageRequest,
ListSolFunctionPackagesRequest,
CreateSolNetworkInstanceRequest,
ListTagsForResourceRequest,
GetSolFunctionPackageContentRequest,
TerminateSolNetworkInstanceRequest,
CreateSolFunctionPackageRequest,
UpdateSolNetworkPackageRequest,
ValidateSolNetworkPackageContentRequest,
InstantiateSolNetworkInstanceRequest,
GetSolFunctionInstanceRequest,
ValidateSolFunctionPackageContentRequest,
ListSolNetworkInstancesRequest,
GetSolNetworkPackageRequest,
GetSolNetworkPackageContentRequest,
PutSolNetworkPackageContentRequest,
PutSolFunctionPackageContentRequest,
ListSolNetworkOperationsRequest,
CancelSolNetworkOperationRequest,
UntagResourceRequest,
DeleteSolNetworkInstanceRequest,
GetSolNetworkPackageDescriptorRequest,
ListSolFunctionInstancesRequest,
DeleteSolNetworkPackageRequest,
ListSolNetworkPackagesRequest,
TagResourceRequest
}
import zio.aws.core.AwsError
import zio.aws.core.aspects.AwsCallAspect
import zio.{IO, ZEnvironment, URLayer}
import zio.stream.ZStream
object TnbMock extends Mock[Tnb] {
object InstantiateSolNetworkInstance
extends Effect[
InstantiateSolNetworkInstanceRequest,
AwsError,
zio.aws.tnb.model.InstantiateSolNetworkInstanceResponse.ReadOnly
]
object CreateSolNetworkInstance
extends Effect[
CreateSolNetworkInstanceRequest,
AwsError,
zio.aws.tnb.model.CreateSolNetworkInstanceResponse.ReadOnly
]
object ListSolNetworkInstances
extends Stream[
ListSolNetworkInstancesRequest,
AwsError,
zio.aws.tnb.model.ListSolNetworkInstanceInfo.ReadOnly
]
object ListSolNetworkInstancesPaginated
extends Effect[
ListSolNetworkInstancesRequest,
AwsError,
zio.aws.tnb.model.ListSolNetworkInstancesResponse.ReadOnly
]
object ValidateSolNetworkPackageContent
extends Effect[
ValidateSolNetworkPackageContentRequest,
AwsError,
zio.aws.tnb.model.ValidateSolNetworkPackageContentResponse.ReadOnly
]
object ValidateSolFunctionPackageContent
extends Effect[
ValidateSolFunctionPackageContentRequest,
AwsError,
zio.aws.tnb.model.ValidateSolFunctionPackageContentResponse.ReadOnly
]
object DeleteSolNetworkInstance
extends Effect[DeleteSolNetworkInstanceRequest, AwsError, Unit]
object GetSolNetworkPackageContent
extends Effect[
GetSolNetworkPackageContentRequest,
AwsError,
zio.aws.tnb.model.GetSolNetworkPackageContentResponse.ReadOnly
]
object UpdateSolNetworkPackage
extends Effect[
UpdateSolNetworkPackageRequest,
AwsError,
zio.aws.tnb.model.UpdateSolNetworkPackageResponse.ReadOnly
]
object GetSolNetworkInstance
extends Effect[GetSolNetworkInstanceRequest, AwsError, ReadOnly]
object GetSolFunctionPackageContent
extends Effect[
GetSolFunctionPackageContentRequest,
AwsError,
zio.aws.tnb.model.GetSolFunctionPackageContentResponse.ReadOnly
]
object GetSolNetworkPackage
extends Effect[
GetSolNetworkPackageRequest,
AwsError,
zio.aws.tnb.model.GetSolNetworkPackageResponse.ReadOnly
]
object ListSolFunctionInstances
extends Stream[
ListSolFunctionInstancesRequest,
AwsError,
zio.aws.tnb.model.ListSolFunctionInstanceInfo.ReadOnly
]
object ListSolFunctionInstancesPaginated
extends Effect[
ListSolFunctionInstancesRequest,
AwsError,
zio.aws.tnb.model.ListSolFunctionInstancesResponse.ReadOnly
]
object UpdateSolNetworkInstance
extends Effect[
UpdateSolNetworkInstanceRequest,
AwsError,
zio.aws.tnb.model.UpdateSolNetworkInstanceResponse.ReadOnly
]
object ListSolNetworkOperations
extends Stream[
ListSolNetworkOperationsRequest,
AwsError,
zio.aws.tnb.model.ListSolNetworkOperationsInfo.ReadOnly
]
object ListSolNetworkOperationsPaginated
extends Effect[
ListSolNetworkOperationsRequest,
AwsError,
zio.aws.tnb.model.ListSolNetworkOperationsResponse.ReadOnly
]
object CancelSolNetworkOperation
extends Effect[CancelSolNetworkOperationRequest, AwsError, Unit]
object CreateSolFunctionPackage
extends Effect[
CreateSolFunctionPackageRequest,
AwsError,
zio.aws.tnb.model.CreateSolFunctionPackageResponse.ReadOnly
]
object TerminateSolNetworkInstance
extends Effect[
TerminateSolNetworkInstanceRequest,
AwsError,
zio.aws.tnb.model.TerminateSolNetworkInstanceResponse.ReadOnly
]
object ListSolFunctionPackages
extends Stream[
ListSolFunctionPackagesRequest,
AwsError,
zio.aws.tnb.model.ListSolFunctionPackageInfo.ReadOnly
]
object ListSolFunctionPackagesPaginated
extends Effect[
ListSolFunctionPackagesRequest,
AwsError,
zio.aws.tnb.model.ListSolFunctionPackagesResponse.ReadOnly
]
object GetSolFunctionPackage
extends Effect[
GetSolFunctionPackageRequest,
AwsError,
zio.aws.tnb.model.GetSolFunctionPackageResponse.ReadOnly
]
object PutSolFunctionPackageContent
extends Effect[
PutSolFunctionPackageContentRequest,
AwsError,
zio.aws.tnb.model.PutSolFunctionPackageContentResponse.ReadOnly
]
object UntagResource
extends Effect[
UntagResourceRequest,
AwsError,
zio.aws.tnb.model.UntagResourceResponse.ReadOnly
]
object UpdateSolFunctionPackage
extends Effect[
UpdateSolFunctionPackageRequest,
AwsError,
zio.aws.tnb.model.UpdateSolFunctionPackageResponse.ReadOnly
]
object CreateSolNetworkPackage
extends Effect[
CreateSolNetworkPackageRequest,
AwsError,
zio.aws.tnb.model.CreateSolNetworkPackageResponse.ReadOnly
]
object DeleteSolFunctionPackage
extends Effect[DeleteSolFunctionPackageRequest, AwsError, Unit]
object GetSolFunctionInstance
extends Effect[
GetSolFunctionInstanceRequest,
AwsError,
zio.aws.tnb.model.GetSolFunctionInstanceResponse.ReadOnly
]
object ListTagsForResource
extends Effect[
ListTagsForResourceRequest,
AwsError,
zio.aws.tnb.model.ListTagsForResourceResponse.ReadOnly
]
object GetSolNetworkPackageDescriptor
extends Effect[
GetSolNetworkPackageDescriptorRequest,
AwsError,
zio.aws.tnb.model.GetSolNetworkPackageDescriptorResponse.ReadOnly
]
object TagResource
extends Effect[
TagResourceRequest,
AwsError,
zio.aws.tnb.model.TagResourceResponse.ReadOnly
]
object DeleteSolNetworkPackage
extends Effect[DeleteSolNetworkPackageRequest, AwsError, Unit]
object PutSolNetworkPackageContent
extends Effect[
PutSolNetworkPackageContentRequest,
AwsError,
zio.aws.tnb.model.PutSolNetworkPackageContentResponse.ReadOnly
]
object GetSolFunctionPackageDescriptor
extends Effect[
GetSolFunctionPackageDescriptorRequest,
AwsError,
zio.aws.tnb.model.GetSolFunctionPackageDescriptorResponse.ReadOnly
]
object GetSolNetworkOperation
extends Effect[
GetSolNetworkOperationRequest,
AwsError,
zio.aws.tnb.model.GetSolNetworkOperationResponse.ReadOnly
]
object ListSolNetworkPackages
extends Stream[
ListSolNetworkPackagesRequest,
AwsError,
zio.aws.tnb.model.ListSolNetworkPackageInfo.ReadOnly
]
object ListSolNetworkPackagesPaginated
extends Effect[
ListSolNetworkPackagesRequest,
AwsError,
zio.aws.tnb.model.ListSolNetworkPackagesResponse.ReadOnly
]
val compose: URLayer[Proxy, Tnb] = zio.ZLayer {
zio.ZIO.service[Proxy].flatMap { proxy =>
withRuntime[Proxy, Tnb] { rts =>
zio.ZIO.succeed {
new Tnb {
val api: TnbAsyncClient = null
def withAspect[R1](
newAspect: AwsCallAspect[R1],
r: ZEnvironment[R1]
): Tnb = this
def instantiateSolNetworkInstance(
request: InstantiateSolNetworkInstanceRequest
): IO[
AwsError,
zio.aws.tnb.model.InstantiateSolNetworkInstanceResponse.ReadOnly
] = proxy(InstantiateSolNetworkInstance, request)
def createSolNetworkInstance(
request: CreateSolNetworkInstanceRequest
): IO[
AwsError,
zio.aws.tnb.model.CreateSolNetworkInstanceResponse.ReadOnly
] = proxy(CreateSolNetworkInstance, request)
def listSolNetworkInstances(
request: ListSolNetworkInstancesRequest
): ZStream[
Any,
AwsError,
zio.aws.tnb.model.ListSolNetworkInstanceInfo.ReadOnly
] = zio.Unsafe.unsafe { implicit u =>
rts.unsafe
.run {
proxy(ListSolNetworkInstances, request)
}
.getOrThrowFiberFailure()
}
def listSolNetworkInstancesPaginated(
request: ListSolNetworkInstancesRequest
): IO[
AwsError,
zio.aws.tnb.model.ListSolNetworkInstancesResponse.ReadOnly
] = proxy(ListSolNetworkInstancesPaginated, request)
def validateSolNetworkPackageContent(
request: ValidateSolNetworkPackageContentRequest
): IO[
AwsError,
zio.aws.tnb.model.ValidateSolNetworkPackageContentResponse.ReadOnly
] = proxy(ValidateSolNetworkPackageContent, request)
def validateSolFunctionPackageContent(
request: ValidateSolFunctionPackageContentRequest
): IO[
AwsError,
zio.aws.tnb.model.ValidateSolFunctionPackageContentResponse.ReadOnly
] = proxy(ValidateSolFunctionPackageContent, request)
def deleteSolNetworkInstance(
request: DeleteSolNetworkInstanceRequest
): IO[AwsError, Unit] = proxy(DeleteSolNetworkInstance, request)
def getSolNetworkPackageContent(
request: GetSolNetworkPackageContentRequest
): IO[
AwsError,
zio.aws.tnb.model.GetSolNetworkPackageContentResponse.ReadOnly
] = proxy(GetSolNetworkPackageContent, request)
def updateSolNetworkPackage(
request: UpdateSolNetworkPackageRequest
): IO[
AwsError,
zio.aws.tnb.model.UpdateSolNetworkPackageResponse.ReadOnly
] = proxy(UpdateSolNetworkPackage, request)
def getSolNetworkInstance(
request: GetSolNetworkInstanceRequest
): IO[AwsError, ReadOnly] = proxy(GetSolNetworkInstance, request)
def getSolFunctionPackageContent(
request: GetSolFunctionPackageContentRequest
): IO[
AwsError,
zio.aws.tnb.model.GetSolFunctionPackageContentResponse.ReadOnly
] = proxy(GetSolFunctionPackageContent, request)
def getSolNetworkPackage(request: GetSolNetworkPackageRequest): IO[
AwsError,
zio.aws.tnb.model.GetSolNetworkPackageResponse.ReadOnly
] = proxy(GetSolNetworkPackage, request)
def listSolFunctionInstances(
request: ListSolFunctionInstancesRequest
): ZStream[
Any,
AwsError,
zio.aws.tnb.model.ListSolFunctionInstanceInfo.ReadOnly
] = zio.Unsafe.unsafe { implicit u =>
rts.unsafe
.run {
proxy(ListSolFunctionInstances, request)
}
.getOrThrowFiberFailure()
}
def listSolFunctionInstancesPaginated(
request: ListSolFunctionInstancesRequest
): IO[
AwsError,
zio.aws.tnb.model.ListSolFunctionInstancesResponse.ReadOnly
] = proxy(ListSolFunctionInstancesPaginated, request)
def updateSolNetworkInstance(
request: UpdateSolNetworkInstanceRequest
): IO[
AwsError,
zio.aws.tnb.model.UpdateSolNetworkInstanceResponse.ReadOnly
] = proxy(UpdateSolNetworkInstance, request)
def listSolNetworkOperations(
request: ListSolNetworkOperationsRequest
): ZStream[
Any,
AwsError,
zio.aws.tnb.model.ListSolNetworkOperationsInfo.ReadOnly
] = zio.Unsafe.unsafe { implicit u =>
rts.unsafe
.run {
proxy(ListSolNetworkOperations, request)
}
.getOrThrowFiberFailure()
}
def listSolNetworkOperationsPaginated(
request: ListSolNetworkOperationsRequest
): IO[
AwsError,
zio.aws.tnb.model.ListSolNetworkOperationsResponse.ReadOnly
] = proxy(ListSolNetworkOperationsPaginated, request)
def cancelSolNetworkOperation(
request: CancelSolNetworkOperationRequest
): IO[AwsError, Unit] = proxy(CancelSolNetworkOperation, request)
def createSolFunctionPackage(
request: CreateSolFunctionPackageRequest
): IO[
AwsError,
zio.aws.tnb.model.CreateSolFunctionPackageResponse.ReadOnly
] = proxy(CreateSolFunctionPackage, request)
def terminateSolNetworkInstance(
request: TerminateSolNetworkInstanceRequest
): IO[
AwsError,
zio.aws.tnb.model.TerminateSolNetworkInstanceResponse.ReadOnly
] = proxy(TerminateSolNetworkInstance, request)
def listSolFunctionPackages(
request: ListSolFunctionPackagesRequest
): ZStream[
Any,
AwsError,
zio.aws.tnb.model.ListSolFunctionPackageInfo.ReadOnly
] = zio.Unsafe.unsafe { implicit u =>
rts.unsafe
.run {
proxy(ListSolFunctionPackages, request)
}
.getOrThrowFiberFailure()
}
def listSolFunctionPackagesPaginated(
request: ListSolFunctionPackagesRequest
): IO[
AwsError,
zio.aws.tnb.model.ListSolFunctionPackagesResponse.ReadOnly
] = proxy(ListSolFunctionPackagesPaginated, request)
def getSolFunctionPackage(
request: GetSolFunctionPackageRequest
): IO[
AwsError,
zio.aws.tnb.model.GetSolFunctionPackageResponse.ReadOnly
] = proxy(GetSolFunctionPackage, request)
def putSolFunctionPackageContent(
request: PutSolFunctionPackageContentRequest
): IO[
AwsError,
zio.aws.tnb.model.PutSolFunctionPackageContentResponse.ReadOnly
] = proxy(PutSolFunctionPackageContent, request)
def untagResource(
request: UntagResourceRequest
): IO[AwsError, zio.aws.tnb.model.UntagResourceResponse.ReadOnly] =
proxy(UntagResource, request)
def updateSolFunctionPackage(
request: UpdateSolFunctionPackageRequest
): IO[
AwsError,
zio.aws.tnb.model.UpdateSolFunctionPackageResponse.ReadOnly
] = proxy(UpdateSolFunctionPackage, request)
def createSolNetworkPackage(
request: CreateSolNetworkPackageRequest
): IO[
AwsError,
zio.aws.tnb.model.CreateSolNetworkPackageResponse.ReadOnly
] = proxy(CreateSolNetworkPackage, request)
def deleteSolFunctionPackage(
request: DeleteSolFunctionPackageRequest
): IO[AwsError, Unit] = proxy(DeleteSolFunctionPackage, request)
def getSolFunctionInstance(
request: GetSolFunctionInstanceRequest
): IO[
AwsError,
zio.aws.tnb.model.GetSolFunctionInstanceResponse.ReadOnly
] = proxy(GetSolFunctionInstance, request)
def listTagsForResource(request: ListTagsForResourceRequest): IO[
AwsError,
zio.aws.tnb.model.ListTagsForResourceResponse.ReadOnly
] = proxy(ListTagsForResource, request)
def getSolNetworkPackageDescriptor(
request: GetSolNetworkPackageDescriptorRequest
): IO[
AwsError,
zio.aws.tnb.model.GetSolNetworkPackageDescriptorResponse.ReadOnly
] = proxy(GetSolNetworkPackageDescriptor, request)
def tagResource(
request: TagResourceRequest
): IO[AwsError, zio.aws.tnb.model.TagResourceResponse.ReadOnly] =
proxy(TagResource, request)
def deleteSolNetworkPackage(
request: DeleteSolNetworkPackageRequest
): IO[AwsError, Unit] = proxy(DeleteSolNetworkPackage, request)
def putSolNetworkPackageContent(
request: PutSolNetworkPackageContentRequest
): IO[
AwsError,
zio.aws.tnb.model.PutSolNetworkPackageContentResponse.ReadOnly
] = proxy(PutSolNetworkPackageContent, request)
def getSolFunctionPackageDescriptor(
request: GetSolFunctionPackageDescriptorRequest
): IO[
AwsError,
zio.aws.tnb.model.GetSolFunctionPackageDescriptorResponse.ReadOnly
] = proxy(GetSolFunctionPackageDescriptor, request)
def getSolNetworkOperation(
request: GetSolNetworkOperationRequest
): IO[
AwsError,
zio.aws.tnb.model.GetSolNetworkOperationResponse.ReadOnly
] = proxy(GetSolNetworkOperation, request)
def listSolNetworkPackages(
request: ListSolNetworkPackagesRequest
): ZStream[
Any,
AwsError,
zio.aws.tnb.model.ListSolNetworkPackageInfo.ReadOnly
] = zio.Unsafe.unsafe { implicit u =>
rts.unsafe
.run {
proxy(ListSolNetworkPackages, request)
}
.getOrThrowFiberFailure()
}
def listSolNetworkPackagesPaginated(
request: ListSolNetworkPackagesRequest
): IO[
AwsError,
zio.aws.tnb.model.ListSolNetworkPackagesResponse.ReadOnly
] = proxy(ListSolNetworkPackagesPaginated, request)
}
}
}
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy