Skip to content

Commit b42326f

Browse files
build: adopt spector parameters/path
1 parent 2e9a158 commit b42326f

File tree

327 files changed

+2302
-544
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

327 files changed

+2302
-544
lines changed

eng/Packages.Data.props

+2-2
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@
206206
</ItemGroup>
207207

208208
<ItemGroup Condition="'$(IsGeneratorLibrary)' == 'true'">
209-
<PackageReference Update="Microsoft.TypeSpec.Generator.ClientModel" Version="1.0.0-alpha.20250501.3" />
210-
<PackageReference Update="Microsoft.TypeSpec.Generator.Input" Version="1.0.0-alpha.20250501.3" />
209+
<PackageReference Update="Microsoft.TypeSpec.Generator.ClientModel" Version="1.0.0-alpha.20250507.1" />
210+
<PackageReference Update="Microsoft.TypeSpec.Generator.Input" Version="1.0.0-alpha.20250507.1" />
211211
<PackageReference Update="Azure.Generator" Version="1.0.0-alpha.20250429.2" />
212212
<PackageReference Update="System.ClientModel" Version="1.4.0" />
213213
</ItemGroup>

eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/Providers/ManagementLongRunningOperationProvider.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ protected override ConstructorProvider[] BuildConstructors()
144144

145145
private ConstructorProvider BuildInitializationConstructor()
146146
{
147-
var sourceParameter = new ParameterProvider("source", $"The instance of <see cref=\"IOperationSource\"/>", new CSharpType(typeof(IOperationSource<>), _t));
147+
var sourceParameter = new ParameterProvider("source", $"The instance of <see cref=\"IOperationSource{{T}}\"/>", new CSharpType(typeof(IOperationSource<>), _t));
148148
var clientDiagnosticsParameter = new ParameterProvider("clientDiagnostics", $"The instance of <see cref=\"ClientDiagnostics\"/>", typeof(ClientDiagnostics));
149149
var pipelineParameter = new ParameterProvider("pipeline", $"The instance of <see cref=\"HttpPipeline\"/>", typeof(HttpPipeline));
150150
var requestParameter = new ParameterProvider("request", $"The operation request", typeof(Request));

eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/Providers/TestData/ManagementLongRunningOperationProviderTests/Verify_Generic_LROProviderGeneration.cs

-12
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,12 @@ internal SamplesArmOperation(global::Azure.Core.IOperationSource<T> source, glob
5757
new global::Azure.Core.SequentialDelayStrategy());
5858
}
5959

60-
/// <summary> Gets the Id. </summary>
6160
public override string Id => (_operationId ?? global::Azure.Core.NextLinkOperationImplementation.NotSet);
6261

63-
/// <summary> Gets the Value. </summary>
6462
public override T Value => _operation.Value;
6563

66-
/// <summary> Gets the HasValue. </summary>
6764
public override bool HasValue => _operation.HasValue;
6865

69-
/// <summary> Gets the HasCompleted. </summary>
7066
public override bool HasCompleted => _operation.HasCompleted;
7167

7268
private string GetOperationId(global::Azure.Core.RehydrationToken? rehydrationToken)
@@ -79,28 +75,20 @@ private string GetOperationId(global::Azure.Core.RehydrationToken? rehydrationTo
7975
return lroDetails["id"];
8076
}
8177

82-
/// <inheritdoc/>
8378
public override global::Azure.Core.RehydrationToken? GetRehydrationToken() => (_nextLinkOperation?.GetRehydrationToken() ?? _completeRehydrationToken);
8479

85-
/// <inheritdoc/>
8680
public override global::Azure.Response GetRawResponse() => _operation.RawResponse;
8781

88-
/// <inheritdoc/>
8982
public override global::Azure.Response UpdateStatus(global::System.Threading.CancellationToken cancellationToken = ((global::System.Threading.CancellationToken)default)) => _operation.UpdateStatus(cancellationToken);
9083

91-
/// <inheritdoc/>
9284
public override global::System.Threading.Tasks.ValueTask<global::Azure.Response> UpdateStatusAsync(global::System.Threading.CancellationToken cancellationToken = ((global::System.Threading.CancellationToken)default)) => _operation.UpdateStatusAsync(cancellationToken);
9385

94-
/// <inheritdoc/>
9586
public override global::Azure.Response<T> WaitForCompletion(global::System.Threading.CancellationToken cancellationToken = ((global::System.Threading.CancellationToken)default)) => _operation.WaitForCompletion(cancellationToken);
9687

97-
/// <inheritdoc/>
9888
public override global::Azure.Response<T> WaitForCompletion(global::System.TimeSpan pollingInterval, global::System.Threading.CancellationToken cancellationToken = ((global::System.Threading.CancellationToken)default)) => _operation.WaitForCompletion(pollingInterval, cancellationToken);
9989

