pulumi/tests/testdata/codegen/other-owned/dotnet/ArgFunction.cs

58 lines
1.8 KiB
C#

// *** WARNING: this file was generated by test. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
using System;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Threading.Tasks;
using Pulumi.Serialization;
using Pulumi;
namespace Other.Example
{
public static class ArgFunction
{
public static Task<ArgFunctionResult> InvokeAsync(ArgFunctionArgs? args = null, InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.InvokeAsync<ArgFunctionResult>("example::argFunction", args ?? new ArgFunctionArgs(), options.WithDefaults());
public static Output<ArgFunctionResult> Invoke(ArgFunctionInvokeArgs? args = null, InvokeOptions? options = null)
=> global::Pulumi.Deployment.Instance.Invoke<ArgFunctionResult>("example::argFunction", args ?? new ArgFunctionInvokeArgs(), options.WithDefaults());
}
public sealed class ArgFunctionArgs : global::Pulumi.InvokeArgs
{
[Input("arg1")]
public Other.Example.Resource? Arg1 { get; set; }
public ArgFunctionArgs()
{
}
public static new ArgFunctionArgs Empty => new ArgFunctionArgs();
}
public sealed class ArgFunctionInvokeArgs : global::Pulumi.InvokeArgs
{
[Input("arg1")]
public Input<Other.Example.Resource>? Arg1 { get; set; }
public ArgFunctionInvokeArgs()
{
}
public static new ArgFunctionInvokeArgs Empty => new ArgFunctionInvokeArgs();
}
[OutputType]
public sealed class ArgFunctionResult
{
public readonly Other.Example.Resource? Result;
[OutputConstructor]
private ArgFunctionResult(Other.Example.Resource? result)
{
Result = result;
}
}
}