From 731790f774e413285887ce36c6a607fa86d415e3 Mon Sep 17 00:00:00 2001 From: Ramu Date: Fri, 30 Jun 2023 16:28:33 -0700 Subject: [PATCH] Fixing the API-version in ManagedServices examples (#24578) * Fixing the API-version in ManagedServices examples * Addressing the swagger errors * Addressing the Location header issue on Delete Registration assignment Async operation response --- .../2022-10-01/examples/DeleteRegistrationAssignment.json | 6 +++++- ...egistrationAssignmentsWithManagedByTenantIdEqFilter.json | 4 ++-- ...egistrationAssignmentsWithManagedByTenantIdInFilter.json | 4 ++-- ...egistrationDefinitionsWithManagedByTenantIdEqFilter.json | 4 ++-- ...egistrationDefinitionsWithManagedByTenantIdInFilter.json | 4 ++-- 5 files changed, 13 insertions(+), 9 deletions(-) diff --git a/specification/managedservices/resource-manager/Microsoft.ManagedServices/stable/2022-10-01/examples/DeleteRegistrationAssignment.json b/specification/managedservices/resource-manager/Microsoft.ManagedServices/stable/2022-10-01/examples/DeleteRegistrationAssignment.json index 8ea5ce3fd64d..1385e380fd29 100644 --- a/specification/managedservices/resource-manager/Microsoft.ManagedServices/stable/2022-10-01/examples/DeleteRegistrationAssignment.json +++ b/specification/managedservices/resource-manager/Microsoft.ManagedServices/stable/2022-10-01/examples/DeleteRegistrationAssignment.json @@ -7,6 +7,10 @@ "responses": { "200": {}, "204": {}, - "202": {} + "202": { + "headers": { + "Location": "https://management.azure.com/subscriptions/0afefe50-734e-4610-8a82-a144ahf49dea/providers/Microsoft.ManagedServices/operationStatuses/eyJmdWxseVF1YWxpZmll...Y4NTZCNSJ9?api-version=2022-10-01" + } + } } } diff --git a/specification/managedservices/resource-manager/Microsoft.ManagedServices/stable/2022-10-01/examples/GetRegistrationAssignmentsWithManagedByTenantIdEqFilter.json b/specification/managedservices/resource-manager/Microsoft.ManagedServices/stable/2022-10-01/examples/GetRegistrationAssignmentsWithManagedByTenantIdEqFilter.json index 3c8e0697a084..ae462694c6c1 100644 --- a/specification/managedservices/resource-manager/Microsoft.ManagedServices/stable/2022-10-01/examples/GetRegistrationAssignmentsWithManagedByTenantIdEqFilter.json +++ b/specification/managedservices/resource-manager/Microsoft.ManagedServices/stable/2022-10-01/examples/GetRegistrationAssignmentsWithManagedByTenantIdEqFilter.json @@ -1,8 +1,8 @@ { "parameters": { "scope": "subscription/0afefe50-734e-4610-8a82-a144ahf49dea", - "api-version": "2021-11-01-preview", - "$filter": "$filter=managedByTenantId eq '83abe5cd-bcc3-441a-bd86-e6a75360cecc'" + "api-version": "2022-10-01", + "$filter": "%24filter%3DmanagedByTenantId+eq+%2783abe5cd-bcc3-441a-bd86-e6a75360cecc%27" }, "responses": { "200": { diff --git a/specification/managedservices/resource-manager/Microsoft.ManagedServices/stable/2022-10-01/examples/GetRegistrationAssignmentsWithManagedByTenantIdInFilter.json b/specification/managedservices/resource-manager/Microsoft.ManagedServices/stable/2022-10-01/examples/GetRegistrationAssignmentsWithManagedByTenantIdInFilter.json index b18ec8167784..868711ce2b0e 100644 --- a/specification/managedservices/resource-manager/Microsoft.ManagedServices/stable/2022-10-01/examples/GetRegistrationAssignmentsWithManagedByTenantIdInFilter.json +++ b/specification/managedservices/resource-manager/Microsoft.ManagedServices/stable/2022-10-01/examples/GetRegistrationAssignmentsWithManagedByTenantIdInFilter.json @@ -1,8 +1,8 @@ { "parameters": { "scope": "subscription/0afefe50-734e-4610-8a82-a144ahf49dea", - "api-version": "2021-11-01-preview", - "$filter": "$filter=managedByTenantId in (83abe5cd-bcc3-441a-bd86-e6a75360cec, de83f4a9-a76a-4025-a91a-91171923eac7)" + "api-version": "2022-10-01", + "$filter": "%24filter%3DmanagedByTenantId+in+%28%2783abe5cd-bcc3-441a-bd86-e6a75360cec%27%2C+%27de83f4a9-a76a-4025-a91a-91171923eac7%27%29" }, "responses": { "200": { diff --git a/specification/managedservices/resource-manager/Microsoft.ManagedServices/stable/2022-10-01/examples/GetRegistrationDefinitionsWithManagedByTenantIdEqFilter.json b/specification/managedservices/resource-manager/Microsoft.ManagedServices/stable/2022-10-01/examples/GetRegistrationDefinitionsWithManagedByTenantIdEqFilter.json index 35268ae38c50..55ddd4f07466 100644 --- a/specification/managedservices/resource-manager/Microsoft.ManagedServices/stable/2022-10-01/examples/GetRegistrationDefinitionsWithManagedByTenantIdEqFilter.json +++ b/specification/managedservices/resource-manager/Microsoft.ManagedServices/stable/2022-10-01/examples/GetRegistrationDefinitionsWithManagedByTenantIdEqFilter.json @@ -1,8 +1,8 @@ { "parameters": { "scope": "subscription/0afefe50-734e-4610-8a82-a144ahf49dea", - "api-version": "2021-11-01-preview", - "$filter": "$filter=managedByTenantId eq '83ace5cd-bcc3-441a-hd86-e6a75360cecc'" + "api-version": "2022-10-01", + "$filter": "%24filter%3DmanagedByTenantId+eq+%2783ace5cd-bcc3-441a-hd86-e6a75360cecc%27" }, "responses": { "200": { diff --git a/specification/managedservices/resource-manager/Microsoft.ManagedServices/stable/2022-10-01/examples/GetRegistrationDefinitionsWithManagedByTenantIdInFilter.json b/specification/managedservices/resource-manager/Microsoft.ManagedServices/stable/2022-10-01/examples/GetRegistrationDefinitionsWithManagedByTenantIdInFilter.json index 617e9c1597da..071aea7a1d64 100644 --- a/specification/managedservices/resource-manager/Microsoft.ManagedServices/stable/2022-10-01/examples/GetRegistrationDefinitionsWithManagedByTenantIdInFilter.json +++ b/specification/managedservices/resource-manager/Microsoft.ManagedServices/stable/2022-10-01/examples/GetRegistrationDefinitionsWithManagedByTenantIdInFilter.json @@ -1,8 +1,8 @@ { "parameters": { "scope": "subscription/0afefe50-734e-4610-8a82-a144ahf49dea", - "api-version": "2021-11-01-preview", - "$filter": "$filter=managedByTenantId in (83ace5cd-bcc3-441a-hd86-e6a75360cecc, de83f4a9-a76a-4025-a91a-91171923eac7)" + "api-version": "2022-10-01", + "$filter": "%24filter%3DmanagedByTenantId+in+%28%2783ace5cd-bcc3-441a-hd86-e6a75360cecc%27%2C+%27de83f4a9-a76a-4025-a91a-91171923eac7%27%29" }, "responses": { "200": {