Skip to content

[Automated] Update API Surface Area #8736

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,14 @@ public AzureContainerAppCustomizationAnnotation(System.Action<AzureResourceInfra

namespace Aspire.Hosting.Azure.AppContainers
{
public partial class AzureContainerAppEnvironmentResource : AzureProvisioningResource
public partial class AzureContainerAppEnvironmentResource : AzureProvisioningResource, ApplicationModel.IComputeEnvironmentResource, ApplicationModel.IResource, IAzureContainerRegistry, ApplicationModel.IContainerRegistry
{
public AzureContainerAppEnvironmentResource(string name, System.Action<AzureResourceInfrastructure> configureInfrastructure) : base(default!, default!) { }

ApplicationModel.ReferenceExpression ApplicationModel.IContainerRegistry.Endpoint { get { throw null; } }

ApplicationModel.ReferenceExpression ApplicationModel.IContainerRegistry.Name { get { throw null; } }

ApplicationModel.ReferenceExpression IAzureContainerRegistry.ManagedIdentityId { get { throw null; } }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
//------------------------------------------------------------------------------
// <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 AzureAppServiceComputeResourceExtensions
{
public static ApplicationModel.IResourceBuilder<T> PublishAsAzureAppServiceWebsite<T>(this ApplicationModel.IResourceBuilder<T> builder, System.Action<Azure.AzureResourceInfrastructure, global::Azure.Provisioning.AppService.WebSite> configure)
where T : ApplicationModel.IComputeResource { throw null; }
}

public static partial class AzureAppServiceEnvironmentExtensions
{
public static ApplicationModel.IResourceBuilder<Azure.AppService.AzureAppServiceEnvironmentResource> AddAppServiceEnvironment(this IDistributedApplicationBuilder builder, string name) { throw null; }
}
}

namespace Aspire.Hosting.Azure
{
public sealed partial class AzureAppServiceWebsiteCustomizationAnnotation : ApplicationModel.IResourceAnnotation
{
public AzureAppServiceWebsiteCustomizationAnnotation(System.Action<AzureResourceInfrastructure, global::Azure.Provisioning.AppService.WebSite> configure) { }

public System.Action<AzureResourceInfrastructure, global::Azure.Provisioning.AppService.WebSite> Configure { get { throw null; } }
}
}

namespace Aspire.Hosting.Azure.AppService
{
public partial class AzureAppServiceEnvironmentResource : AzureProvisioningResource, ApplicationModel.IComputeEnvironmentResource, ApplicationModel.IResource, IAzureContainerRegistry, ApplicationModel.IContainerRegistry
{
public AzureAppServiceEnvironmentResource(string name, System.Action<AzureResourceInfrastructure> configureInfrastructure) : base(default!, default!) { }

ApplicationModel.ReferenceExpression ApplicationModel.IContainerRegistry.Endpoint { get { throw null; } }

ApplicationModel.ReferenceExpression ApplicationModel.IContainerRegistry.Name { get { throw null; } }

ApplicationModel.ReferenceExpression IAzureContainerRegistry.ManagedIdentityId { get { throw null; } }
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
//------------------------------------------------------------------------------
// <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 AzureContainerRegistryExtensions
{
public static ApplicationModel.IResourceBuilder<Azure.ContainerRegistry.AzureContainerRegistryResource> AddAzureContainerRegistry(this IDistributedApplicationBuilder builder, string name) { throw null; }

public static ApplicationModel.IResourceBuilder<T> WithAzureContainerRegistry<T>(this ApplicationModel.IResourceBuilder<T> builder, ApplicationModel.IResourceBuilder<Azure.ContainerRegistry.AzureContainerRegistryResource> registryBuilder)
where T : ApplicationModel.IResource, ApplicationModel.IComputeEnvironmentResource { throw null; }

public static ApplicationModel.IResourceBuilder<T> WithRoleAssignments<T>(this ApplicationModel.IResourceBuilder<T> builder, ApplicationModel.IResourceBuilder<Azure.ContainerRegistry.AzureContainerRegistryResource> target, params global::Azure.Provisioning.ContainerRegistry.ContainerRegistryBuiltInRole[] roles)
where T : ApplicationModel.IResource { throw null; }
}
}

namespace Aspire.Hosting.Azure.ContainerRegistry
{
public partial class AzureContainerRegistryResource : AzureProvisioningResource, ApplicationModel.IContainerRegistry
{
public AzureContainerRegistryResource(string name, System.Action<AzureResourceInfrastructure> configureInfrastructure) : base(default!, default!) { }

ApplicationModel.ReferenceExpression ApplicationModel.IContainerRegistry.Endpoint { get { throw null; } }

ApplicationModel.ReferenceExpression ApplicationModel.IContainerRegistry.Name { get { throw null; } }

public BicepOutputReference NameOutputReference { get { throw null; } }

public BicepOutputReference RegistryEndpoint { get { throw null; } }

public override global::Azure.Provisioning.Primitives.ProvisionableResource AddAsExistingResource(AzureResourceInfrastructure infra) { throw null; }
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,23 @@
//------------------------------------------------------------------------------
namespace Aspire.Hosting
{
public partial class AzureBlobStorageContainerResource : ApplicationModel.Resource, ApplicationModel.IResourceWithConnectionString, ApplicationModel.IResource, ApplicationModel.IManifestExpressionProvider, ApplicationModel.IValueProvider, ApplicationModel.IValueWithReferences, ApplicationModel.IResourceWithParent<Azure.AzureBlobStorageResource>, ApplicationModel.IResourceWithParent
{
public AzureBlobStorageContainerResource(string name, string blobContainerName, Azure.AzureBlobStorageResource parent) : base(default!) { }

public string BlobContainerName { get { throw null; } }

public ApplicationModel.ReferenceExpression ConnectionStringExpression { get { throw null; } }

public Azure.AzureBlobStorageResource Parent { get { throw null; } }
}

public static partial class AzureStorageExtensions
{
public static ApplicationModel.IResourceBuilder<Azure.AzureStorageResource> AddAzureStorage(this IDistributedApplicationBuilder builder, string name) { throw null; }

public static ApplicationModel.IResourceBuilder<AzureBlobStorageContainerResource> AddBlobContainer(this ApplicationModel.IResourceBuilder<Azure.AzureBlobStorageResource> builder, string name, string? blobContainerName = null) { throw null; }

public static ApplicationModel.IResourceBuilder<Azure.AzureBlobStorageResource> AddBlobs(this ApplicationModel.IResourceBuilder<Azure.AzureStorageResource> builder, string name) { throw null; }

public static ApplicationModel.IResourceBuilder<Azure.AzureQueueStorageResource> AddQueues(this ApplicationModel.IResourceBuilder<Azure.AzureStorageResource> builder, string name) { throw null; }
Expand Down
63 changes: 57 additions & 6 deletions src/Aspire.Hosting.Azure/api/Aspire.Hosting.Azure.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ public static ApplicationModel.IResourceBuilder<T> WithEnvironment<T>(this Appli
public static ApplicationModel.IResourceBuilder<T> WithEnvironment<T>(this ApplicationModel.IResourceBuilder<T> builder, string name, Azure.BicepSecretOutputReference bicepOutputReference)
where T : ApplicationModel.IResourceWithEnvironment { throw null; }

public static ApplicationModel.IResourceBuilder<T> WithEnvironment<T>(this ApplicationModel.IResourceBuilder<T> builder, string name, Azure.IAzureKeyVaultSecretReference secretReference)
where T : ApplicationModel.IResourceWithEnvironment { throw null; }

public static ApplicationModel.IResourceBuilder<T> WithParameter<T>(this ApplicationModel.IResourceBuilder<T> builder, string name, ApplicationModel.EndpointReference value)
where T : Azure.AzureBicepResource { throw null; }

Expand Down Expand Up @@ -67,8 +70,12 @@ public static partial class AzureProvisioningResourceExtensions
{
public static ApplicationModel.IResourceBuilder<Azure.AzureProvisioningResource> AddAzureInfrastructure(this IDistributedApplicationBuilder builder, string name, System.Action<Azure.AzureResourceInfrastructure> configureInfrastructure) { throw null; }

public static global::Azure.Provisioning.KeyVault.KeyVaultSecret AsKeyVaultSecret(this Azure.IAzureKeyVaultSecretReference secretReference, Azure.AzureResourceInfrastructure infrastructure) { throw null; }

public static global::Azure.Provisioning.ProvisioningParameter AsProvisioningParameter(this ApplicationModel.EndpointReference endpointReference, Azure.AzureResourceInfrastructure infrastructure, string parameterName) { throw null; }

public static global::Azure.Provisioning.ProvisioningParameter AsProvisioningParameter(this ApplicationModel.IManifestExpressionProvider manifestExpressionProvider, Azure.AzureResourceInfrastructure infrastructure, string? parameterName = null, bool? isSecure = null) { throw null; }

public static global::Azure.Provisioning.ProvisioningParameter AsProvisioningParameter(this ApplicationModel.IResourceBuilder<ApplicationModel.ParameterResource> parameterResourceBuilder, Azure.AzureResourceInfrastructure infrastructure, string? parameterName = null) { throw null; }

public static global::Azure.Provisioning.ProvisioningParameter AsProvisioningParameter(this ApplicationModel.ParameterResource parameterResource, Azure.AzureResourceInfrastructure infrastructure, string? parameterName = null) { throw null; }
Expand All @@ -85,9 +92,6 @@ public static partial class AzurePublisherExtensions
{
[System.Diagnostics.CodeAnalysis.Experimental("ASPIREAZURE001", UrlFormat = "https://aka.ms/dotnet/aspire/diagnostics#{0}")]
public static IDistributedApplicationBuilder AddAzurePublisher(this IDistributedApplicationBuilder builder, System.Action<Azure.AzurePublisherOptions>? configureOptions = null) { throw null; }

[System.Diagnostics.CodeAnalysis.Experimental("ASPIREPUBLISHERS001", UrlFormat = "https://aka.ms/dotnet/aspire/diagnostics#{0}")]
public static IDistributedApplicationBuilder AddAzurePublisher(this IDistributedApplicationBuilder builder, string name, System.Action<Azure.AzurePublisherOptions>? configureOptions = null) { throw null; }
}

public static partial class AzureResourceExtensions
Expand Down Expand Up @@ -141,10 +145,12 @@ public sealed partial class AspireV8ResourceNamePropertyResolver : global::Azure
public override global::Azure.Provisioning.BicepValue<string>? ResolveName(global::Azure.Provisioning.ProvisioningBuildOptions options, global::Azure.Provisioning.Primitives.ProvisionableResource resource, global::Azure.Provisioning.Primitives.ResourceNameRequirements requirements) { throw null; }
}

public partial class AzureBicepResource : ApplicationModel.Resource, ApplicationModel.IAzureResource, ApplicationModel.IResource
public partial class AzureBicepResource : ApplicationModel.Resource, ApplicationModel.IAzureResource, ApplicationModel.IResource, ApplicationModel.IResourceWithParameters
{
public AzureBicepResource(string name, string? templateFile = null, string? templateString = null, string? templateResourceName = null) : base(default!) { }

System.Collections.Generic.IDictionary<string, object?> ApplicationModel.IResourceWithParameters.Parameters { get { throw null; } }

public System.Collections.Generic.Dictionary<string, object?> Outputs { get { throw null; } }

public System.Collections.Generic.Dictionary<string, object?> Parameters { get { throw null; } }
Expand Down Expand Up @@ -219,14 +225,47 @@ public sealed partial class AzurePublisherOptions : Publishing.PublishingOptions
{
}

[System.Diagnostics.CodeAnalysis.Experimental("ASPIREAZURE001", UrlFormat = "https://aka.ms/dotnet/aspire/diagnostics#{0}")]
public sealed partial class AzurePublishingContext
{
public global::Azure.Provisioning.Infrastructure MainInfrastructure;
public AzurePublishingContext(AzurePublisherOptions publisherOptions, AzureProvisioningOptions provisioningOptions, Microsoft.Extensions.Logging.ILogger logger) { }

public System.Collections.Generic.Dictionary<BicepOutputReference, global::Azure.Provisioning.ProvisioningOutput> OutputLookup { get { throw null; } }

public System.Collections.Generic.Dictionary<ApplicationModel.ParameterResource, global::Azure.Provisioning.ProvisioningParameter> ParameterLookup { get { throw null; } }

public System.Threading.Tasks.Task WriteModelAsync(ApplicationModel.DistributedApplicationModel model, System.Threading.CancellationToken cancellationToken = default) { throw null; }
}

public sealed partial class AzureResourceInfrastructure : global::Azure.Provisioning.Infrastructure
{
internal AzureResourceInfrastructure() : base(default!) { }

public AzureProvisioningResource AspireResource { get { throw null; } }
}

public sealed partial class BicepOutputReference : ApplicationModel.IManifestExpressionProvider, ApplicationModel.IValueProvider, ApplicationModel.IValueWithReferences
public static partial class AzureUserAssignedIdentityExtensions
{
public static ApplicationModel.IResourceBuilder<AzureUserAssignedIdentityResource> AddAzureUserAssignedIdentity(this IDistributedApplicationBuilder builder, string name) { throw null; }
}

public sealed partial class AzureUserAssignedIdentityResource : AzureProvisioningResource, IAppIdentityResource
{
public AzureUserAssignedIdentityResource(string name) : base(default!, default!) { }

public BicepOutputReference ClientId { get { throw null; } }

public BicepOutputReference Id { get { throw null; } }

public BicepOutputReference PrincipalId { get { throw null; } }

public BicepOutputReference PrincipalName { get { throw null; } }

public override global::Azure.Provisioning.Primitives.ProvisionableResource AddAsExistingResource(AzureResourceInfrastructure infra) { throw null; }
}

public sealed partial class BicepOutputReference : ApplicationModel.IManifestExpressionProvider, ApplicationModel.IValueProvider, ApplicationModel.IValueWithReferences, System.IEquatable<BicepOutputReference>
{
public BicepOutputReference(string name, AzureBicepResource resource) { }

Expand All @@ -240,7 +279,11 @@ public BicepOutputReference(string name, AzureBicepResource resource) { }

public string ValueExpression { get { throw null; } }

public override int GetHashCode() { throw null; }

public System.Threading.Tasks.ValueTask<string?> GetValueAsync(System.Threading.CancellationToken cancellationToken = default) { throw null; }

bool System.IEquatable<BicepOutputReference>.Equals(BicepOutputReference? other) { throw null; }
}

public sealed partial class BicepSecretOutputReference : ApplicationModel.IManifestExpressionProvider, ApplicationModel.IValueProvider, ApplicationModel.IValueWithReferences
Expand Down Expand Up @@ -311,6 +354,12 @@ public partial interface IAppIdentityResource
BicepOutputReference PrincipalName { get; }
}

[System.Diagnostics.CodeAnalysis.Experimental("ASPIRECOMPUTE001")]
public partial interface IAzureContainerRegistry : ApplicationModel.IContainerRegistry
{
ApplicationModel.ReferenceExpression ManagedIdentityId { get; }
}

public partial interface IAzureKeyVaultResource : ApplicationModel.IResource, ApplicationModel.IAzureResource
{
BicepOutputReference NameOutputReference { get; }
Expand All @@ -322,8 +371,10 @@ public partial interface IAzureKeyVaultResource : ApplicationModel.IResource, Ap
IAzureKeyVaultSecretReference GetSecret(string secretName);
}

public partial interface IAzureKeyVaultSecretReference : ApplicationModel.IValueProvider, ApplicationModel.IManifestExpressionProvider
public partial interface IAzureKeyVaultSecretReference : ApplicationModel.IValueProvider, ApplicationModel.IManifestExpressionProvider, ApplicationModel.IValueWithReferences
{
System.Collections.Generic.IEnumerable<object> ApplicationModel.IValueWithReferences.References { get; }

IAzureKeyVaultResource Resource { get; }

string SecretName { get; }
Expand Down
Loading