Skip to content

Commit 27fcf28

Browse files
author
Update Parameters Pipeline
committed
fix(api): 🐛 update API version handling in ApiOperationOperations
* Set a fixed `apiVersion` to "2024-05-01". * Adjusted the logic to use the new `apiVersion` instead of the client’s version. * Ensured proper tracing functionality remains intact.
1 parent e503809 commit 27fcf28

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ApiManagement/ApiManagement.Management.Sdk/Generated/ApiOperationOperations.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -682,9 +682,9 @@ internal ApiOperationOperations (ApiManagementClient client)
682682
{
683683
throw new Microsoft.Rest.ValidationException(Microsoft.Rest.ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
684684
}
685-
686-
// Tracing
687-
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
685+
string apiVersion = "2024-05-01";
686+
// Tracing
687+
bool _shouldTrace = Microsoft.Rest.ServiceClientTracing.IsEnabled;
688688
string _invocationId = null;
689689
if (_shouldTrace)
690690
{
@@ -710,7 +710,7 @@ internal ApiOperationOperations (ApiManagementClient client)
710710
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(this.Client.SubscriptionId));
711711

712712
System.Collections.Generic.List<string> _queryParameters = new System.Collections.Generic.List<string>();
713-
if (this.Client.ApiVersion != null)
713+
if (apiVersion != null)
714714
{
715715
_queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(this.Client.ApiVersion)));
716716
}

0 commit comments

Comments
 (0)