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 @@ -127,7 +127,7 @@
All should have PrivateAssets="All" set so they don't become pacakge dependencies
-->
<ItemGroup>
<PackageReference Update="Microsoft.Azure.AutoRest.CSharp" Version="3.0.0-beta.20210428.2" PrivateAssets="All" />
<PackageReference Update="Microsoft.Azure.AutoRest.CSharp" Version="3.0.0-beta.20210503.1" PrivateAssets="All" />
<PackageReference Update="Azure.ClientSdk.Analyzers" Version="0.1.1-dev.20210322.2" PrivateAssets="All" />
<PackageReference Update="coverlet.collector" Version="1.3.0" PrivateAssets="All" />
<PackageReference Update="Microsoft.CodeAnalysis.FxCopAnalyzers" Version="3.3.1" PrivateAssets="All" />
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.

Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ internal partial class InternalPurchasePhoneNumbersOperation
{
internal InternalPurchasePhoneNumbersOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response)
{
_operation = new OperationInternals<Response>(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "PurchasePhoneNumbersOperation");
_operation = new OperationInternals(clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "PurchasePhoneNumbersOperation");

if (response.Headers.TryGetValue<string>("operation-id", out var id))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ internal partial class InternalReleasePhoneNumberOperation
{
internal InternalReleasePhoneNumberOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response)
{
_operation = new OperationInternals<Response>(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "ReleasePhoneNumberOperation");
_operation = new OperationInternals(clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "ReleasePhoneNumberOperation");

if (response.Headers.TryGetValue<string>("operation-id", out var id))
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,17 @@ public override async ValueTask<Response> UpdateStatusAsync(CancellationToken ca
/// <inheritdoc />
public override async ValueTask<Response> WaitForCompletionResponseAsync(CancellationToken cancellationToken = default)
{
Response<Response> response = await _operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
Response response = await _operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false);

return response.GetRawResponse();
return response;
}

/// <inheritdoc />
public override async ValueTask<Response> WaitForCompletionResponseAsync(TimeSpan pollingInterval, CancellationToken cancellationToken)
{
Response<Response> response = await _operation.WaitForCompletionAsync(pollingInterval, cancellationToken).ConfigureAwait(false);
Response response = await _operation.WaitForCompletionResponseAsync(pollingInterval, cancellationToken).ConfigureAwait(false);

return response.GetRawResponse();
return response;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,17 @@ public override async ValueTask<Response> UpdateStatusAsync(CancellationToken ca
/// <inheritdoc />
public override async ValueTask<Response> WaitForCompletionResponseAsync(CancellationToken cancellationToken = default)
{
Response<Response> response = await _operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
Response response = await _operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false);

return response.GetRawResponse();
return response;
}

/// <inheritdoc />
public override async ValueTask<Response> WaitForCompletionResponseAsync(TimeSpan pollingInterval, CancellationToken cancellationToken)
{
Response<Response> response = await _operation.WaitForCompletionAsync(pollingInterval, cancellationToken).ConfigureAwait(false);
Response response = await _operation.WaitForCompletionResponseAsync(pollingInterval, cancellationToken).ConfigureAwait(false);

return response.GetRawResponse();
return response;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,20 @@ directive:
transform: >
$["x-accessibility"] = "internal"
```

### Correct Security to be separately defined

``` yaml
directive:
from: swagger-document
where: $
transform: >
$.security = [
{
"registry_oauth2": []
},
{
"registry_auth": []
}
]
```
17 changes: 17 additions & 0 deletions sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/autorest.md
Original file line number Diff line number Diff line change
Expand Up @@ -813,3 +813,20 @@ directive:
}
}
```

### Correct Security to be separately defined

``` yaml
directive:
from: swagger-document
where: $
transform: >
$.security = [
{
"apim_key": []
},
{
"ma_api_key": []
}
]
```
Loading