Skip to content

Commit 6f2684b

Browse files
authored
Regenerate powershell module with GA swagger (#13)
1 parent c6b7740 commit 6f2684b

17 files changed

+28
-44
lines changed

src/Support/Support.Autorest/README.md

Lines changed: 2 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ For information on how to develop for `Az.Support`, see [how-to.md](how-to.md).
3131
3232
```yaml
3333
# pin the swagger version by using the commit id instead of branch name
34-
commit: 138bfbe2562a56cc9c84e003229b9440beaf419c
34+
commit: 791ef5476e10bb15ab9ad46e2c2d8835ac24ac24
3535
require:
3636
# readme.azure.noprofile.md is the common configuration file
3737
- $(this-folder)/../../readme.azure.noprofile.md
3838
# If the swagger has not been put in the repo, you may uncomment the following line and refer to it locally
3939
# - (this-folder)/relative-path-to-your-local-readme.md
4040
input-file:
41-
- $(repo)/specification/support/resource-manager/Microsoft.Support/preview/2022-09-01-preview/support.json
41+
- $(repo)/specification/support/resource-manager/Microsoft.Support/stable/2024-04-01/support.json
4242

4343
# For new RP, the version is 0.1.0
4444
module-version: 0.1.0
@@ -199,32 +199,6 @@ directive:
199199
verb: Update
200200
subject: CommunicationsNoSubscription
201201
remove: true
202-
- from: swagger-document
203-
where: $.definitions.CommunicationDetails
204-
transform: $.required = ['properties']
205-
- from: swagger-document
206-
where: $.definitions.SupportTicketDetails
207-
transform: $.required = ['properties']
208-
- from: swagger-document
209-
where: $.definitions.SupportTicketDetailsProperties.properties.enrollmentId
210-
transform: >-
211-
return {
212-
"description": "Enrollment Id associated with the support ticket.",
213-
"type": "string",
214-
}
215-
# only needed for 2022 preview version, should be able to remove for GA
216-
- from: swagger-document
217-
where: $.definitions.SupportTicketDetailsProperties
218-
transform: $.required = ['serviceId','title','description','problemClassificationId','severity','contactDetails', 'advancedDiagnosticConsent']
219-
220-
- from: swagger-document
221-
where: $.paths["/providers/Microsoft.Support/supportTickets/{supportTicketName}/chatTranscripts"].get.operationId
222-
transform: >-
223-
return "ChatTranscriptsNoSubscription_List"
224-
- from: swagger-document
225-
where: $.paths["/providers/Microsoft.Support/supportTickets/{supportTicketName}/communications"].get.operationId
226-
transform: >-
227-
return "CommunicationsNoSubscription_List"
228202
- from: GetAzSupportTicket_List.cs
229203
where: $
230204
transform: $ = $.replace("!String.IsNullOrEmpty(_nextLink)" ,"!String.IsNullOrEmpty(_nextLink) && this._top <= 0");

src/Support/Support.Autorest/UX/Microsoft.Support/fileWorkspaces-files.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "fileWorkspaces/files",
3-
"apiVersion": "2022-09-01-preview",
3+
"apiVersion": "2024-04-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.support"
66
},

src/Support/Support.Autorest/UX/Microsoft.Support/fileWorkspaces.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "fileWorkspaces",
3-
"apiVersion": "2022-09-01-preview",
3+
"apiVersion": "2024-04-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.support"
66
},

src/Support/Support.Autorest/UX/Microsoft.Support/services-problemClassifications.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "services/problemClassifications",
3-
"apiVersion": "2022-09-01-preview",
3+
"apiVersion": "2024-04-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.support"
66
},

src/Support/Support.Autorest/UX/Microsoft.Support/services.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "services",
3-
"apiVersion": "2022-09-01-preview",
3+
"apiVersion": "2024-04-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.support"
66
},

src/Support/Support.Autorest/UX/Microsoft.Support/supportTickets-chatTranscripts.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "supportTickets/chatTranscripts",
3-
"apiVersion": "2022-09-01-preview",
3+
"apiVersion": "2024-04-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.support"
66
},

src/Support/Support.Autorest/UX/Microsoft.Support/supportTickets-communications.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"resourceType": "supportTickets/communications",
3-
"apiVersion": "2022-09-01-preview",
3+
"apiVersion": "2024-04-01",
44
"learnMore": {
55
"url": "https://learn.microsoft.com/powershell/module/az.support"
66
},

src/Support/Support.Autorest/docs/Get-AzSupportChatTranscript.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ Accept wildcard characters: False
152152
```
153153
154154
### -SubscriptionId
155-
Azure subscription Id.
155+
The ID of the target subscription.
156+
The value must be an UUID.
156157
157158
```yaml
158159
Type: System.String[]

src/Support/Support.Autorest/docs/Get-AzSupportCommunication.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,8 @@ Accept wildcard characters: False
263263
```
264264
265265
### -SubscriptionId
266-
Azure subscription Id.
266+
The ID of the target subscription.
267+
The value must be an UUID.
267268
268269
```yaml
269270
Type: System.String[]

src/Support/Support.Autorest/docs/Get-AzSupportFile.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ Accept wildcard characters: False
182182
```
183183
184184
### -SubscriptionId
185-
Azure subscription Id.
185+
The ID of the target subscription.
186+
The value must be an UUID.
186187
187188
```yaml
188189
Type: System.String[]

0 commit comments

Comments
 (0)