pulumi/tests/testdata/codegen/std-1.0.0.json

208 lines
5.3 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", "c"],
"inputs": {
"properties": {
"a": {
"type": "number"
},
"b": {
"type": "number"
},
"c": {
"type": "number"
}
},
"type": "object",
"required": [
"a"
]
},
"outputs": {
"type": "number"
}
},
"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:cidrsubnet": {
"description": "Takes an IP address range in CIDR notation (like 10.0.0.0/8) and extends its prefix \nto include an additional subnet number. For example, cidrsubnet(\"10.0.0.0/8\", 8, 2) returns 10.2.0.0/16; \ncidrsubnet(\"2607:f298:6051:516c::/64\", 8, 2) returns 2607:f298:6051:516c:200::/72.",
"inputs": {
"properties": {
"input": {
"type": "string"
},
"netnum": {
"type": "integer"
},
"newbits": {
"type": "integer"
}
},
"type": "object",
"required": [
"input",
"netnum",
"newbits"
]
},
"outputs": {
"properties": {
"result": {
"type": "string"
}
},
"type": "object",
"required": [
"result"
]
}
},
"std:index:max": {
"description": "Returns the largest of the floats.",
"inputs": {
"properties": {
"input": {
"type": "array",
"items": {
"type": "number"
}
}
},
"type": "object",
"required": [
"input"
]
},
"outputs": {
"properties": {
"result": {
"type": "number"
}
},
"type": "object",
"required": [
"result"
]
}
},
"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"
}
}
}
}