-
-
Save t0yv0/a9139fd04f28a5d4e8f1cf20909023ae to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// *** WARNING: this file was generated by . *** | |
// *** 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.AzureNative.Codegentest | |
{ | |
public static class ListStorageAccountKeys | |
{ | |
/// <summary> | |
/// The response from the ListKeys operation. | |
/// </summary> | |
public static Task<ListStorageAccountKeysResult> InvokeAsync(ListStorageAccountKeysArgs args, InvokeOptions? options = null) | |
=> Pulumi.Deployment.Instance.InvokeAsync<ListStorageAccountKeysResult>("azure-native:codegentest:listStorageAccountKeys", args ?? new ListStorageAccountKeysArgs(), options.WithVersion()); | |
/// TODO is there any less verbose way to do this? | |
public static Output<ListStorageAccountKeysResult> Apply(ListStorageAccountKeysApplyArgs args, InvokeOptions? options = null) | |
{ | |
return Output.Tuple(args.AccountName, args.Expand, args.ResourceGroupName) | |
.Apply(t => InvokeAsync(new ListStorageAccountKeysArgs | |
{ | |
AccountName = t.Item1, | |
Expand = t.Item2, | |
ResourceGroupName = t.Item3 | |
}, options)); | |
} | |
} | |
public sealed class ListStorageAccountKeysArgs : Pulumi.InvokeArgs | |
{ | |
/// <summary> | |
/// The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. | |
/// </summary> | |
[Input("accountName", required: true)] | |
public string AccountName { get; set; } = null!; | |
/// <summary> | |
/// Specifies type of the key to be listed. Possible value is kerb. | |
/// </summary> | |
[Input("expand")] | |
public string? Expand { get; set; } | |
/// <summary> | |
/// The name of the resource group within the user's subscription. The name is case insensitive. | |
/// </summary> | |
[Input("resourceGroupName", required: true)] | |
public string ResourceGroupName { get; set; } = null!; | |
public ListStorageAccountKeysArgs() | |
{ | |
} | |
} | |
public sealed class ListStorageAccountKeysApplyArgs : Pulumi.InvokeArgs | |
{ | |
/// <summary> | |
/// The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only. | |
/// </summary> | |
[Input("accountName", required: true)] | |
public Input<string> AccountName { get; set; } = null!; | |
/// <summary> | |
/// Specifies type of the key to be listed. Possible value is kerb. | |
/// </summary> | |
[Input("expand")] | |
public Input<string>? Expand { get; set; } | |
/// <summary> | |
/// The name of the resource group within the user's subscription. The name is case insensitive. | |
/// </summary> | |
[Input("resourceGroupName", required: true)] | |
public Input<string> ResourceGroupName { get; set; } = null!; | |
public ListStorageAccountKeysApplyArgs() | |
{ | |
} | |
} | |
[OutputType] | |
public sealed class ListStorageAccountKeysResult | |
{ | |
/// <summary> | |
/// Gets the list of storage account keys and their properties for the specified storage account. | |
/// </summary> | |
public readonly ImmutableArray<ImmutableDictionary<string, string>> Keys; | |
[OutputConstructor] | |
private ListStorageAccountKeysResult(ImmutableArray<ImmutableDictionary<string, string>> keys) | |
{ | |
Keys = keys; | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// *** WARNING: this file was generated by . *** | |
// *** 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.MadeupPackage.Codegentest | |
{ | |
public static class FuncWithConstInput | |
{ | |
/// <summary> | |
/// Codegen demo with const inputs | |
/// </summary> | |
public static Task InvokeAsync(FuncWithConstInputArgs? args = null, InvokeOptions? options = null) | |
=> Pulumi.Deployment.Instance.InvokeAsync("madeup-package:codegentest:funcWithConstInput", args ?? new FuncWithConstInputArgs(), options.WithVersion()); | |
public static Output<Object> Apply(FuncWithConstInputApplyArgs? args = null, InvokeOptions? options = null) | |
{ | |
return args.PlainInput | |
.Apply(t => CreateOutputFromTask(InvokeAsync(new FuncWithConstInputArgs | |
{ | |
PlainInput = t | |
}, options))); | |
} | |
// Utilities to move elsewhere.. | |
public static async Task<Object> BoxTask(Task task) | |
{ | |
await task; | |
return null; | |
} | |
public static Output<Object> CreateOutputFromTask(Task ttask) | |
{ | |
return Output.Create(BoxTask(ttask)); | |
} | |
} | |
public sealed class FuncWithConstInputArgs : Pulumi.InvokeArgs | |
{ | |
[Input("plainInput")] | |
public string? PlainInput { get; set; } | |
public FuncWithConstInputArgs() | |
{ | |
} | |
} | |
public sealed class FuncWithConstInputApplyArgs : Pulumi.InvokeArgs | |
{ | |
[Input("plainInput")] | |
public Input<string>? PlainInput { get; set; } | |
public FuncWithConstInputApplyArgs() | |
{ | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment