88//------------------------------------------------------------------------------
99namespace Aspire . Hosting
1010{
11- public partial class AzureCosmosDBResource : Azure . AzureProvisioningResource , ApplicationModel . IResourceWithConnectionString , ApplicationModel . IResource , ApplicationModel . IManifestExpressionProvider , ApplicationModel . IValueProvider , ApplicationModel . IValueWithReferences , ApplicationModel . IResourceWithEndpoints
11+ public partial class AzureCosmosDBResource : Azure . AzureProvisioningResource , ApplicationModel . IResourceWithConnectionString , ApplicationModel . IResource , ApplicationModel . IManifestExpressionProvider , ApplicationModel . IValueProvider , ApplicationModel . IValueWithReferences , ApplicationModel . IResourceWithEndpoints , Azure . IResourceWithAzureFunctionsConfig
1212 {
1313 public AzureCosmosDBResource ( string name , System . Action < Azure . AzureResourceInfrastructure > configureInfrastructure ) : base ( default ! , default ! ) { }
1414
1515 public Azure . BicepSecretOutputReference ConnectionString { get { throw null ; } }
1616
1717 public ApplicationModel . ReferenceExpression ConnectionStringExpression { get { throw null ; } }
1818
19+ public Azure . BicepOutputReference ConnectionStringOutput { get { throw null ; } }
20+
1921 public bool IsEmulator { get { throw null ; } }
22+
23+ [ System . Diagnostics . CodeAnalysis . MemberNotNullWhen ( true , "ConnectionStringSecretOutput" ) ]
24+ public bool UseAccessKeyAuthentication { get { throw null ; } }
25+
26+ void Azure . IResourceWithAzureFunctionsConfig . ApplyAzureFunctionsConfiguration ( System . Collections . Generic . IDictionary < string , object > target , string connectionName ) { }
2027 }
2128
2229 public static partial class AzureCosmosExtensions
2330 {
2431 public static ApplicationModel . IResourceBuilder < AzureCosmosDBResource > AddAzureCosmosDB ( this IDistributedApplicationBuilder builder , string name ) { throw null ; }
2532
33+ public static ApplicationModel . IResourceBuilder < Azure . AzureCosmosDBContainerResource > AddContainer ( this ApplicationModel . IResourceBuilder < Azure . AzureCosmosDBDatabaseResource > builder , string name , string partitionKeyPath , string ? containerName = null ) { throw null ; }
34+
35+ public static ApplicationModel . IResourceBuilder < Azure . AzureCosmosDBDatabaseResource > AddCosmosDatabase ( this ApplicationModel . IResourceBuilder < AzureCosmosDBResource > builder , string name , string ? databaseName = null ) { throw null ; }
36+
37+ [ System . Obsolete ( "This method is obsolete because it has the wrong return type and will be removed in a future version. Use AddCosmosDatabase instead to add a Cosmos DB database." ) ]
2638 public static ApplicationModel . IResourceBuilder < AzureCosmosDBResource > AddDatabase ( this ApplicationModel . IResourceBuilder < AzureCosmosDBResource > builder , string databaseName ) { throw null ; }
2739
2840 public static ApplicationModel . IResourceBuilder < AzureCosmosDBResource > RunAsEmulator ( this ApplicationModel . IResourceBuilder < AzureCosmosDBResource > builder , System . Action < ApplicationModel . IResourceBuilder < Azure . AzureCosmosDBEmulatorResource > > ? configureContainer = null ) { throw null ; }
2941
42+ [ System . Diagnostics . CodeAnalysis . Experimental ( "ASPIRECOSMOSDB001" , UrlFormat = "https://aka.ms/dotnet/aspire/diagnostics#{0}" ) ]
43+ public static ApplicationModel . IResourceBuilder < AzureCosmosDBResource > RunAsPreviewEmulator ( this ApplicationModel . IResourceBuilder < AzureCosmosDBResource > builder , System . Action < ApplicationModel . IResourceBuilder < Azure . AzureCosmosDBEmulatorResource > > ? configureContainer = null ) { throw null ; }
44+
45+ public static ApplicationModel . IResourceBuilder < AzureCosmosDBResource > WithAccessKeyAuthentication ( this ApplicationModel . IResourceBuilder < AzureCosmosDBResource > builder ) { throw null ; }
46+
47+ [ System . Diagnostics . CodeAnalysis . Experimental ( "ASPIRECOSMOSDB001" , UrlFormat = "https://aka.ms/dotnet/aspire/diagnostics#{0}" ) ]
48+ public static ApplicationModel . IResourceBuilder < Azure . AzureCosmosDBEmulatorResource > WithDataExplorer ( this ApplicationModel . IResourceBuilder < Azure . AzureCosmosDBEmulatorResource > builder , int ? port = null ) { throw null ; }
49+
3050 public static ApplicationModel . IResourceBuilder < Azure . AzureCosmosDBEmulatorResource > WithDataVolume ( this ApplicationModel . IResourceBuilder < Azure . AzureCosmosDBEmulatorResource > builder , string ? name = null ) { throw null ; }
3151
3252 public static ApplicationModel . IResourceBuilder < Azure . AzureCosmosDBEmulatorResource > WithGatewayPort ( this ApplicationModel . IResourceBuilder < Azure . AzureCosmosDBEmulatorResource > builder , int ? port ) { throw null ; }
@@ -37,12 +57,38 @@ public static partial class AzureCosmosExtensions
3757
3858namespace Aspire . Hosting . Azure
3959{
60+ public partial class AzureCosmosDBContainerResource : ApplicationModel . Resource , ApplicationModel . IResourceWithParent < AzureCosmosDBDatabaseResource > , ApplicationModel . IResourceWithParent , ApplicationModel . IResource , ApplicationModel . IResourceWithConnectionString , ApplicationModel . IManifestExpressionProvider , ApplicationModel . IValueProvider , ApplicationModel . IValueWithReferences , IResourceWithAzureFunctionsConfig
61+ {
62+ public AzureCosmosDBContainerResource ( string name , string containerName , string partitionKeyPath , AzureCosmosDBDatabaseResource parent ) : base ( default ! ) { }
63+
64+ public ApplicationModel . ReferenceExpression ConnectionStringExpression { get { throw null ; } }
65+
66+ public string ContainerName { get { throw null ; } set { } }
67+
68+ public AzureCosmosDBDatabaseResource Parent { get { throw null ; } }
69+
70+ public string PartitionKeyPath { get { throw null ; } set { } }
71+
72+ void IResourceWithAzureFunctionsConfig . ApplyAzureFunctionsConfiguration ( System . Collections . Generic . IDictionary < string , object > target , string connectionName ) { }
73+ }
74+
75+ public partial class AzureCosmosDBDatabaseResource : ApplicationModel . Resource , ApplicationModel . IResourceWithParent < AzureCosmosDBResource > , ApplicationModel . IResourceWithParent , ApplicationModel . IResource , ApplicationModel . IResourceWithConnectionString , ApplicationModel . IManifestExpressionProvider , ApplicationModel . IValueProvider , ApplicationModel . IValueWithReferences , IResourceWithAzureFunctionsConfig
76+ {
77+ public AzureCosmosDBDatabaseResource ( string name , string databaseName , AzureCosmosDBResource parent ) : base ( default ! ) { }
78+
79+ public ApplicationModel . ReferenceExpression ConnectionStringExpression { get { throw null ; } }
80+
81+ public string DatabaseName { get { throw null ; } set { } }
82+
83+ public AzureCosmosDBResource Parent { get { throw null ; } }
84+
85+ void IResourceWithAzureFunctionsConfig . ApplyAzureFunctionsConfiguration ( System . Collections . Generic . IDictionary < string , object > target , string connectionName ) { }
86+ }
87+
4088 public partial class AzureCosmosDBEmulatorResource : ApplicationModel . ContainerResource , ApplicationModel . IResource
4189 {
4290 public AzureCosmosDBEmulatorResource ( AzureCosmosDBResource innerResource ) : base ( default ! , default ) { }
4391
4492 public override ApplicationModel . ResourceAnnotationCollection Annotations { get { throw null ; } }
45-
46- public override string Name { get { throw null ; } }
4793 }
4894}
0 commit comments