github.com/myhau/pulumi/pkg/v3@v3.70.2-0.20221116134521-f2775972e587/codegen/testing/test/testdata/simple-yaml-schema/dotnet/ArgFunction.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 ArgFunction
    13      {
    14          public static Task<ArgFunctionResult> InvokeAsync(ArgFunctionArgs? args = null, InvokeOptions? options = null)
    15              => global::Pulumi.Deployment.Instance.InvokeAsync<ArgFunctionResult>("example::argFunction", args ?? new ArgFunctionArgs(), options.WithDefaults());
    16  
    17          public static Output<ArgFunctionResult> Invoke(ArgFunctionInvokeArgs? args = null, InvokeOptions? options = null)
    18              => global::Pulumi.Deployment.Instance.Invoke<ArgFunctionResult>("example::argFunction", args ?? new ArgFunctionInvokeArgs(), options.WithDefaults());
    19      }
    20  
    21  
    22      public sealed class ArgFunctionArgs : global::Pulumi.InvokeArgs
    23      {
    24          [Input("arg1")]
    25          public Pulumi.Example.Resource? Arg1 { get; set; }
    26  
    27          public ArgFunctionArgs()
    28          {
    29          }
    30          public static new ArgFunctionArgs Empty => new ArgFunctionArgs();
    31      }
    32  
    33      public sealed class ArgFunctionInvokeArgs : global::Pulumi.InvokeArgs
    34      {
    35          [Input("arg1")]
    36          public Input<Pulumi.Example.Resource>? Arg1 { get; set; }
    37  
    38          public ArgFunctionInvokeArgs()
    39          {
    40          }
    41          public static new ArgFunctionInvokeArgs Empty => new ArgFunctionInvokeArgs();
    42      }
    43  
    44  
    45      [OutputType]
    46      public sealed class ArgFunctionResult
    47      {
    48          public readonly Pulumi.Example.Resource? Result;
    49  
    50          [OutputConstructor]
    51          private ArgFunctionResult(Pulumi.Example.Resource? result)
    52          {
    53              Result = result;
    54          }
    55      }
    56  }