aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
2 lines (1 loc) • 22.2 kB
JavaScript
"use strict";var _a,_b,_c,_d;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnSchema=exports.CfnRegistryPolicy=exports.CfnRegistry=exports.CfnDiscoverer=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),cdk=require("../../core"),cfn_parse=require("../../core/lib/helpers-internal");function CfnDiscovererPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("crossAccount",cdk.validateBoolean)(properties.crossAccount)),errors.collect(cdk.propertyValidator("description",cdk.validateString)(properties.description)),errors.collect(cdk.propertyValidator("sourceArn",cdk.requiredValidator)(properties.sourceArn)),errors.collect(cdk.propertyValidator("sourceArn",cdk.validateString)(properties.sourceArn)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(CfnDiscoverer_TagsEntryPropertyValidator))(properties.tags)),errors.wrap('supplied properties not correct for "CfnDiscovererProps"')}function cfnDiscovererPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDiscovererPropsValidator(properties).assertSuccess(),{SourceArn:cdk.stringToCloudFormation(properties.sourceArn),CrossAccount:cdk.booleanToCloudFormation(properties.crossAccount),Description:cdk.stringToCloudFormation(properties.description),Tags:cdk.listMapper(cfnDiscovererTagsEntryPropertyToCloudFormation)(properties.tags)}):properties}function CfnDiscovererPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("sourceArn","SourceArn",cfn_parse.FromCloudFormation.getString(properties.SourceArn)),ret.addPropertyResult("crossAccount","CrossAccount",properties.CrossAccount!=null?cfn_parse.FromCloudFormation.getBoolean(properties.CrossAccount):void 0),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse.FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getArray(CfnDiscovererTagsEntryPropertyFromCloudFormation)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnDiscoverer extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnDiscoverer.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_eventschemas_CfnDiscovererProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnDiscoverer),error}cdk.requireProperty(props,"sourceArn",this),this.attrCrossAccount=this.getAtt("CrossAccount",cdk.ResolutionTypeHint.STRING),this.attrDiscovererArn=cdk.Token.asString(this.getAtt("DiscovererArn",cdk.ResolutionTypeHint.STRING)),this.attrDiscovererId=cdk.Token.asString(this.getAtt("DiscovererId",cdk.ResolutionTypeHint.STRING)),this.sourceArn=props.sourceArn,this.crossAccount=props.crossAccount,this.description=props.description,this.tags=new cdk.TagManager(cdk.TagType.STANDARD,"AWS::EventSchemas::Discoverer",props.tags,{tagPropertyName:"tags"})}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnDiscovererPropsFromCloudFormation(resourceProperties),ret=new CfnDiscoverer(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}inspect(inspector){try{jsiiDeprecationWarnings.aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnDiscoverer.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{sourceArn:this.sourceArn,crossAccount:this.crossAccount,description:this.description,tags:this.tags.renderTags()}}renderProperties(props){return cfnDiscovererPropsToCloudFormation(props)}}exports.CfnDiscoverer=CfnDiscoverer,_a=JSII_RTTI_SYMBOL_1,CfnDiscoverer[_a]={fqn:"aws-cdk-lib.aws_eventschemas.CfnDiscoverer",version:"2.70.0"},CfnDiscoverer.CFN_RESOURCE_TYPE_NAME="AWS::EventSchemas::Discoverer";function CfnDiscoverer_TagsEntryPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("key",cdk.requiredValidator)(properties.key)),errors.collect(cdk.propertyValidator("key",cdk.validateString)(properties.key)),errors.collect(cdk.propertyValidator("value",cdk.requiredValidator)(properties.value)),errors.collect(cdk.propertyValidator("value",cdk.validateString)(properties.value)),errors.wrap('supplied properties not correct for "TagsEntryProperty"')}function cfnDiscovererTagsEntryPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDiscoverer_TagsEntryPropertyValidator(properties).assertSuccess(),{Key:cdk.stringToCloudFormation(properties.key),Value:cdk.stringToCloudFormation(properties.value)}):properties}function CfnDiscovererTagsEntryPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("key","Key",cfn_parse.FromCloudFormation.getString(properties.Key)),ret.addPropertyResult("value","Value",cfn_parse.FromCloudFormation.getString(properties.Value)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnRegistryPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("description",cdk.validateString)(properties.description)),errors.collect(cdk.propertyValidator("registryName",cdk.validateString)(properties.registryName)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(CfnRegistry_TagsEntryPropertyValidator))(properties.tags)),errors.wrap('supplied properties not correct for "CfnRegistryProps"')}function cfnRegistryPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnRegistryPropsValidator(properties).assertSuccess(),{Description:cdk.stringToCloudFormation(properties.description),RegistryName:cdk.stringToCloudFormation(properties.registryName),Tags:cdk.listMapper(cfnRegistryTagsEntryPropertyToCloudFormation)(properties.tags)}):properties}function CfnRegistryPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse.FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("registryName","RegistryName",properties.RegistryName!=null?cfn_parse.FromCloudFormation.getString(properties.RegistryName):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getArray(CfnRegistryTagsEntryPropertyFromCloudFormation)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnRegistry extends cdk.CfnResource{constructor(scope,id,props={}){super(scope,id,{type:CfnRegistry.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_eventschemas_CfnRegistryProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnRegistry),error}this.attrRegistryArn=cdk.Token.asString(this.getAtt("RegistryArn",cdk.ResolutionTypeHint.STRING)),this.attrRegistryName=cdk.Token.asString(this.getAtt("RegistryName",cdk.ResolutionTypeHint.STRING)),this.description=props.description,this.registryName=props.registryName,this.tags=new cdk.TagManager(cdk.TagType.STANDARD,"AWS::EventSchemas::Registry",props.tags,{tagPropertyName:"tags"})}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnRegistryPropsFromCloudFormation(resourceProperties),ret=new CfnRegistry(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}inspect(inspector){try{jsiiDeprecationWarnings.aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnRegistry.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{description:this.description,registryName:this.registryName,tags:this.tags.renderTags()}}renderProperties(props){return cfnRegistryPropsToCloudFormation(props)}}exports.CfnRegistry=CfnRegistry,_b=JSII_RTTI_SYMBOL_1,CfnRegistry[_b]={fqn:"aws-cdk-lib.aws_eventschemas.CfnRegistry",version:"2.70.0"},CfnRegistry.CFN_RESOURCE_TYPE_NAME="AWS::EventSchemas::Registry";function CfnRegistry_TagsEntryPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("key",cdk.requiredValidator)(properties.key)),errors.collect(cdk.propertyValidator("key",cdk.validateString)(properties.key)),errors.collect(cdk.propertyValidator("value",cdk.requiredValidator)(properties.value)),errors.collect(cdk.propertyValidator("value",cdk.validateString)(properties.value)),errors.wrap('supplied properties not correct for "TagsEntryProperty"')}function cfnRegistryTagsEntryPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnRegistry_TagsEntryPropertyValidator(properties).assertSuccess(),{Key:cdk.stringToCloudFormation(properties.key),Value:cdk.stringToCloudFormation(properties.value)}):properties}function CfnRegistryTagsEntryPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("key","Key",cfn_parse.FromCloudFormation.getString(properties.Key)),ret.addPropertyResult("value","Value",cfn_parse.FromCloudFormation.getString(properties.Value)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnRegistryPolicyPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("policy",cdk.requiredValidator)(properties.policy)),errors.collect(cdk.propertyValidator("policy",cdk.validateObject)(properties.policy)),errors.collect(cdk.propertyValidator("registryName",cdk.requiredValidator)(properties.registryName)),errors.collect(cdk.propertyValidator("registryName",cdk.validateString)(properties.registryName)),errors.collect(cdk.propertyValidator("revisionId",cdk.validateString)(properties.revisionId)),errors.wrap('supplied properties not correct for "CfnRegistryPolicyProps"')}function cfnRegistryPolicyPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnRegistryPolicyPropsValidator(properties).assertSuccess(),{Policy:cdk.objectToCloudFormation(properties.policy),RegistryName:cdk.stringToCloudFormation(properties.registryName),RevisionId:cdk.stringToCloudFormation(properties.revisionId)}):properties}function CfnRegistryPolicyPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("policy","Policy",cfn_parse.FromCloudFormation.getAny(properties.Policy)),ret.addPropertyResult("registryName","RegistryName",cfn_parse.FromCloudFormation.getString(properties.RegistryName)),ret.addPropertyResult("revisionId","RevisionId",properties.RevisionId!=null?cfn_parse.FromCloudFormation.getString(properties.RevisionId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnRegistryPolicy extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnRegistryPolicy.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_eventschemas_CfnRegistryPolicyProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnRegistryPolicy),error}cdk.requireProperty(props,"policy",this),cdk.requireProperty(props,"registryName",this),this.attrId=cdk.Token.asString(this.getAtt("Id",cdk.ResolutionTypeHint.STRING)),this.policy=props.policy,this.registryName=props.registryName,this.revisionId=props.revisionId}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnRegistryPolicyPropsFromCloudFormation(resourceProperties),ret=new CfnRegistryPolicy(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}inspect(inspector){try{jsiiDeprecationWarnings.aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnRegistryPolicy.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{policy:this.policy,registryName:this.registryName,revisionId:this.revisionId}}renderProperties(props){return cfnRegistryPolicyPropsToCloudFormation(props)}}exports.CfnRegistryPolicy=CfnRegistryPolicy,_c=JSII_RTTI_SYMBOL_1,CfnRegistryPolicy[_c]={fqn:"aws-cdk-lib.aws_eventschemas.CfnRegistryPolicy",version:"2.70.0"},CfnRegistryPolicy.CFN_RESOURCE_TYPE_NAME="AWS::EventSchemas::RegistryPolicy";function CfnSchemaPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("content",cdk.requiredValidator)(properties.content)),errors.collect(cdk.propertyValidator("content",cdk.validateString)(properties.content)),errors.collect(cdk.propertyValidator("description",cdk.validateString)(properties.description)),errors.collect(cdk.propertyValidator("registryName",cdk.requiredValidator)(properties.registryName)),errors.collect(cdk.propertyValidator("registryName",cdk.validateString)(properties.registryName)),errors.collect(cdk.propertyValidator("schemaName",cdk.validateString)(properties.schemaName)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(CfnSchema_TagsEntryPropertyValidator))(properties.tags)),errors.collect(cdk.propertyValidator("type",cdk.requiredValidator)(properties.type)),errors.collect(cdk.propertyValidator("type",cdk.validateString)(properties.type)),errors.wrap('supplied properties not correct for "CfnSchemaProps"')}function cfnSchemaPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnSchemaPropsValidator(properties).assertSuccess(),{Content:cdk.stringToCloudFormation(properties.content),RegistryName:cdk.stringToCloudFormation(properties.registryName),Type:cdk.stringToCloudFormation(properties.type),Description:cdk.stringToCloudFormation(properties.description),SchemaName:cdk.stringToCloudFormation(properties.schemaName),Tags:cdk.listMapper(cfnSchemaTagsEntryPropertyToCloudFormation)(properties.tags)}):properties}function CfnSchemaPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("content","Content",cfn_parse.FromCloudFormation.getString(properties.Content)),ret.addPropertyResult("registryName","RegistryName",cfn_parse.FromCloudFormation.getString(properties.RegistryName)),ret.addPropertyResult("type","Type",cfn_parse.FromCloudFormation.getString(properties.Type)),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse.FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("schemaName","SchemaName",properties.SchemaName!=null?cfn_parse.FromCloudFormation.getString(properties.SchemaName):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse.FromCloudFormation.getArray(CfnSchemaTagsEntryPropertyFromCloudFormation)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnSchema extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnSchema.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_eventschemas_CfnSchemaProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnSchema),error}cdk.requireProperty(props,"content",this),cdk.requireProperty(props,"registryName",this),cdk.requireProperty(props,"type",this),this.attrSchemaArn=cdk.Token.asString(this.getAtt("SchemaArn",cdk.ResolutionTypeHint.STRING)),this.attrSchemaName=cdk.Token.asString(this.getAtt("SchemaName",cdk.ResolutionTypeHint.STRING)),this.attrSchemaVersion=cdk.Token.asString(this.getAtt("SchemaVersion",cdk.ResolutionTypeHint.STRING)),this.content=props.content,this.registryName=props.registryName,this.type=props.type,this.description=props.description,this.schemaName=props.schemaName,this.tags=new cdk.TagManager(cdk.TagType.STANDARD,"AWS::EventSchemas::Schema",props.tags,{tagPropertyName:"tags"})}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnSchemaPropsFromCloudFormation(resourceProperties),ret=new CfnSchema(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}inspect(inspector){try{jsiiDeprecationWarnings.aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnSchema.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{content:this.content,registryName:this.registryName,type:this.type,description:this.description,schemaName:this.schemaName,tags:this.tags.renderTags()}}renderProperties(props){return cfnSchemaPropsToCloudFormation(props)}}exports.CfnSchema=CfnSchema,_d=JSII_RTTI_SYMBOL_1,CfnSchema[_d]={fqn:"aws-cdk-lib.aws_eventschemas.CfnSchema",version:"2.70.0"},CfnSchema.CFN_RESOURCE_TYPE_NAME="AWS::EventSchemas::Schema";function CfnSchema_TagsEntryPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("key",cdk.requiredValidator)(properties.key)),errors.collect(cdk.propertyValidator("key",cdk.validateString)(properties.key)),errors.collect(cdk.propertyValidator("value",cdk.requiredValidator)(properties.value)),errors.collect(cdk.propertyValidator("value",cdk.validateString)(properties.value)),errors.wrap('supplied properties not correct for "TagsEntryProperty"')}function cfnSchemaTagsEntryPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnSchema_TagsEntryPropertyValidator(properties).assertSuccess(),{Key:cdk.stringToCloudFormation(properties.key),Value:cdk.stringToCloudFormation(properties.value)}):properties}function CfnSchemaTagsEntryPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("key","Key",cfn_parse.FromCloudFormation.getString(properties.Key)),ret.addPropertyResult("value","Value",cfn_parse.FromCloudFormation.getString(properties.Value)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}