Add missing MapMap and ArrayArray types to Go SDK (#5092)
This commit is contained in:
parent
06fa515bf7
commit
996fd85e00
|
@ -2,6 +2,8 @@ CHANGELOG
|
|||
=========
|
||||
|
||||
## HEAD (Unreleased)
|
||||
- Add missing MapMap and ArrayArray types to Go SDK
|
||||
[#5092](https://github.com/pulumi/pulumi/pull/5092)
|
||||
|
||||
- Switch os/user package with luser drop in replacement
|
||||
[#5065](https://github.com/pulumi/pulumi/pull/5065)
|
||||
|
|
|
@ -203,6 +203,18 @@ func makeBuiltins(primitives []*builtin) []*builtin {
|
|||
elementType: "[]map[string]" + p.Type,
|
||||
Example: fmt.Sprintf("%sMapArray{%sMap{\"baz\": %s}}", name, name, p.Example),
|
||||
})
|
||||
builtins = append(builtins, &builtin{
|
||||
Name: name + "MapMap",
|
||||
Type: "map[string]" + name + "MapInput",
|
||||
elementType: "map[string]map[string]" + p.Type,
|
||||
Example: fmt.Sprintf("%sMapMap{\"baz\": %sMap{\"baz\": %s}}", name, name, p.Example),
|
||||
})
|
||||
builtins = append(builtins, &builtin{
|
||||
Name: name + "ArrayArray",
|
||||
Type: "[]" + name + "ArrayInput",
|
||||
elementType: "[][]" + p.Type,
|
||||
Example: fmt.Sprintf("%sArrayArray{%sArray{%s}}", name, name, p.Example),
|
||||
})
|
||||
}
|
||||
|
||||
nameToBuiltin := map[string]*builtin{}
|
||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue