github.com/myhau/pulumi/pkg/v3@v3.70.2-0.20221116134521-f2775972e587/codegen/testing/test/testdata/provider-config-schema/dotnet/Configstation/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;
    10  
    11  namespace Configstation.Pulumi.Configstation
    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>("configstation::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>("configstation::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 string? 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          }
    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<string>? 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          }
    66          public static new FuncWithAllOptionalInputsInvokeArgs Empty => new FuncWithAllOptionalInputsInvokeArgs();
    67      }
    68  
    69  
    70      [OutputType]
    71      public sealed class FuncWithAllOptionalInputsResult
    72      {
    73          public readonly string R;
    74  
    75          [OutputConstructor]
    76          private FuncWithAllOptionalInputsResult(string r)
    77          {
    78              R = r;
    79          }
    80      }
    81  }