Skip to content
Merged
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
2 changes: 1 addition & 1 deletion eng/Packages.Data.props
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,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.20240509.2" PrivateAssets="All" />
<PackageReference Update="Microsoft.Azure.AutoRest.CSharp" Version="3.0.0-beta.20240510.1" PrivateAssets="All" />
<PackageReference Update="Azure.ClientSdk.Analyzers" Version="0.1.1-dev.20240429.1" 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
16 changes: 8 additions & 8 deletions eng/emitter-package-lock.json

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

8 changes: 4 additions & 4 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.20240509.2"
"@azure-tools/typespec-csharp": "0.2.0-beta.20240510.1"
},
"devDependencies": {
"@typespec/rest": "0.55.0",
"@azure-tools/typespec-azure-core": "0.41.0",
"@typespec/openapi": "0.55.0",
"@typespec/rest": "0.55.0",
"@typespec/versioning": "0.55.0",
"@typespec/http": "0.55.0",
"@azure-tools/typespec-client-generator-core": "0.41.8",
"@typespec/compiler": "0.55.0"
"@typespec/compiler": "0.55.0",
"@azure-tools/typespec-client-generator-core": "0.41.8"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace Azure.ResourceManager.ApiManagement.Models
public partial class RequestReportRecordContract : IUtf8JsonSerializable, IJsonModel<RequestReportRecordContract>
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
private void SerializeBackendResponseCodeValue(Utf8JsonWriter writer)
private void SerializeBackendResponseCodeValue(Utf8JsonWriter writer, ModelReaderWriterOptions options)
{
writer.WriteStringValue(BackendResponseCode);
}
Expand Down

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

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

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

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

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

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

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

Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Licensed under the MIT License.

using System;
using System.ClientModel.Primitives;
using System.Runtime.CompilerServices;
using System.Text.Json;
using Azure.Core;
Expand Down Expand Up @@ -35,7 +36,7 @@ internal DistributionPolicy(TimeSpan? offerExpiresAfter, DistributionMode mode)
public TimeSpan? OfferExpiresAfter { get; set; }

[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal void WriteOfferExpiresAfter(Utf8JsonWriter writer)
internal void WriteOfferExpiresAfter(Utf8JsonWriter writer, ModelReaderWriterOptions options)
{
writer.WriteNumberValue(OfferExpiresAfter.Value.TotalSeconds);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Licensed under the MIT License.

using System;
using System.ClientModel.Primitives;
using System.Runtime.CompilerServices;
using System.Text.Json;
using Azure.Core;
Expand All @@ -19,7 +20,7 @@ public partial class PassThroughWorkerSelectorAttachment
public TimeSpan? ExpiresAfter { get; }

[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal void WriteExpiresAfter(Utf8JsonWriter writer)
internal void WriteExpiresAfter(Utf8JsonWriter writer, ModelReaderWriterOptions options)
{
writer.WriteNumberValue(ExpiresAfter.Value.TotalSeconds);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Licensed under the MIT License.

using System;
using System.ClientModel.Primitives;
using System.Runtime.CompilerServices;
using System.Text.Json;
using Azure.Core;
Expand All @@ -16,7 +17,7 @@ public partial class RouterJobPositionDetails
public TimeSpan EstimatedWaitTime { get; }

[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal void WriteEstimatedWaitTime(Utf8JsonWriter writer)
internal void WriteEstimatedWaitTime(Utf8JsonWriter writer, ModelReaderWriterOptions options)
{
writer.WriteNumberValue(EstimatedWaitTime.TotalMinutes);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Licensed under the MIT License.

using System;
using System.ClientModel.Primitives;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Text.Json;
Expand All @@ -20,7 +21,7 @@ public partial class RouterQueueStatistics
public IDictionary<int, TimeSpan> EstimatedWaitTimes { get; }

[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal void WriteEstimatedWaitTimes(Utf8JsonWriter writer)
internal void WriteEstimatedWaitTimes(Utf8JsonWriter writer, ModelReaderWriterOptions options)
{
writer.WriteStartObject();
foreach (var item in EstimatedWaitTimes)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Licensed under the MIT License.

using System;
using System.ClientModel.Primitives;
using System.Runtime.CompilerServices;
using System.Text.Json;
using Azure.Core;
Expand All @@ -16,7 +17,7 @@ public partial class RouterWorkerSelector
public TimeSpan? ExpiresAfter { get; set; }

[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal void WriteExpiresAfter(Utf8JsonWriter writer)
internal void WriteExpiresAfter(Utf8JsonWriter writer, ModelReaderWriterOptions options)
{
writer.WriteNumberValue(ExpiresAfter.Value.TotalSeconds);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Licensed under the MIT License.

using System;
using System.ClientModel.Primitives;
using System.Runtime.CompilerServices;
using System.Text.Json;
using Azure.Core;
Expand All @@ -27,7 +28,7 @@ public WaitTimeExceptionTrigger(TimeSpan threshold)
public TimeSpan Threshold { get; }

[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal void WriteThresholdSeconds(Utf8JsonWriter writer)
internal void WriteThresholdSeconds(Utf8JsonWriter writer, ModelReaderWriterOptions options)
{
writer.WriteNumberValue(Threshold.TotalSeconds);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

#nullable disable

using System.ClientModel.Primitives;
using System.Runtime.CompilerServices;
using System.Text.Json;
using Azure.Core;
Expand All @@ -18,7 +19,7 @@ public partial class ComputeResourceSkuLocationInfo
public Azure.ResourceManager.Resources.Models.ExtendedLocationType? ExtendedLocationType { get; }

[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal void WriteExtendedLocationType(Utf8JsonWriter writer)
internal void WriteExtendedLocationType(Utf8JsonWriter writer, ModelReaderWriterOptions options)
{
writer.WriteStringValue(ExtendedLocationType.Value.ToString());
}
Expand Down

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

Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using System.ClientModel.Primitives;
using System.Runtime.CompilerServices;
using System.Text.Json;
using Azure.Core;
Expand All @@ -14,7 +15,7 @@ public partial class ReceiveDetails
public Azure.Messaging.CloudEvent Event { get; }

[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal void WriteEvent(Utf8JsonWriter writer)
internal void WriteEvent(Utf8JsonWriter writer, ModelReaderWriterOptions options)
{
JsonSerializer.Serialize(writer, Event);
}
Expand Down

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

Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using System.ClientModel.Primitives;
using System.Runtime.CompilerServices;
using System.Text.Json;
using Azure.Core;
Expand All @@ -12,13 +13,13 @@ namespace Azure.ResourceManager.Maintenance
public partial class MaintenanceConfigurationData
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal void SerializeStartOn(Utf8JsonWriter writer)
internal void SerializeStartOn(Utf8JsonWriter writer, ModelReaderWriterOptions options)
{
writer.WriteStringValue(StartOn.Value, "yyyy-MM-dd HH:mm");
}

[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal void SerializeExpireOn(Utf8JsonWriter writer)
internal void SerializeExpireOn(Utf8JsonWriter writer, ModelReaderWriterOptions options)
{
writer.WriteStringValue(ExpireOn.Value, "yyyy-MM-dd HH:mm");
}
Expand Down

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

Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#nullable disable

using System;
using System.ClientModel.Primitives;
using System.Globalization;
using System.Runtime.CompilerServices;
using System.Text.Json;
Expand All @@ -17,7 +18,7 @@ namespace Azure.ResourceManager.Monitor.Models
public partial class MonitorScaleCapacity : IUtf8JsonSerializable
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal void WriteMinimum(Utf8JsonWriter writer)
internal void WriteMinimum(Utf8JsonWriter writer, ModelReaderWriterOptions options)
{
WriteIntToString(writer, Minimum);
}
Expand All @@ -29,7 +30,7 @@ internal static void ReadMinimum(JsonProperty property, ref int minimum)
}

[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal void WriteMaximum(Utf8JsonWriter writer)
internal void WriteMaximum(Utf8JsonWriter writer, ModelReaderWriterOptions options)
{
WriteIntToString(writer, Maximum);
}
Expand All @@ -41,7 +42,7 @@ internal static void ReadMaximum(JsonProperty property, ref int maximum)
}

[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal void WriteDefault(Utf8JsonWriter writer)
internal void WriteDefault(Utf8JsonWriter writer, ModelReaderWriterOptions options)
{
WriteIntToString(writer, Default);
}
Expand Down

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

Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#nullable disable

using System;
using System.ClientModel.Primitives;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
Expand Down Expand Up @@ -84,7 +85,7 @@ public ChatRequestUserMessage(params ChatMessageContentItem[] content)
}

[MethodImpl(MethodImplOptions.AggressiveInlining)]
internal void SerializeContent(Utf8JsonWriter writer)
internal void SerializeContent(Utf8JsonWriter writer, ModelReaderWriterOptions options)
{
if (MultimodalContentItems != null)
{
Expand Down
Loading