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