/** * Generated by API Builder - https://www.apibuilder.io * Service version: 0.0.1-dev * User agent: apibuilder app.apibuilder.io/juststeve-s/apibuilder-learning-api/0.0.1-dev/scala_mock_models */ package justSteves.apibuilder.learning.api.v0.mock { object Factories { def randomString(length: Int = 24): String = { _root_.scala.util.Random.alphanumeric.take(length).mkString } def makeAppSortBy(): justSteves.apibuilder.learning.api.v0.models.AppSortBy = justSteves.apibuilder.learning.api.v0.models.AppSortBy.Name def makeOriginalType(): justSteves.apibuilder.learning.api.v0.models.OriginalType = justSteves.apibuilder.learning.api.v0.models.OriginalType.ApiJson def makePublication(): justSteves.apibuilder.learning.api.v0.models.Publication = justSteves.apibuilder.learning.api.v0.models.Publication.MembershipRequestsCreate def makeSortOrder(): justSteves.apibuilder.learning.api.v0.models.SortOrder = justSteves.apibuilder.learning.api.v0.models.SortOrder.Asc def makeVisibility(): justSteves.apibuilder.learning.api.v0.models.Visibility = justSteves.apibuilder.learning.api.v0.models.Visibility.User def makeApplication(): justSteves.apibuilder.learning.api.v0.models.Application = justSteves.apibuilder.learning.api.v0.models.Application( guid = _root_.java.util.UUID.randomUUID, organization = io.apibuilder.common.v0.mock.Factories.makeReference(), name = Factories.randomString(24), key = Factories.randomString(24), visibility = justSteves.apibuilder.learning.api.v0.mock.Factories.makeVisibility(), description = None, lastUpdatedAt = _root_.org.joda.time.DateTime.now, audit = io.apibuilder.common.v0.mock.Factories.makeAudit() ) def makeApplicationForm(): justSteves.apibuilder.learning.api.v0.models.ApplicationForm = justSteves.apibuilder.learning.api.v0.models.ApplicationForm( name = Factories.randomString(24), key = None, description = None, visibility = justSteves.apibuilder.learning.api.v0.mock.Factories.makeVisibility() ) def makeApplicationMetadata(): justSteves.apibuilder.learning.api.v0.models.ApplicationMetadata = justSteves.apibuilder.learning.api.v0.models.ApplicationMetadata( guid = _root_.java.util.UUID.randomUUID, key = Factories.randomString(24) ) def makeApplicationMetadataVersion(): justSteves.apibuilder.learning.api.v0.models.ApplicationMetadataVersion = justSteves.apibuilder.learning.api.v0.models.ApplicationMetadataVersion( version = Factories.randomString(24) ) def makeApplicationSummary(): justSteves.apibuilder.learning.api.v0.models.ApplicationSummary = justSteves.apibuilder.learning.api.v0.models.ApplicationSummary( guid = _root_.java.util.UUID.randomUUID, organization = io.apibuilder.common.v0.mock.Factories.makeReference(), key = Factories.randomString(24) ) def makeAttribute(): justSteves.apibuilder.learning.api.v0.models.Attribute = justSteves.apibuilder.learning.api.v0.models.Attribute( guid = _root_.java.util.UUID.randomUUID, name = Factories.randomString(24), description = None, audit = io.apibuilder.common.v0.mock.Factories.makeAudit() ) def makeAttributeForm(): justSteves.apibuilder.learning.api.v0.models.AttributeForm = justSteves.apibuilder.learning.api.v0.models.AttributeForm( name = Factories.randomString(24), description = None ) def makeAttributeSummary(): justSteves.apibuilder.learning.api.v0.models.AttributeSummary = justSteves.apibuilder.learning.api.v0.models.AttributeSummary( guid = _root_.java.util.UUID.randomUUID, name = Factories.randomString(24) ) def makeAttributeValue(): justSteves.apibuilder.learning.api.v0.models.AttributeValue = justSteves.apibuilder.learning.api.v0.models.AttributeValue( guid = _root_.java.util.UUID.randomUUID, attribute = justSteves.apibuilder.learning.api.v0.mock.Factories.makeAttributeSummary(), value = Factories.randomString(24), audit = io.apibuilder.common.v0.mock.Factories.makeAudit() ) def makeAttributeValueForm(): justSteves.apibuilder.learning.api.v0.models.AttributeValueForm = justSteves.apibuilder.learning.api.v0.models.AttributeValueForm( value = Factories.randomString(24) ) def makeAuthentication(): justSteves.apibuilder.learning.api.v0.models.Authentication = justSteves.apibuilder.learning.api.v0.models.Authentication( user = justSteves.apibuilder.learning.api.v0.mock.Factories.makeUser(), session = justSteves.apibuilder.learning.api.v0.mock.Factories.makeSession() ) def makeChange(): justSteves.apibuilder.learning.api.v0.models.Change = justSteves.apibuilder.learning.api.v0.models.Change( guid = _root_.java.util.UUID.randomUUID, organization = io.apibuilder.common.v0.mock.Factories.makeReference(), application = io.apibuilder.common.v0.mock.Factories.makeReference(), fromVersion = justSteves.apibuilder.learning.api.v0.mock.Factories.makeChangeVersion(), toVersion = justSteves.apibuilder.learning.api.v0.mock.Factories.makeChangeVersion(), diff = justSteves.apibuilder.learning.api.v0.mock.Factories.makeDiff(), changedAt = _root_.org.joda.time.DateTime.now, changedBy = justSteves.apibuilder.learning.api.v0.mock.Factories.makeUserSummary(), audit = io.apibuilder.common.v0.mock.Factories.makeAudit() ) def makeChangeVersion(): justSteves.apibuilder.learning.api.v0.models.ChangeVersion = justSteves.apibuilder.learning.api.v0.models.ChangeVersion( guid = _root_.java.util.UUID.randomUUID, version = Factories.randomString(24) ) def makeCleartextToken(): justSteves.apibuilder.learning.api.v0.models.CleartextToken = justSteves.apibuilder.learning.api.v0.models.CleartextToken( token = Factories.randomString(24) ) def makeCode(): justSteves.apibuilder.learning.api.v0.models.Code = justSteves.apibuilder.learning.api.v0.models.Code( generator = justSteves.apibuilder.learning.api.v0.mock.Factories.makeGeneratorWithService(), source = Factories.randomString(24), files = Nil ) def makeCodeForm(): justSteves.apibuilder.learning.api.v0.models.CodeForm = justSteves.apibuilder.learning.api.v0.models.CodeForm( attributes = Nil ) def makeDiffBreaking(): justSteves.apibuilder.learning.api.v0.models.DiffBreaking = justSteves.apibuilder.learning.api.v0.models.DiffBreaking( description = Factories.randomString(24) ) def makeDiffNonBreaking(): justSteves.apibuilder.learning.api.v0.models.DiffNonBreaking = justSteves.apibuilder.learning.api.v0.models.DiffNonBreaking( description = Factories.randomString(24) ) def makeDomain(): justSteves.apibuilder.learning.api.v0.models.Domain = justSteves.apibuilder.learning.api.v0.models.Domain( name = Factories.randomString(24) ) def makeEmailVerificationConfirmationForm(): justSteves.apibuilder.learning.api.v0.models.EmailVerificationConfirmationForm = justSteves.apibuilder.learning.api.v0.models.EmailVerificationConfirmationForm( token = Factories.randomString(24) ) def makeError(): justSteves.apibuilder.learning.api.v0.models.Error = justSteves.apibuilder.learning.api.v0.models.Error( code = Factories.randomString(24), message = Factories.randomString(24) ) def makeGeneratorForm(): justSteves.apibuilder.learning.api.v0.models.GeneratorForm = justSteves.apibuilder.learning.api.v0.models.GeneratorForm( serviceGuid = _root_.java.util.UUID.randomUUID, generator = io.apibuilder.generator.v0.mock.Factories.makeGenerator() ) def makeGeneratorService(): justSteves.apibuilder.learning.api.v0.models.GeneratorService = justSteves.apibuilder.learning.api.v0.models.GeneratorService( guid = _root_.java.util.UUID.randomUUID, uri = Factories.randomString(24), audit = io.apibuilder.common.v0.mock.Factories.makeAudit() ) def makeGeneratorServiceForm(): justSteves.apibuilder.learning.api.v0.models.GeneratorServiceForm = justSteves.apibuilder.learning.api.v0.models.GeneratorServiceForm( uri = Factories.randomString(24) ) def makeGeneratorWithService(): justSteves.apibuilder.learning.api.v0.models.GeneratorWithService = justSteves.apibuilder.learning.api.v0.models.GeneratorWithService( service = justSteves.apibuilder.learning.api.v0.mock.Factories.makeGeneratorService(), generator = io.apibuilder.generator.v0.mock.Factories.makeGenerator() ) def makeItem(): justSteves.apibuilder.learning.api.v0.models.Item = justSteves.apibuilder.learning.api.v0.models.Item( guid = _root_.java.util.UUID.randomUUID, detail = justSteves.apibuilder.learning.api.v0.mock.Factories.makeItemDetail(), label = Factories.randomString(24), description = None ) def makeMembership(): justSteves.apibuilder.learning.api.v0.models.Membership = justSteves.apibuilder.learning.api.v0.models.Membership( guid = _root_.java.util.UUID.randomUUID, user = justSteves.apibuilder.learning.api.v0.mock.Factories.makeUser(), organization = justSteves.apibuilder.learning.api.v0.mock.Factories.makeOrganization(), role = Factories.randomString(24), audit = io.apibuilder.common.v0.mock.Factories.makeAudit() ) def makeMembershipRequest(): justSteves.apibuilder.learning.api.v0.models.MembershipRequest = justSteves.apibuilder.learning.api.v0.models.MembershipRequest( guid = _root_.java.util.UUID.randomUUID, user = justSteves.apibuilder.learning.api.v0.mock.Factories.makeUser(), organization = justSteves.apibuilder.learning.api.v0.mock.Factories.makeOrganization(), role = Factories.randomString(24), audit = io.apibuilder.common.v0.mock.Factories.makeAudit() ) def makeMoveForm(): justSteves.apibuilder.learning.api.v0.models.MoveForm = justSteves.apibuilder.learning.api.v0.models.MoveForm( orgKey = Factories.randomString(24) ) def makeOrganization(): justSteves.apibuilder.learning.api.v0.models.Organization = justSteves.apibuilder.learning.api.v0.models.Organization( guid = _root_.java.util.UUID.randomUUID, key = Factories.randomString(24), name = Factories.randomString(24), namespace = Factories.randomString(24), visibility = justSteves.apibuilder.learning.api.v0.mock.Factories.makeVisibility(), domains = Nil, audit = io.apibuilder.common.v0.mock.Factories.makeAudit() ) def makeOrganizationForm(): justSteves.apibuilder.learning.api.v0.models.OrganizationForm = justSteves.apibuilder.learning.api.v0.models.OrganizationForm( name = Factories.randomString(24), key = None, namespace = Factories.randomString(24), visibility = justSteves.apibuilder.learning.api.v0.mock.Factories.makeVisibility(), domains = None ) def makeOriginal(): justSteves.apibuilder.learning.api.v0.models.Original = justSteves.apibuilder.learning.api.v0.models.Original( `type` = justSteves.apibuilder.learning.api.v0.mock.Factories.makeOriginalType(), data = Factories.randomString(24) ) def makeOriginalForm(): justSteves.apibuilder.learning.api.v0.models.OriginalForm = justSteves.apibuilder.learning.api.v0.models.OriginalForm( `type` = None, data = Factories.randomString(24) ) def makePasswordReset(): justSteves.apibuilder.learning.api.v0.models.PasswordReset = justSteves.apibuilder.learning.api.v0.models.PasswordReset( token = Factories.randomString(24), password = Factories.randomString(24) ) def makePasswordResetRequest(): justSteves.apibuilder.learning.api.v0.models.PasswordResetRequest = justSteves.apibuilder.learning.api.v0.models.PasswordResetRequest( email = Factories.randomString(24) ) def makeSession(): justSteves.apibuilder.learning.api.v0.models.Session = justSteves.apibuilder.learning.api.v0.models.Session( id = Factories.randomString(24), expiresAt = _root_.org.joda.time.DateTime.now ) def makeSubscription(): justSteves.apibuilder.learning.api.v0.models.Subscription = justSteves.apibuilder.learning.api.v0.models.Subscription( guid = _root_.java.util.UUID.randomUUID, organization = justSteves.apibuilder.learning.api.v0.mock.Factories.makeOrganization(), user = justSteves.apibuilder.learning.api.v0.mock.Factories.makeUser(), publication = justSteves.apibuilder.learning.api.v0.mock.Factories.makePublication(), audit = io.apibuilder.common.v0.mock.Factories.makeAudit() ) def makeSubscriptionForm(): justSteves.apibuilder.learning.api.v0.models.SubscriptionForm = justSteves.apibuilder.learning.api.v0.models.SubscriptionForm( organizationKey = Factories.randomString(24), userGuid = _root_.java.util.UUID.randomUUID, publication = justSteves.apibuilder.learning.api.v0.mock.Factories.makePublication() ) def makeToken(): justSteves.apibuilder.learning.api.v0.models.Token = justSteves.apibuilder.learning.api.v0.models.Token( guid = _root_.java.util.UUID.randomUUID, user = justSteves.apibuilder.learning.api.v0.mock.Factories.makeUser(), maskedToken = Factories.randomString(24), description = None, audit = io.apibuilder.common.v0.mock.Factories.makeAudit() ) def makeTokenForm(): justSteves.apibuilder.learning.api.v0.models.TokenForm = justSteves.apibuilder.learning.api.v0.models.TokenForm( userGuid = _root_.java.util.UUID.randomUUID, description = None ) def makeUser(): justSteves.apibuilder.learning.api.v0.models.User = justSteves.apibuilder.learning.api.v0.models.User( guid = _root_.java.util.UUID.randomUUID, email = Factories.randomString(24), nickname = Factories.randomString(24), name = None, audit = io.apibuilder.common.v0.mock.Factories.makeAudit() ) def makeUserForm(): justSteves.apibuilder.learning.api.v0.models.UserForm = justSteves.apibuilder.learning.api.v0.models.UserForm( email = Factories.randomString(24), password = Factories.randomString(24), nickname = None, name = None ) def makeUserSummary(): justSteves.apibuilder.learning.api.v0.models.UserSummary = justSteves.apibuilder.learning.api.v0.models.UserSummary( guid = _root_.java.util.UUID.randomUUID, nickname = Factories.randomString(24) ) def makeUserUpdateForm(): justSteves.apibuilder.learning.api.v0.models.UserUpdateForm = justSteves.apibuilder.learning.api.v0.models.UserUpdateForm( email = Factories.randomString(24), nickname = Factories.randomString(24), name = None ) def makeValidation(): justSteves.apibuilder.learning.api.v0.models.Validation = justSteves.apibuilder.learning.api.v0.models.Validation( valid = true, errors = Nil ) def makeVersion(): justSteves.apibuilder.learning.api.v0.models.Version = justSteves.apibuilder.learning.api.v0.models.Version( guid = _root_.java.util.UUID.randomUUID, organization = io.apibuilder.common.v0.mock.Factories.makeReference(), application = io.apibuilder.common.v0.mock.Factories.makeReference(), version = Factories.randomString(24), original = None, service = io.apibuilder.spec.v0.mock.Factories.makeService(), audit = io.apibuilder.common.v0.mock.Factories.makeAudit() ) def makeVersionForm(): justSteves.apibuilder.learning.api.v0.models.VersionForm = justSteves.apibuilder.learning.api.v0.models.VersionForm( originalForm = justSteves.apibuilder.learning.api.v0.mock.Factories.makeOriginalForm(), visibility = None ) def makeWatch(): justSteves.apibuilder.learning.api.v0.models.Watch = justSteves.apibuilder.learning.api.v0.models.Watch( guid = _root_.java.util.UUID.randomUUID, user = justSteves.apibuilder.learning.api.v0.mock.Factories.makeUser(), organization = justSteves.apibuilder.learning.api.v0.mock.Factories.makeOrganization(), application = justSteves.apibuilder.learning.api.v0.mock.Factories.makeApplication(), audit = io.apibuilder.common.v0.mock.Factories.makeAudit() ) def makeWatchForm(): justSteves.apibuilder.learning.api.v0.models.WatchForm = justSteves.apibuilder.learning.api.v0.models.WatchForm( userGuid = _root_.java.util.UUID.randomUUID, organizationKey = Factories.randomString(24), applicationKey = Factories.randomString(24) ) def makeDiff(): justSteves.apibuilder.learning.api.v0.models.Diff = justSteves.apibuilder.learning.api.v0.mock.Factories.makeDiffBreaking() def makeItemDetail(): justSteves.apibuilder.learning.api.v0.models.ItemDetail = justSteves.apibuilder.learning.api.v0.mock.Factories.makeApplicationSummary() } }