-
Notifications
You must be signed in to change notification settings - Fork 182
Expand file tree
/
Copy pathCommunityToolkit.Aspire.Hosting.Bitwarden.SecretManager.cs
More file actions
141 lines (101 loc) · 12.2 KB
/
Copy pathCommunityToolkit.Aspire.Hosting.Bitwarden.SecretManager.cs
File metadata and controls
141 lines (101 loc) · 12.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Aspire.Hosting
{
public static partial class BitwardenSecretManagerExtensions
{
[AspireExport]
public static ApplicationModel.IResourceBuilder<ApplicationModel.BitwardenSecretManagerResource> AddBitwardenSecretManager(this IDistributedApplicationBuilder builder, string name, ApplicationModel.IResourceBuilder<ApplicationModel.ParameterResource> projectNameOrId, ApplicationModel.IResourceBuilder<ApplicationModel.ParameterResource> organizationId, ApplicationModel.IResourceBuilder<ApplicationModel.ParameterResource> accessToken) { throw null; }
[AspireExport("addSecretWithRemoteName")]
public static ApplicationModel.IResourceBuilder<ApplicationModel.BitwardenSecretResource> AddSecret(this ApplicationModel.IResourceBuilder<ApplicationModel.BitwardenSecretManagerResource> builder, string name, string remoteName) { throw null; }
[AspireExport]
public static ApplicationModel.IResourceBuilder<ApplicationModel.BitwardenSecretResource> AddSecret(this ApplicationModel.IResourceBuilder<ApplicationModel.BitwardenSecretManagerResource> builder, string name) { throw null; }
[AspireExport]
public static ApplicationModel.IExpressionValue AsSecretId(this ApplicationModel.IResourceBuilder<ApplicationModel.BitwardenSecretResource> secret) { throw null; }
[AspireExport("getSecretById")]
public static ApplicationModel.IResourceBuilder<ApplicationModel.BitwardenSecretResource> GetSecret(this ApplicationModel.IResourceBuilder<ApplicationModel.BitwardenSecretManagerResource> builder, string name, System.Guid secretId) { throw null; }
[AspireExport("getSecretWithRemoteName")]
public static ApplicationModel.IResourceBuilder<ApplicationModel.BitwardenSecretResource> GetSecret(this ApplicationModel.IResourceBuilder<ApplicationModel.BitwardenSecretManagerResource> builder, string name, string remoteName) { throw null; }
[AspireExport]
public static ApplicationModel.IResourceBuilder<ApplicationModel.BitwardenSecretResource> GetSecret(this ApplicationModel.IResourceBuilder<ApplicationModel.BitwardenSecretManagerResource> builder, string name) { throw null; }
[AspireExportIgnore(Reason = "EndpointReference is not ATS-compatible; polyglot apphosts use the string variant")]
public static ApplicationModel.IResourceBuilder<ApplicationModel.BitwardenSecretManagerResource> WithApiUrl(this ApplicationModel.IResourceBuilder<ApplicationModel.BitwardenSecretManagerResource> builder, ApplicationModel.EndpointReference endpoint) { throw null; }
[AspireExport("withApiUrlFromParameter")]
public static ApplicationModel.IResourceBuilder<ApplicationModel.BitwardenSecretManagerResource> WithApiUrl(this ApplicationModel.IResourceBuilder<ApplicationModel.BitwardenSecretManagerResource> builder, ApplicationModel.IResourceBuilder<ApplicationModel.ParameterResource> apiUrl) { throw null; }
[AspireExport("withApiUrlFromExternalService")]
public static ApplicationModel.IResourceBuilder<ApplicationModel.BitwardenSecretManagerResource> WithApiUrl(this ApplicationModel.IResourceBuilder<ApplicationModel.BitwardenSecretManagerResource> builder, ApplicationModel.IResourceBuilder<ExternalServiceResource> server) { throw null; }
[AspireExport]
public static ApplicationModel.IResourceBuilder<ApplicationModel.BitwardenSecretManagerResource> WithApiUrl(this ApplicationModel.IResourceBuilder<ApplicationModel.BitwardenSecretManagerResource> builder, string apiUrl) { throw null; }
[AspireExport]
public static ApplicationModel.IResourceBuilder<ApplicationModel.BitwardenSecretManagerResource> WithAuthCacheDirectory(this ApplicationModel.IResourceBuilder<ApplicationModel.BitwardenSecretManagerResource> builder, string authCacheDirectory) { throw null; }
[AspireExport("withBitwardenReferenceAccessToken")]
public static ApplicationModel.IResourceBuilder<TDestination> WithBitwardenAccessToken<TDestination>(this ApplicationModel.IResourceBuilder<TDestination> builder, ApplicationModel.IResourceBuilder<ApplicationModel.BitwardenSecretManagerResource> source, ApplicationModel.IResourceBuilder<ApplicationModel.ParameterResource> accessToken)
where TDestination : ApplicationModel.IResourceWithEnvironment { throw null; }
[AspireExportIgnore(Reason = "Use the source-based overload for the common case; this overload is for the edge case of a custom connection name passed to WithReference")]
public static ApplicationModel.IResourceBuilder<TDestination> WithBitwardenAccessToken<TDestination>(this ApplicationModel.IResourceBuilder<TDestination> builder, string connectionName, ApplicationModel.IResourceBuilder<ApplicationModel.ParameterResource> accessToken)
where TDestination : ApplicationModel.IResourceWithEnvironment { throw null; }
[AspireExport("withBitwardenReferenceAuthCacheDirectoryFromParameter")]
public static ApplicationModel.IResourceBuilder<TDestination> WithBitwardenAuthCacheDirectory<TDestination>(this ApplicationModel.IResourceBuilder<TDestination> builder, ApplicationModel.IResourceBuilder<ApplicationModel.BitwardenSecretManagerResource> source, ApplicationModel.IResourceBuilder<ApplicationModel.ParameterResource> authCacheDirectory)
where TDestination : ApplicationModel.IResourceWithEnvironment { throw null; }
[AspireExport("withBitwardenReferenceAuthCacheDirectory")]
public static ApplicationModel.IResourceBuilder<TDestination> WithBitwardenAuthCacheDirectory<TDestination>(this ApplicationModel.IResourceBuilder<TDestination> builder, ApplicationModel.IResourceBuilder<ApplicationModel.BitwardenSecretManagerResource> source, string authCacheDirectory)
where TDestination : ApplicationModel.IResourceWithEnvironment { throw null; }
[AspireExportIgnore(Reason = "Use the source-based overload for the common case; this overload is for the edge case of a custom connection name passed to WithReference")]
public static ApplicationModel.IResourceBuilder<TDestination> WithBitwardenAuthCacheDirectory<TDestination>(this ApplicationModel.IResourceBuilder<TDestination> builder, string connectionName, ApplicationModel.IResourceBuilder<ApplicationModel.ParameterResource> authCacheDirectory)
where TDestination : ApplicationModel.IResourceWithEnvironment { throw null; }
[AspireExportIgnore(Reason = "Use the source-based overload for the common case; this overload is for the edge case of a custom connection name passed to WithReference")]
public static ApplicationModel.IResourceBuilder<TDestination> WithBitwardenAuthCacheDirectory<TDestination>(this ApplicationModel.IResourceBuilder<TDestination> builder, string connectionName, string authCacheDirectory)
where TDestination : ApplicationModel.IResourceWithEnvironment { throw null; }
[AspireExport("withBitwardenReferenceAuthCacheVolume")]
public static ApplicationModel.IResourceBuilder<TDestination> WithBitwardenAuthCacheVolume<TDestination>(this ApplicationModel.IResourceBuilder<TDestination> builder, ApplicationModel.IResourceBuilder<ApplicationModel.BitwardenSecretManagerResource> source, string? volumeName = null, string containerDirectory = "/var/lib/bitwarden")
where TDestination : ApplicationModel.IResourceWithEnvironment { throw null; }
[AspireExportIgnore(Reason = "Use the source-based overload for the common case; this overload is for the edge case of a custom connection name passed to WithReference")]
public static ApplicationModel.IResourceBuilder<TDestination> WithBitwardenAuthCacheVolume<TDestination>(this ApplicationModel.IResourceBuilder<TDestination> builder, string connectionName, string? volumeName = null, string containerDirectory = "/var/lib/bitwarden")
where TDestination : ApplicationModel.IResourceWithEnvironment { throw null; }
[AspireExport]
public static ApplicationModel.IResourceBuilder<ApplicationModel.BitwardenSecretManagerResource> WithCacheFile(this ApplicationModel.IResourceBuilder<ApplicationModel.BitwardenSecretManagerResource> builder, string cacheFile) { throw null; }
[AspireExportIgnore(Reason = "EndpointReference is not ATS-compatible; polyglot apphosts use the string variant")]
public static ApplicationModel.IResourceBuilder<ApplicationModel.BitwardenSecretManagerResource> WithIdentityUrl(this ApplicationModel.IResourceBuilder<ApplicationModel.BitwardenSecretManagerResource> builder, ApplicationModel.EndpointReference endpoint) { throw null; }
[AspireExport("withIdentityUrlFromParameter")]
public static ApplicationModel.IResourceBuilder<ApplicationModel.BitwardenSecretManagerResource> WithIdentityUrl(this ApplicationModel.IResourceBuilder<ApplicationModel.BitwardenSecretManagerResource> builder, ApplicationModel.IResourceBuilder<ApplicationModel.ParameterResource> identityUrl) { throw null; }
[AspireExport("withIdentityUrlFromExternalService")]
public static ApplicationModel.IResourceBuilder<ApplicationModel.BitwardenSecretManagerResource> WithIdentityUrl(this ApplicationModel.IResourceBuilder<ApplicationModel.BitwardenSecretManagerResource> builder, ApplicationModel.IResourceBuilder<ExternalServiceResource> server) { throw null; }
[AspireExport]
public static ApplicationModel.IResourceBuilder<ApplicationModel.BitwardenSecretManagerResource> WithIdentityUrl(this ApplicationModel.IResourceBuilder<ApplicationModel.BitwardenSecretManagerResource> builder, string identityUrl) { throw null; }
[AspireExport("withBitwardenSecretManagerReference")]
public static ApplicationModel.IResourceBuilder<TDestination> WithReference<TDestination>(this ApplicationModel.IResourceBuilder<TDestination> builder, ApplicationModel.IResourceBuilder<ApplicationModel.BitwardenSecretManagerResource> source, string? connectionName = null)
where TDestination : ApplicationModel.IResourceWithEnvironment { throw null; }
}
}
namespace Aspire.Hosting.ApplicationModel
{
[AspireExport]
public partial class BitwardenSecretManagerResource : Resource, IResourceWithWaitSupport, IResource
{
public BitwardenSecretManagerResource(string name, ParameterResource projectNameOrIdParameter, ParameterResource organizationIdParameter, ParameterResource managementAccessToken, string appHostDirectory) : base(default!) { }
public string? AuthCacheDirectory { get { throw null; } }
public string? CacheFile { get { throw null; } }
public System.Guid? ExistingProjectId { get { throw null; } }
public System.Guid? ProjectId { get { throw null; } }
}
[AspireExport]
public partial class BitwardenSecretResource : ParameterResource, IResourceWithParent<BitwardenSecretManagerResource>, IResourceWithParent, IResource, IManifestExpressionProvider, IValueProvider, IValueWithReferences
{
public BitwardenSecretResource(string name, string remoteName, BitwardenSecretManagerResource parent, System.Func<ParameterDefault?, string> valueGetter) : base(default!, default!, default) { }
string IManifestExpressionProvider.ValueExpression { get { throw null; } }
System.Collections.Generic.IEnumerable<object> IValueWithReferences.References { get { throw null; } }
public bool IsManaged { get { throw null; } }
public BitwardenSecretManagerResource Parent { get { throw null; } }
public string RemoteName { get { throw null; } }
public System.Guid? ResolvedSecretId { get { throw null; } }
public System.Guid? SecretId { get { throw null; } }
System.Threading.Tasks.ValueTask<string?> IValueProvider.GetValueAsync(ValueProviderContext context, System.Threading.CancellationToken cancellationToken) { throw null; }
System.Threading.Tasks.ValueTask<string?> IValueProvider.GetValueAsync(System.Threading.CancellationToken cancellationToken) { throw null; }
}
}