Komal
9b33dd84d5
[codegen/*] - Fix enum names that start with an underscore. ( #5950 )
2020-12-16 09:22:44 -08:00
Komal
cae129c7fa
[codegen/*] - Align makeValidIdentifier between languages ( #5944 )
2020-12-15 12:41:27 -08:00
Komal
791ccc58d4
[codegen/docs] - Remove primitive type links ( #5911 )
2020-12-14 19:56:45 -08:00
Komal
95c09d88c8
[codegen/docs] - Add enums to docs ( #5912 )
2020-12-14 14:40:14 -08:00
Levi Blackstone
d3c75afce1
[codegen/go] Fix Input/Output methods for Go resources ( #5916 )
2020-12-11 11:49:08 -07:00
Vivek Lakshmanan
1cfbe5bdd5
Linting fixes
2020-11-18 10:57:01 -08:00
Vivek Lakshmanan
d1caee26d3
Update makeSafeEnum semantics to match other languages
2020-11-18 09:44:30 -08:00
Vivek Lakshmanan
da5c01f9ca
Fix build/tests
2020-11-18 00:13:41 -08:00
Vivek Lakshmanan
6e466e4ec0
Apply suggestions from code review
...
Co-authored-by: Komal <komal@pulumi.com>
Address PR comments
2020-11-18 00:08:09 -08:00
Vivek Lakshmanan
c818098733
Address PR comment
2020-11-18 00:07:42 -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
Mikhail Shilkov
66c5cdb7a1
Parse string arrays from env in Go first-class provider ( #5744 )
2020-11-13 10:59:41 +01:00
Levi Blackstone
64e5de1edc
[codegen/go] Add support for ResourceType and isComponent ( #5497 )
2020-11-09 11:55:53 -07:00
Vivek Lakshmanan
e49ba01f8f
PR comments
2020-10-06 16:13:49 -07:00
Vivek Lakshmanan
8f7874b3e2
Handle aliases correctly for invokes
2020-10-05 22:57:00 -07:00
Vivek Lakshmanan
739b664046
Add support for go config generation
2020-10-05 22:55:41 -07:00
Mikhail Shilkov
98f04cd2fc
Ensure top-level precedence to avoid flaky tests ( #5508 )
2020-10-05 19:50:51 +02:00
Vivek Lakshmanan
a7680884eb
Allow ImportBasePath to override presumed golang import path
2020-09-18 12:48:14 -07:00
Vivek Lakshmanan
2a23af6892
Fix panics when running invokes with modules containing slashes
2020-09-18 11:15:56 -07:00
Komal
92a7d717a4
[codegen/schema] - Expand ObjectTypeSpec to ComplexTypeSpec ( #5379 )
...
Co-authored-by: Mikhail Shilkov <github@mikhail.io>
2020-09-16 13:47:40 -07:00
Mikhail Shilkov
0d38c6737e
[codegen] Tweak docs and example generation for azure-nextgen ( #5390 )
...
[codegen] Tweak docs and example generation so that azure-nextgen is represented correctly
2020-09-16 20:11:56 +02:00
Mikhail Shilkov
da1f25928d
[codegen] Adjust Go/Python package naming for Azure NextGen ( #5373 )
2020-09-15 13:56:58 +02:00
Mikhail Shilkov
07a923e494
Revert Go input/output generation
2020-09-15 12:36:04 +02:00
Mikhail Shilkov
bbf403ba85
Do not generate unused input/output types in Go ( #5345 )
...
Do not generate unused input/output types in Go
2020-09-15 09:33:13 +02:00
Evan Boyle
0f98bac105
fix unchecked type assertion ( #5194 )
2020-08-19 13:58:13 -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
Albert Zhong
2cd0c000bd
[codegen] Add codegen/go/gen_crd2pulumi, clean up codegen/nodejs/gen_crd2pulumi ( #5116 )
...
* Add codegen/go/gen_crd2pulumi
* Properly generate Go CRD resources
* generate nodejs resources
* Remove nodejs/gen_crd2pulumi.go
* Remove generating funtions
2020-08-10 10:21:50 -07: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
Pat Gavlin
63db7e0d46
Use the existing contexts map.
2020-08-05 16:11:12 -07:00
evanboyle
9425016521
add todos
2020-08-05 15:50:07 -07:00
evanboyle
2c350b08d8
lint
2020-08-05 15:31:12 -07:00
evanboyle
2f71fbbf2d
traverse object and tuple cons expressions for imports
2020-08-05 15:23:36 -07:00
evanboyle
8af3be1e3f
account for import aliases in program expressions
2020-08-05 12:44:46 -07:00
evanboyle
e2e6db47f7
use import aliases in Go program gen
2020-08-05 11:42:38 -07:00
Pat Gavlin
a19843f433
[codegen/{go,nodejs,python}] Normalize modules. ( #5006 )
...
In general, a package/module name in these targets is derived from the
module portion of a type token. If the type token is not already in an
expected form--namely, all lowercase--the generated package/module names
will also be in unexpected forms. These changes normalize the module
names to lowercase s.t. the generated package/module names conform to
expectations.
2020-07-14 10:58:29 -07:00
Pat Gavlin
54c5a75e34
[codegen/{go,nodejs}] Minor fixes in SDK gen.
...
- NodeJS: fix get + constructor generation for types with required args
and no state type.
- Go: fix type + import generation for properties in the root module.
2020-07-10 11:23:31 -07:00
Levi Blackstone
d611740ab0
[codegen] Set additionalSecretOutputs for secret props ( #4956 )
2020-07-02 13:30:10 -06:00
Pat Gavlin
a8a20ecb4b
[codegen/*] Add support for explicit secrets. ( #4927 )
...
- Add a new builtin function, secret, that marks its input value as
secret
- Add support for this function to the various code generators
Fixes #4924 .
2020-06-30 11:35:24 -07:00
Evan Boyle
395a68e0f6
[Go program gen]: namespaceless resources ( #4915 )
2020-06-29 18:10:34 -07:00
Pat Gavlin
69ba47cff2
[codegen/*] Add support for resource options. ( #4925 )
...
The PCL binder has supported resource options for some time, but these
options haven't been used or processed by the various code generators.
These options--particularly the parent and provider options0--are
critical for import codegen. These changes implement the basic set of
options, and add a note about fleshing out the rest as necessary.
One component of these changes is a new rewriter that rewrites property
references into property paths that are understood by the Pulumi engine.
This rewriter is used to preprocess the contents of the `ignoreChanges`
resource option.
These changes also hack around a weakness in the HCL2 type system:
In Go, references to resources should be typed as `hcl2.ResourceType`.
Unfortunately, this breaks the existing collection semantics associated
with resources. Because of this, the Go code generator does not have
enough information to know that it should generate a `[]pulumi.Resource`
for lists of resources. These changes hack around that limitation using
a Go-specific opaque type and some hardcoded comparisons in
`argumentTypeName`.
Fixes #4923 .
2020-06-29 16:33:52 -07:00
Evan Boyle
91828b4310
[Go Program Gen] Improved handling for pulumi.Map types ( #4914 )
2020-06-29 15:29:41 -07:00
Evan Boyle
fa3000801e
skip transient test ( #4886 )
2020-06-24 13:53:18 -07:00
Evan Boyle
31770c3300
go program gen: prompt array conversion, unused range vars, id handling ( #4884 )
2020-06-24 11:07:26 -07:00
Evan Boyle
b302dbcbca
go program gen: lift expressions where prompt optionals are required ( #4875 )
2020-06-23 10:59:26 -07:00
evanboyle
2ba1fd608a
go program gen All.Apply func rewriter
2020-06-18 17:17:51 -07:00
evanboyle
7f2a83ae5a
Revert "go program gen All.Apply rewriter"
...
This reverts commit bdd240f522
.
2020-06-18 16:57:55 -07:00