github.com/myhau/pulumi/pkg/v3@v3.70.2-0.20221116134521-f2775972e587/codegen/testing/test/testdata/output-funcs/dotnet/GetClientConfig.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.Mypkg 11 { 12 public static class GetClientConfig 13 { 14 /// <summary> 15 /// Failing example taken from azure-native. Original doc: Use this function to access the current configuration of the native Azure provider. 16 /// </summary> 17 public static Task<GetClientConfigResult> InvokeAsync(InvokeOptions? options = null) 18 => global::Pulumi.Deployment.Instance.InvokeAsync<GetClientConfigResult>("mypkg::getClientConfig", InvokeArgs.Empty, options.WithDefaults()); 19 } 20 21 22 [OutputType] 23 public sealed class GetClientConfigResult 24 { 25 /// <summary> 26 /// Azure Client ID (Application Object ID). 27 /// </summary> 28 public readonly string ClientId; 29 /// <summary> 30 /// Azure Object ID of the current user or service principal. 31 /// </summary> 32 public readonly string ObjectId; 33 /// <summary> 34 /// Azure Subscription ID 35 /// </summary> 36 public readonly string SubscriptionId; 37 /// <summary> 38 /// Azure Tenant ID 39 /// </summary> 40 public readonly string TenantId; 41 42 [OutputConstructor] 43 private GetClientConfigResult( 44 string clientId, 45 46 string objectId, 47 48 string subscriptionId, 49 50 string tenantId) 51 { 52 ClientId = clientId; 53 ObjectId = objectId; 54 SubscriptionId = subscriptionId; 55 TenantId = tenantId; 56 } 57 } 58 }