Skip to content

Commit

Permalink
Merge pull request #1971 from aml-org/publish-5.5.0
Browse files Browse the repository at this point in the history
publish AMF 5.5.0
  • Loading branch information
arielmirra authored Apr 12, 2024
2 parents 073d8a1 + 42d254d commit 5cab5ba
Show file tree
Hide file tree
Showing 1,243 changed files with 8,536 additions and 1,640 deletions.
4 changes: 2 additions & 2 deletions .jvmopts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-Xms512M
-Xmx4096M
-Xms1G
-Xmx16G
-Xss2M
-XX:MaxMetaspaceSize=1024M
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v16.17.1
5 changes: 5 additions & 0 deletions .sdkmanrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Enable auto-env through the sdkman_auto_env config
# Add key=value pairs of SDKs to use below
java=17.0.10-tem
scala=2.12.15
sbt=1.7.3
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ class Message(override private[amf] val _internal: InternalMessage)
def summary: StrField = _internal.summary
def bindings: MessageBindings = _internal.bindings
def headerSchema: NodeShape = _internal.headerSchema
def messageId: StrField = _internal.messageId

/** Set name property of this Response. */
override def withName(name: String): this.type = {
Expand Down Expand Up @@ -95,6 +96,10 @@ class Message(override private[amf] val _internal: InternalMessage)
_internal.withHeaderSchema(schema)
this
}
def withMessageId(messageId: String): this.type = {
_internal.withMessageId(messageId)
this
}

def withPayload(mediaType: ClientOption[String]): Payload = _internal.withPayload(mediaType.toScala)

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
package amf.apicontract.client.platform.model.domain.bindings.googlepubsub

import amf.apicontract.client.platform.model.domain.bindings.{BindingVersion, ChannelBinding}
import amf.apicontract.client.scala.model.domain.bindings.googlepubsub.{GooglePubSubChannelBinding => InternalGooglePubSubChannelBinding, GooglePubSubMessageStoragePolicy => InternalGooglePubSubMessageStoragePolicy, GooglePubSubSchemaSettings => InternalGooglePubSubSchemaSettings}
import amf.apicontract.internal.convert.ApiClientConverters._
import amf.core.client.platform.model.StrField
import amf.core.client.platform.model.domain.{DomainElement, Linkable, ObjectNode}
import amf.shapes.client.scala.model.domain.NodeShape

import scala.scalajs.js.annotation.{JSExportAll, JSExportTopLevel}

@JSExportAll
case class GooglePubSubChannelBinding(override private[amf] val _internal: InternalGooglePubSubChannelBinding)
extends ChannelBinding
with BindingVersion {
@JSExportTopLevel("GooglePubSubChannelBinding")
def this() = this(InternalGooglePubSubChannelBinding())

override def bindingVersion: StrField = _internal.bindingVersion

def labels: ObjectNode = _internal.labels
def messageRetentionDuration: StrField = _internal.messageRetentionDuration
def messageStoragePolicy: GooglePubSubMessageStoragePolicy = _internal.messageStoragePolicy
def schemaSettings: GooglePubSubSchemaSettings = _internal.schemaSettings
def topic: StrField = _internal.topic


def withLabels(labels: ObjectNode): this.type = {
_internal.withLabels(labels)
this
}
def withMessageRetentionDuration(messageRetentionDuration: String): this.type = {
_internal.withMessageRetentionDuration(messageRetentionDuration)
this
}
def withMessageStoragePolicy(messageStoragePolicy: GooglePubSubMessageStoragePolicy): this.type = {
_internal.withMessageStoragePolicy(messageStoragePolicy._internal)
this
}
def withSchemaSettings(schemaSettings: GooglePubSubSchemaSettings): this.type = {
_internal.withSchemaSettings(schemaSettings._internal)
this
}
def withTopic(topic: String): this.type = {
_internal.withTopic(topic)
this
}

override def withBindingVersion(bindingVersion: String): this.type = {
_internal.withBindingVersion(bindingVersion)
this
}

override def linkCopy(): GooglePubSubChannelBinding = _internal.linkCopy()
}

@JSExportAll
case class GooglePubSubMessageStoragePolicy(override private[amf] val _internal: InternalGooglePubSubMessageStoragePolicy) extends DomainElement {
@JSExportTopLevel("GooglePubSubMessageStoragePolicy")
def this() = this(InternalGooglePubSubMessageStoragePolicy())
def allowedPersistenceRegions: ClientList[StrField] = _internal.allowedPersistenceRegions.asClient
def withAllowedPersistenceRegions(allowedPersistenceRegions: ClientList[String]): this.type = {
_internal.withAllowedPersistenceRegions(allowedPersistenceRegions.asInternal)
this
}
}

@JSExportAll
case class GooglePubSubSchemaSettings(override private[amf] val _internal: InternalGooglePubSubSchemaSettings) extends DomainElement {
@JSExportTopLevel("GooglePubSubSchemaSettings")
def this() = this(InternalGooglePubSubSchemaSettings())
def encoding: StrField = _internal.encoding
def firstRevisionId: StrField = _internal.firstRevisionId
def lastRevisionId: StrField = _internal.lastRevisionId
def name: StrField = _internal.name
def withEncoding(encoding: String): this.type = {
_internal.withEncoding(encoding)
this
}
def withFirstRevisionId(firstRevisionId: String): this.type = {
_internal.withFirstRevisionId(firstRevisionId)
this
}
def withLastRevisionId(lastRevisionId: String): this.type = {
_internal.withLastRevisionId(lastRevisionId)
this
}
def withName(name: String): this.type = {
_internal.withName(name)
this
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
package amf.apicontract.client.platform.model.domain.bindings.googlepubsub

import amf.apicontract.client.platform.model.domain.bindings.{BindingVersion, MessageBinding}
import amf.apicontract.client.scala.model.domain.bindings.googlepubsub.{GooglePubSubMessageBinding => InternalGooglePubSubMessageBinding, GooglePubSubSchemaDefinition => InternalGooglePubSubSchemaDefinition}
import amf.core.client.platform.model.StrField
import amf.core.client.platform.model.domain.{DomainElement, ObjectNode}
import amf.apicontract.internal.convert.ApiClientConverters._

import scala.scalajs.js.annotation.{JSExportAll, JSExportTopLevel}


@JSExportAll
case class GooglePubSubMessageBinding(override private[amf] val _internal: InternalGooglePubSubMessageBinding)
extends MessageBinding
with BindingVersion {
@JSExportTopLevel("GooglePubSubMessageBinding")
def this() = this(InternalGooglePubSubMessageBinding())

override protected def bindingVersion: StrField = _internal.bindingVersion
def attributes: ObjectNode = _internal.attributes
def orderingKey: StrField = _internal.orderingKey
def schema: GooglePubSubSchemaDefinition = new GooglePubSubSchemaDefinition(_internal.schema)

def withAttributes(attributes: ObjectNode): this.type = {
_internal.withAttributes(attributes)
this
}
def withOrderingKey(orderingKey: String): this.type = {
_internal.withOrderingKey(orderingKey)
this
}
def withSchema(schema: GooglePubSubSchemaDefinition): this.type = {
_internal.withSchema(schema)
this
}
override def withBindingVersion(bindingVersion: String): GooglePubSubMessageBinding.this.type = {
_internal.withBindingVersion(bindingVersion)
this
}

override def linkCopy(): GooglePubSubMessageBinding = new GooglePubSubMessageBinding(_internal.linkCopy())

}

@JSExportAll
case class GooglePubSubSchemaDefinition(override private[amf] val _internal: InternalGooglePubSubSchemaDefinition) extends DomainElement {
@JSExportTopLevel("GooglePubSubSchemaDefinition")
def this() = this(InternalGooglePubSubSchemaDefinition())

def name: StrField = _internal.name
def fieldType: StrField = _internal.fieldType

def withName(name: String): this.type = {
_internal.withName(name)
this
}
def withFieldType(fieldType: String): this.type = {
_internal.withFieldType(fieldType)
this
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ case class IBMMQChannelQueue(override private[amf] val _internal: InternalIBMMQC
def isPartitioned: BoolField = _internal.isPartitioned
def exclusive: BoolField = _internal.exclusive

def withObjectName(objectName: Boolean): this.type = {
def withObjectName(objectName: String): this.type = {
_internal.withObjectName(objectName)
this
}
Expand Down Expand Up @@ -98,17 +98,17 @@ case class IBMMQChannelTopic(override private[amf] val _internal: InternalIBMMQC
@JSExportTopLevel("IBMMQChannelTopic")
def this() = this(InternalIBMMQChannelTopic())

def string: BoolField = _internal.string
def string: StrField = _internal.string
def objectName: StrField = _internal.objectName
def durablePermitted: BoolField = _internal.durablePermitted
def lastMsgRetained: BoolField = _internal.lastMsgRetained

def withString(string: Boolean): this.type = {
def withString(string: String): this.type = {
_internal.withString(string)
this
}

def withObjectName(objectName: Boolean): this.type = {
def withObjectName(objectName: String): this.type = {
_internal.withObjectName(objectName)
this
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ case class IBMMQMessageBinding(override private[amf] val _internal: InternalIBMM
this
}

override protected def bindingVersion: model.StrField = _internal.bindingVersion
override protected def bindingVersion: StrField = _internal.bindingVersion

override def withBindingVersion(bindingVersion: String): this.type = {
_internal.withBindingVersion(bindingVersion)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ case class IBMMQServerBinding(override private[amf] val _internal: InternalIBMMQ
this
}

override protected def bindingVersion: model.StrField = _internal.bindingVersion
override protected def bindingVersion: StrField = _internal.bindingVersion

override def withBindingVersion(bindingVersion: String): this.type = {
_internal.withBindingVersion(bindingVersion)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
package amf.apicontract.client.platform.model.domain.bindings.pulsar

import amf.apicontract.client.platform.model.domain.bindings.{BindingVersion, ChannelBinding}
import amf.apicontract.client.scala.model.domain.bindings.pulsar.{
PulsarChannelBinding => InternalPulsarChannelBinding,
PulsarChannelRetention => InternalPulsarChannelRetention
}
import amf.apicontract.internal.convert.ApiClientConverters._
import amf.core.client.platform.model
import amf.core.client.platform.model.domain.DomainElement
import amf.core.client.platform.model.{IntField, StrField, BoolField}

import scala.scalajs.js.annotation.{JSExportAll, JSExportTopLevel}

@JSExportAll
case class PulsarChannelBinding(override private[amf] val _internal: InternalPulsarChannelBinding)
extends ChannelBinding
with BindingVersion {
@JSExportTopLevel("PulsarChannelBinding")
def this() = this(InternalPulsarChannelBinding())

def namespace: StrField = _internal.namespace
def persistence: StrField = _internal.persistence
def compaction: IntField = _internal.compaction
def geoReplication: ClientList[StrField] = _internal.geoReplication.asClient
def retention: PulsarChannelRetention = _internal.retention
def ttl: IntField = _internal.ttl
def deduplication: BoolField = _internal.deduplication

def withNamespace(namespace: String): this.type = {
_internal.withNamespace(namespace)
this
}

def withPersistence(persistence: String): this.type = {
_internal.withPersistence(persistence)
this
}

def withCompaction(compaction: Int): this.type = {
_internal.withCompaction(compaction)
this
}

def withGeoReplication(geoReplication: ClientList[String]): this.type = {
_internal.withGeoReplication(geoReplication.asInternal)
this
}

def withRetention(retention: PulsarChannelRetention): this.type = {
_internal.withRetention(retention)
this
}

def withTtl(ttl: Int): this.type = {
_internal.withTtl(ttl)
this
}

def withDeduplication(deduplication: Boolean): this.type = {
_internal.withDeduplication(deduplication)
this
}

override protected def bindingVersion: StrField = _internal.bindingVersion

override def withBindingVersion(bindingVersion: String): this.type = {
_internal.withBindingVersion(bindingVersion)
this
}

override def linkCopy(): PulsarChannelBinding = _internal.linkCopy()
}

@JSExportAll
case class PulsarChannelRetention(override private[amf] val _internal: InternalPulsarChannelRetention)
extends DomainElement {

@JSExportTopLevel("PulsarChannelRetention")
def this() = this(InternalPulsarChannelRetention())

def time: IntField = _internal.time
def size: IntField = _internal.size

def withTime(time: Int): this.type = {
_internal.withTime(time)
this
}
def withSize(size: Int): this.type = {
_internal.withSize(size)
this
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
package amf.apicontract.client.platform.model.domain.bindings.pulsar

import amf.apicontract.client.platform.model.domain.bindings.{BindingVersion, ServerBinding}
import amf.apicontract.client.scala.model.domain.bindings.pulsar.{PulsarServerBinding => InternalPulsarServerBinding}
import amf.apicontract.internal.convert.ApiClientConverters._
import amf.core.client.platform.model
import amf.core.client.platform.model.StrField

import scala.scalajs.js.annotation.{JSExportAll, JSExportTopLevel}

@JSExportAll
case class PulsarServerBinding(override private[amf] val _internal: InternalPulsarServerBinding)
extends ServerBinding
with BindingVersion {
@JSExportTopLevel("PulsarServerBinding")
def this() = this(InternalPulsarServerBinding())

def tenant: StrField = _internal.tenant

def withTenant(tenant: String): this.type = {
_internal.withTenant(tenant)
this
}

override protected def bindingVersion: model.StrField = _internal.bindingVersion

override def withBindingVersion(bindingVersion: String): this.type = {
_internal.withBindingVersion(bindingVersion)
this
}

override def linkCopy(): PulsarServerBinding = _internal.linkCopy()
}
Loading

0 comments on commit 5cab5ba

Please sign in to comment.