From 02db74935908113bd841fd91f1da77e6c5d710a1 Mon Sep 17 00:00:00 2001 From: Eron Wright Date: Thu, 28 Mar 2024 12:34:16 -0700 Subject: [PATCH] use "pulumi.json#/Resource" in ConfigGroup V2 --- provider/cmd/pulumi-resource-kubernetes/schema.json | 2 +- provider/pkg/gen/overlays.go | 2 +- sdk/dotnet/Yaml/V2/ConfigGroup.cs | 2 +- sdk/go/kubernetes/yaml/v2/configGroup.go | 6 +++--- sdk/nodejs/yaml/v2/configGroup.ts | 2 +- sdk/python/pulumi_kubernetes/yaml/v2/ConfigGroup.py | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/provider/cmd/pulumi-resource-kubernetes/schema.json b/provider/cmd/pulumi-resource-kubernetes/schema.json index a1eac8779a..f0c24dc355 100644 --- a/provider/cmd/pulumi-resource-kubernetes/schema.json +++ b/provider/cmd/pulumi-resource-kubernetes/schema.json @@ -95224,7 +95224,7 @@ "resources": { "type": "array", "items": { - "$ref": "pulumi.json#/Any" + "$ref": "pulumi.json#/Resource" }, "description": "Resources created by the ConfigGroup." } diff --git a/provider/pkg/gen/overlays.go b/provider/pkg/gen/overlays.go index a55e994b74..4c601a891b 100644 --- a/provider/pkg/gen/overlays.go +++ b/provider/pkg/gen/overlays.go @@ -1205,7 +1205,7 @@ var yamlConfigGroupV2Resource = pschema.ResourceSpec{ TypeSpec: pschema.TypeSpec{ Type: "array", Items: &pschema.TypeSpec{ - Ref: "pulumi.json#/Any", + Ref: "pulumi.json#/Resource", }, }, Description: "Resources created by the ConfigGroup.", diff --git a/sdk/dotnet/Yaml/V2/ConfigGroup.cs b/sdk/dotnet/Yaml/V2/ConfigGroup.cs index bbb3453ae4..df35858ff6 100644 --- a/sdk/dotnet/Yaml/V2/ConfigGroup.cs +++ b/sdk/dotnet/Yaml/V2/ConfigGroup.cs @@ -139,7 +139,7 @@ public partial class ConfigGroup : global::Pulumi.ComponentResource /// Resources created by the ConfigGroup. /// [Output("resources")] - public Output> Resources { get; private set; } = null!; + public Output> Resources { get; private set; } = null!; /// diff --git a/sdk/go/kubernetes/yaml/v2/configGroup.go b/sdk/go/kubernetes/yaml/v2/configGroup.go index a1ffa6c715..55a9799671 100644 --- a/sdk/go/kubernetes/yaml/v2/configGroup.go +++ b/sdk/go/kubernetes/yaml/v2/configGroup.go @@ -173,7 +173,7 @@ type ConfigGroup struct { pulumi.ResourceState // Resources created by the ConfigGroup. - Resources pulumi.ArrayOutput `pulumi:"resources"` + Resources pulumi.ResourceArrayOutput `pulumi:"resources"` } // NewConfigGroup registers a new resource with the given unique name, arguments, and options. @@ -307,8 +307,8 @@ func (o ConfigGroupOutput) ToConfigGroupOutputWithContext(ctx context.Context) C } // Resources created by the ConfigGroup. -func (o ConfigGroupOutput) Resources() pulumi.ArrayOutput { - return o.ApplyT(func(v *ConfigGroup) pulumi.ArrayOutput { return v.Resources }).(pulumi.ArrayOutput) +func (o ConfigGroupOutput) Resources() pulumi.ResourceArrayOutput { + return o.ApplyT(func(v *ConfigGroup) pulumi.ResourceArrayOutput { return v.Resources }).(pulumi.ResourceArrayOutput) } type ConfigGroupArrayOutput struct{ *pulumi.OutputState } diff --git a/sdk/nodejs/yaml/v2/configGroup.ts b/sdk/nodejs/yaml/v2/configGroup.ts index 7982b19948..c42078871e 100644 --- a/sdk/nodejs/yaml/v2/configGroup.ts +++ b/sdk/nodejs/yaml/v2/configGroup.ts @@ -118,7 +118,7 @@ export class ConfigGroup extends pulumi.ComponentResource { /** * Resources created by the ConfigGroup. */ - public /*out*/ readonly resources!: pulumi.Output; + public /*out*/ readonly resources!: pulumi.Output; /** * Create a ConfigGroup resource with the given unique name, arguments, and options. diff --git a/sdk/python/pulumi_kubernetes/yaml/v2/ConfigGroup.py b/sdk/python/pulumi_kubernetes/yaml/v2/ConfigGroup.py index 7e900d7f3b..32a4892b37 100644 --- a/sdk/python/pulumi_kubernetes/yaml/v2/ConfigGroup.py +++ b/sdk/python/pulumi_kubernetes/yaml/v2/ConfigGroup.py @@ -370,7 +370,7 @@ def _internal_init(__self__, @property @pulumi.getter - def resources(self) -> pulumi.Output[Optional[Sequence[Any]]]: + def resources(self) -> pulumi.Output[Optional[Sequence[pulumi.Resource]]]: """ Resources created by the ConfigGroup. """