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