Vivek Lakshmanan
4da8a45eb2
Option to generate container types resources now specified in GoPackageInfo
2021-01-20 11:29:01 -08:00
Vivek Lakshmanan
38ac84038c
Make resource container-type generation optional
2021-01-20 11:29:01 -08:00
Vivek Lakshmanan
3aa566d286
Fix tests
2021-01-20 11:29:01 -08:00
Vivek Lakshmanan
68b655bba6
Test fixes for other languages due to change in schema.
2021-01-20 11:29:01 -08:00
Vivek Lakshmanan
8f2901df01
Test data to cover types generated for external references
2021-01-20 11:29:01 -08:00
Vivek Lakshmanan
22896074f3
Expand testing to cover all generated files
2021-01-20 11:29:01 -08:00
Levi Blackstone
2dfec71a5c
[codegen/go] Register resource modules/packages ( #6121 )
2021-01-19 16:59:51 -07:00
Vivek Lakshmanan
b70c89eeec
Allow optional strict enum types to be omitted
...
Fixes https://github.com/pulumi/pulumi/issues/6068
2021-01-11 09:58:32 -08:00
Mikhail Shilkov
0f9273fc7b
[codegen] Add support for default values in enum properties ( #6017 )
2020-12-30 12:46:01 +01:00
Levi Blackstone
d3c75afce1
[codegen/go] Fix Input/Output methods for Go resources ( #5916 )
2020-12-11 11:49:08 -07:00
Mikhail Shilkov
cab39dcfa0
[dotnet] Resource package registration in .NET (attributes) ( #5875 )
...
* Resource package registration in .NET
* Refactor to attribute-based discovery
* Refactor to derived attributes
2020-12-09 23:28:58 +01:00
Justin Van Patten
260620430c
[codegen/(nodejs|python)] package/module registration with version info ( #5839 )
...
Generate ResourcePackage and ResourceModule implementations and
registrations. A ResourcePackage is generated for any module that
includes a provider resource (which should be the root module only), and
a ResourceModule is generated for any module that includes a resource.
And add version info to Python registrations.
2020-12-02 13:45:25 -08:00
Komal
600e296ee2
[codegen/python] - Enums ( #5553 )
2020-11-24 23:43:32 -06:00
Komal
995d3b9b6c
Remove UsesIOClasses check. ( #5827 )
2020-11-24 19:15:37 -06:00
Paul Stack
d64c58c731
Ensure the correct qualified code is emitted for Python ResourceOptions ( #5824 )
2020-11-24 02:21:25 +00:00
Justin Van Patten
a9d213107b
[codegen/(dotnet|python)]: Emit refs to provider resources ( #5810 )
2020-11-23 12:28:00 -08:00
Mikhail Shilkov
a056daafd7
[codegen/dotnet] Handle external resource refs ( #5791 )
2020-11-20 21:09:34 +01:00
Pat Gavlin
f527e06b21
Allow schemas to reference to provider types. ( #5788 )
...
These changes extend the type reference parser in the schema package to
accept references of the form "(package/version/schema.json)?#/provider".
These references refer to the package's provider type, which is
otherwise not referenceable, as it is not present in the "resources"
array.
2020-11-20 09:16:45 -08:00
Levi Blackstone
3586ab5d85
[codegen/python] Handle external schema refs ( #5684 )
2020-11-19 13:56:28 -07:00
Vivek Lakshmanan
da5c01f9ca
Fix build/tests
2020-11-18 00:13:41 -08:00
Vivek Lakshmanan
65e027062d
Add an underscore if enum values have underscores
2020-11-18 00:07:42 -08:00
Vivek Lakshmanan
41fff5dc08
Add type as prefix for enum values
2020-11-18 00:07:42 -08:00
Vivek Lakshmanan
169fb47154
Consolidate tests
2020-11-18 00:07:42 -08:00
Vivek Lakshmanan
3c2b7a8945
Add additional test to demonstrate strict/relaxed enum semantics
2020-11-18 00:07:42 -08:00
Vivek Lakshmanan
43e48950df
Adding support for go enum generation
2020-11-18 00:07:42 -08:00
Levi Blackstone
64e5de1edc
[codegen/go] Add support for ResourceType and isComponent ( #5497 )
2020-11-09 11:55:53 -07:00
Paul Stack
3d8068e355
adding the import documentation where specified ( #5667 )
2020-11-09 14:12:58 +00:00
Komal
00f8966a9a
[codegen/nodejs] - Fix typescript enum issues ( #5696 )
...
Co-authored-by: Levi Blackstone <levi@pulumi.com>
2020-11-06 09:29:49 -08:00
Komal
e9dbada593
[codegen/dotnet] - Enums ( #5551 )
2020-11-06 09:01:03 -08:00
Levi Blackstone
5188ec4c9f
[codegen/schema] Add support for external schema refs ( #5606 )
2020-10-29 17:41:12 -06:00
Komal
ec9c02f578
Add tests for ts enums ( #5605 )
2020-10-22 10:53:29 -07:00
Levi Blackstone
99ba1ab943
[codegen/dotnet] Add support for ResourceType and isComponent ( #5460 )
2020-10-13 12:33:22 -06:00
Komal
af9f636eef
Split schema tests by language ( #5540 )
2020-10-10 13:47:23 -07:00
Komal
6c51e6ce1c
[codegen/nodejs] - Update enum generation ( #5525 )
2020-10-09 08:27:01 -07:00
Vivek Lakshmanan
08272ff49a
Merge pull request #5520 from pulumi/vl/dotnetProgramGen
...
Fix config params and default handling for .NET programgen
2020-10-08 00:30:11 -07:00
Komal
7039e67284
[codegen/nodejs] - Enums ( #5472 )
2020-10-07 18:13:10 -07:00
Vivek Lakshmanan
a0ee220243
Convert config params to outputs only if promise types are seen
2020-10-07 12:29:33 -07:00
Vivek Lakshmanan
f4235f27a1
Fix config params and default handling for .NET programgen
...
Fixes https://github.com/pulumi/pulumi-azure-nextgen/issues/42
2020-10-07 09:59:23 -07:00
Vivek Lakshmanan
e49ba01f8f
PR comments
2020-10-06 16:13:49 -07:00
Vivek Lakshmanan
ea75755d88
Add test scaffolding for azure provider
2020-10-06 16:13:30 -07:00
Levi Blackstone
64602798b1
[codegen/python] Don't generate get methods for ComponentResources ( #5459 )
2020-09-30 10:16:25 -06:00
Komal
59b906eb76
Update nodejs gen-tests ( #5477 )
2020-09-29 16:00:03 -07:00
Levi Blackstone
9363f606b6
[codegen/schema] Add IsComponent to resource schema ( #5395 )
...
Add support for ComponentResources to the schema by
adding a new IsComponent field to the Resource spec.
2020-09-23 18:23:46 -06:00
Levi Blackstone
81580289a7
[codegen/python] Handle ResourceType ( #5444 )
2020-09-23 13:39:25 -06:00
Levi Blackstone
3ea59ebbb8
[codegen/schema]: Add ResourceType to support resource refs ( #5325 )
2020-09-22 11:09:27 -06:00
Komal
a334b60193
Only allow type-matching enum values ( #5417 )
...
* Only allow type-matching enum values
* More tests and fixes
2020-09-21 12:23:04 -07:00
Evan Boyle
c9d8549ae6
[Go Program Gen] Only generate a single literal when traversing a union type ( #5154 )
2020-08-11 11:43:56 -07:00
Komal
2f2e62e2e4
[codegen/python] - Normalize module names in program gen ( #5128 )
2020-08-07 09:30:07 -07:00
Mikhail Shilkov
0c9d1fdd0e
Fix C# program gen for Kubernetes examples ( #5129 )
2020-08-07 09:31:42 -06:00
Pat Gavlin
e5f44a7b0c
Use a package map where appropriate ( #5127 )
...
* Use a package map where appropriate
* Fix imports
* handle NoneType for literal value expressions in go program gen
* add operator tests for c#, python, and node
Co-authored-by: evanboyle <evan@pulumi.com>
2020-08-06 19:09:18 -07:00