pulumi/pkg/codegen/internal/test/testdata/simple-yaml-schema/schema.yaml
Anton Tayanovskyy e710125885
5758 for C#/.NET (#7899)
* Rebase 5758 .NET work and make output-funcs pass

* Propagate changes to the other examples

* CHANGELOG

* Address PR feedback

* Add a test reproducing aws-native compilation failure

* Fix dangling type ref issue in the .NET backend for codegen

* Accept changes and unskip simple-methods-schema compile check

* Accept changes in node, python, go codegen

* SDK changes to enable a better implementation approach

* Switch approach to support functions like GetAmiIds; avoid name conflicts under tfbridge20

* Make all dotnet tests pass, mechanical fixes + accept test output

* Accept python changes

* Accept node output

* Accept docs changes

* Deepen the unit test to cover the interesting helper type

* Accept go changes and fixup tests

* Implement dep propagation through Invoke

* Fixup cyclic-types

* Accept codegen

* NOTE we now require .NET SDK 3.15 or higher
2021-10-18 18:18:15 -04:00

131 lines
3.2 KiB
YAML

version: "0.0.1"
name: example
types:
example::Object:
properties:
foo:
"$ref": "#/resources/example::Resource"
bar:
type: string
others:
type: array
items:
type: array
items:
"$ref": "#/types/example::SomeOtherObject"
description: List of lists of other objects
configs:
type: array
items:
"$ref": "#/types/example::ConfigMap"
stillOthers:
type: object
additionalProperties:
type: array
items:
"$ref": "#/types/example::SomeOtherObject"
description: Mapping from string to list of some other object
type: object
example::OtherResourceOutput:
properties:
foo:
type: string
type: object
example::SomeOtherObject:
properties:
baz:
type: string
type: object
example::ConfigMap:
properties:
config:
type: string
type: object
example::ObjectWithNodeOptionalInputs:
properties:
foo:
type: string
bar:
type: integer
required: [foo]
language:
nodejs:
"requiredInputs": []
type: object
example::RubberTreeVariety:
type: string
description: types of rubber trees
enum:
- value: Burgundy
description: A burgundy rubber tree.
- value: Ruby
description: A ruby rubber tree.
- value: Tineke
description: A tineke rubber tree.
resources:
example::Resource:
properties:
bar:
type: string
secret: true
inputProperties:
bar:
type: string
secret: true
type: object
example::OtherResource:
isComponent: true
properties:
foo:
"$ref": "#/resources/example::Resource"
inputProperties:
foo:
"$ref": "#/resources/example::Resource"
bar:
type: array
items:
type: string
plain: true
type: object
example::TypeUses:
properties:
foo:
"$ref": "#/types/example::Object"
bar:
"$ref": "#/types/example::SomeOtherObject"
baz:
"$ref": "#/types/example::ObjectWithNodeOptionalInputs"
qux:
"$ref": "#/types/example::RubberTreeVariety"
inputProperties:
foo:
"$ref": "#/types/example::Object"
bar:
"$ref": "#/types/example::SomeOtherObject"
baz:
"$ref": "#/types/example::ObjectWithNodeOptionalInputs"
qux:
"$ref": "#/types/example::RubberTreeVariety"
type: object
functions:
example::argFunction:
inputs:
properties:
arg1:
"$ref": "#/resources/example::Resource"
outputs:
properties:
result:
"$ref": "#/resources/example::Resource"
language:
csharp: { "packageReferences": { "Pulumi": "3.13" }, "projectReferences": ["..\\..\\..\\..\\..\\..\\..\\sdk\\dotnet\\Pulumi\\Pulumi.csproj"] }
go:
{
"importBasePath": "github.com/pulumi/pulumi/pkg/v3/codegen/internal/test/testdata/simple-resource-schema/go/example",
}
nodejs:
{
"dependencies": { "@pulumi/pulumi": "^3.12" },
"devDependencies": { "typescript": "^3.7.0" },
}
python: {}