github.com/myhau/pulumi/pkg/v3@v3.70.2-0.20221116134521-f2775972e587/codegen/testing/test/testdata/external-resource-schema/dotnet/Provider.cs (about) 1 // *** WARNING: this file was generated by test. *** 2 // *** Do not edit by hand unless you're certain you know what you are doing! *** 3 4 using System; 5 using System.Collections.Generic; 6 using System.Collections.Immutable; 7 using System.Threading.Tasks; 8 using Pulumi.Serialization; 9 10 namespace Pulumi.Example 11 { 12 [ExampleResourceType("pulumi:providers:example")] 13 public partial class Provider : global::Pulumi.ProviderResource 14 { 15 /// <summary> 16 /// Create a Provider resource with the given unique name, arguments, and options. 17 /// </summary> 18 /// 19 /// <param name="name">The unique name of the resource</param> 20 /// <param name="args">The arguments used to populate this resource's properties</param> 21 /// <param name="options">A bag of options that control this resource's behavior</param> 22 public Provider(string name, ProviderArgs? args = null, CustomResourceOptions? options = null) 23 : base("example", name, args ?? new ProviderArgs(), MakeResourceOptions(options, "")) 24 { 25 } 26 27 private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id) 28 { 29 var defaultOptions = new CustomResourceOptions 30 { 31 Version = Utilities.Version, 32 }; 33 var merged = CustomResourceOptions.Merge(defaultOptions, options); 34 // Override the ID if one was specified for consistency with other language SDKs. 35 merged.Id = id ?? merged.Id; 36 return merged; 37 } 38 } 39 40 public sealed class ProviderArgs : global::Pulumi.ResourceArgs 41 { 42 public ProviderArgs() 43 { 44 } 45 public static new ProviderArgs Empty => new ProviderArgs(); 46 } 47 }