From 0467f31282ba236928925fa49b4cbfe89e47d359 Mon Sep 17 00:00:00 2001 From: Zaid Ajaj Date: Sat, 22 Feb 2025 09:29:59 +0100 Subject: [PATCH] maintain binary compat --- sdk/Pulumi/Resources/ComponentResource.cs | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/sdk/Pulumi/Resources/ComponentResource.cs b/sdk/Pulumi/Resources/ComponentResource.cs index d69c1b1f..161083cc 100644 --- a/sdk/Pulumi/Resources/ComponentResource.cs +++ b/sdk/Pulumi/Resources/ComponentResource.cs @@ -32,6 +32,25 @@ public ComponentResource(string type, string name, ComponentResourceOptions? opt { } + /// + /// Creates and registers a new component resource. is the fully + /// qualified type token and is the "name" part to use in creating a + /// stable and globally unique URN for the object. options.parent is the optional parent + /// for this component, and [options.dependsOn] is an optional list of other resources that + /// this resource depends on, controlling the order in which we perform resource operations. + /// + /// The type of the resource. + /// The unique name of the resource. + /// The arguments to use to populate the new resource. + /// A bag of options that control this resource's behavior. + /// True if this is a remote component resource. + public ComponentResource( + string type, string name, ResourceArgs? args, ComponentResourceOptions? options = null, bool remote = false) + : this(type, name, args ?? ResourceArgs.Empty, options ?? new ComponentResourceOptions(), remote, registerPackageRequest: null) + { + + } + /// /// Creates and registers a new component resource. is the fully /// qualified type token and is the "name" part to use in creating a @@ -50,8 +69,8 @@ public ComponentResource( string type, string name, ResourceArgs? args, - ComponentResourceOptions? options = null, - bool remote = false, + ComponentResourceOptions? options, + bool remote, RegisterPackageRequest? registerPackageRequest = null) : base(type, name, custom: false, args ?? ResourceArgs.Empty, options ?? new ComponentResourceOptions(), remote, dependency: false, registerPackageRequest) #pragma warning restore RS0022 // Constructor make noninheritable base class inheritable