Skip to content

Commit 1e7f414

Browse files
authored
Merge pull request #8 from grhuangmsft/users/grhuang/documentation-and-nosubfixes
Update table formatting, parameter aliasing, documentation
2 parents da3c0a6 + 4600eba commit 1e7f414

23 files changed

+379
-193
lines changed

src/Support/Support.Autorest/README.md

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,48 @@ directive:
7878
- ChunkSize
7979
- FileSize
8080
- NumberOfChunks
81+
- where:
82+
model-name: SupportTicketDetails
83+
set:
84+
format-table:
85+
properties:
86+
- Name
87+
- Title
88+
- SupportTicketId
89+
- Severity
90+
- ServiceDisplayName
91+
- CreatedDate
92+
- where:
93+
model-name: CommunicationDetails
94+
set:
95+
format-table:
96+
properties:
97+
- Name
98+
- Sender
99+
- Subject
100+
- CreatedDate
101+
- where:
102+
model-name: ChatTranscriptDetails
103+
set:
104+
format-table:
105+
properties:
106+
- Name
107+
- StartTime
108+
- where:
109+
subject: CommunicationsNoSubscription
110+
parameter-name: CommunicationName
111+
set:
112+
alias: Name
113+
- where:
114+
subject: SupportTicketsNoSubscription
115+
parameter-name: SupportTicketName
116+
set:
117+
alias: Name
118+
- where:
119+
subject: ChatTranscriptsNoSubscription
120+
parameter-name: ChatTranscriptName
121+
set:
122+
alias: Name
81123
- where:
82124
subject: UploadFile
83125
parameter-name: FileWorkspaceName
@@ -141,6 +183,11 @@ directive:
141183
- from: swagger-document
142184
where: $.definitions.SupportTicketDetails
143185
transform: $.required = ['properties']
186+
# only needed for 2022 preview version, should be able to remove for GA
187+
- from: swagger-document
188+
where: $.definitions.SupportTicketDetailsProperties
189+
transform: $.required = ['serviceId','title','description','problemClassificationId','severity','contactDetails', 'advancedDiagnosticConsent']
190+
144191
- from: swagger-document
145192
where: $.paths["/providers/Microsoft.Support/supportTickets/{supportTicketName}/chatTranscripts"].get.operationId
146193
transform: >-
@@ -158,7 +205,7 @@ directive:
158205
- from: GetAzSupportCommunication_List.cs
159206
where: $
160207
transform: $ = $.replace("!String.IsNullOrEmpty(_nextLink)" ,"!String.IsNullOrEmpty(_nextLink) && this._top <= 0");
161-
- from: GetAzSupportTicketCommunicationsNoSubscription_List.cs
208+
- from: GetAzSupportCommunicationsNoSubscription_List.cs
162209
where: $
163210
transform: $ = $.replace("!String.IsNullOrEmpty(_nextLink)" ,"!String.IsNullOrEmpty(_nextLink) && this._top <= 0");
164211
# Following are common directives which are normally required in all the RPs

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,10 @@ Returns chatTranscript details for a support ticket under a subscription.
4646
```
4747

4848
```output
49-
Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType SystemDataLastModi
50-
fiedAt
51-
---- ------------------- ------------------- ----------------------- ------------------
52-
595df7b4-167f-4f3e-8292-f0ba2b8a53f9
53-
f8b45cd6-a8ec-40e2-b846-a28b848553cf
49+
Name StartTime
50+
---- ---------
51+
595df7b4-167f-4f3e-8292-f0ba2b8a53f9 8/11/2023 7:27:49 PM
52+
f8b45cd6-a8ec-40e2-b846-a28b848553cf 8/11/2023 7:52:44 PM
5453
```
5554

5655
Lists all chat transcripts for a support ticket under subscription

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

Lines changed: 51 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,27 +41,67 @@ Returns chatTranscript details for a no subscription support ticket.
4141

4242
## EXAMPLES
4343

44-
### Example 1: {{ Add title here }}
44+
### Example 1: List chat transcripts under a no subscription support ticket
4545
```powershell
46-
{{ Add code here }}
46+
Get-AzSupportChatTranscriptsNoSubscription -SupportTicketName test12345
4747
```
4848

4949
```output
50-
{{ Add output here (remove the output block if the example doesn't have an output) }}
50+
Name StartTime
51+
---- ---------
52+
595df7b4-167f-4f3e-8292-f0ba2b8a53f9 8/11/2023 7:27:49 PM
53+
f8b45cd6-a8ec-40e2-b846-a28b848553cf 8/11/2023 7:52:44 PM
5154
```
5255

53-
{{ Add description here }}
56+
List chat transcripts under a no subscription support ticket
5457

55-
### Example 2: {{ Add title here }}
58+
### Example 2: Get details of a chat transcript under a no subscription support ticket
5659
```powershell
57-
{{ Add code here }}
60+
Get-AzSupportChatTranscriptsNoSubscription -SupportTicketName test12345 -Name 595df7b4-167f-4f3e-8292-f0ba2b8a53f9
5861
```
5962

6063
```output
61-
{{ Add output here (remove the output block if the example doesn't have an output) }}
62-
```
63-
64-
{{ Add description here }}
64+
Id : /providers/Microsoft.Support/supportT
65+
ickets/58cf91d7-bedfb285-617ecf73-d627-4bfd-9298-5950da2170b7/chatTranscripts/595df7b4-1
66+
67f-4f3e-8292-f0ba2b8a53f9
67+
Message : {{
68+
"contentType": "text",
69+
"communicationDirection": "Inbound",
70+
"sender": "",
71+
"body": "Hey",
72+
"createdDate": "2023-08-11T19:19:33.0000000Z"
73+
}, {
74+
"contentType": "text",
75+
"communicationDirection": "Outbound",
76+
"sender": "Aditi Takle",
77+
"body": "hi",
78+
"createdDate": "2023-08-11T19:19:38.0000000Z"
79+
}, {
80+
"contentType": "text",
81+
"communicationDirection": "Outbound",
82+
"sender": "Damian Spoltore",
83+
"body": "hi Aditi, I\u0027m Damian",
84+
"createdDate": "2023-08-11T19:24:19.0000000Z"
85+
}, {
86+
"contentType": "text",
87+
"communicationDirection": "Outbound",
88+
"sender": "Damian Spoltore",
89+
"body": "I was entering to test",
90+
"createdDate": "2023-08-11T19:24:24.0000000Z"
91+
}}
92+
Name : 595df7b4-167f-4f3e-8292-f0ba2b8a53f9
93+
ResourceGroupName :
94+
StartTime : 8/11/2023 7:27:49 PM
95+
SystemDataCreatedAt :
96+
SystemDataCreatedBy :
97+
SystemDataCreatedByType :
98+
SystemDataLastModifiedAt :
99+
SystemDataLastModifiedBy :
100+
SystemDataLastModifiedByType :
101+
Type : Microsoft.Support/chatTranscripts
102+
```
103+
104+
Get details of a chat transcript under a no subscription support ticket
65105

66106
## PARAMETERS
67107

@@ -71,7 +111,7 @@ ChatTranscript name.
71111
```yaml
72112
Type: System.String
73113
Parameter Sets: Get, GetViaIdentitySupportTicket
74-
Aliases:
114+
Aliases: Name
75115

76116
Required: True
77117
Position: Named

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

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,10 @@ Returns communication details for a support ticket.
4646
```
4747

4848
```output
49-
Name ResourceGroupName
50-
---- -----------------
51-
9079281d-0fcc-ee11-9079-6045bdef78de
52-
test123
53-
9ffd523a-5acb-ee11-9079-6045bdef7a0a
54-
590629b9-44cb-ee11-9079-6045bdef700d
55-
8a03e5d5-8eca-ee11-9079-6045bdeb5f9a
56-
14696079-8eca-ee11-9079-6045bdeb5f9a
57-
e0d2b429-7bca-ee11-907a-0022482a4908
49+
Name Sender Subject CreatedDate
50+
---- ------ ------- -----------
51+
590629b9-44cb-ee11-9079-6045bdef700d [email protected] test - TrackingID#2403080040012292 3/9/2024 2:21:58 AM
52+
ee25b14e-8fdd-ee11-904d-0022482a4908 [email protected] … 3/8/2024 9:03:35 PM
5853
```
5954

6055
Lists all communications (attachments not included) for a support ticket.

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

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,27 +41,40 @@ Returns communication details for a support ticket.
4141

4242
## EXAMPLES
4343

44-
### Example 1: {{ Add title here }}
44+
### Example 1: List all communications under a no subscription support ticket
4545
```powershell
46-
{{ Add code here }}
46+
Get-AzSupportCommunicationsNoSubscription -SupportTicketName test1234
4747
```
4848

4949
```output
50-
{{ Add output here (remove the output block if the example doesn't have an output) }}
50+
Name Sender Subject CreatedDate
51+
---- ------ ------- -----------
52+
testCommunication1 [email protected] this is a test subject - TrackingID#2403070040015890 3/11/2024 3:46:43 PM
53+
testCommunication2 [email protected] this is a test subject - TrackingID#2403070040015890 3/11/2024 3:46:43 PM
5154
```
5255

53-
{{ Add description here }}
56+
List all communications under a no subscription support ticket
5457

55-
### Example 2: {{ Add title here }}
58+
### Example 2: Get a communication under a no subscription support ticket
5659
```powershell
57-
{{ Add code here }}
60+
Get-AzSupportCommunicationsNoSubscription -SupportTicketName test1234 -Name testCommunication1
61+
5862
```
5963

6064
```output
61-
{{ Add output here (remove the output block if the example doesn't have an output) }}
65+
Body : <pre>this is a test body</pre>
66+
CommunicationDirection : Inbound
67+
CommunicationType : Web
68+
CreatedDate : 3/7/2024 11:53:33 PM
69+
Id : /providers/Microsoft.Support/supportTickets/test1234/communications/testCommunication1
70+
Name : testCommunication
71+
ResourceGroupName :
72+
73+
Subject : this is a test subject - TrackingID#2403070040015890
74+
Type : Microsoft.Support/communications
6275
```
6376

64-
{{ Add description here }}
77+
Get a communication under a no subscription support ticket
6578

6679
## PARAMETERS
6780

@@ -71,7 +84,7 @@ Communication name.
7184
```yaml
7285
Type: System.String
7386
Parameter Sets: Get, GetViaIdentitySupportTicket
74-
Aliases:
87+
Aliases: Name
7588

7689
Required: True
7790
Position: Named

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Lists all the available Microsoft Support REST API operations.
2121

2222
## EXAMPLES
2323

24-
### Example 1: {{ Add title here }}
24+
### Example 1: List Azure Support operations
2525
```powershell
2626
Get-AzSupportOperation
2727
```

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ Get-AzSupportProblemClassification -ServiceName "6f16735c-b0ae-b275-ad3a-03479cf
4646
```
4747

4848
```output
49-
DisplayName Name SecondaryConsentEnabled
50-
----------- ---- -----------------------
51-
Compute-VM (cores-vCPUs) subscription limit increases 4d78b174-3203-a3ac-9e08-41fb35de6354
52-
Windows Update, Guest Patching and OS Upgrades / Issue with Azure Automatic VM guest patching e565bd13-86f0-ecb3-d2b7-0a7501ae8839
53-
Windows Update, Guest Patching and OS Upgrades / Issue with Azure Update Management patching 8d686480-ef41-5005-358e-12b9be9608fe
49+
DisplayName Name SecondaryConsentEnabled
50+
----------- ---- -----------------------
51+
Compute-VM (cores-vCPUs) subscription limit increases 4d78b174-3203-a3ac-9e08-41fb35de6354
52+
Windows Update, Guest Patching and OS Upgrades / Issue with Azure Automatic VM guest patching e565bd13-86f0-ecb3-d2b7-0a7501ae8839
53+
Windows Update, Guest Patching and OS Upgrades / Issue with Azure Update Management patching 8d686480-ef41-5005-358e-12b9be9608fe
5454
```
5555

5656
Lists all the problem classifications (categories) available for a specific Azure service.

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

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,14 @@ If a ticket was created more than 18 months ago, a request for data might cause
4040

4141
### Example 1: Get list of support tickets at subscription level
4242
```powershell
43-
Get-AzSupportTicket -Filter "CreatedDate ge 2024-02-21"
43+
Get-AzSupportTicket
4444
```
4545

4646
```output
47-
Name ResourceGroupName
48-
---- -----------------
49-
test1-5dda17d0-a60d-4f4c-82e3-0fe3604c0ed4
50-
test-5dda17d0-a60d-4f4c-82e3-0fe3604c0ed4
51-
test1-8fd280ac-966b-41da-b6f5-ad630c784feb
52-
test-8fd280ac-966b-41da-b6f5-ad630c784feb
53-
test1-a31f113b-8f99-4a8d-8016-33aec8165a20
47+
Name Title SupportTicketId Severity ServiceDisplayName CreatedDate
48+
---- ----- --------------- -------- ------------------ -----------
49+
517f2da6-9bc71cda-278fc71b-7b86-4289-baec-922e8be1a04a test 2403080040012292 Minimal Billing 3/8/2024 9:03:26 PM
50+
test1-5dda17d0-a60d-4f4c-82e3-0fe3604c0ed4 test ticket - please ignore and close 2403060040007460 Minimal Billing 3/6/2024 3:09:28 PM
5451
5552
Lists all the support tickets for an Azure subscription
5653

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

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,13 @@ If a ticket was created more than 18 months ago, a request for data might cause
4545
```
4646

4747
```output
48-
Name ResourceGroupName
49-
---- -----------------
50-
test1-5dda17d0-a60d-4f4c-82e3-0fe3604c0ed4
51-
test-5dda17d0-a60d-4f4c-82e3-0fe3604c0ed4
52-
test1-8fd280ac-966b-41da-b6f5-ad630c784feb
53-
test-8fd280ac-966b-41da-b6f5-ad630c784feb
54-
test1-a31f113b-8f99-4a8d-8016-33aec8165a20
55-
test-a31f113b-8f99-4a8d-8016-33aec8165a20
56-
test1-9fbdfed4-20e5-47ee-b36e-455ca16bb46b
57-
test-9fbdfed4-20e5-47ee-b36e-455ca16bb46b
58-
test-1c0ad9a1-f2fb-44a7-b776-7400e0b286a8
48+
Name Title SupportTicketId Severity ServiceDisplayName CreatedDate
49+
---- ----- --------------- -------- ------------------ -----------
50+
2403110040009092 test ticket please ignore and close 2403110040009092 Minimal Billing 3/11/2024 3:46:20 PM
51+
test-41b4ec72-8634-4e03-978e-15bde625be00 test ticket - please ignore and close 2403070040010395 Minimal Billing 3/7/2024 5:35:55 PM
52+
test-270a8ba4-7083-4b02-8b32-b5c2cdc55e78 test ticket - please ignore and close 2403070040010346 Minimal Billing 3/7/2024 5:32:40 PM
53+
test-8dad4b97-5ff5-4a1e-bb6e-d323348db3f2 test ticket - please ignore and close 2403070040009816 Minimal Billing 3/7/2024 5:04:36 PM
54+
test-0d8ee1f2-89d6-4078-8c1a-5845673966a1 test ticket - please ignore and close 2403070040009769 Minimal Billing 3/7/2024 5:02:44 PM
5955
```
6056

6157
Lists all the support tickets.
@@ -113,7 +109,7 @@ Title : test ticket - please ignore and clo
113109
Type : Microsoft.Support/supportTickets
114110
```
115111

116-
Lists all the support tickets
112+
Gets details of a support ticket
117113

118114
## PARAMETERS
119115

@@ -174,7 +170,7 @@ Support ticket name.
174170
```yaml
175171
Type: System.String
176172
Parameter Sets: Get
177-
Aliases:
173+
Aliases: Name
178174

179175
Required: True
180176
Position: Named

src/Support/Support.Autorest/docs/New-AzSupportCommunicationsNoSubscription.md

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,27 +23,26 @@ Adds a new customer communication to an Azure support ticket.
2323

2424
## EXAMPLES
2525

26-
### Example 1: {{ Add title here }}
26+
### Example 1: Create a new communication under a no subscription ticket
2727
```powershell
28-
{{ Add code here }}
28+
New-AzSupportCommunicationsNoSubscription -SupportTicketName test1234 -Name testCommunication2 -Subject test -Body test
2929
```
3030

3131
```output
32-
{{ Add output here (remove the output block if the example doesn't have an output) }}
32+
Body : <pre>test</pre>
33+
CommunicationDirection : Inbound
34+
CommunicationType : Web
35+
CreatedDate : 3/11/2024 2:21:32 PM
36+
Id : /providers/Microsoft.Support/supportTickets/test-7d6ad184-eb1d-40b1-ae43-5b4312b702d4/communications/33445ea3-b
37+
2df-ee11-904d-00224835ac0b
38+
Name : 33445ea3-b2df-ee11-904d-00224835ac0b
39+
ResourceGroupName :
40+
41+
Subject : test - TrackingID#2403070040015890
42+
Type : Microsoft.Support/communications
3343
```
3444

35-
{{ Add description here }}
36-
37-
### Example 2: {{ Add title here }}
38-
```powershell
39-
{{ Add code here }}
40-
```
41-
42-
```output
43-
{{ Add output here (remove the output block if the example doesn't have an output) }}
44-
```
45-
46-
{{ Add description here }}
45+
Create a new communication under a no subscription ticket
4746

4847
## PARAMETERS
4948

@@ -83,7 +82,7 @@ Communication name.
8382
```yaml
8483
Type: System.String
8584
Parameter Sets: (All)
86-
Aliases:
85+
Aliases: Name
8786

8887
Required: True
8988
Position: Named

0 commit comments

Comments
 (0)