Skip to content

Commit

Permalink
maintain binary compat
Browse files Browse the repository at this point in the history
  • Loading branch information
Zaid-Ajaj committed Feb 22, 2025
1 parent 49b2b68 commit 0467f31
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions sdk/Pulumi/Resources/ComponentResource.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,25 @@ public ComponentResource(string type, string name, ComponentResourceOptions? opt
{
}

/// <summary>
/// Creates and registers a new component resource. <paramref name="type"/> is the fully
/// qualified type token and <paramref name="name"/> is the "name" part to use in creating a
/// stable and globally unique URN for the object. <c>options.parent</c> 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.
/// </summary>
/// <param name="type">The type of the resource.</param>
/// <param name="name">The unique name of the resource.</param>
/// <param name="args">The arguments to use to populate the new resource.</param>
/// <param name="options">A bag of options that control this resource's behavior.</param>
/// <param name="remote">True if this is a remote component resource.</param>
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)
{

}

/// <summary>
/// Creates and registers a new component resource. <paramref name="type"/> is the fully
/// qualified type token and <paramref name="name"/> is the "name" part to use in creating a
Expand All @@ -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
Expand Down

0 comments on commit 0467f31

Please sign in to comment.