Merge pull request #5170 from pulumi/vl/ResourceOptions

Map python resource options to provider options
This commit is contained in:
Vivek Lakshmanan 2020-08-17 17:36:05 -07:00 committed by GitHub
commit 8777dd77ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -948,6 +948,11 @@ func (mod *modContext) genPropertyConversionTables() string {
// Once all resources have been emitted, the table is written out to a format usable for implementations of
// translate_input_property and translate_output_property.
func buildCaseMappingTables(pkg *schema.Package, snakeCaseToCamelCase, camelCaseToSnakeCase map[string]string, seenTypes codegen.Set) {
// Add provider input properties to translation tables.
for _, p := range pkg.Provider.InputProperties {
recordProperty(p, snakeCaseToCamelCase, camelCaseToSnakeCase, seenTypes)
}
for _, r := range pkg.Resources {
// Calculate casing tables. We do this up front because our docstring generator (which is run during
// genResource) requires them.