mirror of https://github.com/pulumi/pulumi.git
57 lines
2.1 KiB
C#
57 lines
2.1 KiB
C#
// *** WARNING: this file was generated by test. ***
|
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections.Immutable;
|
|
using System.Threading.Tasks;
|
|
using Pulumi.Serialization;
|
|
using Pulumi;
|
|
|
|
namespace Other.Example
|
|
{
|
|
[ExampleResourceType("foo::FooResource")]
|
|
public partial class FooResource : global::Pulumi.ComponentResource
|
|
{
|
|
[Output("foo")]
|
|
public Output<Other.Example.Resource?> Foo { get; private set; } = null!;
|
|
|
|
|
|
/// <summary>
|
|
/// Create a FooResource resource with the given unique name, arguments, and options.
|
|
/// </summary>
|
|
///
|
|
/// <param name="name">The unique name of the resource</param>
|
|
/// <param name="args">The arguments used to populate this resource's properties</param>
|
|
/// <param name="options">A bag of options that control this resource's behavior</param>
|
|
public FooResource(string name, FooResourceArgs? args = null, ComponentResourceOptions? options = null)
|
|
: base("foo::FooResource", name, args ?? new FooResourceArgs(), MakeResourceOptions(options, ""), remote: true)
|
|
{
|
|
}
|
|
|
|
private static ComponentResourceOptions MakeResourceOptions(ComponentResourceOptions? options, Input<string>? id)
|
|
{
|
|
var defaultOptions = new ComponentResourceOptions
|
|
{
|
|
Version = Utilities.Version,
|
|
PluginDownloadURL = "example.com/download",
|
|
};
|
|
var merged = ComponentResourceOptions.Merge(defaultOptions, options);
|
|
// Override the ID if one was specified for consistency with other language SDKs.
|
|
merged.Id = id ?? merged.Id;
|
|
return merged;
|
|
}
|
|
}
|
|
|
|
public sealed class FooResourceArgs : global::Pulumi.ResourceArgs
|
|
{
|
|
[Input("foo")]
|
|
public Input<Other.Example.Resource>? Foo { get; set; }
|
|
|
|
public FooResourceArgs()
|
|
{
|
|
}
|
|
public static new FooResourceArgs Empty => new FooResourceArgs();
|
|
}
|
|
}
|