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