pulumi/tests/testdata/codegen/external-resource-schema/schema.json

167 lines
4.4 KiB
JSON

{
"version": "0.0.1",
"name": "example",
"types": {
"example::Pet": {
"properties": {
"name": {
"$ref": "/random/v4.3.1/schema.json#/resources/random:index%2FrandomPet:RandomPet"
},
"requiredName": {
"$ref": "/random/v4.3.1/schema.json#/resources/random:index%2FrandomPet:RandomPet"
},
"nameArray": {
"type": "array",
"items": {
"$ref": "/random/v4.3.1/schema.json#/resources/random:index%2FrandomPet:RandomPet"
}
},
"requiredNameArray": {
"type": "array",
"items": {
"$ref": "/random/v4.3.1/schema.json#/resources/random:index%2FrandomPet:RandomPet"
}
},
"nameMap": {
"type": "object",
"additionalProperties": {
"$ref": "/random/v4.3.1/schema.json#/resources/random:index%2FrandomPet:RandomPet"
}
},
"requiredNameMap": {
"type": "object",
"additionalProperties": {
"$ref": "/random/v4.3.1/schema.json#/resources/random:index%2FrandomPet:RandomPet"
}
},
"age": {
"type": "integer"
}
},
"required": ["requiredName", "requiredNameArray", "requiredNameMap"],
"type": "object"
}
},
"resources": {
"example::Cat": {
"properties": {
"name": {
"type": "string"
}
},
"inputProperties": {
"age": {
"type": "integer"
},
"pet": {
"$ref": "#/types/example::Pet"
}
},
"type": "object"
},
"example::Workload": {
"properties": {
"pod": {
"$ref": "/kubernetes/v3.7.0/schema.json#/types/kubernetes:core%2Fv1:Pod"
}
},
"type": "object"
},
"example::Component": {
"properties": {
"provider": {
"$ref": "/kubernetes/v3.7.0/schema.json#/provider"
},
"securityGroup": {
"$ref": "/aws/v4.36.0/schema.json#/resources/aws:ec2%2FsecurityGroup:SecurityGroup"
},
"storageClasses": {
"type": "object",
"additionalProperties": {
"$ref": "/kubernetes/v3.7.0/schema.json#/resources/kubernetes:storage.k8s.io%2Fv1:StorageClass"
}
}
},
"inputProperties": {
"metadata": {
"$ref": "/kubernetes/v3.7.0/schema.json#/types/kubernetes:meta%2Fv1:ObjectMeta"
},
"requiredMetadata": {
"$ref": "/kubernetes/v3.7.0/schema.json#/types/kubernetes:meta%2Fv1:ObjectMeta"
},
"metadataArray": {
"type": "array",
"items": {
"$ref": "/kubernetes/v3.7.0/schema.json#/types/kubernetes:meta%2Fv1:ObjectMeta"
}
},
"requiredMetadataArray": {
"type": "array",
"items": {
"$ref": "/kubernetes/v3.7.0/schema.json#/types/kubernetes:meta%2Fv1:ObjectMeta"
}
},
"metadataMap": {
"type": "object",
"additionalProperties": {
"$ref": "/kubernetes/v3.7.0/schema.json#/types/kubernetes:meta%2Fv1:ObjectMeta"
}
},
"requiredMetadataMap": {
"type": "object",
"additionalProperties": {
"$ref": "/kubernetes/v3.7.0/schema.json#/types/kubernetes:meta%2Fv1:ObjectMeta"
}
}
},
"required": ["securityGroup"],
"requiredInputs": [
"requiredMetadata",
"requiredMetadataArray",
"requiredMetadataMap"
]
}
},
"functions": {
"example::argFunction": {
"inputs": {
"properties": {
"name": {
"$ref": "/random/v4.3.1/schema.json#/resources/random:index%2FrandomPet:RandomPet"
}
}
},
"outputs": {
"properties": {
"age": {
"type": "integer"
}
}
}
}
},
"language": {
"csharp": {
"packageReferences": {
"Pulumi": "3.23",
"Pulumi.Aws": "4.20",
"Pulumi.Kubernetes": "3.7.0",
"Pulumi.Random": "4.2.0"
}
},
"go": {
"generateResourceContainerTypes": true,
"generateExtraInputTypes": true,
"importBasePath": "external-resource-schema/example"
},
"nodejs": {
"dependencies": {
"@pulumi/random": "^4.2.0",
"@pulumi/aws": "^4.19.0",
"@pulumi/kubernetes": "^3.7.0"
}
},
"python": {}
}
}