From 5f142ec8883ead33813f6dd7c07a5bec116c43f8 Mon Sep 17 00:00:00 2001 From: "Grace Huang (from Dev Box)" Date: Tue, 23 Apr 2024 11:19:45 -0400 Subject: [PATCH] Regenerate powershell module with GA swagger --- src/Support/Support.Autorest/README.md | 30 ++----------------- .../fileWorkspaces-files.json | 2 +- .../UX/Microsoft.Support/fileWorkspaces.json | 2 +- .../services-problemClassifications.json | 2 +- .../UX/Microsoft.Support/services.json | 2 +- .../supportTickets-chatTranscripts.json | 2 +- .../supportTickets-communications.json | 2 +- .../docs/Get-AzSupportChatTranscript.md | 3 +- .../docs/Get-AzSupportCommunication.md | 3 +- .../docs/Get-AzSupportFile.md | 3 +- .../docs/Get-AzSupportFileWorkspace.md | 3 +- .../docs/New-AzSupportCommunication.md | 3 +- .../docs/New-AzSupportFileWorkspace.md | 3 +- .../docs/New-AzSupportTicket.md | 3 +- ...-AzSupportCommunicationNameAvailability.md | 3 +- .../Test-AzSupportTicketNameAvailability.md | 3 +- .../docs/Update-AzSupportTicket.md | 3 +- 17 files changed, 28 insertions(+), 44 deletions(-) diff --git a/src/Support/Support.Autorest/README.md b/src/Support/Support.Autorest/README.md index f79c72aa052b..f763a5718076 100644 --- a/src/Support/Support.Autorest/README.md +++ b/src/Support/Support.Autorest/README.md @@ -31,14 +31,14 @@ For information on how to develop for `Az.Support`, see [how-to.md](how-to.md). ```yaml # pin the swagger version by using the commit id instead of branch name -commit: 138bfbe2562a56cc9c84e003229b9440beaf419c +commit: 791ef5476e10bb15ab9ad46e2c2d8835ac24ac24 require: # readme.azure.noprofile.md is the common configuration file - $(this-folder)/../../readme.azure.noprofile.md # If the swagger has not been put in the repo, you may uncomment the following line and refer to it locally # - (this-folder)/relative-path-to-your-local-readme.md input-file: - - $(repo)/specification/support/resource-manager/Microsoft.Support/preview/2022-09-01-preview/support.json + - $(repo)/specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/support.json # For new RP, the version is 0.1.0 module-version: 0.1.0 @@ -199,32 +199,6 @@ directive: verb: Update subject: CommunicationsNoSubscription remove: true - - from: swagger-document - where: $.definitions.CommunicationDetails - transform: $.required = ['properties'] - - from: swagger-document - where: $.definitions.SupportTicketDetails - transform: $.required = ['properties'] - - from: swagger-document - where: $.definitions.SupportTicketDetailsProperties.properties.enrollmentId - transform: >- - return { - "description": "Enrollment Id associated with the support ticket.", - "type": "string", - } - # only needed for 2022 preview version, should be able to remove for GA - - from: swagger-document - where: $.definitions.SupportTicketDetailsProperties - transform: $.required = ['serviceId','title','description','problemClassificationId','severity','contactDetails', 'advancedDiagnosticConsent'] - - - from: swagger-document - where: $.paths["/providers/Microsoft.Support/supportTickets/{supportTicketName}/chatTranscripts"].get.operationId - transform: >- - return "ChatTranscriptsNoSubscription_List" - - from: swagger-document - where: $.paths["/providers/Microsoft.Support/supportTickets/{supportTicketName}/communications"].get.operationId - transform: >- - return "CommunicationsNoSubscription_List" - from: GetAzSupportTicket_List.cs where: $ transform: $ = $.replace("!String.IsNullOrEmpty(_nextLink)" ,"!String.IsNullOrEmpty(_nextLink) && this._top <= 0"); diff --git a/src/Support/Support.Autorest/UX/Microsoft.Support/fileWorkspaces-files.json b/src/Support/Support.Autorest/UX/Microsoft.Support/fileWorkspaces-files.json index 5a9261a88b67..938647c344ff 100644 --- a/src/Support/Support.Autorest/UX/Microsoft.Support/fileWorkspaces-files.json +++ b/src/Support/Support.Autorest/UX/Microsoft.Support/fileWorkspaces-files.json @@ -1,6 +1,6 @@ { "resourceType": "fileWorkspaces/files", - "apiVersion": "2022-09-01-preview", + "apiVersion": "2024-04-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.support" }, diff --git a/src/Support/Support.Autorest/UX/Microsoft.Support/fileWorkspaces.json b/src/Support/Support.Autorest/UX/Microsoft.Support/fileWorkspaces.json index 6527b56a9a05..cb5b3afc6492 100644 --- a/src/Support/Support.Autorest/UX/Microsoft.Support/fileWorkspaces.json +++ b/src/Support/Support.Autorest/UX/Microsoft.Support/fileWorkspaces.json @@ -1,6 +1,6 @@ { "resourceType": "fileWorkspaces", - "apiVersion": "2022-09-01-preview", + "apiVersion": "2024-04-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.support" }, diff --git a/src/Support/Support.Autorest/UX/Microsoft.Support/services-problemClassifications.json b/src/Support/Support.Autorest/UX/Microsoft.Support/services-problemClassifications.json index f3f6b39a4ca2..81a5126f4137 100644 --- a/src/Support/Support.Autorest/UX/Microsoft.Support/services-problemClassifications.json +++ b/src/Support/Support.Autorest/UX/Microsoft.Support/services-problemClassifications.json @@ -1,6 +1,6 @@ { "resourceType": "services/problemClassifications", - "apiVersion": "2022-09-01-preview", + "apiVersion": "2024-04-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.support" }, diff --git a/src/Support/Support.Autorest/UX/Microsoft.Support/services.json b/src/Support/Support.Autorest/UX/Microsoft.Support/services.json index eab1c8f2608e..a6763ee55f18 100644 --- a/src/Support/Support.Autorest/UX/Microsoft.Support/services.json +++ b/src/Support/Support.Autorest/UX/Microsoft.Support/services.json @@ -1,6 +1,6 @@ { "resourceType": "services", - "apiVersion": "2022-09-01-preview", + "apiVersion": "2024-04-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.support" }, diff --git a/src/Support/Support.Autorest/UX/Microsoft.Support/supportTickets-chatTranscripts.json b/src/Support/Support.Autorest/UX/Microsoft.Support/supportTickets-chatTranscripts.json index 9257bc37a5f1..0dc3c4ce1d05 100644 --- a/src/Support/Support.Autorest/UX/Microsoft.Support/supportTickets-chatTranscripts.json +++ b/src/Support/Support.Autorest/UX/Microsoft.Support/supportTickets-chatTranscripts.json @@ -1,6 +1,6 @@ { "resourceType": "supportTickets/chatTranscripts", - "apiVersion": "2022-09-01-preview", + "apiVersion": "2024-04-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.support" }, diff --git a/src/Support/Support.Autorest/UX/Microsoft.Support/supportTickets-communications.json b/src/Support/Support.Autorest/UX/Microsoft.Support/supportTickets-communications.json index 81a87c00be93..ae3df3c2daea 100644 --- a/src/Support/Support.Autorest/UX/Microsoft.Support/supportTickets-communications.json +++ b/src/Support/Support.Autorest/UX/Microsoft.Support/supportTickets-communications.json @@ -1,6 +1,6 @@ { "resourceType": "supportTickets/communications", - "apiVersion": "2022-09-01-preview", + "apiVersion": "2024-04-01", "learnMore": { "url": "https://learn.microsoft.com/powershell/module/az.support" }, diff --git a/src/Support/Support.Autorest/docs/Get-AzSupportChatTranscript.md b/src/Support/Support.Autorest/docs/Get-AzSupportChatTranscript.md index 096ae0e5d461..fbb29b5946cd 100644 --- a/src/Support/Support.Autorest/docs/Get-AzSupportChatTranscript.md +++ b/src/Support/Support.Autorest/docs/Get-AzSupportChatTranscript.md @@ -152,7 +152,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -Azure subscription Id. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] diff --git a/src/Support/Support.Autorest/docs/Get-AzSupportCommunication.md b/src/Support/Support.Autorest/docs/Get-AzSupportCommunication.md index 125b9d0d8f5d..58f9b056f583 100644 --- a/src/Support/Support.Autorest/docs/Get-AzSupportCommunication.md +++ b/src/Support/Support.Autorest/docs/Get-AzSupportCommunication.md @@ -263,7 +263,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -Azure subscription Id. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] diff --git a/src/Support/Support.Autorest/docs/Get-AzSupportFile.md b/src/Support/Support.Autorest/docs/Get-AzSupportFile.md index 4d8b4f96e119..d3f04babbe32 100644 --- a/src/Support/Support.Autorest/docs/Get-AzSupportFile.md +++ b/src/Support/Support.Autorest/docs/Get-AzSupportFile.md @@ -182,7 +182,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -Azure subscription Id. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] diff --git a/src/Support/Support.Autorest/docs/Get-AzSupportFileWorkspace.md b/src/Support/Support.Autorest/docs/Get-AzSupportFileWorkspace.md index ece898b02d53..ff3b60999153 100644 --- a/src/Support/Support.Autorest/docs/Get-AzSupportFileWorkspace.md +++ b/src/Support/Support.Autorest/docs/Get-AzSupportFileWorkspace.md @@ -122,7 +122,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -Azure subscription Id. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String[] diff --git a/src/Support/Support.Autorest/docs/New-AzSupportCommunication.md b/src/Support/Support.Autorest/docs/New-AzSupportCommunication.md index bbc8da49a12d..c9f044905f42 100644 --- a/src/Support/Support.Autorest/docs/New-AzSupportCommunication.md +++ b/src/Support/Support.Autorest/docs/New-AzSupportCommunication.md @@ -154,7 +154,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -Azure subscription Id. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/Support/Support.Autorest/docs/New-AzSupportFileWorkspace.md b/src/Support/Support.Autorest/docs/New-AzSupportFileWorkspace.md index facc12d03b6b..2b565caf9bc6 100644 --- a/src/Support/Support.Autorest/docs/New-AzSupportFileWorkspace.md +++ b/src/Support/Support.Autorest/docs/New-AzSupportFileWorkspace.md @@ -78,7 +78,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -Azure subscription Id. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/Support/Support.Autorest/docs/New-AzSupportTicket.md b/src/Support/Support.Autorest/docs/New-AzSupportTicket.md index 0e3e5ebc8900..08bfb7ccd7ee 100644 --- a/src/Support/Support.Autorest/docs/New-AzSupportTicket.md +++ b/src/Support/Support.Autorest/docs/New-AzSupportTicket.md @@ -635,7 +635,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -Azure subscription Id. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/Support/Support.Autorest/docs/Test-AzSupportCommunicationNameAvailability.md b/src/Support/Support.Autorest/docs/Test-AzSupportCommunicationNameAvailability.md index 1188e75899d7..323e88a86348 100644 --- a/src/Support/Support.Autorest/docs/Test-AzSupportCommunicationNameAvailability.md +++ b/src/Support/Support.Autorest/docs/Test-AzSupportCommunicationNameAvailability.md @@ -167,7 +167,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -Azure subscription Id. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/Support/Support.Autorest/docs/Test-AzSupportTicketNameAvailability.md b/src/Support/Support.Autorest/docs/Test-AzSupportTicketNameAvailability.md index e31edc1665d9..3a53829e0ca4 100644 --- a/src/Support/Support.Autorest/docs/Test-AzSupportTicketNameAvailability.md +++ b/src/Support/Support.Autorest/docs/Test-AzSupportTicketNameAvailability.md @@ -153,7 +153,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -Azure subscription Id. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String diff --git a/src/Support/Support.Autorest/docs/Update-AzSupportTicket.md b/src/Support/Support.Autorest/docs/Update-AzSupportTicket.md index 6547269f915e..490e15b2a931 100644 --- a/src/Support/Support.Autorest/docs/Update-AzSupportTicket.md +++ b/src/Support/Support.Autorest/docs/Update-AzSupportTicket.md @@ -349,7 +349,8 @@ Accept wildcard characters: False ``` ### -SubscriptionId -Azure subscription Id. +The ID of the target subscription. +The value must be an UUID. ```yaml Type: System.String