pulumi/tests/testdata/codegen/simplified-invokes/dotnet/GetArchive.cs

31 lines
1.3 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;
namespace Pulumi.Std
{
public static class GetArchive
{
public static async Task<Archive> InvokeAsync(double? a = null, InvokeOptions? invokeOptions = null)
{
var builder = ImmutableDictionary.CreateBuilder<string, object?>();
builder["a"] = a;
var args = new global::Pulumi.DictionaryInvokeArgs(builder.ToImmutableDictionary());
return await global::Pulumi.Deployment.Instance.InvokeSingleAsync<Archive>("std:index:GetArchive", args, invokeOptions.WithDefaults());
}
public static Output<Archive> Invoke(Input<double?>? a = null, InvokeOptions? invokeOptions = null)
{
var builder = ImmutableDictionary.CreateBuilder<string, object?>();
builder["a"] = a;
var args = new global::Pulumi.DictionaryInvokeArgs(builder.ToImmutableDictionary());
return global::Pulumi.Deployment.Instance.InvokeSingle<Archive>("std:index:GetArchive", args, invokeOptions.WithDefaults());
}
}
}