github.com/myhau/pulumi/pkg/v3@v3.70.2-0.20221116134521-f2775972e587/codegen/testing/test/testdata/plain-object-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  
    10  namespace Pulumi.Example
    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>("example::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>("example::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 Inputs.HelmReleaseSettings? 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              B = "defValue";
    45          }
    46          public static new FuncWithAllOptionalInputsArgs Empty => new FuncWithAllOptionalInputsArgs();
    47      }
    48  
    49      public sealed class FuncWithAllOptionalInputsInvokeArgs : global::Pulumi.InvokeArgs
    50      {
    51          /// <summary>
    52          /// Property A
    53          /// </summary>
    54          [Input("a")]
    55          public Input<Inputs.HelmReleaseSettingsArgs>? A { get; set; }
    56  
    57          /// <summary>
    58          /// Property B
    59          /// </summary>
    60          [Input("b")]
    61          public Input<string>? B { get; set; }
    62  
    63          public FuncWithAllOptionalInputsInvokeArgs()
    64          {
    65              B = "defValue";
    66          }
    67          public static new FuncWithAllOptionalInputsInvokeArgs Empty => new FuncWithAllOptionalInputsInvokeArgs();
    68      }
    69  
    70  
    71      [OutputType]
    72      public sealed class FuncWithAllOptionalInputsResult
    73      {
    74          public readonly string R;
    75  
    76          [OutputConstructor]
    77          private FuncWithAllOptionalInputsResult(string r)
    78          {
    79              R = r;
    80          }
    81      }
    82  }