github.com/myhau/pulumi/pkg/v3@v3.70.2-0.20221116134521-f2775972e587/codegen/testing/test/testdata/output-funcs/dotnet/FuncWithListParam.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.Mypkg 11 { 12 public static class FuncWithListParam 13 { 14 /// <summary> 15 /// Check codegen of functions with a List parameter. 16 /// </summary> 17 public static Task<FuncWithListParamResult> InvokeAsync(FuncWithListParamArgs? args = null, InvokeOptions? options = null) 18 => global::Pulumi.Deployment.Instance.InvokeAsync<FuncWithListParamResult>("mypkg::funcWithListParam", args ?? new FuncWithListParamArgs(), options.WithDefaults()); 19 20 /// <summary> 21 /// Check codegen of functions with a List parameter. 22 /// </summary> 23 public static Output<FuncWithListParamResult> Invoke(FuncWithListParamInvokeArgs? args = null, InvokeOptions? options = null) 24 => global::Pulumi.Deployment.Instance.Invoke<FuncWithListParamResult>("mypkg::funcWithListParam", args ?? new FuncWithListParamInvokeArgs(), options.WithDefaults()); 25 } 26 27 28 public sealed class FuncWithListParamArgs : global::Pulumi.InvokeArgs 29 { 30 [Input("a")] 31 private List<string>? _a; 32 public List<string> A 33 { 34 get => _a ?? (_a = new List<string>()); 35 set => _a = value; 36 } 37 38 [Input("b")] 39 public string? B { get; set; } 40 41 public FuncWithListParamArgs() 42 { 43 } 44 public static new FuncWithListParamArgs Empty => new FuncWithListParamArgs(); 45 } 46 47 public sealed class FuncWithListParamInvokeArgs : global::Pulumi.InvokeArgs 48 { 49 [Input("a")] 50 private InputList<string>? _a; 51 public InputList<string> A 52 { 53 get => _a ?? (_a = new InputList<string>()); 54 set => _a = value; 55 } 56 57 [Input("b")] 58 public Input<string>? B { get; set; } 59 60 public FuncWithListParamInvokeArgs() 61 { 62 } 63 public static new FuncWithListParamInvokeArgs Empty => new FuncWithListParamInvokeArgs(); 64 } 65 66 67 [OutputType] 68 public sealed class FuncWithListParamResult 69 { 70 public readonly string R; 71 72 [OutputConstructor] 73 private FuncWithListParamResult(string r) 74 { 75 R = r; 76 } 77 } 78 }