From 02ca5157d0e58c7bdb1079cd5d231e93f898f091 Mon Sep 17 00:00:00 2001 From: Eron Wright Date: Thu, 7 Mar 2024 23:33:46 -0800 Subject: [PATCH] generate sdk --- .../cmd/pulumi-resource-kubernetes/schema.json | 4 ++-- provider/pkg/gen/overlays.go | 4 ++-- sdk/dotnet/Yaml/V2/ConfigFile.cs | 4 ++-- sdk/go/kubernetes/yaml/v2/configFile.go | 8 ++++---- .../kubernetes/yaml_v2/ConfigFileArgs.java | 16 ++++++++-------- sdk/nodejs/yaml/v2/configFile.ts | 4 ++-- .../pulumi_kubernetes/yaml/v2/ConfigFile.py | 12 ++++++------ 7 files changed, 26 insertions(+), 26 deletions(-) diff --git a/provider/cmd/pulumi-resource-kubernetes/schema.json b/provider/cmd/pulumi-resource-kubernetes/schema.json index a7ac8719b9..e736dddf59 100644 --- a/provider/cmd/pulumi-resource-kubernetes/schema.json +++ b/provider/cmd/pulumi-resource-kubernetes/schema.json @@ -95200,11 +95200,11 @@ "inputProperties": { "file": { "type": "string", - "description": "Path or a URL that uniquely identifies a file." + "description": "Path or URL to a Kubernetes manifest file. File must exist." }, "resourcePrefix": { "type": "string", - "description": "An optional prefix for the auto-generated resource names. Example: A resource created with resourcePrefix=\"foo\" would produce a resource named \"foo-resourceName\"." + "description": "A prefix for the auto-generated resource names. Defaults to the name of the ConfigFile. Example: A resource created with resourcePrefix=\"foo\" would produce a resource named \"foo-resourceName\"." }, "skipAwait": { "type": "boolean", diff --git a/provider/pkg/gen/overlays.go b/provider/pkg/gen/overlays.go index 95992a58d5..a55e994b74 100644 --- a/provider/pkg/gen/overlays.go +++ b/provider/pkg/gen/overlays.go @@ -1087,13 +1087,13 @@ var yamlConfigFileV2Resource = pschema.ResourceSpec{ TypeSpec: pschema.TypeSpec{ Type: "string", }, - Description: "Path or a URL that uniquely identifies a file.", + Description: "Path or URL to a Kubernetes manifest file. File must exist.", }, "resourcePrefix": { TypeSpec: pschema.TypeSpec{ Type: "string", }, - Description: "An optional prefix for the auto-generated resource names. Example: A resource created with resourcePrefix=\"foo\" would produce a resource named \"foo-resourceName\".", + Description: "A prefix for the auto-generated resource names. Defaults to the name of the ConfigFile. Example: A resource created with resourcePrefix=\"foo\" would produce a resource named \"foo-resourceName\".", }, "skipAwait": { TypeSpec: pschema.TypeSpec{ diff --git a/sdk/dotnet/Yaml/V2/ConfigFile.cs b/sdk/dotnet/Yaml/V2/ConfigFile.cs index 5626ab51e2..8af6a160cf 100644 --- a/sdk/dotnet/Yaml/V2/ConfigFile.cs +++ b/sdk/dotnet/Yaml/V2/ConfigFile.cs @@ -73,13 +73,13 @@ namespace Pulumi.Kubernetes.Types.Inputs.Yaml.V2 public class ConfigFileArgs : global::Pulumi.ResourceArgs { /// - /// Path or a URL that uniquely identifies a file. + /// Path or URL to a Kubernetes manifest file. File must exist. /// [Input("file", required: true)] public Input File { get; set; } = null!; /// - /// An optional prefix for the auto-generated resource names. Example: A resource created with resourcePrefix="foo" would produce a resource named "foo-resourceName". + /// A prefix for the auto-generated resource names. Defaults to the name of the ConfigFile. Example: A resource created with resourcePrefix="foo" would produce a resource named "foo-resourceName". /// [Input("resourcePrefix")] public Input? ResourcePrefix { get; set; } diff --git a/sdk/go/kubernetes/yaml/v2/configFile.go b/sdk/go/kubernetes/yaml/v2/configFile.go index 85eed51330..2ad3275830 100644 --- a/sdk/go/kubernetes/yaml/v2/configFile.go +++ b/sdk/go/kubernetes/yaml/v2/configFile.go @@ -70,9 +70,9 @@ func NewConfigFile(ctx *pulumi.Context, } type configFileArgs struct { - // Path or a URL that uniquely identifies a file. + // Path or URL to a Kubernetes manifest file. File must exist. File string `pulumi:"file"` - // An optional prefix for the auto-generated resource names. Example: A resource created with resourcePrefix="foo" would produce a resource named "foo-resourceName". + // A prefix for the auto-generated resource names. Defaults to the name of the ConfigFile. Example: A resource created with resourcePrefix="foo" would produce a resource named "foo-resourceName". ResourcePrefix *string `pulumi:"resourcePrefix"` // Indicates that child resources should skip the await logic. SkipAwait *bool `pulumi:"skipAwait"` @@ -80,9 +80,9 @@ type configFileArgs struct { // The set of arguments for constructing a ConfigFile resource. type ConfigFileArgs struct { - // Path or a URL that uniquely identifies a file. + // Path or URL to a Kubernetes manifest file. File must exist. File pulumi.StringInput - // An optional prefix for the auto-generated resource names. Example: A resource created with resourcePrefix="foo" would produce a resource named "foo-resourceName". + // A prefix for the auto-generated resource names. Defaults to the name of the ConfigFile. Example: A resource created with resourcePrefix="foo" would produce a resource named "foo-resourceName". ResourcePrefix pulumi.StringPtrInput // Indicates that child resources should skip the await logic. SkipAwait pulumi.BoolPtrInput diff --git a/sdk/java/src/main/java/com/pulumi/kubernetes/yaml_v2/ConfigFileArgs.java b/sdk/java/src/main/java/com/pulumi/kubernetes/yaml_v2/ConfigFileArgs.java index 7e8f150e83..310d9a5a3c 100644 --- a/sdk/java/src/main/java/com/pulumi/kubernetes/yaml_v2/ConfigFileArgs.java +++ b/sdk/java/src/main/java/com/pulumi/kubernetes/yaml_v2/ConfigFileArgs.java @@ -17,14 +17,14 @@ public final class ConfigFileArgs extends com.pulumi.resources.ResourceArgs { public static final ConfigFileArgs Empty = new ConfigFileArgs(); /** - * Path or a URL that uniquely identifies a file. + * Path or URL to a Kubernetes manifest file. File must exist. * */ @Import(name="file", required=true) private Output file; /** - * @return Path or a URL that uniquely identifies a file. + * @return Path or URL to a Kubernetes manifest file. File must exist. * */ public Output file() { @@ -32,14 +32,14 @@ public Output file() { } /** - * An optional prefix for the auto-generated resource names. Example: A resource created with resourcePrefix="foo" would produce a resource named "foo-resourceName". + * A prefix for the auto-generated resource names. Defaults to the name of the ConfigFile. Example: A resource created with resourcePrefix="foo" would produce a resource named "foo-resourceName". * */ @Import(name="resourcePrefix") private @Nullable Output resourcePrefix; /** - * @return An optional prefix for the auto-generated resource names. Example: A resource created with resourcePrefix="foo" would produce a resource named "foo-resourceName". + * @return A prefix for the auto-generated resource names. Defaults to the name of the ConfigFile. Example: A resource created with resourcePrefix="foo" would produce a resource named "foo-resourceName". * */ public Optional> resourcePrefix() { @@ -88,7 +88,7 @@ public Builder(ConfigFileArgs defaults) { } /** - * @param file Path or a URL that uniquely identifies a file. + * @param file Path or URL to a Kubernetes manifest file. File must exist. * * @return builder * @@ -99,7 +99,7 @@ public Builder file(Output file) { } /** - * @param file Path or a URL that uniquely identifies a file. + * @param file Path or URL to a Kubernetes manifest file. File must exist. * * @return builder * @@ -109,7 +109,7 @@ public Builder file(String file) { } /** - * @param resourcePrefix An optional prefix for the auto-generated resource names. Example: A resource created with resourcePrefix="foo" would produce a resource named "foo-resourceName". + * @param resourcePrefix A prefix for the auto-generated resource names. Defaults to the name of the ConfigFile. Example: A resource created with resourcePrefix="foo" would produce a resource named "foo-resourceName". * * @return builder * @@ -120,7 +120,7 @@ public Builder resourcePrefix(@Nullable Output resourcePrefix) { } /** - * @param resourcePrefix An optional prefix for the auto-generated resource names. Example: A resource created with resourcePrefix="foo" would produce a resource named "foo-resourceName". + * @param resourcePrefix A prefix for the auto-generated resource names. Defaults to the name of the ConfigFile. Example: A resource created with resourcePrefix="foo" would produce a resource named "foo-resourceName". * * @return builder * diff --git a/sdk/nodejs/yaml/v2/configFile.ts b/sdk/nodejs/yaml/v2/configFile.ts index 6210fab234..db0512e28f 100644 --- a/sdk/nodejs/yaml/v2/configFile.ts +++ b/sdk/nodejs/yaml/v2/configFile.ts @@ -70,11 +70,11 @@ export class ConfigFile extends pulumi.ComponentResource { */ export interface ConfigFileArgs { /** - * Path or a URL that uniquely identifies a file. + * Path or URL to a Kubernetes manifest file. File must exist. */ file: pulumi.Input; /** - * An optional prefix for the auto-generated resource names. Example: A resource created with resourcePrefix="foo" would produce a resource named "foo-resourceName". + * A prefix for the auto-generated resource names. Defaults to the name of the ConfigFile. Example: A resource created with resourcePrefix="foo" would produce a resource named "foo-resourceName". */ resourcePrefix?: pulumi.Input; /** diff --git a/sdk/python/pulumi_kubernetes/yaml/v2/ConfigFile.py b/sdk/python/pulumi_kubernetes/yaml/v2/ConfigFile.py index 4328ea940d..07e2f361fe 100644 --- a/sdk/python/pulumi_kubernetes/yaml/v2/ConfigFile.py +++ b/sdk/python/pulumi_kubernetes/yaml/v2/ConfigFile.py @@ -19,8 +19,8 @@ def __init__(__self__, *, skip_await: Optional[pulumi.Input[bool]] = None): """ The set of arguments for constructing a ConfigFile resource. - :param pulumi.Input[str] file: Path or a URL that uniquely identifies a file. - :param pulumi.Input[str] resource_prefix: An optional prefix for the auto-generated resource names. Example: A resource created with resourcePrefix="foo" would produce a resource named "foo-resourceName". + :param pulumi.Input[str] file: Path or URL to a Kubernetes manifest file. File must exist. + :param pulumi.Input[str] resource_prefix: A prefix for the auto-generated resource names. Defaults to the name of the ConfigFile. Example: A resource created with resourcePrefix="foo" would produce a resource named "foo-resourceName". :param pulumi.Input[bool] skip_await: Indicates that child resources should skip the await logic. """ pulumi.set(__self__, "file", file) @@ -33,7 +33,7 @@ def __init__(__self__, *, @pulumi.getter def file(self) -> pulumi.Input[str]: """ - Path or a URL that uniquely identifies a file. + Path or URL to a Kubernetes manifest file. File must exist. """ return pulumi.get(self, "file") @@ -45,7 +45,7 @@ def file(self, value: pulumi.Input[str]): @pulumi.getter(name="resourcePrefix") def resource_prefix(self) -> Optional[pulumi.Input[str]]: """ - An optional prefix for the auto-generated resource names. Example: A resource created with resourcePrefix="foo" would produce a resource named "foo-resourceName". + A prefix for the auto-generated resource names. Defaults to the name of the ConfigFile. Example: A resource created with resourcePrefix="foo" would produce a resource named "foo-resourceName". """ return pulumi.get(self, "resource_prefix") @@ -92,8 +92,8 @@ def __init__(__self__, :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. - :param pulumi.Input[str] file: Path or a URL that uniquely identifies a file. - :param pulumi.Input[str] resource_prefix: An optional prefix for the auto-generated resource names. Example: A resource created with resourcePrefix="foo" would produce a resource named "foo-resourceName". + :param pulumi.Input[str] file: Path or URL to a Kubernetes manifest file. File must exist. + :param pulumi.Input[str] resource_prefix: A prefix for the auto-generated resource names. Defaults to the name of the ConfigFile. Example: A resource created with resourcePrefix="foo" would produce a resource named "foo-resourceName". :param pulumi.Input[bool] skip_await: Indicates that child resources should skip the await logic. """ ...