Skip to content

Commit

Permalink
Hotfix/resourcemanager/1.10.3 (#42908)
Browse files Browse the repository at this point in the history
* Add BicepModelReaderWriterOptions

* regen

* revert subresource changes

* version and changelog

* Update diag ID

* Update emitter
  • Loading branch information
JoshLove-msft authored Mar 22, 2024
1 parent 64cd051 commit 6c3331a
Show file tree
Hide file tree
Showing 333 changed files with 12,416 additions and 5,122 deletions.
8 changes: 8 additions & 0 deletions eng/Directory.Build.Common.props
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@
MSB3245; <!-- Do not warn if a package reference is unavailable -->
</NoWarn>

<!--
Experimental Azure SDK features
-->
<NoWarn>
$(NoWarn);
AZPROVISION001; <!-- BicepModelReaderWriterOptions -->
</NoWarn>

<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
Expand Down
2 changes: 1 addition & 1 deletion eng/Packages.Data.props
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
All should have PrivateAssets="All" set so they don't become package dependencies
-->
<ItemGroup>
<PackageReference Update="Microsoft.Azure.AutoRest.CSharp" Version="3.0.0-beta.20240229.1" PrivateAssets="All" />
<PackageReference Update="Microsoft.Azure.AutoRest.CSharp" Version="3.0.0-beta.20240321.4" PrivateAssets="All" />
<PackageReference Update="Azure.ClientSdk.Analyzers" Version="0.1.1-dev.20240214.2" PrivateAssets="All" />
<PackageReference Update="coverlet.collector" Version="3.2.0" PrivateAssets="All" />
<PackageReference Update="Microsoft.CodeAnalysis.NetAnalyzers" Version="7.0.4" PrivateAssets="All" />
Expand Down
139 changes: 67 additions & 72 deletions eng/emitter-package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions eng/emitter-package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"main": "dist/src/index.js",
"dependencies": {
"@azure-tools/typespec-csharp": "0.2.0-beta.20240229.1"
"@azure-tools/typespec-csharp": "0.2.0-beta.20240321.4"
},
"devDependencies": {
"@typespec/openapi": "0.53.0",
"@typespec/http": "0.53.0",
"@typespec/versioning": "0.53.0",
"@typespec/rest": "0.53.0",
"@azure-tools/typespec-azure-core": "0.39.1",
"@azure-tools/typespec-client-generator-core": "0.40.0-dev.14",
"@typespec/compiler": "0.53.1"
"@typespec/http": "0.54.0",
"@azure-tools/typespec-client-generator-core": "0.40.0",
"@typespec/versioning": "0.54.0",
"@typespec/compiler": "0.54.0",
"@typespec/rest": "0.54.0",
"@typespec/openapi": "0.54.0",
"@azure-tools/typespec-azure-core": "0.40.0"
}
}
60 changes: 60 additions & 0 deletions sdk/core/Azure.Core/src/Shared/ExperimentalAttribute.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#if !NET8_0_OR_GREATER

#nullable enable

namespace System.Diagnostics.CodeAnalysis
{
/// <summary>
/// Indicates that an API is experimental and it may change in the future.
/// </summary>
/// <remarks>
/// This attribute allows call sites to be flagged with a diagnostic that indicates that an experimental
/// feature is used. Authors can use this attribute to ship preview features in their assemblies.
/// </remarks>
[AttributeUsage(AttributeTargets.Assembly |
AttributeTargets.Module |
AttributeTargets.Class |
AttributeTargets.Struct |
AttributeTargets.Enum |
AttributeTargets.Constructor |
AttributeTargets.Method |
AttributeTargets.Property |
AttributeTargets.Field |
AttributeTargets.Event |
AttributeTargets.Interface |
AttributeTargets.Delegate, Inherited = false)]
internal sealed class ExperimentalAttribute : Attribute
{
/// <summary>
/// Initializes a new instance of the <see cref="ExperimentalAttribute"/> class, specifying the ID that the compiler will use
/// when reporting a use of the API the attribute applies to.
/// </summary>
/// <param name="diagnosticId">The ID that the compiler will use when reporting a use of the API the attribute applies to.</param>
public ExperimentalAttribute(string diagnosticId)
{
DiagnosticId = diagnosticId;
}

/// <summary>
/// Gets the ID that the compiler will use when reporting a use of the API the attribute applies to.
/// </summary>
/// <value>The unique diagnostic ID.</value>
/// <remarks>
/// The diagnostic ID is shown in build output for warnings and errors.
/// <para>This property represents the unique ID that can be used to suppress the warnings or errors, if needed.</para>
/// </remarks>
public string DiagnosticId { get; }

/// <summary>
/// Gets or sets the URL for corresponding documentation.
/// The API accepts a format string instead of an actual URL, creating a generic URL that includes the diagnostic ID.
/// </summary>
/// <value>The format string that represents a URL to corresponding documentation.</value>
/// <remarks>An example format string is <c>https://contoso.com/obsoletion-warnings/{0}</c>.</remarks>
public string? UrlFormat { get; set; }
}
}
#endif
8 changes: 7 additions & 1 deletion sdk/resourcemanager/Azure.ResourceManager/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
# Release History
# Release

## 1.11.0 (2024-03-22)

### Features Added

- Added `BicepModelReaderWriterOptions`.

## 1.10.2 (2024-03-01)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,11 @@ public enum AzureStackProfile
{
Profile20200901Hybrid = 0,
}
public partial class BicepModelReaderWriterOptions : System.ClientModel.Primitives.ModelReaderWriterOptions
{
public BicepModelReaderWriterOptions() : base (default(string)) { }
public System.Collections.Generic.IDictionary<object, System.Collections.Generic.IDictionary<string, string>> PropertyOverrides { get { throw null; } }
}
}
namespace Azure.ResourceManager.ManagementGroups
{
Expand Down
Loading

0 comments on commit 6c3331a

Please sign in to comment.