pulumi/tests/testdata/codegen/simplified-invokes/schema.json

252 lines
5.9 KiB
JSON

{
"name": "std",
"displayName": "StandardLibrary",
"version": "1.0.0",
"description": "Standard library functions",
"homepage": "https://github.com/pulumi/pulumi-std",
"repository": "https://github.com/pulumi/pulumi-std",
"publisher": "Pulumi",
"meta": {
"moduleFormat": "(.*)"
},
"language": {
"csharp": {
"packageReferences": {
"Pulumi": "3.50.0"
}
},
"nodejs": {
"dependencies": {
"@pulumi/pulumi": "^3.0.0"
},
"respectSchemaVersion": true
}
},
"config": {},
"provider": {
"type": "object"
},
"functions": {
"std:index:Abs": {
"description": "Returns the absolute value of a given float. \nExample: abs(1) returns 1, and abs(-1) would also return 1, whereas abs(-3.14) would return 3.14.",
"inputs": {
"properties": {
"a": {
"type": "number"
},
"b": {
"type": "number"
}
},
"type": "object",
"required": [
"a",
"b"
]
},
"outputs": {
"properties": {
"result": {
"type": "number"
}
},
"type": "object",
"required": [
"result"
]
}
},
"std:index:AbsMultiArgs": {
"description": "Returns the absolute value of a given float. \nExample: abs(1) returns 1, and abs(-1) would also return 1, whereas abs(-3.14) would return 3.14.",
"multiArgumentInputs": ["a", "b"],
"inputs": {
"properties": {
"a": {
"type": "number"
},
"b": {
"type": "number"
}
},
"type": "object",
"required": [
"a"
]
},
"outputs": {
"properties": {
"result": {
"type": "number"
}
},
"type": "object",
"required": [
"result"
]
}
},
"std:index:AbsReducedOutput": {
"description": "Returns the absolute value of a given float. \nExample: abs(1) returns 1, and abs(-1) would also return 1, whereas abs(-3.14) would return 3.14.",
"inputs": {
"properties": {
"a": {
"type": "number"
},
"b": {
"type": "number"
}
},
"type": "object",
"required": [
"a"
]
},
"outputs": {
"type": "number"
}
},
"std:index:AbsMultiArgsReducedOutput": {
"description": "Returns the absolute value of a given float. \nExample: abs(1) returns 1, and abs(-1) would also return 1, whereas abs(-3.14) would return 3.14.",
"multiArgumentInputs": ["a", "b"],
"inputs": {
"properties": {
"a": {
"type": "number"
},
"b": {
"type": "number"
}
},
"type": "object",
"required": [
"a"
]
},
"outputs": {
"type": "number"
}
},
"std:index:AbsMultiArgsReducedOutputSwapped": {
"description": "Returns the absolute value of a given float. \nExample: abs(1) returns 1, and abs(-1) would also return 1, whereas abs(-3.14) would return 3.14.",
"multiArgumentInputs": ["b", "a"],
"inputs": {
"properties": {
"a": {
"type": "number"
},
"b": {
"type": "number"
}
},
"type": "object",
"required": [
"a",
"b"
]
},
"outputs": {
"type": "number"
}
},
"std:index:GetCustomResult": {
"multiArgumentInputs": ["a"],
"inputs": {
"type": "object",
"properties": {
"a": {
"type": "number"
}
}
},
"outputs": {
"$ref": "#/types/std::CustomResult"
}
},
"std:index:GetArrayCustomResult": {
"multiArgumentInputs": ["a"],
"inputs": {
"type": "object",
"properties": {
"a": {
"type": "number"
}
}
},
"outputs": {
"type": "array",
"items": {
"$ref": "#/types/std::CustomResult"
}
}
},
"std:index:GetDictionary": {
"multiArgumentInputs": ["a"],
"inputs": {
"type": "object",
"properties": {
"a": {
"type": "number"
}
}
},
"outputs": {
"type": "object",
"additionalProperties": {
"$ref": "#/types/std::AnotherCustomResult"
}
}
},
"std:index:GetAsset": {
"multiArgumentInputs": ["a"],
"inputs": {
"type": "object",
"properties": {
"a": {
"type": "number"
}
}
},
"outputs": {
"$ref": "pulumi.json#/Asset"
}
},
"std:index:GetArchive": {
"multiArgumentInputs": ["a"],
"inputs": {
"type": "object",
"properties": {
"a": {
"type": "number"
}
}
},
"outputs": {
"$ref": "pulumi.json#/Archive"
}
}
},
"types": {
"std::CustomResult": {
"type": "object",
"properties": {
"value": {
"type": "string"
}
}
},
"std::AnotherCustomResult": {
"type": "object",
"properties": {
"value": {
"type": "string"
}
}
}
}
}