diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b5d2aa575..cdef2900a0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ ## HEAD (Unreleased) +### Improvements + +- Automatically populate type aliases and additional secret outputs in the .NET SDK. + (https://github.com/pulumi/pulumi-kubernetes/pull/1026). + ### Bug fixes - Replace PersistentVolume if volume source changes. (https://github.com/pulumi/pulumi-kubernetes/pull/1015). diff --git a/pkg/gen/dotnet-templates/kind.cs.mustache b/pkg/gen/dotnet-templates/kind.cs.mustache index ec15422f3e..cc809dce9a 100644 --- a/pkg/gen/dotnet-templates/kind.cs.mustache +++ b/pkg/gen/dotnet-templates/kind.cs.mustache @@ -26,7 +26,7 @@ namespace Pulumi.Kubernetes.{{Group}}.{{Version}} /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public {{Kind}}(string name, Types.Inputs.{{Group}}.{{Version}}.{{Kind}}Args? args = null, CustomResourceOptions? options = null) - : base("kubernetes:{{URNAPIVersion}}:{{Kind}}", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:{{URNAPIVersion}}:{{Kind}}", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -43,6 +43,36 @@ namespace Pulumi.Kubernetes.{{Group}}.{{Version}} return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + {{#MergeOptsRequired}} + var extraOptions = new CustomResourceOptions + { + {{#AdditionalSecretOutputsPresent}} + AdditionalSecretOutputs = + { + {{#AdditionalSecretOutputs}} + "{{.}}", + {{/AdditionalSecretOutputs}} + }, + {{/AdditionalSecretOutputsPresent}} + {{#AliasesPresent}} + Aliases = + { + {{#Aliases}} + new Alias { Type = "{{.}}" }, + {{/Aliases}} + } + {{/AliasesPresent}} + }; + + return CustomResourceOptions.Merge(options, extraOptions); + {{/MergeOptsRequired}} + {{^MergeOptsRequired}} + return options; + {{/MergeOptsRequired}} + } + /// /// Get an existing {{Kind}} resource's state with the given name and ID. /// @@ -54,6 +84,5 @@ namespace Pulumi.Kubernetes.{{Group}}.{{Version}} return new {{Kind}}(name, default(Types.Inputs.{{Group}}.{{Version}}.{{Kind}}Args), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/AdmissionRegistration/V1/MutatingWebhookConfiguration.cs b/sdk/dotnet/AdmissionRegistration/V1/MutatingWebhookConfiguration.cs index a1debca0c7..ec62ab5485 100755 --- a/sdk/dotnet/AdmissionRegistration/V1/MutatingWebhookConfiguration.cs +++ b/sdk/dotnet/AdmissionRegistration/V1/MutatingWebhookConfiguration.cs @@ -52,7 +52,7 @@ public partial class MutatingWebhookConfiguration : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public MutatingWebhookConfiguration(string name, Types.Inputs.AdmissionRegistration.V1.MutatingWebhookConfigurationArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:admissionregistration.k8s.io/v1:MutatingWebhookConfiguration", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:admissionregistration.k8s.io/v1:MutatingWebhookConfiguration", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -69,6 +69,19 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.AdmissionRegistrat return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:admissionregistration.k8s.io/v1beta1:MutatingWebhookConfiguration" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing MutatingWebhookConfiguration resource's state with the given name and ID. /// @@ -80,6 +93,5 @@ public static MutatingWebhookConfiguration Get(string name, Input id, Cu return new MutatingWebhookConfiguration(name, default(Types.Inputs.AdmissionRegistration.V1.MutatingWebhookConfigurationArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/AdmissionRegistration/V1/MutatingWebhookConfigurationList.cs b/sdk/dotnet/AdmissionRegistration/V1/MutatingWebhookConfigurationList.cs index ac932b2391..d39b0c5a2c 100755 --- a/sdk/dotnet/AdmissionRegistration/V1/MutatingWebhookConfigurationList.cs +++ b/sdk/dotnet/AdmissionRegistration/V1/MutatingWebhookConfigurationList.cs @@ -51,7 +51,7 @@ public partial class MutatingWebhookConfigurationList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public MutatingWebhookConfigurationList(string name, Types.Inputs.AdmissionRegistration.V1.MutatingWebhookConfigurationListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:admissionregistration.k8s.io/v1:MutatingWebhookConfigurationList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:admissionregistration.k8s.io/v1:MutatingWebhookConfigurationList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.AdmissionRegistrat return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing MutatingWebhookConfigurationList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static MutatingWebhookConfigurationList Get(string name, Input id return new MutatingWebhookConfigurationList(name, default(Types.Inputs.AdmissionRegistration.V1.MutatingWebhookConfigurationListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/AdmissionRegistration/V1/ValidatingWebhookConfiguration.cs b/sdk/dotnet/AdmissionRegistration/V1/ValidatingWebhookConfiguration.cs index f98c23c48f..67492a2b89 100755 --- a/sdk/dotnet/AdmissionRegistration/V1/ValidatingWebhookConfiguration.cs +++ b/sdk/dotnet/AdmissionRegistration/V1/ValidatingWebhookConfiguration.cs @@ -52,7 +52,7 @@ public partial class ValidatingWebhookConfiguration : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public ValidatingWebhookConfiguration(string name, Types.Inputs.AdmissionRegistration.V1.ValidatingWebhookConfigurationArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:admissionregistration.k8s.io/v1:ValidatingWebhookConfiguration", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:admissionregistration.k8s.io/v1:ValidatingWebhookConfiguration", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -69,6 +69,19 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.AdmissionRegistrat return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:admissionregistration.k8s.io/v1beta1:ValidatingWebhookConfiguration" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing ValidatingWebhookConfiguration resource's state with the given name and ID. /// @@ -80,6 +93,5 @@ public static ValidatingWebhookConfiguration Get(string name, Input id, return new ValidatingWebhookConfiguration(name, default(Types.Inputs.AdmissionRegistration.V1.ValidatingWebhookConfigurationArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/AdmissionRegistration/V1/ValidatingWebhookConfigurationList.cs b/sdk/dotnet/AdmissionRegistration/V1/ValidatingWebhookConfigurationList.cs index 71785f210f..51415123fc 100755 --- a/sdk/dotnet/AdmissionRegistration/V1/ValidatingWebhookConfigurationList.cs +++ b/sdk/dotnet/AdmissionRegistration/V1/ValidatingWebhookConfigurationList.cs @@ -51,7 +51,7 @@ public partial class ValidatingWebhookConfigurationList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public ValidatingWebhookConfigurationList(string name, Types.Inputs.AdmissionRegistration.V1.ValidatingWebhookConfigurationListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:admissionregistration.k8s.io/v1:ValidatingWebhookConfigurationList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:admissionregistration.k8s.io/v1:ValidatingWebhookConfigurationList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.AdmissionRegistrat return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing ValidatingWebhookConfigurationList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static ValidatingWebhookConfigurationList Get(string name, Input return new ValidatingWebhookConfigurationList(name, default(Types.Inputs.AdmissionRegistration.V1.ValidatingWebhookConfigurationListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/AdmissionRegistration/V1Beta1/MutatingWebhookConfiguration.cs b/sdk/dotnet/AdmissionRegistration/V1Beta1/MutatingWebhookConfiguration.cs index 267da5ddad..fc65b526b9 100755 --- a/sdk/dotnet/AdmissionRegistration/V1Beta1/MutatingWebhookConfiguration.cs +++ b/sdk/dotnet/AdmissionRegistration/V1Beta1/MutatingWebhookConfiguration.cs @@ -53,7 +53,7 @@ public partial class MutatingWebhookConfiguration : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public MutatingWebhookConfiguration(string name, Types.Inputs.AdmissionRegistration.V1Beta1.MutatingWebhookConfigurationArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:admissionregistration.k8s.io/v1beta1:MutatingWebhookConfiguration", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:admissionregistration.k8s.io/v1beta1:MutatingWebhookConfiguration", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -70,6 +70,19 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.AdmissionRegistrat return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:admissionregistration.k8s.io/v1:MutatingWebhookConfiguration" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing MutatingWebhookConfiguration resource's state with the given name and ID. /// @@ -81,6 +94,5 @@ public static MutatingWebhookConfiguration Get(string name, Input id, Cu return new MutatingWebhookConfiguration(name, default(Types.Inputs.AdmissionRegistration.V1Beta1.MutatingWebhookConfigurationArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/AdmissionRegistration/V1Beta1/MutatingWebhookConfigurationList.cs b/sdk/dotnet/AdmissionRegistration/V1Beta1/MutatingWebhookConfigurationList.cs index 5751f4c43d..54faecdffa 100755 --- a/sdk/dotnet/AdmissionRegistration/V1Beta1/MutatingWebhookConfigurationList.cs +++ b/sdk/dotnet/AdmissionRegistration/V1Beta1/MutatingWebhookConfigurationList.cs @@ -51,7 +51,7 @@ public partial class MutatingWebhookConfigurationList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public MutatingWebhookConfigurationList(string name, Types.Inputs.AdmissionRegistration.V1Beta1.MutatingWebhookConfigurationListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:admissionregistration.k8s.io/v1beta1:MutatingWebhookConfigurationList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:admissionregistration.k8s.io/v1beta1:MutatingWebhookConfigurationList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.AdmissionRegistrat return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing MutatingWebhookConfigurationList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static MutatingWebhookConfigurationList Get(string name, Input id return new MutatingWebhookConfigurationList(name, default(Types.Inputs.AdmissionRegistration.V1Beta1.MutatingWebhookConfigurationListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/AdmissionRegistration/V1Beta1/ValidatingWebhookConfiguration.cs b/sdk/dotnet/AdmissionRegistration/V1Beta1/ValidatingWebhookConfiguration.cs index 08a2040f90..dc42aebcac 100755 --- a/sdk/dotnet/AdmissionRegistration/V1Beta1/ValidatingWebhookConfiguration.cs +++ b/sdk/dotnet/AdmissionRegistration/V1Beta1/ValidatingWebhookConfiguration.cs @@ -53,7 +53,7 @@ public partial class ValidatingWebhookConfiguration : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public ValidatingWebhookConfiguration(string name, Types.Inputs.AdmissionRegistration.V1Beta1.ValidatingWebhookConfigurationArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:admissionregistration.k8s.io/v1beta1:ValidatingWebhookConfiguration", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:admissionregistration.k8s.io/v1beta1:ValidatingWebhookConfiguration", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -70,6 +70,19 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.AdmissionRegistrat return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:admissionregistration.k8s.io/v1:ValidatingWebhookConfiguration" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing ValidatingWebhookConfiguration resource's state with the given name and ID. /// @@ -81,6 +94,5 @@ public static ValidatingWebhookConfiguration Get(string name, Input id, return new ValidatingWebhookConfiguration(name, default(Types.Inputs.AdmissionRegistration.V1Beta1.ValidatingWebhookConfigurationArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/AdmissionRegistration/V1Beta1/ValidatingWebhookConfigurationList.cs b/sdk/dotnet/AdmissionRegistration/V1Beta1/ValidatingWebhookConfigurationList.cs index fcba84e31f..259e8c8783 100755 --- a/sdk/dotnet/AdmissionRegistration/V1Beta1/ValidatingWebhookConfigurationList.cs +++ b/sdk/dotnet/AdmissionRegistration/V1Beta1/ValidatingWebhookConfigurationList.cs @@ -51,7 +51,7 @@ public partial class ValidatingWebhookConfigurationList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public ValidatingWebhookConfigurationList(string name, Types.Inputs.AdmissionRegistration.V1Beta1.ValidatingWebhookConfigurationListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:admissionregistration.k8s.io/v1beta1:ValidatingWebhookConfigurationList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:admissionregistration.k8s.io/v1beta1:ValidatingWebhookConfigurationList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.AdmissionRegistrat return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing ValidatingWebhookConfigurationList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static ValidatingWebhookConfigurationList Get(string name, Input return new ValidatingWebhookConfigurationList(name, default(Types.Inputs.AdmissionRegistration.V1Beta1.ValidatingWebhookConfigurationListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/ApiExtensions/V1/CustomResourceDefinition.cs b/sdk/dotnet/ApiExtensions/V1/CustomResourceDefinition.cs index e4b201a356..c0bcc034ca 100755 --- a/sdk/dotnet/ApiExtensions/V1/CustomResourceDefinition.cs +++ b/sdk/dotnet/ApiExtensions/V1/CustomResourceDefinition.cs @@ -55,7 +55,7 @@ public partial class CustomResourceDefinition : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public CustomResourceDefinition(string name, Types.Inputs.ApiExtensions.V1.CustomResourceDefinitionArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:apiextensions.k8s.io/v1:CustomResourceDefinition", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:apiextensions.k8s.io/v1:CustomResourceDefinition", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -72,6 +72,19 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.ApiExtensions.V1.C return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:apiextensions.k8s.io/v1beta1:CustomResourceDefinition" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing CustomResourceDefinition resource's state with the given name and ID. /// @@ -83,6 +96,5 @@ public static CustomResourceDefinition Get(string name, Input id, Custom return new CustomResourceDefinition(name, default(Types.Inputs.ApiExtensions.V1.CustomResourceDefinitionArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/ApiExtensions/V1/CustomResourceDefinitionList.cs b/sdk/dotnet/ApiExtensions/V1/CustomResourceDefinitionList.cs index 290e52d351..1ac2186151 100755 --- a/sdk/dotnet/ApiExtensions/V1/CustomResourceDefinitionList.cs +++ b/sdk/dotnet/ApiExtensions/V1/CustomResourceDefinitionList.cs @@ -48,7 +48,7 @@ public partial class CustomResourceDefinitionList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public CustomResourceDefinitionList(string name, Types.Inputs.ApiExtensions.V1.CustomResourceDefinitionListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:apiextensions.k8s.io/v1:CustomResourceDefinitionList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:apiextensions.k8s.io/v1:CustomResourceDefinitionList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -65,6 +65,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.ApiExtensions.V1.C return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing CustomResourceDefinitionList resource's state with the given name and ID. /// @@ -76,6 +81,5 @@ public static CustomResourceDefinitionList Get(string name, Input id, Cu return new CustomResourceDefinitionList(name, default(Types.Inputs.ApiExtensions.V1.CustomResourceDefinitionListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/ApiExtensions/V1Beta1/CustomResourceDefinition.cs b/sdk/dotnet/ApiExtensions/V1Beta1/CustomResourceDefinition.cs index 265111e422..6615c9370c 100755 --- a/sdk/dotnet/ApiExtensions/V1Beta1/CustomResourceDefinition.cs +++ b/sdk/dotnet/ApiExtensions/V1Beta1/CustomResourceDefinition.cs @@ -57,7 +57,7 @@ public partial class CustomResourceDefinition : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public CustomResourceDefinition(string name, Types.Inputs.ApiExtensions.V1Beta1.CustomResourceDefinitionArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:apiextensions.k8s.io/v1beta1:CustomResourceDefinition", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:apiextensions.k8s.io/v1beta1:CustomResourceDefinition", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -74,6 +74,19 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.ApiExtensions.V1Be return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:apiextensions.k8s.io/v1:CustomResourceDefinition" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing CustomResourceDefinition resource's state with the given name and ID. /// @@ -85,6 +98,5 @@ public static CustomResourceDefinition Get(string name, Input id, Custom return new CustomResourceDefinition(name, default(Types.Inputs.ApiExtensions.V1Beta1.CustomResourceDefinitionArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/ApiExtensions/V1Beta1/CustomResourceDefinitionList.cs b/sdk/dotnet/ApiExtensions/V1Beta1/CustomResourceDefinitionList.cs index 19ec1e8bc7..21fd68289e 100755 --- a/sdk/dotnet/ApiExtensions/V1Beta1/CustomResourceDefinitionList.cs +++ b/sdk/dotnet/ApiExtensions/V1Beta1/CustomResourceDefinitionList.cs @@ -48,7 +48,7 @@ public partial class CustomResourceDefinitionList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public CustomResourceDefinitionList(string name, Types.Inputs.ApiExtensions.V1Beta1.CustomResourceDefinitionListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:apiextensions.k8s.io/v1beta1:CustomResourceDefinitionList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:apiextensions.k8s.io/v1beta1:CustomResourceDefinitionList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -65,6 +65,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.ApiExtensions.V1Be return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing CustomResourceDefinitionList resource's state with the given name and ID. /// @@ -76,6 +81,5 @@ public static CustomResourceDefinitionList Get(string name, Input id, Cu return new CustomResourceDefinitionList(name, default(Types.Inputs.ApiExtensions.V1Beta1.CustomResourceDefinitionListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/ApiRegistration/V1/APIService.cs b/sdk/dotnet/ApiRegistration/V1/APIService.cs index cb7f22b443..2979c73505 100755 --- a/sdk/dotnet/ApiRegistration/V1/APIService.cs +++ b/sdk/dotnet/ApiRegistration/V1/APIService.cs @@ -54,7 +54,7 @@ public partial class APIService : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public APIService(string name, Types.Inputs.ApiRegistration.V1.APIServiceArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:apiregistration/v1:APIService", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:apiregistration/v1:APIService", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -71,6 +71,19 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.ApiRegistration.V1 return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:apiregistration.k8s.io/v1beta1:APIService" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing APIService resource's state with the given name and ID. /// @@ -82,6 +95,5 @@ public static APIService Get(string name, Input id, CustomResourceOption return new APIService(name, default(Types.Inputs.ApiRegistration.V1.APIServiceArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/ApiRegistration/V1/APIServiceList.cs b/sdk/dotnet/ApiRegistration/V1/APIServiceList.cs index d424060a5b..41985932e3 100755 --- a/sdk/dotnet/ApiRegistration/V1/APIServiceList.cs +++ b/sdk/dotnet/ApiRegistration/V1/APIServiceList.cs @@ -46,7 +46,7 @@ public partial class APIServiceList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public APIServiceList(string name, Types.Inputs.ApiRegistration.V1.APIServiceListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:apiregistration/v1:APIServiceList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:apiregistration/v1:APIServiceList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -63,6 +63,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.ApiRegistration.V1 return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing APIServiceList resource's state with the given name and ID. /// @@ -74,6 +79,5 @@ public static APIServiceList Get(string name, Input id, CustomResourceOp return new APIServiceList(name, default(Types.Inputs.ApiRegistration.V1.APIServiceListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/ApiRegistration/V1Beta1/APIService.cs b/sdk/dotnet/ApiRegistration/V1Beta1/APIService.cs index 2083574c4c..3be6754a57 100755 --- a/sdk/dotnet/ApiRegistration/V1Beta1/APIService.cs +++ b/sdk/dotnet/ApiRegistration/V1Beta1/APIService.cs @@ -54,7 +54,7 @@ public partial class APIService : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public APIService(string name, Types.Inputs.ApiRegistration.V1Beta1.APIServiceArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:apiregistration/v1beta1:APIService", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:apiregistration/v1beta1:APIService", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -71,6 +71,19 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.ApiRegistration.V1 return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:apiregistration.k8s.io/v1:APIService" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing APIService resource's state with the given name and ID. /// @@ -82,6 +95,5 @@ public static APIService Get(string name, Input id, CustomResourceOption return new APIService(name, default(Types.Inputs.ApiRegistration.V1Beta1.APIServiceArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/ApiRegistration/V1Beta1/APIServiceList.cs b/sdk/dotnet/ApiRegistration/V1Beta1/APIServiceList.cs index afe1645442..317fd972ce 100755 --- a/sdk/dotnet/ApiRegistration/V1Beta1/APIServiceList.cs +++ b/sdk/dotnet/ApiRegistration/V1Beta1/APIServiceList.cs @@ -46,7 +46,7 @@ public partial class APIServiceList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public APIServiceList(string name, Types.Inputs.ApiRegistration.V1Beta1.APIServiceListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:apiregistration/v1beta1:APIServiceList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:apiregistration/v1beta1:APIServiceList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -63,6 +63,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.ApiRegistration.V1 return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing APIServiceList resource's state with the given name and ID. /// @@ -74,6 +79,5 @@ public static APIServiceList Get(string name, Input id, CustomResourceOp return new APIServiceList(name, default(Types.Inputs.ApiRegistration.V1Beta1.APIServiceListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Apps/V1/ControllerRevision.cs b/sdk/dotnet/Apps/V1/ControllerRevision.cs index 17754390a0..a34c0916ff 100755 --- a/sdk/dotnet/Apps/V1/ControllerRevision.cs +++ b/sdk/dotnet/Apps/V1/ControllerRevision.cs @@ -64,7 +64,7 @@ public partial class ControllerRevision : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public ControllerRevision(string name, Types.Inputs.Apps.V1.ControllerRevisionArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:apps/v1:ControllerRevision", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:apps/v1:ControllerRevision", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -81,6 +81,20 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Apps.V1.Controller return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:apps/v1beta1:ControllerRevision" }, + new Alias { Type = "kubernetes:apps/v1beta2:ControllerRevision" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing ControllerRevision resource's state with the given name and ID. /// @@ -92,6 +106,5 @@ public static ControllerRevision Get(string name, Input id, CustomResour return new ControllerRevision(name, default(Types.Inputs.Apps.V1.ControllerRevisionArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Apps/V1/ControllerRevisionList.cs b/sdk/dotnet/Apps/V1/ControllerRevisionList.cs index f3e41cdede..fc003e7ab5 100755 --- a/sdk/dotnet/Apps/V1/ControllerRevisionList.cs +++ b/sdk/dotnet/Apps/V1/ControllerRevisionList.cs @@ -51,7 +51,7 @@ public partial class ControllerRevisionList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public ControllerRevisionList(string name, Types.Inputs.Apps.V1.ControllerRevisionListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:apps/v1:ControllerRevisionList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:apps/v1:ControllerRevisionList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Apps.V1.Controller return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing ControllerRevisionList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static ControllerRevisionList Get(string name, Input id, CustomRe return new ControllerRevisionList(name, default(Types.Inputs.Apps.V1.ControllerRevisionListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Apps/V1/DaemonSet.cs b/sdk/dotnet/Apps/V1/DaemonSet.cs index f5c1cee6e0..2ef29643d5 100755 --- a/sdk/dotnet/Apps/V1/DaemonSet.cs +++ b/sdk/dotnet/Apps/V1/DaemonSet.cs @@ -60,7 +60,7 @@ public partial class DaemonSet : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public DaemonSet(string name, Types.Inputs.Apps.V1.DaemonSetArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:apps/v1:DaemonSet", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:apps/v1:DaemonSet", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -77,6 +77,20 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Apps.V1.DaemonSetA return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:apps/v1beta2:DaemonSet" }, + new Alias { Type = "kubernetes:extensions/v1beta1:DaemonSet" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing DaemonSet resource's state with the given name and ID. /// @@ -88,6 +102,5 @@ public static DaemonSet Get(string name, Input id, CustomResourceOptions return new DaemonSet(name, default(Types.Inputs.Apps.V1.DaemonSetArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Apps/V1/DaemonSetList.cs b/sdk/dotnet/Apps/V1/DaemonSetList.cs index 8f662c049c..38b8d919ef 100755 --- a/sdk/dotnet/Apps/V1/DaemonSetList.cs +++ b/sdk/dotnet/Apps/V1/DaemonSetList.cs @@ -51,7 +51,7 @@ public partial class DaemonSetList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public DaemonSetList(string name, Types.Inputs.Apps.V1.DaemonSetListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:apps/v1:DaemonSetList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:apps/v1:DaemonSetList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Apps.V1.DaemonSetL return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing DaemonSetList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static DaemonSetList Get(string name, Input id, CustomResourceOpt return new DaemonSetList(name, default(Types.Inputs.Apps.V1.DaemonSetListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Apps/V1/Deployment.cs b/sdk/dotnet/Apps/V1/Deployment.cs index 3545b7c01b..f9620a822d 100755 --- a/sdk/dotnet/Apps/V1/Deployment.cs +++ b/sdk/dotnet/Apps/V1/Deployment.cs @@ -80,7 +80,7 @@ public partial class Deployment : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public Deployment(string name, Types.Inputs.Apps.V1.DeploymentArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:apps/v1:Deployment", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:apps/v1:Deployment", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -97,6 +97,21 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Apps.V1.Deployment return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:apps/v1beta1:Deployment" }, + new Alias { Type = "kubernetes:apps/v1beta2:Deployment" }, + new Alias { Type = "kubernetes:extensions/v1beta1:Deployment" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing Deployment resource's state with the given name and ID. /// @@ -108,6 +123,5 @@ public static Deployment Get(string name, Input id, CustomResourceOption return new Deployment(name, default(Types.Inputs.Apps.V1.DeploymentArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Apps/V1/DeploymentList.cs b/sdk/dotnet/Apps/V1/DeploymentList.cs index 544f5eb1ad..cbb2a65357 100755 --- a/sdk/dotnet/Apps/V1/DeploymentList.cs +++ b/sdk/dotnet/Apps/V1/DeploymentList.cs @@ -50,7 +50,7 @@ public partial class DeploymentList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public DeploymentList(string name, Types.Inputs.Apps.V1.DeploymentListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:apps/v1:DeploymentList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:apps/v1:DeploymentList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -67,6 +67,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Apps.V1.Deployment return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing DeploymentList resource's state with the given name and ID. /// @@ -78,6 +83,5 @@ public static DeploymentList Get(string name, Input id, CustomResourceOp return new DeploymentList(name, default(Types.Inputs.Apps.V1.DeploymentListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Apps/V1/ReplicaSet.cs b/sdk/dotnet/Apps/V1/ReplicaSet.cs index eec32ba570..202774fc2f 100755 --- a/sdk/dotnet/Apps/V1/ReplicaSet.cs +++ b/sdk/dotnet/Apps/V1/ReplicaSet.cs @@ -61,7 +61,7 @@ public partial class ReplicaSet : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public ReplicaSet(string name, Types.Inputs.Apps.V1.ReplicaSetArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:apps/v1:ReplicaSet", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:apps/v1:ReplicaSet", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -78,6 +78,20 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Apps.V1.ReplicaSet return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:apps/v1beta2:ReplicaSet" }, + new Alias { Type = "kubernetes:extensions/v1beta1:ReplicaSet" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing ReplicaSet resource's state with the given name and ID. /// @@ -89,6 +103,5 @@ public static ReplicaSet Get(string name, Input id, CustomResourceOption return new ReplicaSet(name, default(Types.Inputs.Apps.V1.ReplicaSetArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Apps/V1/ReplicaSetList.cs b/sdk/dotnet/Apps/V1/ReplicaSetList.cs index be2d6c8c94..087bdc9f05 100755 --- a/sdk/dotnet/Apps/V1/ReplicaSetList.cs +++ b/sdk/dotnet/Apps/V1/ReplicaSetList.cs @@ -52,7 +52,7 @@ public partial class ReplicaSetList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public ReplicaSetList(string name, Types.Inputs.Apps.V1.ReplicaSetListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:apps/v1:ReplicaSetList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:apps/v1:ReplicaSetList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -69,6 +69,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Apps.V1.ReplicaSet return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing ReplicaSetList resource's state with the given name and ID. /// @@ -80,6 +85,5 @@ public static ReplicaSetList Get(string name, Input id, CustomResourceOp return new ReplicaSetList(name, default(Types.Inputs.Apps.V1.ReplicaSetListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Apps/V1/StatefulSet.cs b/sdk/dotnet/Apps/V1/StatefulSet.cs index e5ba1a1cc7..b030b65b87 100755 --- a/sdk/dotnet/Apps/V1/StatefulSet.cs +++ b/sdk/dotnet/Apps/V1/StatefulSet.cs @@ -72,7 +72,7 @@ public partial class StatefulSet : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public StatefulSet(string name, Types.Inputs.Apps.V1.StatefulSetArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:apps/v1:StatefulSet", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:apps/v1:StatefulSet", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -89,6 +89,20 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Apps.V1.StatefulSe return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:apps/v1beta1:StatefulSet" }, + new Alias { Type = "kubernetes:apps/v1beta2:StatefulSet" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing StatefulSet resource's state with the given name and ID. /// @@ -100,6 +114,5 @@ public static StatefulSet Get(string name, Input id, CustomResourceOptio return new StatefulSet(name, default(Types.Inputs.Apps.V1.StatefulSetArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Apps/V1/StatefulSetList.cs b/sdk/dotnet/Apps/V1/StatefulSetList.cs index 74f23986fd..663dd38ba6 100755 --- a/sdk/dotnet/Apps/V1/StatefulSetList.cs +++ b/sdk/dotnet/Apps/V1/StatefulSetList.cs @@ -46,7 +46,7 @@ public partial class StatefulSetList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public StatefulSetList(string name, Types.Inputs.Apps.V1.StatefulSetListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:apps/v1:StatefulSetList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:apps/v1:StatefulSetList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -63,6 +63,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Apps.V1.StatefulSe return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing StatefulSetList resource's state with the given name and ID. /// @@ -74,6 +79,5 @@ public static StatefulSetList Get(string name, Input id, CustomResourceO return new StatefulSetList(name, default(Types.Inputs.Apps.V1.StatefulSetListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Apps/V1Beta1/ControllerRevision.cs b/sdk/dotnet/Apps/V1Beta1/ControllerRevision.cs index f7df8cc638..ea6e7dc8ae 100755 --- a/sdk/dotnet/Apps/V1Beta1/ControllerRevision.cs +++ b/sdk/dotnet/Apps/V1Beta1/ControllerRevision.cs @@ -67,7 +67,7 @@ public partial class ControllerRevision : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public ControllerRevision(string name, Types.Inputs.Apps.V1Beta1.ControllerRevisionArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:apps/v1beta1:ControllerRevision", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:apps/v1beta1:ControllerRevision", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -84,6 +84,20 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Apps.V1Beta1.Contr return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:apps/v1:ControllerRevision" }, + new Alias { Type = "kubernetes:apps/v1beta2:ControllerRevision" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing ControllerRevision resource's state with the given name and ID. /// @@ -95,6 +109,5 @@ public static ControllerRevision Get(string name, Input id, CustomResour return new ControllerRevision(name, default(Types.Inputs.Apps.V1Beta1.ControllerRevisionArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Apps/V1Beta1/ControllerRevisionList.cs b/sdk/dotnet/Apps/V1Beta1/ControllerRevisionList.cs index 46242decf7..c3eeb404e7 100755 --- a/sdk/dotnet/Apps/V1Beta1/ControllerRevisionList.cs +++ b/sdk/dotnet/Apps/V1Beta1/ControllerRevisionList.cs @@ -51,7 +51,7 @@ public partial class ControllerRevisionList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public ControllerRevisionList(string name, Types.Inputs.Apps.V1Beta1.ControllerRevisionListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:apps/v1beta1:ControllerRevisionList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:apps/v1beta1:ControllerRevisionList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Apps.V1Beta1.Contr return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing ControllerRevisionList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static ControllerRevisionList Get(string name, Input id, CustomRe return new ControllerRevisionList(name, default(Types.Inputs.Apps.V1Beta1.ControllerRevisionListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Apps/V1Beta1/Deployment.cs b/sdk/dotnet/Apps/V1Beta1/Deployment.cs index 5d426d0c21..e551bc8224 100755 --- a/sdk/dotnet/Apps/V1Beta1/Deployment.cs +++ b/sdk/dotnet/Apps/V1Beta1/Deployment.cs @@ -83,7 +83,7 @@ public partial class Deployment : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public Deployment(string name, Types.Inputs.Apps.V1Beta1.DeploymentArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:apps/v1beta1:Deployment", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:apps/v1beta1:Deployment", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -100,6 +100,21 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Apps.V1Beta1.Deplo return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:apps/v1:Deployment" }, + new Alias { Type = "kubernetes:apps/v1beta2:Deployment" }, + new Alias { Type = "kubernetes:extensions/v1beta1:Deployment" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing Deployment resource's state with the given name and ID. /// @@ -111,6 +126,5 @@ public static Deployment Get(string name, Input id, CustomResourceOption return new Deployment(name, default(Types.Inputs.Apps.V1Beta1.DeploymentArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Apps/V1Beta1/DeploymentList.cs b/sdk/dotnet/Apps/V1Beta1/DeploymentList.cs index 15aa25935d..17008fb6fb 100755 --- a/sdk/dotnet/Apps/V1Beta1/DeploymentList.cs +++ b/sdk/dotnet/Apps/V1Beta1/DeploymentList.cs @@ -50,7 +50,7 @@ public partial class DeploymentList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public DeploymentList(string name, Types.Inputs.Apps.V1Beta1.DeploymentListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:apps/v1beta1:DeploymentList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:apps/v1beta1:DeploymentList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -67,6 +67,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Apps.V1Beta1.Deplo return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing DeploymentList resource's state with the given name and ID. /// @@ -78,6 +83,5 @@ public static DeploymentList Get(string name, Input id, CustomResourceOp return new DeploymentList(name, default(Types.Inputs.Apps.V1Beta1.DeploymentListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Apps/V1Beta1/StatefulSet.cs b/sdk/dotnet/Apps/V1Beta1/StatefulSet.cs index e4356d4f40..0aae7dcc43 100755 --- a/sdk/dotnet/Apps/V1Beta1/StatefulSet.cs +++ b/sdk/dotnet/Apps/V1Beta1/StatefulSet.cs @@ -75,7 +75,7 @@ public partial class StatefulSet : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public StatefulSet(string name, Types.Inputs.Apps.V1Beta1.StatefulSetArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:apps/v1beta1:StatefulSet", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:apps/v1beta1:StatefulSet", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -92,6 +92,20 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Apps.V1Beta1.State return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:apps/v1:StatefulSet" }, + new Alias { Type = "kubernetes:apps/v1beta2:StatefulSet" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing StatefulSet resource's state with the given name and ID. /// @@ -103,6 +117,5 @@ public static StatefulSet Get(string name, Input id, CustomResourceOptio return new StatefulSet(name, default(Types.Inputs.Apps.V1Beta1.StatefulSetArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Apps/V1Beta1/StatefulSetList.cs b/sdk/dotnet/Apps/V1Beta1/StatefulSetList.cs index d5948f54c6..d681c7af55 100755 --- a/sdk/dotnet/Apps/V1Beta1/StatefulSetList.cs +++ b/sdk/dotnet/Apps/V1Beta1/StatefulSetList.cs @@ -46,7 +46,7 @@ public partial class StatefulSetList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public StatefulSetList(string name, Types.Inputs.Apps.V1Beta1.StatefulSetListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:apps/v1beta1:StatefulSetList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:apps/v1beta1:StatefulSetList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -63,6 +63,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Apps.V1Beta1.State return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing StatefulSetList resource's state with the given name and ID. /// @@ -74,6 +79,5 @@ public static StatefulSetList Get(string name, Input id, CustomResourceO return new StatefulSetList(name, default(Types.Inputs.Apps.V1Beta1.StatefulSetListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Apps/V1Beta2/ControllerRevision.cs b/sdk/dotnet/Apps/V1Beta2/ControllerRevision.cs index 7087426910..bb8d05c722 100755 --- a/sdk/dotnet/Apps/V1Beta2/ControllerRevision.cs +++ b/sdk/dotnet/Apps/V1Beta2/ControllerRevision.cs @@ -67,7 +67,7 @@ public partial class ControllerRevision : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public ControllerRevision(string name, Types.Inputs.Apps.V1Beta2.ControllerRevisionArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:apps/v1beta2:ControllerRevision", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:apps/v1beta2:ControllerRevision", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -84,6 +84,20 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Apps.V1Beta2.Contr return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:apps/v1:ControllerRevision" }, + new Alias { Type = "kubernetes:apps/v1beta1:ControllerRevision" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing ControllerRevision resource's state with the given name and ID. /// @@ -95,6 +109,5 @@ public static ControllerRevision Get(string name, Input id, CustomResour return new ControllerRevision(name, default(Types.Inputs.Apps.V1Beta2.ControllerRevisionArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Apps/V1Beta2/ControllerRevisionList.cs b/sdk/dotnet/Apps/V1Beta2/ControllerRevisionList.cs index 423d2c12cf..d329e1c4a8 100755 --- a/sdk/dotnet/Apps/V1Beta2/ControllerRevisionList.cs +++ b/sdk/dotnet/Apps/V1Beta2/ControllerRevisionList.cs @@ -51,7 +51,7 @@ public partial class ControllerRevisionList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public ControllerRevisionList(string name, Types.Inputs.Apps.V1Beta2.ControllerRevisionListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:apps/v1beta2:ControllerRevisionList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:apps/v1beta2:ControllerRevisionList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Apps.V1Beta2.Contr return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing ControllerRevisionList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static ControllerRevisionList Get(string name, Input id, CustomRe return new ControllerRevisionList(name, default(Types.Inputs.Apps.V1Beta2.ControllerRevisionListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Apps/V1Beta2/DaemonSet.cs b/sdk/dotnet/Apps/V1Beta2/DaemonSet.cs index 4c30048b80..b2b75694d0 100755 --- a/sdk/dotnet/Apps/V1Beta2/DaemonSet.cs +++ b/sdk/dotnet/Apps/V1Beta2/DaemonSet.cs @@ -63,7 +63,7 @@ public partial class DaemonSet : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public DaemonSet(string name, Types.Inputs.Apps.V1Beta2.DaemonSetArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:apps/v1beta2:DaemonSet", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:apps/v1beta2:DaemonSet", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -80,6 +80,20 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Apps.V1Beta2.Daemo return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:apps/v1:DaemonSet" }, + new Alias { Type = "kubernetes:extensions/v1beta1:DaemonSet" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing DaemonSet resource's state with the given name and ID. /// @@ -91,6 +105,5 @@ public static DaemonSet Get(string name, Input id, CustomResourceOptions return new DaemonSet(name, default(Types.Inputs.Apps.V1Beta2.DaemonSetArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Apps/V1Beta2/DaemonSetList.cs b/sdk/dotnet/Apps/V1Beta2/DaemonSetList.cs index cc075d7c95..ec303817c5 100755 --- a/sdk/dotnet/Apps/V1Beta2/DaemonSetList.cs +++ b/sdk/dotnet/Apps/V1Beta2/DaemonSetList.cs @@ -51,7 +51,7 @@ public partial class DaemonSetList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public DaemonSetList(string name, Types.Inputs.Apps.V1Beta2.DaemonSetListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:apps/v1beta2:DaemonSetList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:apps/v1beta2:DaemonSetList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Apps.V1Beta2.Daemo return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing DaemonSetList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static DaemonSetList Get(string name, Input id, CustomResourceOpt return new DaemonSetList(name, default(Types.Inputs.Apps.V1Beta2.DaemonSetListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Apps/V1Beta2/Deployment.cs b/sdk/dotnet/Apps/V1Beta2/Deployment.cs index 38c52aefa5..145bce4b5b 100755 --- a/sdk/dotnet/Apps/V1Beta2/Deployment.cs +++ b/sdk/dotnet/Apps/V1Beta2/Deployment.cs @@ -83,7 +83,7 @@ public partial class Deployment : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public Deployment(string name, Types.Inputs.Apps.V1Beta2.DeploymentArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:apps/v1beta2:Deployment", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:apps/v1beta2:Deployment", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -100,6 +100,21 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Apps.V1Beta2.Deplo return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:apps/v1:Deployment" }, + new Alias { Type = "kubernetes:apps/v1beta1:Deployment" }, + new Alias { Type = "kubernetes:extensions/v1beta1:Deployment" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing Deployment resource's state with the given name and ID. /// @@ -111,6 +126,5 @@ public static Deployment Get(string name, Input id, CustomResourceOption return new Deployment(name, default(Types.Inputs.Apps.V1Beta2.DeploymentArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Apps/V1Beta2/DeploymentList.cs b/sdk/dotnet/Apps/V1Beta2/DeploymentList.cs index 997645331d..f546b05fd8 100755 --- a/sdk/dotnet/Apps/V1Beta2/DeploymentList.cs +++ b/sdk/dotnet/Apps/V1Beta2/DeploymentList.cs @@ -50,7 +50,7 @@ public partial class DeploymentList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public DeploymentList(string name, Types.Inputs.Apps.V1Beta2.DeploymentListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:apps/v1beta2:DeploymentList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:apps/v1beta2:DeploymentList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -67,6 +67,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Apps.V1Beta2.Deplo return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing DeploymentList resource's state with the given name and ID. /// @@ -78,6 +83,5 @@ public static DeploymentList Get(string name, Input id, CustomResourceOp return new DeploymentList(name, default(Types.Inputs.Apps.V1Beta2.DeploymentListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Apps/V1Beta2/ReplicaSet.cs b/sdk/dotnet/Apps/V1Beta2/ReplicaSet.cs index a62fee650d..4acacf0a41 100755 --- a/sdk/dotnet/Apps/V1Beta2/ReplicaSet.cs +++ b/sdk/dotnet/Apps/V1Beta2/ReplicaSet.cs @@ -64,7 +64,7 @@ public partial class ReplicaSet : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public ReplicaSet(string name, Types.Inputs.Apps.V1Beta2.ReplicaSetArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:apps/v1beta2:ReplicaSet", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:apps/v1beta2:ReplicaSet", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -81,6 +81,20 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Apps.V1Beta2.Repli return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:apps/v1:ReplicaSet" }, + new Alias { Type = "kubernetes:extensions/v1beta1:ReplicaSet" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing ReplicaSet resource's state with the given name and ID. /// @@ -92,6 +106,5 @@ public static ReplicaSet Get(string name, Input id, CustomResourceOption return new ReplicaSet(name, default(Types.Inputs.Apps.V1Beta2.ReplicaSetArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Apps/V1Beta2/ReplicaSetList.cs b/sdk/dotnet/Apps/V1Beta2/ReplicaSetList.cs index e4e6600982..30f72b44d1 100755 --- a/sdk/dotnet/Apps/V1Beta2/ReplicaSetList.cs +++ b/sdk/dotnet/Apps/V1Beta2/ReplicaSetList.cs @@ -52,7 +52,7 @@ public partial class ReplicaSetList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public ReplicaSetList(string name, Types.Inputs.Apps.V1Beta2.ReplicaSetListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:apps/v1beta2:ReplicaSetList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:apps/v1beta2:ReplicaSetList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -69,6 +69,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Apps.V1Beta2.Repli return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing ReplicaSetList resource's state with the given name and ID. /// @@ -80,6 +85,5 @@ public static ReplicaSetList Get(string name, Input id, CustomResourceOp return new ReplicaSetList(name, default(Types.Inputs.Apps.V1Beta2.ReplicaSetListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Apps/V1Beta2/StatefulSet.cs b/sdk/dotnet/Apps/V1Beta2/StatefulSet.cs index 904d69b4d9..ab176ed220 100755 --- a/sdk/dotnet/Apps/V1Beta2/StatefulSet.cs +++ b/sdk/dotnet/Apps/V1Beta2/StatefulSet.cs @@ -75,7 +75,7 @@ public partial class StatefulSet : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public StatefulSet(string name, Types.Inputs.Apps.V1Beta2.StatefulSetArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:apps/v1beta2:StatefulSet", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:apps/v1beta2:StatefulSet", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -92,6 +92,20 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Apps.V1Beta2.State return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:apps/v1:StatefulSet" }, + new Alias { Type = "kubernetes:apps/v1beta1:StatefulSet" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing StatefulSet resource's state with the given name and ID. /// @@ -103,6 +117,5 @@ public static StatefulSet Get(string name, Input id, CustomResourceOptio return new StatefulSet(name, default(Types.Inputs.Apps.V1Beta2.StatefulSetArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Apps/V1Beta2/StatefulSetList.cs b/sdk/dotnet/Apps/V1Beta2/StatefulSetList.cs index 630a3e8efc..683f1ac472 100755 --- a/sdk/dotnet/Apps/V1Beta2/StatefulSetList.cs +++ b/sdk/dotnet/Apps/V1Beta2/StatefulSetList.cs @@ -46,7 +46,7 @@ public partial class StatefulSetList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public StatefulSetList(string name, Types.Inputs.Apps.V1Beta2.StatefulSetListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:apps/v1beta2:StatefulSetList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:apps/v1beta2:StatefulSetList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -63,6 +63,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Apps.V1Beta2.State return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing StatefulSetList resource's state with the given name and ID. /// @@ -74,6 +79,5 @@ public static StatefulSetList Get(string name, Input id, CustomResourceO return new StatefulSetList(name, default(Types.Inputs.Apps.V1Beta2.StatefulSetListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/AuditRegistraion/V1Alpha1/AuditSink.cs b/sdk/dotnet/AuditRegistraion/V1Alpha1/AuditSink.cs index 3be7e43463..ee3e38e58c 100755 --- a/sdk/dotnet/AuditRegistraion/V1Alpha1/AuditSink.cs +++ b/sdk/dotnet/AuditRegistraion/V1Alpha1/AuditSink.cs @@ -48,7 +48,7 @@ public partial class AuditSink : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public AuditSink(string name, Types.Inputs.AuditRegistraion.V1Alpha1.AuditSinkArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:auditregistration.k8s.io/v1alpha1:AuditSink", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:auditregistration.k8s.io/v1alpha1:AuditSink", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -65,6 +65,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.AuditRegistraion.V return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing AuditSink resource's state with the given name and ID. /// @@ -76,6 +81,5 @@ public static AuditSink Get(string name, Input id, CustomResourceOptions return new AuditSink(name, default(Types.Inputs.AuditRegistraion.V1Alpha1.AuditSinkArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/AuditRegistraion/V1Alpha1/AuditSinkList.cs b/sdk/dotnet/AuditRegistraion/V1Alpha1/AuditSinkList.cs index b89aa4aa5d..6aae14881a 100755 --- a/sdk/dotnet/AuditRegistraion/V1Alpha1/AuditSinkList.cs +++ b/sdk/dotnet/AuditRegistraion/V1Alpha1/AuditSinkList.cs @@ -48,7 +48,7 @@ public partial class AuditSinkList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public AuditSinkList(string name, Types.Inputs.AuditRegistraion.V1Alpha1.AuditSinkListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:auditregistration.k8s.io/v1alpha1:AuditSinkList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:auditregistration.k8s.io/v1alpha1:AuditSinkList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -65,6 +65,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.AuditRegistraion.V return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing AuditSinkList resource's state with the given name and ID. /// @@ -76,6 +81,5 @@ public static AuditSinkList Get(string name, Input id, CustomResourceOpt return new AuditSinkList(name, default(Types.Inputs.AuditRegistraion.V1Alpha1.AuditSinkListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Authentication/V1/TokenRequest.cs b/sdk/dotnet/Authentication/V1/TokenRequest.cs index b43ba8005a..1c568c96c7 100755 --- a/sdk/dotnet/Authentication/V1/TokenRequest.cs +++ b/sdk/dotnet/Authentication/V1/TokenRequest.cs @@ -50,7 +50,7 @@ public partial class TokenRequest : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public TokenRequest(string name, Types.Inputs.Authentication.V1.TokenRequestArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:authentication.k8s.io/v1:TokenRequest", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:authentication.k8s.io/v1:TokenRequest", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -67,6 +67,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Authentication.V1. return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing TokenRequest resource's state with the given name and ID. /// @@ -78,6 +83,5 @@ public static TokenRequest Get(string name, Input id, CustomResourceOpti return new TokenRequest(name, default(Types.Inputs.Authentication.V1.TokenRequestArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Authentication/V1/TokenReview.cs b/sdk/dotnet/Authentication/V1/TokenReview.cs index 4b05c11d31..5491c194e7 100755 --- a/sdk/dotnet/Authentication/V1/TokenReview.cs +++ b/sdk/dotnet/Authentication/V1/TokenReview.cs @@ -56,7 +56,7 @@ public partial class TokenReview : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public TokenReview(string name, Types.Inputs.Authentication.V1.TokenReviewArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:authentication.k8s.io/v1:TokenReview", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:authentication.k8s.io/v1:TokenReview", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -73,6 +73,19 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Authentication.V1. return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:authentication.k8s.io/v1beta1:TokenReview" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing TokenReview resource's state with the given name and ID. /// @@ -84,6 +97,5 @@ public static TokenReview Get(string name, Input id, CustomResourceOptio return new TokenReview(name, default(Types.Inputs.Authentication.V1.TokenReviewArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Authentication/V1Beta1/TokenReview.cs b/sdk/dotnet/Authentication/V1Beta1/TokenReview.cs index 11d5d8dc93..2e2cd2bc26 100755 --- a/sdk/dotnet/Authentication/V1Beta1/TokenReview.cs +++ b/sdk/dotnet/Authentication/V1Beta1/TokenReview.cs @@ -56,7 +56,7 @@ public partial class TokenReview : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public TokenReview(string name, Types.Inputs.Authentication.V1Beta1.TokenReviewArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:authentication.k8s.io/v1beta1:TokenReview", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:authentication.k8s.io/v1beta1:TokenReview", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -73,6 +73,19 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Authentication.V1B return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:authentication.k8s.io/v1:TokenReview" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing TokenReview resource's state with the given name and ID. /// @@ -84,6 +97,5 @@ public static TokenReview Get(string name, Input id, CustomResourceOptio return new TokenReview(name, default(Types.Inputs.Authentication.V1Beta1.TokenReviewArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Authorization/V1/LocalSubjectAccessReview.cs b/sdk/dotnet/Authorization/V1/LocalSubjectAccessReview.cs index 861fc7e2ca..29682c6de2 100755 --- a/sdk/dotnet/Authorization/V1/LocalSubjectAccessReview.cs +++ b/sdk/dotnet/Authorization/V1/LocalSubjectAccessReview.cs @@ -57,7 +57,7 @@ public partial class LocalSubjectAccessReview : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public LocalSubjectAccessReview(string name, Types.Inputs.Authorization.V1.LocalSubjectAccessReviewArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:authorization.k8s.io/v1:LocalSubjectAccessReview", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:authorization.k8s.io/v1:LocalSubjectAccessReview", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -74,6 +74,19 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Authorization.V1.L return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:authorization.k8s.io/v1beta1:LocalSubjectAccessReview" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing LocalSubjectAccessReview resource's state with the given name and ID. /// @@ -85,6 +98,5 @@ public static LocalSubjectAccessReview Get(string name, Input id, Custom return new LocalSubjectAccessReview(name, default(Types.Inputs.Authorization.V1.LocalSubjectAccessReviewArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Authorization/V1/SelfSubjectAccessReview.cs b/sdk/dotnet/Authorization/V1/SelfSubjectAccessReview.cs index 0013cb4884..f146643aeb 100755 --- a/sdk/dotnet/Authorization/V1/SelfSubjectAccessReview.cs +++ b/sdk/dotnet/Authorization/V1/SelfSubjectAccessReview.cs @@ -56,7 +56,7 @@ public partial class SelfSubjectAccessReview : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public SelfSubjectAccessReview(string name, Types.Inputs.Authorization.V1.SelfSubjectAccessReviewArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:authorization.k8s.io/v1:SelfSubjectAccessReview", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:authorization.k8s.io/v1:SelfSubjectAccessReview", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -73,6 +73,19 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Authorization.V1.S return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:authorization.k8s.io/v1beta1:SelfSubjectAccessReview" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing SelfSubjectAccessReview resource's state with the given name and ID. /// @@ -84,6 +97,5 @@ public static SelfSubjectAccessReview Get(string name, Input id, CustomR return new SelfSubjectAccessReview(name, default(Types.Inputs.Authorization.V1.SelfSubjectAccessReviewArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Authorization/V1/SelfSubjectRulesReview.cs b/sdk/dotnet/Authorization/V1/SelfSubjectRulesReview.cs index ce3232e000..e36c4100b8 100755 --- a/sdk/dotnet/Authorization/V1/SelfSubjectRulesReview.cs +++ b/sdk/dotnet/Authorization/V1/SelfSubjectRulesReview.cs @@ -61,7 +61,7 @@ public partial class SelfSubjectRulesReview : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public SelfSubjectRulesReview(string name, Types.Inputs.Authorization.V1.SelfSubjectRulesReviewArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:authorization.k8s.io/v1:SelfSubjectRulesReview", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:authorization.k8s.io/v1:SelfSubjectRulesReview", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -78,6 +78,19 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Authorization.V1.S return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:authorization.k8s.io/v1beta1:SelfSubjectRulesReview" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing SelfSubjectRulesReview resource's state with the given name and ID. /// @@ -89,6 +102,5 @@ public static SelfSubjectRulesReview Get(string name, Input id, CustomRe return new SelfSubjectRulesReview(name, default(Types.Inputs.Authorization.V1.SelfSubjectRulesReviewArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Authorization/V1/SubjectAccessReview.cs b/sdk/dotnet/Authorization/V1/SubjectAccessReview.cs index c0f623e69e..3a2213bda8 100755 --- a/sdk/dotnet/Authorization/V1/SubjectAccessReview.cs +++ b/sdk/dotnet/Authorization/V1/SubjectAccessReview.cs @@ -54,7 +54,7 @@ public partial class SubjectAccessReview : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public SubjectAccessReview(string name, Types.Inputs.Authorization.V1.SubjectAccessReviewArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:authorization.k8s.io/v1:SubjectAccessReview", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:authorization.k8s.io/v1:SubjectAccessReview", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -71,6 +71,19 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Authorization.V1.S return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:authorization.k8s.io/v1beta1:SubjectAccessReview" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing SubjectAccessReview resource's state with the given name and ID. /// @@ -82,6 +95,5 @@ public static SubjectAccessReview Get(string name, Input id, CustomResou return new SubjectAccessReview(name, default(Types.Inputs.Authorization.V1.SubjectAccessReviewArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Authorization/V1Beta1/LocalSubjectAccessReview.cs b/sdk/dotnet/Authorization/V1Beta1/LocalSubjectAccessReview.cs index ca070d5669..9fd53e7f20 100755 --- a/sdk/dotnet/Authorization/V1Beta1/LocalSubjectAccessReview.cs +++ b/sdk/dotnet/Authorization/V1Beta1/LocalSubjectAccessReview.cs @@ -57,7 +57,7 @@ public partial class LocalSubjectAccessReview : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public LocalSubjectAccessReview(string name, Types.Inputs.Authorization.V1Beta1.LocalSubjectAccessReviewArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:authorization.k8s.io/v1beta1:LocalSubjectAccessReview", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:authorization.k8s.io/v1beta1:LocalSubjectAccessReview", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -74,6 +74,19 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Authorization.V1Be return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:authorization.k8s.io/v1:LocalSubjectAccessReview" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing LocalSubjectAccessReview resource's state with the given name and ID. /// @@ -85,6 +98,5 @@ public static LocalSubjectAccessReview Get(string name, Input id, Custom return new LocalSubjectAccessReview(name, default(Types.Inputs.Authorization.V1Beta1.LocalSubjectAccessReviewArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Authorization/V1Beta1/SelfSubjectAccessReview.cs b/sdk/dotnet/Authorization/V1Beta1/SelfSubjectAccessReview.cs index 026c496583..fb790dc158 100755 --- a/sdk/dotnet/Authorization/V1Beta1/SelfSubjectAccessReview.cs +++ b/sdk/dotnet/Authorization/V1Beta1/SelfSubjectAccessReview.cs @@ -56,7 +56,7 @@ public partial class SelfSubjectAccessReview : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public SelfSubjectAccessReview(string name, Types.Inputs.Authorization.V1Beta1.SelfSubjectAccessReviewArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:authorization.k8s.io/v1beta1:SelfSubjectAccessReview", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:authorization.k8s.io/v1beta1:SelfSubjectAccessReview", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -73,6 +73,19 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Authorization.V1Be return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:authorization.k8s.io/v1:SelfSubjectAccessReview" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing SelfSubjectAccessReview resource's state with the given name and ID. /// @@ -84,6 +97,5 @@ public static SelfSubjectAccessReview Get(string name, Input id, CustomR return new SelfSubjectAccessReview(name, default(Types.Inputs.Authorization.V1Beta1.SelfSubjectAccessReviewArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Authorization/V1Beta1/SelfSubjectRulesReview.cs b/sdk/dotnet/Authorization/V1Beta1/SelfSubjectRulesReview.cs index c1b62a2142..02aa177594 100755 --- a/sdk/dotnet/Authorization/V1Beta1/SelfSubjectRulesReview.cs +++ b/sdk/dotnet/Authorization/V1Beta1/SelfSubjectRulesReview.cs @@ -61,7 +61,7 @@ public partial class SelfSubjectRulesReview : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public SelfSubjectRulesReview(string name, Types.Inputs.Authorization.V1Beta1.SelfSubjectRulesReviewArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:authorization.k8s.io/v1beta1:SelfSubjectRulesReview", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:authorization.k8s.io/v1beta1:SelfSubjectRulesReview", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -78,6 +78,19 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Authorization.V1Be return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:authorization.k8s.io/v1:SelfSubjectRulesReview" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing SelfSubjectRulesReview resource's state with the given name and ID. /// @@ -89,6 +102,5 @@ public static SelfSubjectRulesReview Get(string name, Input id, CustomRe return new SelfSubjectRulesReview(name, default(Types.Inputs.Authorization.V1Beta1.SelfSubjectRulesReviewArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Authorization/V1Beta1/SubjectAccessReview.cs b/sdk/dotnet/Authorization/V1Beta1/SubjectAccessReview.cs index 29b607aeed..62f8b6d5aa 100755 --- a/sdk/dotnet/Authorization/V1Beta1/SubjectAccessReview.cs +++ b/sdk/dotnet/Authorization/V1Beta1/SubjectAccessReview.cs @@ -54,7 +54,7 @@ public partial class SubjectAccessReview : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public SubjectAccessReview(string name, Types.Inputs.Authorization.V1Beta1.SubjectAccessReviewArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:authorization.k8s.io/v1beta1:SubjectAccessReview", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:authorization.k8s.io/v1beta1:SubjectAccessReview", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -71,6 +71,19 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Authorization.V1Be return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:authorization.k8s.io/v1:SubjectAccessReview" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing SubjectAccessReview resource's state with the given name and ID. /// @@ -82,6 +95,5 @@ public static SubjectAccessReview Get(string name, Input id, CustomResou return new SubjectAccessReview(name, default(Types.Inputs.Authorization.V1Beta1.SubjectAccessReviewArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Autoscaling/V1/HorizontalPodAutoscaler.cs b/sdk/dotnet/Autoscaling/V1/HorizontalPodAutoscaler.cs index 9cfb8f4db1..1022abc61b 100755 --- a/sdk/dotnet/Autoscaling/V1/HorizontalPodAutoscaler.cs +++ b/sdk/dotnet/Autoscaling/V1/HorizontalPodAutoscaler.cs @@ -58,7 +58,7 @@ public partial class HorizontalPodAutoscaler : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public HorizontalPodAutoscaler(string name, Types.Inputs.Autoscaling.V1.HorizontalPodAutoscalerArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:autoscaling/v1:HorizontalPodAutoscaler", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:autoscaling/v1:HorizontalPodAutoscaler", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -75,6 +75,20 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Autoscaling.V1.Hor return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:autoscaling/v2beta1:HorizontalPodAutoscaler" }, + new Alias { Type = "kubernetes:autoscaling/v2beta2:HorizontalPodAutoscaler" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing HorizontalPodAutoscaler resource's state with the given name and ID. /// @@ -86,6 +100,5 @@ public static HorizontalPodAutoscaler Get(string name, Input id, CustomR return new HorizontalPodAutoscaler(name, default(Types.Inputs.Autoscaling.V1.HorizontalPodAutoscalerArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Autoscaling/V1/HorizontalPodAutoscalerList.cs b/sdk/dotnet/Autoscaling/V1/HorizontalPodAutoscalerList.cs index c87d279d9b..efa3390d5b 100755 --- a/sdk/dotnet/Autoscaling/V1/HorizontalPodAutoscalerList.cs +++ b/sdk/dotnet/Autoscaling/V1/HorizontalPodAutoscalerList.cs @@ -50,7 +50,7 @@ public partial class HorizontalPodAutoscalerList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public HorizontalPodAutoscalerList(string name, Types.Inputs.Autoscaling.V1.HorizontalPodAutoscalerListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:autoscaling/v1:HorizontalPodAutoscalerList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:autoscaling/v1:HorizontalPodAutoscalerList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -67,6 +67,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Autoscaling.V1.Hor return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing HorizontalPodAutoscalerList resource's state with the given name and ID. /// @@ -78,6 +83,5 @@ public static HorizontalPodAutoscalerList Get(string name, Input id, Cus return new HorizontalPodAutoscalerList(name, default(Types.Inputs.Autoscaling.V1.HorizontalPodAutoscalerListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Autoscaling/V2Beta1/HorizontalPodAutoscaler.cs b/sdk/dotnet/Autoscaling/V2Beta1/HorizontalPodAutoscaler.cs index 2560fa5bf0..61803ce0d7 100755 --- a/sdk/dotnet/Autoscaling/V2Beta1/HorizontalPodAutoscaler.cs +++ b/sdk/dotnet/Autoscaling/V2Beta1/HorizontalPodAutoscaler.cs @@ -60,7 +60,7 @@ public partial class HorizontalPodAutoscaler : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public HorizontalPodAutoscaler(string name, Types.Inputs.Autoscaling.V2Beta1.HorizontalPodAutoscalerArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:autoscaling/v2beta1:HorizontalPodAutoscaler", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:autoscaling/v2beta1:HorizontalPodAutoscaler", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -77,6 +77,20 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Autoscaling.V2Beta return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:autoscaling/v1:HorizontalPodAutoscaler" }, + new Alias { Type = "kubernetes:autoscaling/v2beta2:HorizontalPodAutoscaler" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing HorizontalPodAutoscaler resource's state with the given name and ID. /// @@ -88,6 +102,5 @@ public static HorizontalPodAutoscaler Get(string name, Input id, CustomR return new HorizontalPodAutoscaler(name, default(Types.Inputs.Autoscaling.V2Beta1.HorizontalPodAutoscalerArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Autoscaling/V2Beta1/HorizontalPodAutoscalerList.cs b/sdk/dotnet/Autoscaling/V2Beta1/HorizontalPodAutoscalerList.cs index 5370b8e6a4..92c75563d8 100755 --- a/sdk/dotnet/Autoscaling/V2Beta1/HorizontalPodAutoscalerList.cs +++ b/sdk/dotnet/Autoscaling/V2Beta1/HorizontalPodAutoscalerList.cs @@ -50,7 +50,7 @@ public partial class HorizontalPodAutoscalerList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public HorizontalPodAutoscalerList(string name, Types.Inputs.Autoscaling.V2Beta1.HorizontalPodAutoscalerListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:autoscaling/v2beta1:HorizontalPodAutoscalerList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:autoscaling/v2beta1:HorizontalPodAutoscalerList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -67,6 +67,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Autoscaling.V2Beta return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing HorizontalPodAutoscalerList resource's state with the given name and ID. /// @@ -78,6 +83,5 @@ public static HorizontalPodAutoscalerList Get(string name, Input id, Cus return new HorizontalPodAutoscalerList(name, default(Types.Inputs.Autoscaling.V2Beta1.HorizontalPodAutoscalerListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Autoscaling/V2Beta2/HorizontalPodAutoscaler.cs b/sdk/dotnet/Autoscaling/V2Beta2/HorizontalPodAutoscaler.cs index 2b067bba04..ed1040dfe6 100755 --- a/sdk/dotnet/Autoscaling/V2Beta2/HorizontalPodAutoscaler.cs +++ b/sdk/dotnet/Autoscaling/V2Beta2/HorizontalPodAutoscaler.cs @@ -60,7 +60,7 @@ public partial class HorizontalPodAutoscaler : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public HorizontalPodAutoscaler(string name, Types.Inputs.Autoscaling.V2Beta2.HorizontalPodAutoscalerArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:autoscaling/v2beta2:HorizontalPodAutoscaler", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:autoscaling/v2beta2:HorizontalPodAutoscaler", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -77,6 +77,20 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Autoscaling.V2Beta return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:autoscaling/v1:HorizontalPodAutoscaler" }, + new Alias { Type = "kubernetes:autoscaling/v2beta1:HorizontalPodAutoscaler" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing HorizontalPodAutoscaler resource's state with the given name and ID. /// @@ -88,6 +102,5 @@ public static HorizontalPodAutoscaler Get(string name, Input id, CustomR return new HorizontalPodAutoscaler(name, default(Types.Inputs.Autoscaling.V2Beta2.HorizontalPodAutoscalerArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Autoscaling/V2Beta2/HorizontalPodAutoscalerList.cs b/sdk/dotnet/Autoscaling/V2Beta2/HorizontalPodAutoscalerList.cs index 835b56f3df..dee42b8a08 100755 --- a/sdk/dotnet/Autoscaling/V2Beta2/HorizontalPodAutoscalerList.cs +++ b/sdk/dotnet/Autoscaling/V2Beta2/HorizontalPodAutoscalerList.cs @@ -50,7 +50,7 @@ public partial class HorizontalPodAutoscalerList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public HorizontalPodAutoscalerList(string name, Types.Inputs.Autoscaling.V2Beta2.HorizontalPodAutoscalerListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:autoscaling/v2beta2:HorizontalPodAutoscalerList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:autoscaling/v2beta2:HorizontalPodAutoscalerList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -67,6 +67,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Autoscaling.V2Beta return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing HorizontalPodAutoscalerList resource's state with the given name and ID. /// @@ -78,6 +83,5 @@ public static HorizontalPodAutoscalerList Get(string name, Input id, Cus return new HorizontalPodAutoscalerList(name, default(Types.Inputs.Autoscaling.V2Beta2.HorizontalPodAutoscalerListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Batch/V1/Job.cs b/sdk/dotnet/Batch/V1/Job.cs index 405eb79ad4..830fcf2629 100755 --- a/sdk/dotnet/Batch/V1/Job.cs +++ b/sdk/dotnet/Batch/V1/Job.cs @@ -74,7 +74,7 @@ public partial class Job : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public Job(string name, Types.Inputs.Batch.V1.JobArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:batch/v1:Job", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:batch/v1:Job", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -91,6 +91,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Batch.V1.JobArgs? return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing Job resource's state with the given name and ID. /// @@ -102,6 +107,5 @@ public static Job Get(string name, Input id, CustomResourceOptions? opti return new Job(name, default(Types.Inputs.Batch.V1.JobArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Batch/V1/JobList.cs b/sdk/dotnet/Batch/V1/JobList.cs index d90225554d..ab72320918 100755 --- a/sdk/dotnet/Batch/V1/JobList.cs +++ b/sdk/dotnet/Batch/V1/JobList.cs @@ -51,7 +51,7 @@ public partial class JobList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public JobList(string name, Types.Inputs.Batch.V1.JobListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:batch/v1:JobList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:batch/v1:JobList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Batch.V1.JobListAr return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing JobList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static JobList Get(string name, Input id, CustomResourceOptions? return new JobList(name, default(Types.Inputs.Batch.V1.JobListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Batch/V1Beta1/CronJob.cs b/sdk/dotnet/Batch/V1Beta1/CronJob.cs index 515aaa6710..08c3186ca6 100755 --- a/sdk/dotnet/Batch/V1Beta1/CronJob.cs +++ b/sdk/dotnet/Batch/V1Beta1/CronJob.cs @@ -59,7 +59,7 @@ public partial class CronJob : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public CronJob(string name, Types.Inputs.Batch.V1Beta1.CronJobArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:batch/v1beta1:CronJob", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:batch/v1beta1:CronJob", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -76,6 +76,19 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Batch.V1Beta1.Cron return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:batch/v2alpha1:CronJob" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing CronJob resource's state with the given name and ID. /// @@ -87,6 +100,5 @@ public static CronJob Get(string name, Input id, CustomResourceOptions? return new CronJob(name, default(Types.Inputs.Batch.V1Beta1.CronJobArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Batch/V1Beta1/CronJobList.cs b/sdk/dotnet/Batch/V1Beta1/CronJobList.cs index 6576137e51..4160738628 100755 --- a/sdk/dotnet/Batch/V1Beta1/CronJobList.cs +++ b/sdk/dotnet/Batch/V1Beta1/CronJobList.cs @@ -51,7 +51,7 @@ public partial class CronJobList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public CronJobList(string name, Types.Inputs.Batch.V1Beta1.CronJobListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:batch/v1beta1:CronJobList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:batch/v1beta1:CronJobList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Batch.V1Beta1.Cron return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing CronJobList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static CronJobList Get(string name, Input id, CustomResourceOptio return new CronJobList(name, default(Types.Inputs.Batch.V1Beta1.CronJobListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Batch/V2Alpha1/CronJob.cs b/sdk/dotnet/Batch/V2Alpha1/CronJob.cs index f60a424a1d..bea4b46274 100755 --- a/sdk/dotnet/Batch/V2Alpha1/CronJob.cs +++ b/sdk/dotnet/Batch/V2Alpha1/CronJob.cs @@ -59,7 +59,7 @@ public partial class CronJob : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public CronJob(string name, Types.Inputs.Batch.V2Alpha1.CronJobArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:batch/v2alpha1:CronJob", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:batch/v2alpha1:CronJob", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -76,6 +76,19 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Batch.V2Alpha1.Cro return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:batch/v1beta1:CronJob" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing CronJob resource's state with the given name and ID. /// @@ -87,6 +100,5 @@ public static CronJob Get(string name, Input id, CustomResourceOptions? return new CronJob(name, default(Types.Inputs.Batch.V2Alpha1.CronJobArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Batch/V2Alpha1/CronJobList.cs b/sdk/dotnet/Batch/V2Alpha1/CronJobList.cs index 0a4dd22de3..8afc78f35a 100755 --- a/sdk/dotnet/Batch/V2Alpha1/CronJobList.cs +++ b/sdk/dotnet/Batch/V2Alpha1/CronJobList.cs @@ -51,7 +51,7 @@ public partial class CronJobList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public CronJobList(string name, Types.Inputs.Batch.V2Alpha1.CronJobListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:batch/v2alpha1:CronJobList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:batch/v2alpha1:CronJobList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Batch.V2Alpha1.Cro return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing CronJobList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static CronJobList Get(string name, Input id, CustomResourceOptio return new CronJobList(name, default(Types.Inputs.Batch.V2Alpha1.CronJobListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Certificates/V1Beta1/CertificateSigningRequest.cs b/sdk/dotnet/Certificates/V1Beta1/CertificateSigningRequest.cs index 0c17b0ac40..5b38107605 100755 --- a/sdk/dotnet/Certificates/V1Beta1/CertificateSigningRequest.cs +++ b/sdk/dotnet/Certificates/V1Beta1/CertificateSigningRequest.cs @@ -54,7 +54,7 @@ public partial class CertificateSigningRequest : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public CertificateSigningRequest(string name, Types.Inputs.Certificates.V1Beta1.CertificateSigningRequestArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:certificates.k8s.io/v1beta1:CertificateSigningRequest", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:certificates.k8s.io/v1beta1:CertificateSigningRequest", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -71,6 +71,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Certificates.V1Bet return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing CertificateSigningRequest resource's state with the given name and ID. /// @@ -82,6 +87,5 @@ public static CertificateSigningRequest Get(string name, Input id, Custo return new CertificateSigningRequest(name, default(Types.Inputs.Certificates.V1Beta1.CertificateSigningRequestArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Certificates/V1Beta1/CertificateSigningRequestList.cs b/sdk/dotnet/Certificates/V1Beta1/CertificateSigningRequestList.cs index e636c3e719..0ae032a9c3 100755 --- a/sdk/dotnet/Certificates/V1Beta1/CertificateSigningRequestList.cs +++ b/sdk/dotnet/Certificates/V1Beta1/CertificateSigningRequestList.cs @@ -46,7 +46,7 @@ public partial class CertificateSigningRequestList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public CertificateSigningRequestList(string name, Types.Inputs.Certificates.V1Beta1.CertificateSigningRequestListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:certificates.k8s.io/v1beta1:CertificateSigningRequestList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:certificates.k8s.io/v1beta1:CertificateSigningRequestList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -63,6 +63,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Certificates.V1Bet return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing CertificateSigningRequestList resource's state with the given name and ID. /// @@ -74,6 +79,5 @@ public static CertificateSigningRequestList Get(string name, Input id, C return new CertificateSigningRequestList(name, default(Types.Inputs.Certificates.V1Beta1.CertificateSigningRequestListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Coordination/V1/Lease.cs b/sdk/dotnet/Coordination/V1/Lease.cs index ffddce080f..a8ae2d1de0 100755 --- a/sdk/dotnet/Coordination/V1/Lease.cs +++ b/sdk/dotnet/Coordination/V1/Lease.cs @@ -52,7 +52,7 @@ public partial class Lease : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public Lease(string name, Types.Inputs.Coordination.V1.LeaseArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:coordination.k8s.io/v1:Lease", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:coordination.k8s.io/v1:Lease", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -69,6 +69,19 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Coordination.V1.Le return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:coordination.k8s.io/v1beta1:Lease" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing Lease resource's state with the given name and ID. /// @@ -80,6 +93,5 @@ public static Lease Get(string name, Input id, CustomResourceOptions? op return new Lease(name, default(Types.Inputs.Coordination.V1.LeaseArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Coordination/V1/LeaseList.cs b/sdk/dotnet/Coordination/V1/LeaseList.cs index 98064f5c9c..4757f81f35 100755 --- a/sdk/dotnet/Coordination/V1/LeaseList.cs +++ b/sdk/dotnet/Coordination/V1/LeaseList.cs @@ -51,7 +51,7 @@ public partial class LeaseList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public LeaseList(string name, Types.Inputs.Coordination.V1.LeaseListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:coordination.k8s.io/v1:LeaseList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:coordination.k8s.io/v1:LeaseList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Coordination.V1.Le return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing LeaseList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static LeaseList Get(string name, Input id, CustomResourceOptions return new LeaseList(name, default(Types.Inputs.Coordination.V1.LeaseListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Coordination/V1Beta1/Lease.cs b/sdk/dotnet/Coordination/V1Beta1/Lease.cs index 54d49543a4..0285e10c0a 100755 --- a/sdk/dotnet/Coordination/V1Beta1/Lease.cs +++ b/sdk/dotnet/Coordination/V1Beta1/Lease.cs @@ -52,7 +52,7 @@ public partial class Lease : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public Lease(string name, Types.Inputs.Coordination.V1Beta1.LeaseArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:coordination.k8s.io/v1beta1:Lease", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:coordination.k8s.io/v1beta1:Lease", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -69,6 +69,19 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Coordination.V1Bet return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:coordination.k8s.io/v1:Lease" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing Lease resource's state with the given name and ID. /// @@ -80,6 +93,5 @@ public static Lease Get(string name, Input id, CustomResourceOptions? op return new Lease(name, default(Types.Inputs.Coordination.V1Beta1.LeaseArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Coordination/V1Beta1/LeaseList.cs b/sdk/dotnet/Coordination/V1Beta1/LeaseList.cs index 25181c8c87..9fcd76b818 100755 --- a/sdk/dotnet/Coordination/V1Beta1/LeaseList.cs +++ b/sdk/dotnet/Coordination/V1Beta1/LeaseList.cs @@ -51,7 +51,7 @@ public partial class LeaseList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public LeaseList(string name, Types.Inputs.Coordination.V1Beta1.LeaseListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:coordination.k8s.io/v1beta1:LeaseList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:coordination.k8s.io/v1beta1:LeaseList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Coordination.V1Bet return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing LeaseList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static LeaseList Get(string name, Input id, CustomResourceOptions return new LeaseList(name, default(Types.Inputs.Coordination.V1Beta1.LeaseListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Core/V1/Binding.cs b/sdk/dotnet/Core/V1/Binding.cs index 7488ced386..0998255b19 100755 --- a/sdk/dotnet/Core/V1/Binding.cs +++ b/sdk/dotnet/Core/V1/Binding.cs @@ -52,7 +52,7 @@ public partial class Binding : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public Binding(string name, Types.Inputs.Core.V1.BindingArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:core/v1:Binding", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:core/v1:Binding", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -69,6 +69,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Core.V1.BindingArg return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing Binding resource's state with the given name and ID. /// @@ -80,6 +85,5 @@ public static Binding Get(string name, Input id, CustomResourceOptions? return new Binding(name, default(Types.Inputs.Core.V1.BindingArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Core/V1/ComponentStatus.cs b/sdk/dotnet/Core/V1/ComponentStatus.cs index 13566b1e38..cb33ca52b0 100755 --- a/sdk/dotnet/Core/V1/ComponentStatus.cs +++ b/sdk/dotnet/Core/V1/ComponentStatus.cs @@ -51,7 +51,7 @@ public partial class ComponentStatus : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public ComponentStatus(string name, Types.Inputs.Core.V1.ComponentStatusArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:core/v1:ComponentStatus", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:core/v1:ComponentStatus", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Core.V1.ComponentS return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing ComponentStatus resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static ComponentStatus Get(string name, Input id, CustomResourceO return new ComponentStatus(name, default(Types.Inputs.Core.V1.ComponentStatusArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Core/V1/ComponentStatusList.cs b/sdk/dotnet/Core/V1/ComponentStatusList.cs index e0979be708..5131107a57 100755 --- a/sdk/dotnet/Core/V1/ComponentStatusList.cs +++ b/sdk/dotnet/Core/V1/ComponentStatusList.cs @@ -51,7 +51,7 @@ public partial class ComponentStatusList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public ComponentStatusList(string name, Types.Inputs.Core.V1.ComponentStatusListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:core/v1:ComponentStatusList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:core/v1:ComponentStatusList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Core.V1.ComponentS return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing ComponentStatusList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static ComponentStatusList Get(string name, Input id, CustomResou return new ComponentStatusList(name, default(Types.Inputs.Core.V1.ComponentStatusListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Core/V1/ConfigMap.cs b/sdk/dotnet/Core/V1/ConfigMap.cs index 4cabc15b1d..ac3929d205 100755 --- a/sdk/dotnet/Core/V1/ConfigMap.cs +++ b/sdk/dotnet/Core/V1/ConfigMap.cs @@ -64,7 +64,7 @@ public partial class ConfigMap : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public ConfigMap(string name, Types.Inputs.Core.V1.ConfigMapArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:core/v1:ConfigMap", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:core/v1:ConfigMap", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -81,6 +81,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Core.V1.ConfigMapA return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing ConfigMap resource's state with the given name and ID. /// @@ -92,6 +97,5 @@ public static ConfigMap Get(string name, Input id, CustomResourceOptions return new ConfigMap(name, default(Types.Inputs.Core.V1.ConfigMapArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Core/V1/ConfigMapList.cs b/sdk/dotnet/Core/V1/ConfigMapList.cs index 0ae803dcde..9db3decf3d 100755 --- a/sdk/dotnet/Core/V1/ConfigMapList.cs +++ b/sdk/dotnet/Core/V1/ConfigMapList.cs @@ -51,7 +51,7 @@ public partial class ConfigMapList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public ConfigMapList(string name, Types.Inputs.Core.V1.ConfigMapListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:core/v1:ConfigMapList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:core/v1:ConfigMapList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Core.V1.ConfigMapL return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing ConfigMapList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static ConfigMapList Get(string name, Input id, CustomResourceOpt return new ConfigMapList(name, default(Types.Inputs.Core.V1.ConfigMapListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Core/V1/Endpoints.cs b/sdk/dotnet/Core/V1/Endpoints.cs index fe1b0bf7bb..b6e55ad743 100755 --- a/sdk/dotnet/Core/V1/Endpoints.cs +++ b/sdk/dotnet/Core/V1/Endpoints.cs @@ -67,7 +67,7 @@ public partial class Endpoints : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public Endpoints(string name, Types.Inputs.Core.V1.EndpointsArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:core/v1:Endpoints", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:core/v1:Endpoints", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -84,6 +84,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Core.V1.EndpointsA return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing Endpoints resource's state with the given name and ID. /// @@ -95,6 +100,5 @@ public static Endpoints Get(string name, Input id, CustomResourceOptions return new Endpoints(name, default(Types.Inputs.Core.V1.EndpointsArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Core/V1/EndpointsList.cs b/sdk/dotnet/Core/V1/EndpointsList.cs index ef848011bf..bfcd619186 100755 --- a/sdk/dotnet/Core/V1/EndpointsList.cs +++ b/sdk/dotnet/Core/V1/EndpointsList.cs @@ -51,7 +51,7 @@ public partial class EndpointsList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public EndpointsList(string name, Types.Inputs.Core.V1.EndpointsListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:core/v1:EndpointsList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:core/v1:EndpointsList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Core.V1.EndpointsL return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing EndpointsList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static EndpointsList Get(string name, Input id, CustomResourceOpt return new EndpointsList(name, default(Types.Inputs.Core.V1.EndpointsListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Core/V1/Event.cs b/sdk/dotnet/Core/V1/Event.cs index c79ccd5b2f..d1edc78f55 100755 --- a/sdk/dotnet/Core/V1/Event.cs +++ b/sdk/dotnet/Core/V1/Event.cs @@ -130,7 +130,7 @@ public partial class Event : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public Event(string name, Types.Inputs.Core.V1.EventArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:core/v1:Event", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:core/v1:Event", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -147,6 +147,19 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Core.V1.EventArgs? return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:events.k8s.io/v1beta1:Event" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing Event resource's state with the given name and ID. /// @@ -158,6 +171,5 @@ public static Event Get(string name, Input id, CustomResourceOptions? op return new Event(name, default(Types.Inputs.Core.V1.EventArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Core/V1/EventList.cs b/sdk/dotnet/Core/V1/EventList.cs index e94dfdee53..fd74fb40df 100755 --- a/sdk/dotnet/Core/V1/EventList.cs +++ b/sdk/dotnet/Core/V1/EventList.cs @@ -51,7 +51,7 @@ public partial class EventList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public EventList(string name, Types.Inputs.Core.V1.EventListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:core/v1:EventList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:core/v1:EventList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Core.V1.EventListA return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing EventList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static EventList Get(string name, Input id, CustomResourceOptions return new EventList(name, default(Types.Inputs.Core.V1.EventListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Core/V1/LimitRange.cs b/sdk/dotnet/Core/V1/LimitRange.cs index db36db3e32..273e7f0d36 100755 --- a/sdk/dotnet/Core/V1/LimitRange.cs +++ b/sdk/dotnet/Core/V1/LimitRange.cs @@ -52,7 +52,7 @@ public partial class LimitRange : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public LimitRange(string name, Types.Inputs.Core.V1.LimitRangeArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:core/v1:LimitRange", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:core/v1:LimitRange", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -69,6 +69,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Core.V1.LimitRange return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing LimitRange resource's state with the given name and ID. /// @@ -80,6 +85,5 @@ public static LimitRange Get(string name, Input id, CustomResourceOption return new LimitRange(name, default(Types.Inputs.Core.V1.LimitRangeArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Core/V1/LimitRangeList.cs b/sdk/dotnet/Core/V1/LimitRangeList.cs index 6aa3eaf99f..6de86b9441 100755 --- a/sdk/dotnet/Core/V1/LimitRangeList.cs +++ b/sdk/dotnet/Core/V1/LimitRangeList.cs @@ -52,7 +52,7 @@ public partial class LimitRangeList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public LimitRangeList(string name, Types.Inputs.Core.V1.LimitRangeListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:core/v1:LimitRangeList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:core/v1:LimitRangeList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -69,6 +69,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Core.V1.LimitRange return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing LimitRangeList resource's state with the given name and ID. /// @@ -80,6 +85,5 @@ public static LimitRangeList Get(string name, Input id, CustomResourceOp return new LimitRangeList(name, default(Types.Inputs.Core.V1.LimitRangeListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Core/V1/Namespace.cs b/sdk/dotnet/Core/V1/Namespace.cs index 4eab772182..a9c462c6f1 100755 --- a/sdk/dotnet/Core/V1/Namespace.cs +++ b/sdk/dotnet/Core/V1/Namespace.cs @@ -59,7 +59,7 @@ public partial class Namespace : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public Namespace(string name, Types.Inputs.Core.V1.NamespaceArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:core/v1:Namespace", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:core/v1:Namespace", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -76,6 +76,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Core.V1.NamespaceA return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing Namespace resource's state with the given name and ID. /// @@ -87,6 +92,5 @@ public static Namespace Get(string name, Input id, CustomResourceOptions return new Namespace(name, default(Types.Inputs.Core.V1.NamespaceArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Core/V1/NamespaceList.cs b/sdk/dotnet/Core/V1/NamespaceList.cs index 2456a6e96c..e36980367c 100755 --- a/sdk/dotnet/Core/V1/NamespaceList.cs +++ b/sdk/dotnet/Core/V1/NamespaceList.cs @@ -52,7 +52,7 @@ public partial class NamespaceList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public NamespaceList(string name, Types.Inputs.Core.V1.NamespaceListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:core/v1:NamespaceList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:core/v1:NamespaceList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -69,6 +69,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Core.V1.NamespaceL return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing NamespaceList resource's state with the given name and ID. /// @@ -80,6 +85,5 @@ public static NamespaceList Get(string name, Input id, CustomResourceOpt return new NamespaceList(name, default(Types.Inputs.Core.V1.NamespaceListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Core/V1/Node.cs b/sdk/dotnet/Core/V1/Node.cs index e28bd9a8e2..7e327da697 100755 --- a/sdk/dotnet/Core/V1/Node.cs +++ b/sdk/dotnet/Core/V1/Node.cs @@ -61,7 +61,7 @@ public partial class Node : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public Node(string name, Types.Inputs.Core.V1.NodeArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:core/v1:Node", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:core/v1:Node", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -78,6 +78,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Core.V1.NodeArgs? return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing Node resource's state with the given name and ID. /// @@ -89,6 +94,5 @@ public static Node Get(string name, Input id, CustomResourceOptions? opt return new Node(name, default(Types.Inputs.Core.V1.NodeArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Core/V1/NodeList.cs b/sdk/dotnet/Core/V1/NodeList.cs index 9a53ef7b18..18635c58b4 100755 --- a/sdk/dotnet/Core/V1/NodeList.cs +++ b/sdk/dotnet/Core/V1/NodeList.cs @@ -51,7 +51,7 @@ public partial class NodeList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public NodeList(string name, Types.Inputs.Core.V1.NodeListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:core/v1:NodeList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:core/v1:NodeList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Core.V1.NodeListAr return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing NodeList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static NodeList Get(string name, Input id, CustomResourceOptions? return new NodeList(name, default(Types.Inputs.Core.V1.NodeListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Core/V1/PersistentVolume.cs b/sdk/dotnet/Core/V1/PersistentVolume.cs index 9076422b11..9d8d2b0339 100755 --- a/sdk/dotnet/Core/V1/PersistentVolume.cs +++ b/sdk/dotnet/Core/V1/PersistentVolume.cs @@ -62,7 +62,7 @@ public partial class PersistentVolume : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public PersistentVolume(string name, Types.Inputs.Core.V1.PersistentVolumeArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:core/v1:PersistentVolume", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:core/v1:PersistentVolume", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -79,6 +79,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Core.V1.Persistent return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing PersistentVolume resource's state with the given name and ID. /// @@ -90,6 +95,5 @@ public static PersistentVolume Get(string name, Input id, CustomResource return new PersistentVolume(name, default(Types.Inputs.Core.V1.PersistentVolumeArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Core/V1/PersistentVolumeClaim.cs b/sdk/dotnet/Core/V1/PersistentVolumeClaim.cs index 63133e957a..7f377a8f58 100755 --- a/sdk/dotnet/Core/V1/PersistentVolumeClaim.cs +++ b/sdk/dotnet/Core/V1/PersistentVolumeClaim.cs @@ -61,7 +61,7 @@ public partial class PersistentVolumeClaim : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public PersistentVolumeClaim(string name, Types.Inputs.Core.V1.PersistentVolumeClaimArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:core/v1:PersistentVolumeClaim", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:core/v1:PersistentVolumeClaim", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -78,6 +78,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Core.V1.Persistent return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing PersistentVolumeClaim resource's state with the given name and ID. /// @@ -89,6 +94,5 @@ public static PersistentVolumeClaim Get(string name, Input id, CustomRes return new PersistentVolumeClaim(name, default(Types.Inputs.Core.V1.PersistentVolumeClaimArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Core/V1/PersistentVolumeClaimList.cs b/sdk/dotnet/Core/V1/PersistentVolumeClaimList.cs index f9ddc76f2d..9c84349f4b 100755 --- a/sdk/dotnet/Core/V1/PersistentVolumeClaimList.cs +++ b/sdk/dotnet/Core/V1/PersistentVolumeClaimList.cs @@ -52,7 +52,7 @@ public partial class PersistentVolumeClaimList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public PersistentVolumeClaimList(string name, Types.Inputs.Core.V1.PersistentVolumeClaimListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:core/v1:PersistentVolumeClaimList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:core/v1:PersistentVolumeClaimList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -69,6 +69,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Core.V1.Persistent return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing PersistentVolumeClaimList resource's state with the given name and ID. /// @@ -80,6 +85,5 @@ public static PersistentVolumeClaimList Get(string name, Input id, Custo return new PersistentVolumeClaimList(name, default(Types.Inputs.Core.V1.PersistentVolumeClaimListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Core/V1/PersistentVolumeList.cs b/sdk/dotnet/Core/V1/PersistentVolumeList.cs index 52acb949ac..aec58b9806 100755 --- a/sdk/dotnet/Core/V1/PersistentVolumeList.cs +++ b/sdk/dotnet/Core/V1/PersistentVolumeList.cs @@ -52,7 +52,7 @@ public partial class PersistentVolumeList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public PersistentVolumeList(string name, Types.Inputs.Core.V1.PersistentVolumeListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:core/v1:PersistentVolumeList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:core/v1:PersistentVolumeList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -69,6 +69,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Core.V1.Persistent return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing PersistentVolumeList resource's state with the given name and ID. /// @@ -80,6 +85,5 @@ public static PersistentVolumeList Get(string name, Input id, CustomReso return new PersistentVolumeList(name, default(Types.Inputs.Core.V1.PersistentVolumeListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Core/V1/Pod.cs b/sdk/dotnet/Core/V1/Pod.cs index 5c59079e80..05f496e1b7 100755 --- a/sdk/dotnet/Core/V1/Pod.cs +++ b/sdk/dotnet/Core/V1/Pod.cs @@ -76,7 +76,7 @@ public partial class Pod : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public Pod(string name, Types.Inputs.Core.V1.PodArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:core/v1:Pod", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:core/v1:Pod", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -93,6 +93,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Core.V1.PodArgs? a return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing Pod resource's state with the given name and ID. /// @@ -104,6 +109,5 @@ public static Pod Get(string name, Input id, CustomResourceOptions? opti return new Pod(name, default(Types.Inputs.Core.V1.PodArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Core/V1/PodList.cs b/sdk/dotnet/Core/V1/PodList.cs index a15c498b87..b62db8e693 100755 --- a/sdk/dotnet/Core/V1/PodList.cs +++ b/sdk/dotnet/Core/V1/PodList.cs @@ -52,7 +52,7 @@ public partial class PodList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public PodList(string name, Types.Inputs.Core.V1.PodListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:core/v1:PodList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:core/v1:PodList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -69,6 +69,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Core.V1.PodListArg return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing PodList resource's state with the given name and ID. /// @@ -80,6 +85,5 @@ public static PodList Get(string name, Input id, CustomResourceOptions? return new PodList(name, default(Types.Inputs.Core.V1.PodListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Core/V1/PodTemplate.cs b/sdk/dotnet/Core/V1/PodTemplate.cs index 4b764d1be5..897609007d 100755 --- a/sdk/dotnet/Core/V1/PodTemplate.cs +++ b/sdk/dotnet/Core/V1/PodTemplate.cs @@ -52,7 +52,7 @@ public partial class PodTemplate : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public PodTemplate(string name, Types.Inputs.Core.V1.PodTemplateArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:core/v1:PodTemplate", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:core/v1:PodTemplate", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -69,6 +69,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Core.V1.PodTemplat return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing PodTemplate resource's state with the given name and ID. /// @@ -80,6 +85,5 @@ public static PodTemplate Get(string name, Input id, CustomResourceOptio return new PodTemplate(name, default(Types.Inputs.Core.V1.PodTemplateArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Core/V1/PodTemplateList.cs b/sdk/dotnet/Core/V1/PodTemplateList.cs index 355faeebac..ff3f61ef43 100755 --- a/sdk/dotnet/Core/V1/PodTemplateList.cs +++ b/sdk/dotnet/Core/V1/PodTemplateList.cs @@ -51,7 +51,7 @@ public partial class PodTemplateList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public PodTemplateList(string name, Types.Inputs.Core.V1.PodTemplateListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:core/v1:PodTemplateList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:core/v1:PodTemplateList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Core.V1.PodTemplat return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing PodTemplateList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static PodTemplateList Get(string name, Input id, CustomResourceO return new PodTemplateList(name, default(Types.Inputs.Core.V1.PodTemplateListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Core/V1/ReplicationController.cs b/sdk/dotnet/Core/V1/ReplicationController.cs index 1fc6c0f321..e733e6e8e3 100755 --- a/sdk/dotnet/Core/V1/ReplicationController.cs +++ b/sdk/dotnet/Core/V1/ReplicationController.cs @@ -63,7 +63,7 @@ public partial class ReplicationController : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public ReplicationController(string name, Types.Inputs.Core.V1.ReplicationControllerArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:core/v1:ReplicationController", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:core/v1:ReplicationController", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -80,6 +80,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Core.V1.Replicatio return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing ReplicationController resource's state with the given name and ID. /// @@ -91,6 +96,5 @@ public static ReplicationController Get(string name, Input id, CustomRes return new ReplicationController(name, default(Types.Inputs.Core.V1.ReplicationControllerArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Core/V1/ReplicationControllerList.cs b/sdk/dotnet/Core/V1/ReplicationControllerList.cs index 42cbb64e82..4eac372617 100755 --- a/sdk/dotnet/Core/V1/ReplicationControllerList.cs +++ b/sdk/dotnet/Core/V1/ReplicationControllerList.cs @@ -52,7 +52,7 @@ public partial class ReplicationControllerList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public ReplicationControllerList(string name, Types.Inputs.Core.V1.ReplicationControllerListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:core/v1:ReplicationControllerList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:core/v1:ReplicationControllerList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -69,6 +69,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Core.V1.Replicatio return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing ReplicationControllerList resource's state with the given name and ID. /// @@ -80,6 +85,5 @@ public static ReplicationControllerList Get(string name, Input id, Custo return new ReplicationControllerList(name, default(Types.Inputs.Core.V1.ReplicationControllerListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Core/V1/ResourceQuota.cs b/sdk/dotnet/Core/V1/ResourceQuota.cs index 2ecfe61e47..cb7464cf4f 100755 --- a/sdk/dotnet/Core/V1/ResourceQuota.cs +++ b/sdk/dotnet/Core/V1/ResourceQuota.cs @@ -59,7 +59,7 @@ public partial class ResourceQuota : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public ResourceQuota(string name, Types.Inputs.Core.V1.ResourceQuotaArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:core/v1:ResourceQuota", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:core/v1:ResourceQuota", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -76,6 +76,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Core.V1.ResourceQu return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing ResourceQuota resource's state with the given name and ID. /// @@ -87,6 +92,5 @@ public static ResourceQuota Get(string name, Input id, CustomResourceOpt return new ResourceQuota(name, default(Types.Inputs.Core.V1.ResourceQuotaArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Core/V1/ResourceQuotaList.cs b/sdk/dotnet/Core/V1/ResourceQuotaList.cs index 849ba92092..05f8b641b4 100755 --- a/sdk/dotnet/Core/V1/ResourceQuotaList.cs +++ b/sdk/dotnet/Core/V1/ResourceQuotaList.cs @@ -52,7 +52,7 @@ public partial class ResourceQuotaList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public ResourceQuotaList(string name, Types.Inputs.Core.V1.ResourceQuotaListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:core/v1:ResourceQuotaList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:core/v1:ResourceQuotaList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -69,6 +69,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Core.V1.ResourceQu return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing ResourceQuotaList resource's state with the given name and ID. /// @@ -80,6 +85,5 @@ public static ResourceQuotaList Get(string name, Input id, CustomResourc return new ResourceQuotaList(name, default(Types.Inputs.Core.V1.ResourceQuotaListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Core/V1/Secret.cs b/sdk/dotnet/Core/V1/Secret.cs index ec393375aa..6e9fc3090e 100755 --- a/sdk/dotnet/Core/V1/Secret.cs +++ b/sdk/dotnet/Core/V1/Secret.cs @@ -79,7 +79,7 @@ public partial class Secret : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public Secret(string name, Types.Inputs.Core.V1.SecretArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:core/v1:Secret", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:core/v1:Secret", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -96,6 +96,20 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Core.V1.SecretArgs return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + AdditionalSecretOutputs = + { + "data", + "stringData", + }, + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing Secret resource's state with the given name and ID. /// @@ -107,6 +121,5 @@ public static Secret Get(string name, Input id, CustomResourceOptions? o return new Secret(name, default(Types.Inputs.Core.V1.SecretArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Core/V1/SecretList.cs b/sdk/dotnet/Core/V1/SecretList.cs index 25a1eda111..e1895ece3c 100755 --- a/sdk/dotnet/Core/V1/SecretList.cs +++ b/sdk/dotnet/Core/V1/SecretList.cs @@ -52,7 +52,7 @@ public partial class SecretList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public SecretList(string name, Types.Inputs.Core.V1.SecretListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:core/v1:SecretList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:core/v1:SecretList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -69,6 +69,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Core.V1.SecretList return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing SecretList resource's state with the given name and ID. /// @@ -80,6 +85,5 @@ public static SecretList Get(string name, Input id, CustomResourceOption return new SecretList(name, default(Types.Inputs.Core.V1.SecretListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Core/V1/Service.cs b/sdk/dotnet/Core/V1/Service.cs index 66a25ee930..7902c45140 100755 --- a/sdk/dotnet/Core/V1/Service.cs +++ b/sdk/dotnet/Core/V1/Service.cs @@ -87,7 +87,7 @@ public partial class Service : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public Service(string name, Types.Inputs.Core.V1.ServiceArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:core/v1:Service", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:core/v1:Service", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -104,6 +104,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Core.V1.ServiceArg return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing Service resource's state with the given name and ID. /// @@ -115,6 +120,5 @@ public static Service Get(string name, Input id, CustomResourceOptions? return new Service(name, default(Types.Inputs.Core.V1.ServiceArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Core/V1/ServiceAccount.cs b/sdk/dotnet/Core/V1/ServiceAccount.cs index d744885245..f5e91af5c3 100755 --- a/sdk/dotnet/Core/V1/ServiceAccount.cs +++ b/sdk/dotnet/Core/V1/ServiceAccount.cs @@ -71,7 +71,7 @@ public partial class ServiceAccount : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public ServiceAccount(string name, Types.Inputs.Core.V1.ServiceAccountArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:core/v1:ServiceAccount", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:core/v1:ServiceAccount", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -88,6 +88,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Core.V1.ServiceAcc return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing ServiceAccount resource's state with the given name and ID. /// @@ -99,6 +104,5 @@ public static ServiceAccount Get(string name, Input id, CustomResourceOp return new ServiceAccount(name, default(Types.Inputs.Core.V1.ServiceAccountArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Core/V1/ServiceAccountList.cs b/sdk/dotnet/Core/V1/ServiceAccountList.cs index 02fc1eb10d..3b743b8fe3 100755 --- a/sdk/dotnet/Core/V1/ServiceAccountList.cs +++ b/sdk/dotnet/Core/V1/ServiceAccountList.cs @@ -52,7 +52,7 @@ public partial class ServiceAccountList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public ServiceAccountList(string name, Types.Inputs.Core.V1.ServiceAccountListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:core/v1:ServiceAccountList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:core/v1:ServiceAccountList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -69,6 +69,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Core.V1.ServiceAcc return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing ServiceAccountList resource's state with the given name and ID. /// @@ -80,6 +85,5 @@ public static ServiceAccountList Get(string name, Input id, CustomResour return new ServiceAccountList(name, default(Types.Inputs.Core.V1.ServiceAccountListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Core/V1/ServiceList.cs b/sdk/dotnet/Core/V1/ServiceList.cs index 3d2948ccfb..07c6870dc8 100755 --- a/sdk/dotnet/Core/V1/ServiceList.cs +++ b/sdk/dotnet/Core/V1/ServiceList.cs @@ -51,7 +51,7 @@ public partial class ServiceList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public ServiceList(string name, Types.Inputs.Core.V1.ServiceListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:core/v1:ServiceList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:core/v1:ServiceList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Core.V1.ServiceLis return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing ServiceList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static ServiceList Get(string name, Input id, CustomResourceOptio return new ServiceList(name, default(Types.Inputs.Core.V1.ServiceListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Discovery/V1Beta1/EndpointSlice.cs b/sdk/dotnet/Discovery/V1Beta1/EndpointSlice.cs index 0b19643855..109f71a7e6 100755 --- a/sdk/dotnet/Discovery/V1Beta1/EndpointSlice.cs +++ b/sdk/dotnet/Discovery/V1Beta1/EndpointSlice.cs @@ -71,7 +71,7 @@ public partial class EndpointSlice : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public EndpointSlice(string name, Types.Inputs.Discovery.V1Beta1.EndpointSliceArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:discovery.k8s.io/v1beta1:EndpointSlice", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:discovery.k8s.io/v1beta1:EndpointSlice", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -88,6 +88,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Discovery.V1Beta1. return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing EndpointSlice resource's state with the given name and ID. /// @@ -99,6 +104,5 @@ public static EndpointSlice Get(string name, Input id, CustomResourceOpt return new EndpointSlice(name, default(Types.Inputs.Discovery.V1Beta1.EndpointSliceArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Discovery/V1Beta1/EndpointSliceList.cs b/sdk/dotnet/Discovery/V1Beta1/EndpointSliceList.cs index 793aae418b..dfc7ff300d 100755 --- a/sdk/dotnet/Discovery/V1Beta1/EndpointSliceList.cs +++ b/sdk/dotnet/Discovery/V1Beta1/EndpointSliceList.cs @@ -50,7 +50,7 @@ public partial class EndpointSliceList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public EndpointSliceList(string name, Types.Inputs.Discovery.V1Beta1.EndpointSliceListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:discovery.k8s.io/v1beta1:EndpointSliceList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:discovery.k8s.io/v1beta1:EndpointSliceList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -67,6 +67,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Discovery.V1Beta1. return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing EndpointSliceList resource's state with the given name and ID. /// @@ -78,6 +83,5 @@ public static EndpointSliceList Get(string name, Input id, CustomResourc return new EndpointSliceList(name, default(Types.Inputs.Discovery.V1Beta1.EndpointSliceListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Events/V1Beta1/Event.cs b/sdk/dotnet/Events/V1Beta1/Event.cs index 6a6a151221..f12b345614 100755 --- a/sdk/dotnet/Events/V1Beta1/Event.cs +++ b/sdk/dotnet/Events/V1Beta1/Event.cs @@ -131,7 +131,7 @@ public partial class Event : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public Event(string name, Types.Inputs.Events.V1Beta1.EventArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:events.k8s.io/v1beta1:Event", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:events.k8s.io/v1beta1:Event", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -148,6 +148,19 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Events.V1Beta1.Eve return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:core/v1:Event" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing Event resource's state with the given name and ID. /// @@ -159,6 +172,5 @@ public static Event Get(string name, Input id, CustomResourceOptions? op return new Event(name, default(Types.Inputs.Events.V1Beta1.EventArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Events/V1Beta1/EventList.cs b/sdk/dotnet/Events/V1Beta1/EventList.cs index cc37d3a71d..6e1b917125 100755 --- a/sdk/dotnet/Events/V1Beta1/EventList.cs +++ b/sdk/dotnet/Events/V1Beta1/EventList.cs @@ -51,7 +51,7 @@ public partial class EventList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public EventList(string name, Types.Inputs.Events.V1Beta1.EventListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:events.k8s.io/v1beta1:EventList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:events.k8s.io/v1beta1:EventList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Events.V1Beta1.Eve return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing EventList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static EventList Get(string name, Input id, CustomResourceOptions return new EventList(name, default(Types.Inputs.Events.V1Beta1.EventListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Extensions/V1Beta1/DaemonSet.cs b/sdk/dotnet/Extensions/V1Beta1/DaemonSet.cs index ef9145d664..d20591e9a8 100755 --- a/sdk/dotnet/Extensions/V1Beta1/DaemonSet.cs +++ b/sdk/dotnet/Extensions/V1Beta1/DaemonSet.cs @@ -63,7 +63,7 @@ public partial class DaemonSet : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public DaemonSet(string name, Types.Inputs.Extensions.V1Beta1.DaemonSetArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:extensions/v1beta1:DaemonSet", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:extensions/v1beta1:DaemonSet", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -80,6 +80,20 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Extensions.V1Beta1 return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:apps/v1:DaemonSet" }, + new Alias { Type = "kubernetes:apps/v1beta2:DaemonSet" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing DaemonSet resource's state with the given name and ID. /// @@ -91,6 +105,5 @@ public static DaemonSet Get(string name, Input id, CustomResourceOptions return new DaemonSet(name, default(Types.Inputs.Extensions.V1Beta1.DaemonSetArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Extensions/V1Beta1/DaemonSetList.cs b/sdk/dotnet/Extensions/V1Beta1/DaemonSetList.cs index 2f98046ee4..13367286c4 100755 --- a/sdk/dotnet/Extensions/V1Beta1/DaemonSetList.cs +++ b/sdk/dotnet/Extensions/V1Beta1/DaemonSetList.cs @@ -51,7 +51,7 @@ public partial class DaemonSetList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public DaemonSetList(string name, Types.Inputs.Extensions.V1Beta1.DaemonSetListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:extensions/v1beta1:DaemonSetList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:extensions/v1beta1:DaemonSetList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Extensions.V1Beta1 return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing DaemonSetList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static DaemonSetList Get(string name, Input id, CustomResourceOpt return new DaemonSetList(name, default(Types.Inputs.Extensions.V1Beta1.DaemonSetListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Extensions/V1Beta1/Deployment.cs b/sdk/dotnet/Extensions/V1Beta1/Deployment.cs index fb9cfc8c9d..00da7bc36d 100755 --- a/sdk/dotnet/Extensions/V1Beta1/Deployment.cs +++ b/sdk/dotnet/Extensions/V1Beta1/Deployment.cs @@ -83,7 +83,7 @@ public partial class Deployment : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public Deployment(string name, Types.Inputs.Extensions.V1Beta1.DeploymentArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:extensions/v1beta1:Deployment", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:extensions/v1beta1:Deployment", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -100,6 +100,21 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Extensions.V1Beta1 return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:apps/v1:Deployment" }, + new Alias { Type = "kubernetes:apps/v1beta1:Deployment" }, + new Alias { Type = "kubernetes:apps/v1beta2:Deployment" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing Deployment resource's state with the given name and ID. /// @@ -111,6 +126,5 @@ public static Deployment Get(string name, Input id, CustomResourceOption return new Deployment(name, default(Types.Inputs.Extensions.V1Beta1.DeploymentArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Extensions/V1Beta1/DeploymentList.cs b/sdk/dotnet/Extensions/V1Beta1/DeploymentList.cs index a4f0860478..de083f0f31 100755 --- a/sdk/dotnet/Extensions/V1Beta1/DeploymentList.cs +++ b/sdk/dotnet/Extensions/V1Beta1/DeploymentList.cs @@ -50,7 +50,7 @@ public partial class DeploymentList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public DeploymentList(string name, Types.Inputs.Extensions.V1Beta1.DeploymentListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:extensions/v1beta1:DeploymentList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:extensions/v1beta1:DeploymentList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -67,6 +67,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Extensions.V1Beta1 return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing DeploymentList resource's state with the given name and ID. /// @@ -78,6 +83,5 @@ public static DeploymentList Get(string name, Input id, CustomResourceOp return new DeploymentList(name, default(Types.Inputs.Extensions.V1Beta1.DeploymentListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Extensions/V1Beta1/Ingress.cs b/sdk/dotnet/Extensions/V1Beta1/Ingress.cs index 0ad03551bd..18ccf3c0ce 100755 --- a/sdk/dotnet/Extensions/V1Beta1/Ingress.cs +++ b/sdk/dotnet/Extensions/V1Beta1/Ingress.cs @@ -78,7 +78,7 @@ public partial class Ingress : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public Ingress(string name, Types.Inputs.Extensions.V1Beta1.IngressArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:extensions/v1beta1:Ingress", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:extensions/v1beta1:Ingress", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -95,6 +95,19 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Extensions.V1Beta1 return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:networking.k8s.io/v1beta1:Ingress" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing Ingress resource's state with the given name and ID. /// @@ -106,6 +119,5 @@ public static Ingress Get(string name, Input id, CustomResourceOptions? return new Ingress(name, default(Types.Inputs.Extensions.V1Beta1.IngressArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Extensions/V1Beta1/IngressList.cs b/sdk/dotnet/Extensions/V1Beta1/IngressList.cs index 57620ea2e8..fad115533a 100755 --- a/sdk/dotnet/Extensions/V1Beta1/IngressList.cs +++ b/sdk/dotnet/Extensions/V1Beta1/IngressList.cs @@ -51,7 +51,7 @@ public partial class IngressList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public IngressList(string name, Types.Inputs.Extensions.V1Beta1.IngressListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:extensions/v1beta1:IngressList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:extensions/v1beta1:IngressList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Extensions.V1Beta1 return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing IngressList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static IngressList Get(string name, Input id, CustomResourceOptio return new IngressList(name, default(Types.Inputs.Extensions.V1Beta1.IngressListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Extensions/V1Beta1/NetworkPolicy.cs b/sdk/dotnet/Extensions/V1Beta1/NetworkPolicy.cs index 3d060afa1b..74fe2b4fd2 100755 --- a/sdk/dotnet/Extensions/V1Beta1/NetworkPolicy.cs +++ b/sdk/dotnet/Extensions/V1Beta1/NetworkPolicy.cs @@ -53,7 +53,7 @@ public partial class NetworkPolicy : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public NetworkPolicy(string name, Types.Inputs.Extensions.V1Beta1.NetworkPolicyArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:extensions/v1beta1:NetworkPolicy", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:extensions/v1beta1:NetworkPolicy", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -70,6 +70,19 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Extensions.V1Beta1 return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:networking.k8s.io/v1:NetworkPolicy" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing NetworkPolicy resource's state with the given name and ID. /// @@ -81,6 +94,5 @@ public static NetworkPolicy Get(string name, Input id, CustomResourceOpt return new NetworkPolicy(name, default(Types.Inputs.Extensions.V1Beta1.NetworkPolicyArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Extensions/V1Beta1/NetworkPolicyList.cs b/sdk/dotnet/Extensions/V1Beta1/NetworkPolicyList.cs index 56c145b828..456be1aa01 100755 --- a/sdk/dotnet/Extensions/V1Beta1/NetworkPolicyList.cs +++ b/sdk/dotnet/Extensions/V1Beta1/NetworkPolicyList.cs @@ -52,7 +52,7 @@ public partial class NetworkPolicyList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public NetworkPolicyList(string name, Types.Inputs.Extensions.V1Beta1.NetworkPolicyListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:extensions/v1beta1:NetworkPolicyList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:extensions/v1beta1:NetworkPolicyList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -69,6 +69,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Extensions.V1Beta1 return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing NetworkPolicyList resource's state with the given name and ID. /// @@ -80,6 +85,5 @@ public static NetworkPolicyList Get(string name, Input id, CustomResourc return new NetworkPolicyList(name, default(Types.Inputs.Extensions.V1Beta1.NetworkPolicyListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Extensions/V1Beta1/PodSecurityPolicy.cs b/sdk/dotnet/Extensions/V1Beta1/PodSecurityPolicy.cs index a76eb6b553..5e270530d5 100755 --- a/sdk/dotnet/Extensions/V1Beta1/PodSecurityPolicy.cs +++ b/sdk/dotnet/Extensions/V1Beta1/PodSecurityPolicy.cs @@ -53,7 +53,7 @@ public partial class PodSecurityPolicy : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public PodSecurityPolicy(string name, Types.Inputs.Extensions.V1Beta1.PodSecurityPolicyArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:extensions/v1beta1:PodSecurityPolicy", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:extensions/v1beta1:PodSecurityPolicy", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -70,6 +70,19 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Extensions.V1Beta1 return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:policy/v1beta1:PodSecurityPolicy" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing PodSecurityPolicy resource's state with the given name and ID. /// @@ -81,6 +94,5 @@ public static PodSecurityPolicy Get(string name, Input id, CustomResourc return new PodSecurityPolicy(name, default(Types.Inputs.Extensions.V1Beta1.PodSecurityPolicyArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Extensions/V1Beta1/PodSecurityPolicyList.cs b/sdk/dotnet/Extensions/V1Beta1/PodSecurityPolicyList.cs index 8db1a07ea6..60bd5f2802 100755 --- a/sdk/dotnet/Extensions/V1Beta1/PodSecurityPolicyList.cs +++ b/sdk/dotnet/Extensions/V1Beta1/PodSecurityPolicyList.cs @@ -52,7 +52,7 @@ public partial class PodSecurityPolicyList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public PodSecurityPolicyList(string name, Types.Inputs.Extensions.V1Beta1.PodSecurityPolicyListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:extensions/v1beta1:PodSecurityPolicyList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:extensions/v1beta1:PodSecurityPolicyList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -69,6 +69,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Extensions.V1Beta1 return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing PodSecurityPolicyList resource's state with the given name and ID. /// @@ -80,6 +85,5 @@ public static PodSecurityPolicyList Get(string name, Input id, CustomRes return new PodSecurityPolicyList(name, default(Types.Inputs.Extensions.V1Beta1.PodSecurityPolicyListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Extensions/V1Beta1/ReplicaSet.cs b/sdk/dotnet/Extensions/V1Beta1/ReplicaSet.cs index 80df130c8c..aeb2a7d0a8 100755 --- a/sdk/dotnet/Extensions/V1Beta1/ReplicaSet.cs +++ b/sdk/dotnet/Extensions/V1Beta1/ReplicaSet.cs @@ -64,7 +64,7 @@ public partial class ReplicaSet : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public ReplicaSet(string name, Types.Inputs.Extensions.V1Beta1.ReplicaSetArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:extensions/v1beta1:ReplicaSet", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:extensions/v1beta1:ReplicaSet", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -81,6 +81,20 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Extensions.V1Beta1 return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:apps/v1:ReplicaSet" }, + new Alias { Type = "kubernetes:apps/v1beta2:ReplicaSet" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing ReplicaSet resource's state with the given name and ID. /// @@ -92,6 +106,5 @@ public static ReplicaSet Get(string name, Input id, CustomResourceOption return new ReplicaSet(name, default(Types.Inputs.Extensions.V1Beta1.ReplicaSetArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Extensions/V1Beta1/ReplicaSetList.cs b/sdk/dotnet/Extensions/V1Beta1/ReplicaSetList.cs index 32aaad0598..a8f87183dc 100755 --- a/sdk/dotnet/Extensions/V1Beta1/ReplicaSetList.cs +++ b/sdk/dotnet/Extensions/V1Beta1/ReplicaSetList.cs @@ -52,7 +52,7 @@ public partial class ReplicaSetList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public ReplicaSetList(string name, Types.Inputs.Extensions.V1Beta1.ReplicaSetListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:extensions/v1beta1:ReplicaSetList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:extensions/v1beta1:ReplicaSetList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -69,6 +69,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Extensions.V1Beta1 return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing ReplicaSetList resource's state with the given name and ID. /// @@ -80,6 +85,5 @@ public static ReplicaSetList Get(string name, Input id, CustomResourceOp return new ReplicaSetList(name, default(Types.Inputs.Extensions.V1Beta1.ReplicaSetListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/FlowControl/V1Alpha1/FlowSchema.cs b/sdk/dotnet/FlowControl/V1Alpha1/FlowSchema.cs index 018a58b677..3eb229e957 100755 --- a/sdk/dotnet/FlowControl/V1Alpha1/FlowSchema.cs +++ b/sdk/dotnet/FlowControl/V1Alpha1/FlowSchema.cs @@ -61,7 +61,7 @@ public partial class FlowSchema : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public FlowSchema(string name, Types.Inputs.FlowControl.V1Alpha1.FlowSchemaArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:flowcontrol.apiserver.k8s.io/v1alpha1:FlowSchema", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:flowcontrol.apiserver.k8s.io/v1alpha1:FlowSchema", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -78,6 +78,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.FlowControl.V1Alph return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing FlowSchema resource's state with the given name and ID. /// @@ -89,6 +94,5 @@ public static FlowSchema Get(string name, Input id, CustomResourceOption return new FlowSchema(name, default(Types.Inputs.FlowControl.V1Alpha1.FlowSchemaArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/FlowControl/V1Alpha1/FlowSchemaList.cs b/sdk/dotnet/FlowControl/V1Alpha1/FlowSchemaList.cs index ec5d27489f..978e30270b 100755 --- a/sdk/dotnet/FlowControl/V1Alpha1/FlowSchemaList.cs +++ b/sdk/dotnet/FlowControl/V1Alpha1/FlowSchemaList.cs @@ -51,7 +51,7 @@ public partial class FlowSchemaList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public FlowSchemaList(string name, Types.Inputs.FlowControl.V1Alpha1.FlowSchemaListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:flowcontrol.apiserver.k8s.io/v1alpha1:FlowSchemaList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:flowcontrol.apiserver.k8s.io/v1alpha1:FlowSchemaList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.FlowControl.V1Alph return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing FlowSchemaList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static FlowSchemaList Get(string name, Input id, CustomResourceOp return new FlowSchemaList(name, default(Types.Inputs.FlowControl.V1Alpha1.FlowSchemaListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/FlowControl/V1Alpha1/PriorityLevelConfiguration.cs b/sdk/dotnet/FlowControl/V1Alpha1/PriorityLevelConfiguration.cs index 8a39f9f060..f25b44b19e 100755 --- a/sdk/dotnet/FlowControl/V1Alpha1/PriorityLevelConfiguration.cs +++ b/sdk/dotnet/FlowControl/V1Alpha1/PriorityLevelConfiguration.cs @@ -59,7 +59,7 @@ public partial class PriorityLevelConfiguration : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public PriorityLevelConfiguration(string name, Types.Inputs.FlowControl.V1Alpha1.PriorityLevelConfigurationArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:flowcontrol.apiserver.k8s.io/v1alpha1:PriorityLevelConfiguration", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:flowcontrol.apiserver.k8s.io/v1alpha1:PriorityLevelConfiguration", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -76,6 +76,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.FlowControl.V1Alph return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing PriorityLevelConfiguration resource's state with the given name and ID. /// @@ -87,6 +92,5 @@ public static PriorityLevelConfiguration Get(string name, Input id, Cust return new PriorityLevelConfiguration(name, default(Types.Inputs.FlowControl.V1Alpha1.PriorityLevelConfigurationArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/FlowControl/V1Alpha1/PriorityLevelConfigurationList.cs b/sdk/dotnet/FlowControl/V1Alpha1/PriorityLevelConfigurationList.cs index 7669afd437..fb976a10a9 100755 --- a/sdk/dotnet/FlowControl/V1Alpha1/PriorityLevelConfigurationList.cs +++ b/sdk/dotnet/FlowControl/V1Alpha1/PriorityLevelConfigurationList.cs @@ -51,7 +51,7 @@ public partial class PriorityLevelConfigurationList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public PriorityLevelConfigurationList(string name, Types.Inputs.FlowControl.V1Alpha1.PriorityLevelConfigurationListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:flowcontrol.apiserver.k8s.io/v1alpha1:PriorityLevelConfigurationList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:flowcontrol.apiserver.k8s.io/v1alpha1:PriorityLevelConfigurationList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.FlowControl.V1Alph return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing PriorityLevelConfigurationList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static PriorityLevelConfigurationList Get(string name, Input id, return new PriorityLevelConfigurationList(name, default(Types.Inputs.FlowControl.V1Alpha1.PriorityLevelConfigurationListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Meta/V1/Status.cs b/sdk/dotnet/Meta/V1/Status.cs index fa8bf54170..c3f637147e 100755 --- a/sdk/dotnet/Meta/V1/Status.cs +++ b/sdk/dotnet/Meta/V1/Status.cs @@ -80,7 +80,7 @@ public partial class Status : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public Status(string name, Types.Inputs.Meta.V1.StatusArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:core/v1:Status", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:core/v1:Status", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -97,6 +97,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Meta.V1.StatusArgs return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing Status resource's state with the given name and ID. /// @@ -108,6 +113,5 @@ public static Status Get(string name, Input id, CustomResourceOptions? o return new Status(name, default(Types.Inputs.Meta.V1.StatusArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Networking/V1/NetworkPolicy.cs b/sdk/dotnet/Networking/V1/NetworkPolicy.cs index e36c54f9c7..17c1ffcc70 100755 --- a/sdk/dotnet/Networking/V1/NetworkPolicy.cs +++ b/sdk/dotnet/Networking/V1/NetworkPolicy.cs @@ -51,7 +51,7 @@ public partial class NetworkPolicy : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public NetworkPolicy(string name, Types.Inputs.Networking.V1.NetworkPolicyArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:networking.k8s.io/v1:NetworkPolicy", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:networking.k8s.io/v1:NetworkPolicy", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,19 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Networking.V1.Netw return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:extensions/v1beta1:NetworkPolicy" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing NetworkPolicy resource's state with the given name and ID. /// @@ -79,6 +92,5 @@ public static NetworkPolicy Get(string name, Input id, CustomResourceOpt return new NetworkPolicy(name, default(Types.Inputs.Networking.V1.NetworkPolicyArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Networking/V1/NetworkPolicyList.cs b/sdk/dotnet/Networking/V1/NetworkPolicyList.cs index b83733f434..7e7058e959 100755 --- a/sdk/dotnet/Networking/V1/NetworkPolicyList.cs +++ b/sdk/dotnet/Networking/V1/NetworkPolicyList.cs @@ -51,7 +51,7 @@ public partial class NetworkPolicyList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public NetworkPolicyList(string name, Types.Inputs.Networking.V1.NetworkPolicyListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:networking.k8s.io/v1:NetworkPolicyList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:networking.k8s.io/v1:NetworkPolicyList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Networking.V1.Netw return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing NetworkPolicyList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static NetworkPolicyList Get(string name, Input id, CustomResourc return new NetworkPolicyList(name, default(Types.Inputs.Networking.V1.NetworkPolicyListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Networking/V1Beta1/Ingress.cs b/sdk/dotnet/Networking/V1Beta1/Ingress.cs index c2c8855a37..0d56b9de35 100755 --- a/sdk/dotnet/Networking/V1Beta1/Ingress.cs +++ b/sdk/dotnet/Networking/V1Beta1/Ingress.cs @@ -75,7 +75,7 @@ public partial class Ingress : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public Ingress(string name, Types.Inputs.Networking.V1Beta1.IngressArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:networking.k8s.io/v1beta1:Ingress", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:networking.k8s.io/v1beta1:Ingress", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -92,6 +92,19 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Networking.V1Beta1 return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:extensions/v1beta1:Ingress" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing Ingress resource's state with the given name and ID. /// @@ -103,6 +116,5 @@ public static Ingress Get(string name, Input id, CustomResourceOptions? return new Ingress(name, default(Types.Inputs.Networking.V1Beta1.IngressArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Networking/V1Beta1/IngressList.cs b/sdk/dotnet/Networking/V1Beta1/IngressList.cs index 689c6e41fb..7449189d6f 100755 --- a/sdk/dotnet/Networking/V1Beta1/IngressList.cs +++ b/sdk/dotnet/Networking/V1Beta1/IngressList.cs @@ -51,7 +51,7 @@ public partial class IngressList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public IngressList(string name, Types.Inputs.Networking.V1Beta1.IngressListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:networking.k8s.io/v1beta1:IngressList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:networking.k8s.io/v1beta1:IngressList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Networking.V1Beta1 return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing IngressList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static IngressList Get(string name, Input id, CustomResourceOptio return new IngressList(name, default(Types.Inputs.Networking.V1Beta1.IngressListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Node/V1Alpha1/RuntimeClass.cs b/sdk/dotnet/Node/V1Alpha1/RuntimeClass.cs index 8464d972be..639c202a86 100755 --- a/sdk/dotnet/Node/V1Alpha1/RuntimeClass.cs +++ b/sdk/dotnet/Node/V1Alpha1/RuntimeClass.cs @@ -57,7 +57,7 @@ public partial class RuntimeClass : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public RuntimeClass(string name, Types.Inputs.Node.V1Alpha1.RuntimeClassArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:node.k8s.io/v1alpha1:RuntimeClass", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:node.k8s.io/v1alpha1:RuntimeClass", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -74,6 +74,19 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Node.V1Alpha1.Runt return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:node.k8s.io/v1beta1:RuntimeClass" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing RuntimeClass resource's state with the given name and ID. /// @@ -85,6 +98,5 @@ public static RuntimeClass Get(string name, Input id, CustomResourceOpti return new RuntimeClass(name, default(Types.Inputs.Node.V1Alpha1.RuntimeClassArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Node/V1Alpha1/RuntimeClassList.cs b/sdk/dotnet/Node/V1Alpha1/RuntimeClassList.cs index a846e81c4f..8d9f11d37a 100755 --- a/sdk/dotnet/Node/V1Alpha1/RuntimeClassList.cs +++ b/sdk/dotnet/Node/V1Alpha1/RuntimeClassList.cs @@ -51,7 +51,7 @@ public partial class RuntimeClassList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public RuntimeClassList(string name, Types.Inputs.Node.V1Alpha1.RuntimeClassListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:node.k8s.io/v1alpha1:RuntimeClassList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:node.k8s.io/v1alpha1:RuntimeClassList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Node.V1Alpha1.Runt return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing RuntimeClassList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static RuntimeClassList Get(string name, Input id, CustomResource return new RuntimeClassList(name, default(Types.Inputs.Node.V1Alpha1.RuntimeClassListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Node/V1Beta1/RuntimeClass.cs b/sdk/dotnet/Node/V1Beta1/RuntimeClass.cs index a0807fe025..8d4c688d57 100755 --- a/sdk/dotnet/Node/V1Beta1/RuntimeClass.cs +++ b/sdk/dotnet/Node/V1Beta1/RuntimeClass.cs @@ -80,7 +80,7 @@ public partial class RuntimeClass : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public RuntimeClass(string name, Types.Inputs.Node.V1Beta1.RuntimeClassArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:node.k8s.io/v1beta1:RuntimeClass", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:node.k8s.io/v1beta1:RuntimeClass", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -97,6 +97,19 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Node.V1Beta1.Runti return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:node.k8s.io/v1alpha1:RuntimeClass" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing RuntimeClass resource's state with the given name and ID. /// @@ -108,6 +121,5 @@ public static RuntimeClass Get(string name, Input id, CustomResourceOpti return new RuntimeClass(name, default(Types.Inputs.Node.V1Beta1.RuntimeClassArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Node/V1Beta1/RuntimeClassList.cs b/sdk/dotnet/Node/V1Beta1/RuntimeClassList.cs index ef97a3f834..db4fbb1d26 100755 --- a/sdk/dotnet/Node/V1Beta1/RuntimeClassList.cs +++ b/sdk/dotnet/Node/V1Beta1/RuntimeClassList.cs @@ -51,7 +51,7 @@ public partial class RuntimeClassList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public RuntimeClassList(string name, Types.Inputs.Node.V1Beta1.RuntimeClassListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:node.k8s.io/v1beta1:RuntimeClassList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:node.k8s.io/v1beta1:RuntimeClassList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Node.V1Beta1.Runti return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing RuntimeClassList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static RuntimeClassList Get(string name, Input id, CustomResource return new RuntimeClassList(name, default(Types.Inputs.Node.V1Beta1.RuntimeClassListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Policy/V1Beta1/PodDisruptionBudget.cs b/sdk/dotnet/Policy/V1Beta1/PodDisruptionBudget.cs index ccaacb8f81..72e15d0fe0 100755 --- a/sdk/dotnet/Policy/V1Beta1/PodDisruptionBudget.cs +++ b/sdk/dotnet/Policy/V1Beta1/PodDisruptionBudget.cs @@ -55,7 +55,7 @@ public partial class PodDisruptionBudget : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public PodDisruptionBudget(string name, Types.Inputs.Policy.V1Beta1.PodDisruptionBudgetArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:policy/v1beta1:PodDisruptionBudget", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:policy/v1beta1:PodDisruptionBudget", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -72,6 +72,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Policy.V1Beta1.Pod return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing PodDisruptionBudget resource's state with the given name and ID. /// @@ -83,6 +88,5 @@ public static PodDisruptionBudget Get(string name, Input id, CustomResou return new PodDisruptionBudget(name, default(Types.Inputs.Policy.V1Beta1.PodDisruptionBudgetArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Policy/V1Beta1/PodDisruptionBudgetList.cs b/sdk/dotnet/Policy/V1Beta1/PodDisruptionBudgetList.cs index ccd416b529..cb1110c4b2 100755 --- a/sdk/dotnet/Policy/V1Beta1/PodDisruptionBudgetList.cs +++ b/sdk/dotnet/Policy/V1Beta1/PodDisruptionBudgetList.cs @@ -46,7 +46,7 @@ public partial class PodDisruptionBudgetList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public PodDisruptionBudgetList(string name, Types.Inputs.Policy.V1Beta1.PodDisruptionBudgetListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:policy/v1beta1:PodDisruptionBudgetList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:policy/v1beta1:PodDisruptionBudgetList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -63,6 +63,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Policy.V1Beta1.Pod return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing PodDisruptionBudgetList resource's state with the given name and ID. /// @@ -74,6 +79,5 @@ public static PodDisruptionBudgetList Get(string name, Input id, CustomR return new PodDisruptionBudgetList(name, default(Types.Inputs.Policy.V1Beta1.PodDisruptionBudgetListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Policy/V1Beta1/PodSecurityPolicy.cs b/sdk/dotnet/Policy/V1Beta1/PodSecurityPolicy.cs index 91d20b8326..cea397b813 100755 --- a/sdk/dotnet/Policy/V1Beta1/PodSecurityPolicy.cs +++ b/sdk/dotnet/Policy/V1Beta1/PodSecurityPolicy.cs @@ -52,7 +52,7 @@ public partial class PodSecurityPolicy : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public PodSecurityPolicy(string name, Types.Inputs.Policy.V1Beta1.PodSecurityPolicyArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:policy/v1beta1:PodSecurityPolicy", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:policy/v1beta1:PodSecurityPolicy", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -69,6 +69,19 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Policy.V1Beta1.Pod return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:extensions/v1beta1:PodSecurityPolicy" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing PodSecurityPolicy resource's state with the given name and ID. /// @@ -80,6 +93,5 @@ public static PodSecurityPolicy Get(string name, Input id, CustomResourc return new PodSecurityPolicy(name, default(Types.Inputs.Policy.V1Beta1.PodSecurityPolicyArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Policy/V1Beta1/PodSecurityPolicyList.cs b/sdk/dotnet/Policy/V1Beta1/PodSecurityPolicyList.cs index 784e378150..b9979dc71a 100755 --- a/sdk/dotnet/Policy/V1Beta1/PodSecurityPolicyList.cs +++ b/sdk/dotnet/Policy/V1Beta1/PodSecurityPolicyList.cs @@ -51,7 +51,7 @@ public partial class PodSecurityPolicyList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public PodSecurityPolicyList(string name, Types.Inputs.Policy.V1Beta1.PodSecurityPolicyListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:policy/v1beta1:PodSecurityPolicyList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:policy/v1beta1:PodSecurityPolicyList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Policy.V1Beta1.Pod return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing PodSecurityPolicyList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static PodSecurityPolicyList Get(string name, Input id, CustomRes return new PodSecurityPolicyList(name, default(Types.Inputs.Policy.V1Beta1.PodSecurityPolicyListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Rbac/V1/ClusterRole.cs b/sdk/dotnet/Rbac/V1/ClusterRole.cs index d549ca38ae..d8015b68cf 100755 --- a/sdk/dotnet/Rbac/V1/ClusterRole.cs +++ b/sdk/dotnet/Rbac/V1/ClusterRole.cs @@ -59,7 +59,7 @@ public partial class ClusterRole : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public ClusterRole(string name, Types.Inputs.Rbac.V1.ClusterRoleArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:rbac.authorization.k8s.io/v1:ClusterRole", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:rbac.authorization.k8s.io/v1:ClusterRole", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -76,6 +76,20 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Rbac.V1.ClusterRol return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRole" }, + new Alias { Type = "kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRole" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing ClusterRole resource's state with the given name and ID. /// @@ -87,6 +101,5 @@ public static ClusterRole Get(string name, Input id, CustomResourceOptio return new ClusterRole(name, default(Types.Inputs.Rbac.V1.ClusterRoleArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Rbac/V1/ClusterRoleBinding.cs b/sdk/dotnet/Rbac/V1/ClusterRoleBinding.cs index 49f01bbacb..f174f1438f 100755 --- a/sdk/dotnet/Rbac/V1/ClusterRoleBinding.cs +++ b/sdk/dotnet/Rbac/V1/ClusterRoleBinding.cs @@ -58,7 +58,7 @@ public partial class ClusterRoleBinding : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public ClusterRoleBinding(string name, Types.Inputs.Rbac.V1.ClusterRoleBindingArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:rbac.authorization.k8s.io/v1:ClusterRoleBinding", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:rbac.authorization.k8s.io/v1:ClusterRoleBinding", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -75,6 +75,20 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Rbac.V1.ClusterRol return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRoleBinding" }, + new Alias { Type = "kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRoleBinding" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing ClusterRoleBinding resource's state with the given name and ID. /// @@ -86,6 +100,5 @@ public static ClusterRoleBinding Get(string name, Input id, CustomResour return new ClusterRoleBinding(name, default(Types.Inputs.Rbac.V1.ClusterRoleBindingArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Rbac/V1/ClusterRoleBindingList.cs b/sdk/dotnet/Rbac/V1/ClusterRoleBindingList.cs index 035376745d..9596523ab8 100755 --- a/sdk/dotnet/Rbac/V1/ClusterRoleBindingList.cs +++ b/sdk/dotnet/Rbac/V1/ClusterRoleBindingList.cs @@ -50,7 +50,7 @@ public partial class ClusterRoleBindingList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public ClusterRoleBindingList(string name, Types.Inputs.Rbac.V1.ClusterRoleBindingListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:rbac.authorization.k8s.io/v1:ClusterRoleBindingList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:rbac.authorization.k8s.io/v1:ClusterRoleBindingList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -67,6 +67,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Rbac.V1.ClusterRol return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing ClusterRoleBindingList resource's state with the given name and ID. /// @@ -78,6 +83,5 @@ public static ClusterRoleBindingList Get(string name, Input id, CustomRe return new ClusterRoleBindingList(name, default(Types.Inputs.Rbac.V1.ClusterRoleBindingListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Rbac/V1/ClusterRoleList.cs b/sdk/dotnet/Rbac/V1/ClusterRoleList.cs index 6956566254..2f450c1588 100755 --- a/sdk/dotnet/Rbac/V1/ClusterRoleList.cs +++ b/sdk/dotnet/Rbac/V1/ClusterRoleList.cs @@ -50,7 +50,7 @@ public partial class ClusterRoleList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public ClusterRoleList(string name, Types.Inputs.Rbac.V1.ClusterRoleListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:rbac.authorization.k8s.io/v1:ClusterRoleList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:rbac.authorization.k8s.io/v1:ClusterRoleList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -67,6 +67,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Rbac.V1.ClusterRol return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing ClusterRoleList resource's state with the given name and ID. /// @@ -78,6 +83,5 @@ public static ClusterRoleList Get(string name, Input id, CustomResourceO return new ClusterRoleList(name, default(Types.Inputs.Rbac.V1.ClusterRoleListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Rbac/V1/Role.cs b/sdk/dotnet/Rbac/V1/Role.cs index 88be6199f3..38fded86d8 100755 --- a/sdk/dotnet/Rbac/V1/Role.cs +++ b/sdk/dotnet/Rbac/V1/Role.cs @@ -51,7 +51,7 @@ public partial class Role : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public Role(string name, Types.Inputs.Rbac.V1.RoleArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:rbac.authorization.k8s.io/v1:Role", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:rbac.authorization.k8s.io/v1:Role", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,20 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Rbac.V1.RoleArgs? return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:rbac.authorization.k8s.io/v1alpha1:Role" }, + new Alias { Type = "kubernetes:rbac.authorization.k8s.io/v1beta1:Role" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing Role resource's state with the given name and ID. /// @@ -79,6 +93,5 @@ public static Role Get(string name, Input id, CustomResourceOptions? opt return new Role(name, default(Types.Inputs.Rbac.V1.RoleArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Rbac/V1/RoleBinding.cs b/sdk/dotnet/Rbac/V1/RoleBinding.cs index 16bfc9b2ac..6c55a5b9a9 100755 --- a/sdk/dotnet/Rbac/V1/RoleBinding.cs +++ b/sdk/dotnet/Rbac/V1/RoleBinding.cs @@ -60,7 +60,7 @@ public partial class RoleBinding : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public RoleBinding(string name, Types.Inputs.Rbac.V1.RoleBindingArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:rbac.authorization.k8s.io/v1:RoleBinding", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:rbac.authorization.k8s.io/v1:RoleBinding", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -77,6 +77,20 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Rbac.V1.RoleBindin return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:rbac.authorization.k8s.io/v1alpha1:RoleBinding" }, + new Alias { Type = "kubernetes:rbac.authorization.k8s.io/v1beta1:RoleBinding" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing RoleBinding resource's state with the given name and ID. /// @@ -88,6 +102,5 @@ public static RoleBinding Get(string name, Input id, CustomResourceOptio return new RoleBinding(name, default(Types.Inputs.Rbac.V1.RoleBindingArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Rbac/V1/RoleBindingList.cs b/sdk/dotnet/Rbac/V1/RoleBindingList.cs index c917585b5a..97d26a8714 100755 --- a/sdk/dotnet/Rbac/V1/RoleBindingList.cs +++ b/sdk/dotnet/Rbac/V1/RoleBindingList.cs @@ -50,7 +50,7 @@ public partial class RoleBindingList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public RoleBindingList(string name, Types.Inputs.Rbac.V1.RoleBindingListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:rbac.authorization.k8s.io/v1:RoleBindingList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:rbac.authorization.k8s.io/v1:RoleBindingList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -67,6 +67,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Rbac.V1.RoleBindin return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing RoleBindingList resource's state with the given name and ID. /// @@ -78,6 +83,5 @@ public static RoleBindingList Get(string name, Input id, CustomResourceO return new RoleBindingList(name, default(Types.Inputs.Rbac.V1.RoleBindingListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Rbac/V1/RoleList.cs b/sdk/dotnet/Rbac/V1/RoleList.cs index 17141db805..ce6d28b1a3 100755 --- a/sdk/dotnet/Rbac/V1/RoleList.cs +++ b/sdk/dotnet/Rbac/V1/RoleList.cs @@ -50,7 +50,7 @@ public partial class RoleList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public RoleList(string name, Types.Inputs.Rbac.V1.RoleListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:rbac.authorization.k8s.io/v1:RoleList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:rbac.authorization.k8s.io/v1:RoleList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -67,6 +67,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Rbac.V1.RoleListAr return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing RoleList resource's state with the given name and ID. /// @@ -78,6 +83,5 @@ public static RoleList Get(string name, Input id, CustomResourceOptions? return new RoleList(name, default(Types.Inputs.Rbac.V1.RoleListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Rbac/V1Alpha1/ClusterRole.cs b/sdk/dotnet/Rbac/V1Alpha1/ClusterRole.cs index 3da2b6843f..6bf930280a 100755 --- a/sdk/dotnet/Rbac/V1Alpha1/ClusterRole.cs +++ b/sdk/dotnet/Rbac/V1Alpha1/ClusterRole.cs @@ -60,7 +60,7 @@ public partial class ClusterRole : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public ClusterRole(string name, Types.Inputs.Rbac.V1Alpha1.ClusterRoleArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRole", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRole", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -77,6 +77,20 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Rbac.V1Alpha1.Clus return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:rbac.authorization.k8s.io/v1:ClusterRole" }, + new Alias { Type = "kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRole" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing ClusterRole resource's state with the given name and ID. /// @@ -88,6 +102,5 @@ public static ClusterRole Get(string name, Input id, CustomResourceOptio return new ClusterRole(name, default(Types.Inputs.Rbac.V1Alpha1.ClusterRoleArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Rbac/V1Alpha1/ClusterRoleBinding.cs b/sdk/dotnet/Rbac/V1Alpha1/ClusterRoleBinding.cs index d8df14cdb1..db6bdcfd50 100755 --- a/sdk/dotnet/Rbac/V1Alpha1/ClusterRoleBinding.cs +++ b/sdk/dotnet/Rbac/V1Alpha1/ClusterRoleBinding.cs @@ -60,7 +60,7 @@ public partial class ClusterRoleBinding : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public ClusterRoleBinding(string name, Types.Inputs.Rbac.V1Alpha1.ClusterRoleBindingArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRoleBinding", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRoleBinding", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -77,6 +77,20 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Rbac.V1Alpha1.Clus return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:rbac.authorization.k8s.io/v1:ClusterRoleBinding" }, + new Alias { Type = "kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRoleBinding" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing ClusterRoleBinding resource's state with the given name and ID. /// @@ -88,6 +102,5 @@ public static ClusterRoleBinding Get(string name, Input id, CustomResour return new ClusterRoleBinding(name, default(Types.Inputs.Rbac.V1Alpha1.ClusterRoleBindingArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Rbac/V1Alpha1/ClusterRoleBindingList.cs b/sdk/dotnet/Rbac/V1Alpha1/ClusterRoleBindingList.cs index 0d192104bb..5b75ca142d 100755 --- a/sdk/dotnet/Rbac/V1Alpha1/ClusterRoleBindingList.cs +++ b/sdk/dotnet/Rbac/V1Alpha1/ClusterRoleBindingList.cs @@ -51,7 +51,7 @@ public partial class ClusterRoleBindingList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public ClusterRoleBindingList(string name, Types.Inputs.Rbac.V1Alpha1.ClusterRoleBindingListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRoleBindingList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRoleBindingList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Rbac.V1Alpha1.Clus return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing ClusterRoleBindingList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static ClusterRoleBindingList Get(string name, Input id, CustomRe return new ClusterRoleBindingList(name, default(Types.Inputs.Rbac.V1Alpha1.ClusterRoleBindingListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Rbac/V1Alpha1/ClusterRoleList.cs b/sdk/dotnet/Rbac/V1Alpha1/ClusterRoleList.cs index 2600ae9358..1e2f08cf7a 100755 --- a/sdk/dotnet/Rbac/V1Alpha1/ClusterRoleList.cs +++ b/sdk/dotnet/Rbac/V1Alpha1/ClusterRoleList.cs @@ -51,7 +51,7 @@ public partial class ClusterRoleList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public ClusterRoleList(string name, Types.Inputs.Rbac.V1Alpha1.ClusterRoleListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRoleList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRoleList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Rbac.V1Alpha1.Clus return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing ClusterRoleList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static ClusterRoleList Get(string name, Input id, CustomResourceO return new ClusterRoleList(name, default(Types.Inputs.Rbac.V1Alpha1.ClusterRoleListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Rbac/V1Alpha1/Role.cs b/sdk/dotnet/Rbac/V1Alpha1/Role.cs index b159f58d66..10299b90a6 100755 --- a/sdk/dotnet/Rbac/V1Alpha1/Role.cs +++ b/sdk/dotnet/Rbac/V1Alpha1/Role.cs @@ -52,7 +52,7 @@ public partial class Role : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public Role(string name, Types.Inputs.Rbac.V1Alpha1.RoleArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:rbac.authorization.k8s.io/v1alpha1:Role", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:rbac.authorization.k8s.io/v1alpha1:Role", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -69,6 +69,20 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Rbac.V1Alpha1.Role return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:rbac.authorization.k8s.io/v1:Role" }, + new Alias { Type = "kubernetes:rbac.authorization.k8s.io/v1beta1:Role" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing Role resource's state with the given name and ID. /// @@ -80,6 +94,5 @@ public static Role Get(string name, Input id, CustomResourceOptions? opt return new Role(name, default(Types.Inputs.Rbac.V1Alpha1.RoleArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Rbac/V1Alpha1/RoleBinding.cs b/sdk/dotnet/Rbac/V1Alpha1/RoleBinding.cs index e9a910cacd..b42786332f 100755 --- a/sdk/dotnet/Rbac/V1Alpha1/RoleBinding.cs +++ b/sdk/dotnet/Rbac/V1Alpha1/RoleBinding.cs @@ -61,7 +61,7 @@ public partial class RoleBinding : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public RoleBinding(string name, Types.Inputs.Rbac.V1Alpha1.RoleBindingArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:rbac.authorization.k8s.io/v1alpha1:RoleBinding", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:rbac.authorization.k8s.io/v1alpha1:RoleBinding", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -78,6 +78,20 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Rbac.V1Alpha1.Role return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:rbac.authorization.k8s.io/v1:RoleBinding" }, + new Alias { Type = "kubernetes:rbac.authorization.k8s.io/v1beta1:RoleBinding" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing RoleBinding resource's state with the given name and ID. /// @@ -89,6 +103,5 @@ public static RoleBinding Get(string name, Input id, CustomResourceOptio return new RoleBinding(name, default(Types.Inputs.Rbac.V1Alpha1.RoleBindingArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Rbac/V1Alpha1/RoleBindingList.cs b/sdk/dotnet/Rbac/V1Alpha1/RoleBindingList.cs index 6b31402e75..8b047cf676 100755 --- a/sdk/dotnet/Rbac/V1Alpha1/RoleBindingList.cs +++ b/sdk/dotnet/Rbac/V1Alpha1/RoleBindingList.cs @@ -51,7 +51,7 @@ public partial class RoleBindingList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public RoleBindingList(string name, Types.Inputs.Rbac.V1Alpha1.RoleBindingListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:rbac.authorization.k8s.io/v1alpha1:RoleBindingList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:rbac.authorization.k8s.io/v1alpha1:RoleBindingList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Rbac.V1Alpha1.Role return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing RoleBindingList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static RoleBindingList Get(string name, Input id, CustomResourceO return new RoleBindingList(name, default(Types.Inputs.Rbac.V1Alpha1.RoleBindingListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Rbac/V1Alpha1/RoleList.cs b/sdk/dotnet/Rbac/V1Alpha1/RoleList.cs index fdba13401d..a90ace7cd3 100755 --- a/sdk/dotnet/Rbac/V1Alpha1/RoleList.cs +++ b/sdk/dotnet/Rbac/V1Alpha1/RoleList.cs @@ -51,7 +51,7 @@ public partial class RoleList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public RoleList(string name, Types.Inputs.Rbac.V1Alpha1.RoleListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:rbac.authorization.k8s.io/v1alpha1:RoleList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:rbac.authorization.k8s.io/v1alpha1:RoleList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Rbac.V1Alpha1.Role return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing RoleList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static RoleList Get(string name, Input id, CustomResourceOptions? return new RoleList(name, default(Types.Inputs.Rbac.V1Alpha1.RoleListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Rbac/V1Beta1/ClusterRole.cs b/sdk/dotnet/Rbac/V1Beta1/ClusterRole.cs index 3236786ab9..73d9a948c8 100755 --- a/sdk/dotnet/Rbac/V1Beta1/ClusterRole.cs +++ b/sdk/dotnet/Rbac/V1Beta1/ClusterRole.cs @@ -60,7 +60,7 @@ public partial class ClusterRole : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public ClusterRole(string name, Types.Inputs.Rbac.V1Beta1.ClusterRoleArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRole", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRole", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -77,6 +77,20 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Rbac.V1Beta1.Clust return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:rbac.authorization.k8s.io/v1:ClusterRole" }, + new Alias { Type = "kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRole" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing ClusterRole resource's state with the given name and ID. /// @@ -88,6 +102,5 @@ public static ClusterRole Get(string name, Input id, CustomResourceOptio return new ClusterRole(name, default(Types.Inputs.Rbac.V1Beta1.ClusterRoleArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Rbac/V1Beta1/ClusterRoleBinding.cs b/sdk/dotnet/Rbac/V1Beta1/ClusterRoleBinding.cs index 8b0229b6f2..a20af4b40c 100755 --- a/sdk/dotnet/Rbac/V1Beta1/ClusterRoleBinding.cs +++ b/sdk/dotnet/Rbac/V1Beta1/ClusterRoleBinding.cs @@ -60,7 +60,7 @@ public partial class ClusterRoleBinding : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public ClusterRoleBinding(string name, Types.Inputs.Rbac.V1Beta1.ClusterRoleBindingArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRoleBinding", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRoleBinding", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -77,6 +77,20 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Rbac.V1Beta1.Clust return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:rbac.authorization.k8s.io/v1:ClusterRoleBinding" }, + new Alias { Type = "kubernetes:rbac.authorization.k8s.io/v1alpha1:ClusterRoleBinding" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing ClusterRoleBinding resource's state with the given name and ID. /// @@ -88,6 +102,5 @@ public static ClusterRoleBinding Get(string name, Input id, CustomResour return new ClusterRoleBinding(name, default(Types.Inputs.Rbac.V1Beta1.ClusterRoleBindingArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Rbac/V1Beta1/ClusterRoleBindingList.cs b/sdk/dotnet/Rbac/V1Beta1/ClusterRoleBindingList.cs index f93a6588ca..55db60df78 100755 --- a/sdk/dotnet/Rbac/V1Beta1/ClusterRoleBindingList.cs +++ b/sdk/dotnet/Rbac/V1Beta1/ClusterRoleBindingList.cs @@ -52,7 +52,7 @@ public partial class ClusterRoleBindingList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public ClusterRoleBindingList(string name, Types.Inputs.Rbac.V1Beta1.ClusterRoleBindingListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRoleBindingList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRoleBindingList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -69,6 +69,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Rbac.V1Beta1.Clust return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing ClusterRoleBindingList resource's state with the given name and ID. /// @@ -80,6 +85,5 @@ public static ClusterRoleBindingList Get(string name, Input id, CustomRe return new ClusterRoleBindingList(name, default(Types.Inputs.Rbac.V1Beta1.ClusterRoleBindingListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Rbac/V1Beta1/ClusterRoleList.cs b/sdk/dotnet/Rbac/V1Beta1/ClusterRoleList.cs index 89ae27c273..995cd71866 100755 --- a/sdk/dotnet/Rbac/V1Beta1/ClusterRoleList.cs +++ b/sdk/dotnet/Rbac/V1Beta1/ClusterRoleList.cs @@ -51,7 +51,7 @@ public partial class ClusterRoleList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public ClusterRoleList(string name, Types.Inputs.Rbac.V1Beta1.ClusterRoleListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRoleList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:rbac.authorization.k8s.io/v1beta1:ClusterRoleList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Rbac.V1Beta1.Clust return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing ClusterRoleList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static ClusterRoleList Get(string name, Input id, CustomResourceO return new ClusterRoleList(name, default(Types.Inputs.Rbac.V1Beta1.ClusterRoleListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Rbac/V1Beta1/Role.cs b/sdk/dotnet/Rbac/V1Beta1/Role.cs index 51283b8722..ca916a83fd 100755 --- a/sdk/dotnet/Rbac/V1Beta1/Role.cs +++ b/sdk/dotnet/Rbac/V1Beta1/Role.cs @@ -52,7 +52,7 @@ public partial class Role : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public Role(string name, Types.Inputs.Rbac.V1Beta1.RoleArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:rbac.authorization.k8s.io/v1beta1:Role", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:rbac.authorization.k8s.io/v1beta1:Role", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -69,6 +69,20 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Rbac.V1Beta1.RoleA return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:rbac.authorization.k8s.io/v1:Role" }, + new Alias { Type = "kubernetes:rbac.authorization.k8s.io/v1alpha1:Role" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing Role resource's state with the given name and ID. /// @@ -80,6 +94,5 @@ public static Role Get(string name, Input id, CustomResourceOptions? opt return new Role(name, default(Types.Inputs.Rbac.V1Beta1.RoleArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Rbac/V1Beta1/RoleBinding.cs b/sdk/dotnet/Rbac/V1Beta1/RoleBinding.cs index 45a9d9cf0d..61e1b9def2 100755 --- a/sdk/dotnet/Rbac/V1Beta1/RoleBinding.cs +++ b/sdk/dotnet/Rbac/V1Beta1/RoleBinding.cs @@ -61,7 +61,7 @@ public partial class RoleBinding : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public RoleBinding(string name, Types.Inputs.Rbac.V1Beta1.RoleBindingArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:rbac.authorization.k8s.io/v1beta1:RoleBinding", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:rbac.authorization.k8s.io/v1beta1:RoleBinding", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -78,6 +78,20 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Rbac.V1Beta1.RoleB return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:rbac.authorization.k8s.io/v1:RoleBinding" }, + new Alias { Type = "kubernetes:rbac.authorization.k8s.io/v1alpha1:RoleBinding" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing RoleBinding resource's state with the given name and ID. /// @@ -89,6 +103,5 @@ public static RoleBinding Get(string name, Input id, CustomResourceOptio return new RoleBinding(name, default(Types.Inputs.Rbac.V1Beta1.RoleBindingArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Rbac/V1Beta1/RoleBindingList.cs b/sdk/dotnet/Rbac/V1Beta1/RoleBindingList.cs index cfb0560470..5e2b26d330 100755 --- a/sdk/dotnet/Rbac/V1Beta1/RoleBindingList.cs +++ b/sdk/dotnet/Rbac/V1Beta1/RoleBindingList.cs @@ -51,7 +51,7 @@ public partial class RoleBindingList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public RoleBindingList(string name, Types.Inputs.Rbac.V1Beta1.RoleBindingListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:rbac.authorization.k8s.io/v1beta1:RoleBindingList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:rbac.authorization.k8s.io/v1beta1:RoleBindingList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Rbac.V1Beta1.RoleB return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing RoleBindingList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static RoleBindingList Get(string name, Input id, CustomResourceO return new RoleBindingList(name, default(Types.Inputs.Rbac.V1Beta1.RoleBindingListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Rbac/V1Beta1/RoleList.cs b/sdk/dotnet/Rbac/V1Beta1/RoleList.cs index fdc0ab2091..6a75dbbb80 100755 --- a/sdk/dotnet/Rbac/V1Beta1/RoleList.cs +++ b/sdk/dotnet/Rbac/V1Beta1/RoleList.cs @@ -51,7 +51,7 @@ public partial class RoleList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public RoleList(string name, Types.Inputs.Rbac.V1Beta1.RoleListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:rbac.authorization.k8s.io/v1beta1:RoleList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:rbac.authorization.k8s.io/v1beta1:RoleList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Rbac.V1Beta1.RoleL return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing RoleList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static RoleList Get(string name, Input id, CustomResourceOptions? return new RoleList(name, default(Types.Inputs.Rbac.V1Beta1.RoleListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Scheduling/V1/PriorityClass.cs b/sdk/dotnet/Scheduling/V1/PriorityClass.cs index 38a8df5308..c9d02fc2b0 100755 --- a/sdk/dotnet/Scheduling/V1/PriorityClass.cs +++ b/sdk/dotnet/Scheduling/V1/PriorityClass.cs @@ -79,7 +79,7 @@ public partial class PriorityClass : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public PriorityClass(string name, Types.Inputs.Scheduling.V1.PriorityClassArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:scheduling.k8s.io/v1:PriorityClass", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:scheduling.k8s.io/v1:PriorityClass", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -96,6 +96,20 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Scheduling.V1.Prio return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:scheduling.k8s.io/v1alpha1:PriorityClass" }, + new Alias { Type = "kubernetes:scheduling.k8s.io/v1beta1:PriorityClass" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing PriorityClass resource's state with the given name and ID. /// @@ -107,6 +121,5 @@ public static PriorityClass Get(string name, Input id, CustomResourceOpt return new PriorityClass(name, default(Types.Inputs.Scheduling.V1.PriorityClassArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Scheduling/V1/PriorityClassList.cs b/sdk/dotnet/Scheduling/V1/PriorityClassList.cs index 12a8f139f8..aaefdeedb0 100755 --- a/sdk/dotnet/Scheduling/V1/PriorityClassList.cs +++ b/sdk/dotnet/Scheduling/V1/PriorityClassList.cs @@ -51,7 +51,7 @@ public partial class PriorityClassList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public PriorityClassList(string name, Types.Inputs.Scheduling.V1.PriorityClassListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:scheduling.k8s.io/v1:PriorityClassList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:scheduling.k8s.io/v1:PriorityClassList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Scheduling.V1.Prio return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing PriorityClassList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static PriorityClassList Get(string name, Input id, CustomResourc return new PriorityClassList(name, default(Types.Inputs.Scheduling.V1.PriorityClassListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Scheduling/V1Alpha1/PriorityClass.cs b/sdk/dotnet/Scheduling/V1Alpha1/PriorityClass.cs index e89fec18ed..5d55f77d0d 100755 --- a/sdk/dotnet/Scheduling/V1Alpha1/PriorityClass.cs +++ b/sdk/dotnet/Scheduling/V1Alpha1/PriorityClass.cs @@ -80,7 +80,7 @@ public partial class PriorityClass : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public PriorityClass(string name, Types.Inputs.Scheduling.V1Alpha1.PriorityClassArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:scheduling.k8s.io/v1alpha1:PriorityClass", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:scheduling.k8s.io/v1alpha1:PriorityClass", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -97,6 +97,20 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Scheduling.V1Alpha return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:scheduling.k8s.io/v1:PriorityClass" }, + new Alias { Type = "kubernetes:scheduling.k8s.io/v1beta1:PriorityClass" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing PriorityClass resource's state with the given name and ID. /// @@ -108,6 +122,5 @@ public static PriorityClass Get(string name, Input id, CustomResourceOpt return new PriorityClass(name, default(Types.Inputs.Scheduling.V1Alpha1.PriorityClassArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Scheduling/V1Alpha1/PriorityClassList.cs b/sdk/dotnet/Scheduling/V1Alpha1/PriorityClassList.cs index 3ee5004835..358f2d4325 100755 --- a/sdk/dotnet/Scheduling/V1Alpha1/PriorityClassList.cs +++ b/sdk/dotnet/Scheduling/V1Alpha1/PriorityClassList.cs @@ -51,7 +51,7 @@ public partial class PriorityClassList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public PriorityClassList(string name, Types.Inputs.Scheduling.V1Alpha1.PriorityClassListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:scheduling.k8s.io/v1alpha1:PriorityClassList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:scheduling.k8s.io/v1alpha1:PriorityClassList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Scheduling.V1Alpha return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing PriorityClassList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static PriorityClassList Get(string name, Input id, CustomResourc return new PriorityClassList(name, default(Types.Inputs.Scheduling.V1Alpha1.PriorityClassListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Scheduling/V1Beta1/PriorityClass.cs b/sdk/dotnet/Scheduling/V1Beta1/PriorityClass.cs index 4e7c0a5f58..635877fae5 100755 --- a/sdk/dotnet/Scheduling/V1Beta1/PriorityClass.cs +++ b/sdk/dotnet/Scheduling/V1Beta1/PriorityClass.cs @@ -80,7 +80,7 @@ public partial class PriorityClass : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public PriorityClass(string name, Types.Inputs.Scheduling.V1Beta1.PriorityClassArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:scheduling.k8s.io/v1beta1:PriorityClass", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:scheduling.k8s.io/v1beta1:PriorityClass", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -97,6 +97,20 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Scheduling.V1Beta1 return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:scheduling.k8s.io/v1:PriorityClass" }, + new Alias { Type = "kubernetes:scheduling.k8s.io/v1alpha1:PriorityClass" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing PriorityClass resource's state with the given name and ID. /// @@ -108,6 +122,5 @@ public static PriorityClass Get(string name, Input id, CustomResourceOpt return new PriorityClass(name, default(Types.Inputs.Scheduling.V1Beta1.PriorityClassArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Scheduling/V1Beta1/PriorityClassList.cs b/sdk/dotnet/Scheduling/V1Beta1/PriorityClassList.cs index 1de40ab520..6fa8cf35f6 100755 --- a/sdk/dotnet/Scheduling/V1Beta1/PriorityClassList.cs +++ b/sdk/dotnet/Scheduling/V1Beta1/PriorityClassList.cs @@ -51,7 +51,7 @@ public partial class PriorityClassList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public PriorityClassList(string name, Types.Inputs.Scheduling.V1Beta1.PriorityClassListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:scheduling.k8s.io/v1beta1:PriorityClassList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:scheduling.k8s.io/v1beta1:PriorityClassList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Scheduling.V1Beta1 return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing PriorityClassList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static PriorityClassList Get(string name, Input id, CustomResourc return new PriorityClassList(name, default(Types.Inputs.Scheduling.V1Beta1.PriorityClassListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Settings/V1Alpha1/PodPreset.cs b/sdk/dotnet/Settings/V1Alpha1/PodPreset.cs index 47cf937be2..f38c6bed33 100755 --- a/sdk/dotnet/Settings/V1Alpha1/PodPreset.cs +++ b/sdk/dotnet/Settings/V1Alpha1/PodPreset.cs @@ -46,7 +46,7 @@ public partial class PodPreset : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public PodPreset(string name, Types.Inputs.Settings.V1Alpha1.PodPresetArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:settings.k8s.io/v1alpha1:PodPreset", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:settings.k8s.io/v1alpha1:PodPreset", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -63,6 +63,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Settings.V1Alpha1. return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing PodPreset resource's state with the given name and ID. /// @@ -74,6 +79,5 @@ public static PodPreset Get(string name, Input id, CustomResourceOptions return new PodPreset(name, default(Types.Inputs.Settings.V1Alpha1.PodPresetArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Settings/V1Alpha1/PodPresetList.cs b/sdk/dotnet/Settings/V1Alpha1/PodPresetList.cs index 0a46da398e..58014f52ac 100755 --- a/sdk/dotnet/Settings/V1Alpha1/PodPresetList.cs +++ b/sdk/dotnet/Settings/V1Alpha1/PodPresetList.cs @@ -51,7 +51,7 @@ public partial class PodPresetList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public PodPresetList(string name, Types.Inputs.Settings.V1Alpha1.PodPresetListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:settings.k8s.io/v1alpha1:PodPresetList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:settings.k8s.io/v1alpha1:PodPresetList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Settings.V1Alpha1. return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing PodPresetList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static PodPresetList Get(string name, Input id, CustomResourceOpt return new PodPresetList(name, default(Types.Inputs.Settings.V1Alpha1.PodPresetListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Storage/V1/CSINode.cs b/sdk/dotnet/Storage/V1/CSINode.cs index 6273c412b9..ee022637af 100755 --- a/sdk/dotnet/Storage/V1/CSINode.cs +++ b/sdk/dotnet/Storage/V1/CSINode.cs @@ -56,7 +56,7 @@ public partial class CSINode : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public CSINode(string name, Types.Inputs.Storage.V1.CSINodeArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:storage.k8s.io/v1:CSINode", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:storage.k8s.io/v1:CSINode", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -73,6 +73,19 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Storage.V1.CSINode return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:storage.k8s.io/v1beta1:CSINode" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing CSINode resource's state with the given name and ID. /// @@ -84,6 +97,5 @@ public static CSINode Get(string name, Input id, CustomResourceOptions? return new CSINode(name, default(Types.Inputs.Storage.V1.CSINodeArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Storage/V1/CSINodeList.cs b/sdk/dotnet/Storage/V1/CSINodeList.cs index 2f3ec566e5..73e3d59585 100755 --- a/sdk/dotnet/Storage/V1/CSINodeList.cs +++ b/sdk/dotnet/Storage/V1/CSINodeList.cs @@ -51,7 +51,7 @@ public partial class CSINodeList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public CSINodeList(string name, Types.Inputs.Storage.V1.CSINodeListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:storage.k8s.io/v1:CSINodeList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:storage.k8s.io/v1:CSINodeList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Storage.V1.CSINode return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing CSINodeList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static CSINodeList Get(string name, Input id, CustomResourceOptio return new CSINodeList(name, default(Types.Inputs.Storage.V1.CSINodeListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Storage/V1/StorageClass.cs b/sdk/dotnet/Storage/V1/StorageClass.cs index ac3582fba1..b2925750cb 100755 --- a/sdk/dotnet/Storage/V1/StorageClass.cs +++ b/sdk/dotnet/Storage/V1/StorageClass.cs @@ -100,7 +100,7 @@ public partial class StorageClass : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public StorageClass(string name, Types.Inputs.Storage.V1.StorageClassArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:storage.k8s.io/v1:StorageClass", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:storage.k8s.io/v1:StorageClass", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -117,6 +117,19 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Storage.V1.Storage return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:storage.k8s.io/v1beta1:StorageClass" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing StorageClass resource's state with the given name and ID. /// @@ -128,6 +141,5 @@ public static StorageClass Get(string name, Input id, CustomResourceOpti return new StorageClass(name, default(Types.Inputs.Storage.V1.StorageClassArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Storage/V1/StorageClassList.cs b/sdk/dotnet/Storage/V1/StorageClassList.cs index 4f74dcc7ea..ca659755b0 100755 --- a/sdk/dotnet/Storage/V1/StorageClassList.cs +++ b/sdk/dotnet/Storage/V1/StorageClassList.cs @@ -51,7 +51,7 @@ public partial class StorageClassList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public StorageClassList(string name, Types.Inputs.Storage.V1.StorageClassListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:storage.k8s.io/v1:StorageClassList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:storage.k8s.io/v1:StorageClassList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Storage.V1.Storage return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing StorageClassList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static StorageClassList Get(string name, Input id, CustomResource return new StorageClassList(name, default(Types.Inputs.Storage.V1.StorageClassListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Storage/V1/VolumeAttachment.cs b/sdk/dotnet/Storage/V1/VolumeAttachment.cs index 4ae24ac4c8..8ce2ef1264 100755 --- a/sdk/dotnet/Storage/V1/VolumeAttachment.cs +++ b/sdk/dotnet/Storage/V1/VolumeAttachment.cs @@ -62,7 +62,7 @@ public partial class VolumeAttachment : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public VolumeAttachment(string name, Types.Inputs.Storage.V1.VolumeAttachmentArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:storage.k8s.io/v1:VolumeAttachment", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:storage.k8s.io/v1:VolumeAttachment", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -79,6 +79,20 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Storage.V1.VolumeA return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:storage.k8s.io/v1alpha1:VolumeAttachment" }, + new Alias { Type = "kubernetes:storage.k8s.io/v1beta1:VolumeAttachment" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing VolumeAttachment resource's state with the given name and ID. /// @@ -90,6 +104,5 @@ public static VolumeAttachment Get(string name, Input id, CustomResource return new VolumeAttachment(name, default(Types.Inputs.Storage.V1.VolumeAttachmentArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Storage/V1/VolumeAttachmentList.cs b/sdk/dotnet/Storage/V1/VolumeAttachmentList.cs index 1f51e3cb78..cf9762fe2c 100755 --- a/sdk/dotnet/Storage/V1/VolumeAttachmentList.cs +++ b/sdk/dotnet/Storage/V1/VolumeAttachmentList.cs @@ -51,7 +51,7 @@ public partial class VolumeAttachmentList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public VolumeAttachmentList(string name, Types.Inputs.Storage.V1.VolumeAttachmentListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:storage.k8s.io/v1:VolumeAttachmentList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:storage.k8s.io/v1:VolumeAttachmentList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Storage.V1.VolumeA return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing VolumeAttachmentList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static VolumeAttachmentList Get(string name, Input id, CustomReso return new VolumeAttachmentList(name, default(Types.Inputs.Storage.V1.VolumeAttachmentListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Storage/V1Alpha1/VolumeAttachment.cs b/sdk/dotnet/Storage/V1Alpha1/VolumeAttachment.cs index 1e123f61be..3b52a481fa 100755 --- a/sdk/dotnet/Storage/V1Alpha1/VolumeAttachment.cs +++ b/sdk/dotnet/Storage/V1Alpha1/VolumeAttachment.cs @@ -62,7 +62,7 @@ public partial class VolumeAttachment : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public VolumeAttachment(string name, Types.Inputs.Storage.V1Alpha1.VolumeAttachmentArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:storage.k8s.io/v1alpha1:VolumeAttachment", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:storage.k8s.io/v1alpha1:VolumeAttachment", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -79,6 +79,20 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Storage.V1Alpha1.V return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:storage.k8s.io/v1:VolumeAttachment" }, + new Alias { Type = "kubernetes:storage.k8s.io/v1beta1:VolumeAttachment" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing VolumeAttachment resource's state with the given name and ID. /// @@ -90,6 +104,5 @@ public static VolumeAttachment Get(string name, Input id, CustomResource return new VolumeAttachment(name, default(Types.Inputs.Storage.V1Alpha1.VolumeAttachmentArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Storage/V1Alpha1/VolumeAttachmentList.cs b/sdk/dotnet/Storage/V1Alpha1/VolumeAttachmentList.cs index 3edc3f8c96..23de6eec76 100755 --- a/sdk/dotnet/Storage/V1Alpha1/VolumeAttachmentList.cs +++ b/sdk/dotnet/Storage/V1Alpha1/VolumeAttachmentList.cs @@ -51,7 +51,7 @@ public partial class VolumeAttachmentList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public VolumeAttachmentList(string name, Types.Inputs.Storage.V1Alpha1.VolumeAttachmentListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:storage.k8s.io/v1alpha1:VolumeAttachmentList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:storage.k8s.io/v1alpha1:VolumeAttachmentList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Storage.V1Alpha1.V return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing VolumeAttachmentList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static VolumeAttachmentList Get(string name, Input id, CustomReso return new VolumeAttachmentList(name, default(Types.Inputs.Storage.V1Alpha1.VolumeAttachmentListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Storage/V1Beta1/CSIDriver.cs b/sdk/dotnet/Storage/V1Beta1/CSIDriver.cs index 39667a888e..1ddca3e2c7 100755 --- a/sdk/dotnet/Storage/V1Beta1/CSIDriver.cs +++ b/sdk/dotnet/Storage/V1Beta1/CSIDriver.cs @@ -61,7 +61,7 @@ public partial class CSIDriver : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public CSIDriver(string name, Types.Inputs.Storage.V1Beta1.CSIDriverArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:storage.k8s.io/v1beta1:CSIDriver", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:storage.k8s.io/v1beta1:CSIDriver", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -78,6 +78,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Storage.V1Beta1.CS return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing CSIDriver resource's state with the given name and ID. /// @@ -89,6 +94,5 @@ public static CSIDriver Get(string name, Input id, CustomResourceOptions return new CSIDriver(name, default(Types.Inputs.Storage.V1Beta1.CSIDriverArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Storage/V1Beta1/CSIDriverList.cs b/sdk/dotnet/Storage/V1Beta1/CSIDriverList.cs index 680b0c5d28..abf1fadf90 100755 --- a/sdk/dotnet/Storage/V1Beta1/CSIDriverList.cs +++ b/sdk/dotnet/Storage/V1Beta1/CSIDriverList.cs @@ -51,7 +51,7 @@ public partial class CSIDriverList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public CSIDriverList(string name, Types.Inputs.Storage.V1Beta1.CSIDriverListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:storage.k8s.io/v1beta1:CSIDriverList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:storage.k8s.io/v1beta1:CSIDriverList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Storage.V1Beta1.CS return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing CSIDriverList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static CSIDriverList Get(string name, Input id, CustomResourceOpt return new CSIDriverList(name, default(Types.Inputs.Storage.V1Beta1.CSIDriverListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Storage/V1Beta1/CSINode.cs b/sdk/dotnet/Storage/V1Beta1/CSINode.cs index 3fbce420a9..564114d508 100755 --- a/sdk/dotnet/Storage/V1Beta1/CSINode.cs +++ b/sdk/dotnet/Storage/V1Beta1/CSINode.cs @@ -58,7 +58,7 @@ public partial class CSINode : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public CSINode(string name, Types.Inputs.Storage.V1Beta1.CSINodeArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:storage.k8s.io/v1beta1:CSINode", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:storage.k8s.io/v1beta1:CSINode", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -75,6 +75,19 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Storage.V1Beta1.CS return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:storage.k8s.io/v1:CSINode" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing CSINode resource's state with the given name and ID. /// @@ -86,6 +99,5 @@ public static CSINode Get(string name, Input id, CustomResourceOptions? return new CSINode(name, default(Types.Inputs.Storage.V1Beta1.CSINodeArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Storage/V1Beta1/CSINodeList.cs b/sdk/dotnet/Storage/V1Beta1/CSINodeList.cs index 0954ba8813..c4f883741d 100755 --- a/sdk/dotnet/Storage/V1Beta1/CSINodeList.cs +++ b/sdk/dotnet/Storage/V1Beta1/CSINodeList.cs @@ -51,7 +51,7 @@ public partial class CSINodeList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public CSINodeList(string name, Types.Inputs.Storage.V1Beta1.CSINodeListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:storage.k8s.io/v1beta1:CSINodeList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:storage.k8s.io/v1beta1:CSINodeList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Storage.V1Beta1.CS return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing CSINodeList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static CSINodeList Get(string name, Input id, CustomResourceOptio return new CSINodeList(name, default(Types.Inputs.Storage.V1Beta1.CSINodeListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Storage/V1Beta1/StorageClass.cs b/sdk/dotnet/Storage/V1Beta1/StorageClass.cs index c690651a4d..ae5aa5f6b8 100755 --- a/sdk/dotnet/Storage/V1Beta1/StorageClass.cs +++ b/sdk/dotnet/Storage/V1Beta1/StorageClass.cs @@ -100,7 +100,7 @@ public partial class StorageClass : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public StorageClass(string name, Types.Inputs.Storage.V1Beta1.StorageClassArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:storage.k8s.io/v1beta1:StorageClass", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:storage.k8s.io/v1beta1:StorageClass", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -117,6 +117,19 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Storage.V1Beta1.St return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:storage.k8s.io/v1:StorageClass" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing StorageClass resource's state with the given name and ID. /// @@ -128,6 +141,5 @@ public static StorageClass Get(string name, Input id, CustomResourceOpti return new StorageClass(name, default(Types.Inputs.Storage.V1Beta1.StorageClassArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Storage/V1Beta1/StorageClassList.cs b/sdk/dotnet/Storage/V1Beta1/StorageClassList.cs index 4b7e403e2a..fb1e6d868c 100755 --- a/sdk/dotnet/Storage/V1Beta1/StorageClassList.cs +++ b/sdk/dotnet/Storage/V1Beta1/StorageClassList.cs @@ -51,7 +51,7 @@ public partial class StorageClassList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public StorageClassList(string name, Types.Inputs.Storage.V1Beta1.StorageClassListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:storage.k8s.io/v1beta1:StorageClassList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:storage.k8s.io/v1beta1:StorageClassList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Storage.V1Beta1.St return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing StorageClassList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static StorageClassList Get(string name, Input id, CustomResource return new StorageClassList(name, default(Types.Inputs.Storage.V1Beta1.StorageClassListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Storage/V1Beta1/VolumeAttachment.cs b/sdk/dotnet/Storage/V1Beta1/VolumeAttachment.cs index 132ffa8909..859c459e91 100755 --- a/sdk/dotnet/Storage/V1Beta1/VolumeAttachment.cs +++ b/sdk/dotnet/Storage/V1Beta1/VolumeAttachment.cs @@ -62,7 +62,7 @@ public partial class VolumeAttachment : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public VolumeAttachment(string name, Types.Inputs.Storage.V1Beta1.VolumeAttachmentArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:storage.k8s.io/v1beta1:VolumeAttachment", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:storage.k8s.io/v1beta1:VolumeAttachment", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -79,6 +79,20 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Storage.V1Beta1.Vo return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + var extraOptions = new CustomResourceOptions + { + Aliases = + { + new Alias { Type = "kubernetes:storage.k8s.io/v1:VolumeAttachment" }, + new Alias { Type = "kubernetes:storage.k8s.io/v1alpha1:VolumeAttachment" }, + } + }; + + return CustomResourceOptions.Merge(options, extraOptions); + } + /// /// Get an existing VolumeAttachment resource's state with the given name and ID. /// @@ -90,6 +104,5 @@ public static VolumeAttachment Get(string name, Input id, CustomResource return new VolumeAttachment(name, default(Types.Inputs.Storage.V1Beta1.VolumeAttachmentArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } } diff --git a/sdk/dotnet/Storage/V1Beta1/VolumeAttachmentList.cs b/sdk/dotnet/Storage/V1Beta1/VolumeAttachmentList.cs index 858da8669f..4423606b36 100755 --- a/sdk/dotnet/Storage/V1Beta1/VolumeAttachmentList.cs +++ b/sdk/dotnet/Storage/V1Beta1/VolumeAttachmentList.cs @@ -51,7 +51,7 @@ public partial class VolumeAttachmentList : KubernetesResource /// The arguments used to populate this resource's properties /// A bag of options that control this resource's behavior public VolumeAttachmentList(string name, Types.Inputs.Storage.V1Beta1.VolumeAttachmentListArgs? args = null, CustomResourceOptions? options = null) - : base("kubernetes:storage.k8s.io/v1beta1:VolumeAttachmentList", name, SetAPIKindAndVersion(args), options) + : base("kubernetes:storage.k8s.io/v1beta1:VolumeAttachmentList", name, SetAPIKindAndVersion(args), MakeOptions(options)) { } @@ -68,6 +68,11 @@ private static ResourceArgs SetAPIKindAndVersion(Types.Inputs.Storage.V1Beta1.Vo return args; } + private static CustomResourceOptions? MakeOptions(CustomResourceOptions? options) + { + return options; + } + /// /// Get an existing VolumeAttachmentList resource's state with the given name and ID. /// @@ -79,6 +84,5 @@ public static VolumeAttachmentList Get(string name, Input id, CustomReso return new VolumeAttachmentList(name, default(Types.Inputs.Storage.V1Beta1.VolumeAttachmentListArgs), CustomResourceOptions.Merge(options, new CustomResourceOptions {Id = id})); } - } }