100-
/// <inheritdoc/>
10190
public override global::System.Threading.Tasks.ValueTask<global::Azure.Response<T>> WaitForCompletionAsync(global::System.Threading.CancellationToken cancellationToken = ((global::System.Threading.CancellationToken)default)) => _operation.WaitForCompletionAsync(cancellationToken);
10291

103-
/// <inheritdoc/>
10492
public override global::System.Threading.Tasks.ValueTask<global::Azure.Response<T>> WaitForCompletionAsync(global::System.TimeSpan pollingInterval, global::System.Threading.CancellationToken cancellationToken = ((global::System.Threading.CancellationToken)default)) => _operation.WaitForCompletionAsync(pollingInterval, cancellationToken);
10593
}
10694
}

eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/Providers/TestData/ManagementLongRunningOperationProviderTests/Verify_NonGeneric_LROProviderGeneration.cs

-10
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,8 @@ internal SamplesArmOperation(global::Azure.Core.Pipeline.ClientDiagnostics clien
5757
new global::Azure.Core.SequentialDelayStrategy());
5858
}
5959

60-
/// <summary> Gets the Id. </summary>
6160
public override string Id => (_operationId ?? global::Azure.Core.NextLinkOperationImplementation.NotSet);
6261

63-
/// <summary> Gets the HasCompleted. </summary>
6462
public override bool HasCompleted => _operation.HasCompleted;
6563

6664
private string GetOperationId(global::Azure.Core.RehydrationToken? rehydrationToken)
@@ -73,28 +71,20 @@ private string GetOperationId(global::Azure.Core.RehydrationToken? rehydrationTo
7371
return lroDetails["id"];
7472
}
7573

76-
/// <inheritdoc/>
7774
public override global::Azure.Core.RehydrationToken? GetRehydrationToken() => (_nextLinkOperation?.GetRehydrationToken() ?? _completeRehydrationToken);
7875

79-
/// <inheritdoc/>
8076
public override global::Azure.Response GetRawResponse() => _operation.RawResponse;
8177

82-
/// <inheritdoc/>
8378
public override global::Azure.Response UpdateStatus(global::System.Threading.CancellationToken cancellationToken = ((global::System.Threading.CancellationToken)default)) => _operation.UpdateStatus(cancellationToken);
8479

85-
/// <inheritdoc/>
8680
public override global::System.Threading.Tasks.ValueTask<global::Azure.Response> UpdateStatusAsync(global::System.Threading.CancellationToken cancellationToken = ((global::System.Threading.CancellationToken)default)) => _operation.UpdateStatusAsync(cancellationToken);
8781

88-
/// <inheritdoc/>
8982
public override global::Azure.Response WaitForCompletionResponse(global::System.Threading.CancellationToken cancellationToken = ((global::System.Threading.CancellationToken)default)) => _operation.WaitForCompletionResponse(cancellationToken);
9083

91-
/// <inheritdoc/>
9284
public override global::Azure.Response WaitForCompletionResponse(global::System.TimeSpan pollingInterval, global::System.Threading.CancellationToken cancellationToken = ((global::System.Threading.CancellationToken)default)) => _operation.WaitForCompletionResponse(pollingInterval, cancellationToken);
9385

94-
/// <inheritdoc/>
9586
public override global::System.Threading.Tasks.ValueTask<global::Azure.Response> WaitForCompletionResponseAsync(global::System.Threading.CancellationToken cancellationToken = ((global::System.Threading.CancellationToken)default)) => _operation.WaitForCompletionResponseAsync(cancellationToken);
9687

97-
/// <inheritdoc/>
9888
public override global::System.Threading.Tasks.ValueTask<global::Azure.Response> WaitForCompletionResponseAsync(global::System.TimeSpan pollingInterval, global::System.Threading.CancellationToken cancellationToken = ((global::System.Threading.CancellationToken)default)) => _operation.WaitForCompletionResponseAsync(pollingInterval, cancellationToken);
9989
}
10090
}

eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/TestHelpers/Configuration.json

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"unknown-bool-property": false,
55
"package-name": "sample-library",
66
"unknown-string-property": "unknownPropertyValue",
7+
"disable-xml-docs": true,
78
"license": {
89
"name": "MIT License",
910
"company": "Microsoft Corporation",

eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/FooCollection.cs

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/FooData.Serialization.cs

+12-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/FooData.cs

+12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/FooResource.cs

+7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/GetAllPrivateLinkResourcesAsyncCollectionResultOfT.cs

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/GetAllPrivateLinkResourcesCollectionResultOfT.cs

+4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)