Skip to content

Commit

Permalink
consolidate list and get communicationsnosubscription and chattranscr…
Browse files Browse the repository at this point in the history
…iptsnosubscription
  • Loading branch information
grhuangmsft committed Mar 6, 2024
1 parent 8a00ab3 commit 962bda3
Show file tree
Hide file tree
Showing 9 changed files with 59 additions and 288 deletions.
2 changes: 1 addition & 1 deletion src/Support/Support.Autorest/Az.Support.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
DotNetFrameworkVersion = '4.7.2'
RequiredAssemblies = './bin/Az.Support.private.dll'
FormatsToProcess = './Az.Support.format.ps1xml'
FunctionsToExport = 'Get-AzSupportChatTranscript', 'Get-AzSupportChatTranscriptsNoSubscription', 'Get-AzSupportCommunication', 'Get-AzSupportCommunicationsNoSubscription', 'Get-AzSupportFile', 'Get-AzSupportFilesNoSubscription', 'Get-AzSupportFileWorkspace', 'Get-AzSupportFileWorkspacesNoSubscription', 'Get-AzSupportOperation', 'Get-AzSupportProblemClassification', 'Get-AzSupportService', 'Get-AzSupportTicket', 'Get-AzSupportTicketChatTranscriptsNoSubscription', 'Get-AzSupportTicketCommunicationsNoSubscription', 'Get-AzSupportTicketsNoSubscription', 'New-AzSupportCommunication', 'New-AzSupportCommunicationsNoSubscription', 'New-AzSupportFileAndUpload', 'New-AzSupportFileAndUploadNoSubscription', 'New-AzSupportFileWorkspace', 'New-AzSupportFileWorkspacesNoSubscription', 'New-AzSupportTicket', 'New-AzSupportTicketsNoSubscription', 'Test-AzSupportCommunicationNameAvailability', 'Test-AzSupportCommunicationsNoSubscriptionNameAvailability', 'Test-AzSupportTicketNameAvailability', 'Test-AzSupportTicketsNoSubscriptionNameAvailability', 'Update-AzSupportTicket', 'Update-AzSupportTicketsNoSubscription'
FunctionsToExport = 'Get-AzSupportChatTranscript', 'Get-AzSupportChatTranscriptsNoSubscription', 'Get-AzSupportCommunication', 'Get-AzSupportCommunicationsNoSubscription', 'Get-AzSupportFile', 'Get-AzSupportFilesNoSubscription', 'Get-AzSupportFileWorkspace', 'Get-AzSupportFileWorkspacesNoSubscription', 'Get-AzSupportOperation', 'Get-AzSupportProblemClassification', 'Get-AzSupportService', 'Get-AzSupportTicket', 'Get-AzSupportTicketsNoSubscription', 'New-AzSupportCommunication', 'New-AzSupportCommunicationsNoSubscription', 'New-AzSupportFileAndUpload', 'New-AzSupportFileAndUploadNoSubscription', 'New-AzSupportFileWorkspace', 'New-AzSupportFileWorkspacesNoSubscription', 'New-AzSupportTicket', 'New-AzSupportTicketsNoSubscription', 'Test-AzSupportCommunicationNameAvailability', 'Test-AzSupportCommunicationsNoSubscriptionNameAvailability', 'Test-AzSupportTicketNameAvailability', 'Test-AzSupportTicketsNoSubscriptionNameAvailability', 'Update-AzSupportTicket', 'Update-AzSupportTicketsNoSubscription'
PrivateData = @{
PSData = @{
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Support'
Expand Down
8 changes: 8 additions & 0 deletions src/Support/Support.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,14 @@ directive:
- from: swagger-document
where: $.definitions.SupportTicketDetails
transform: $.required = ['properties']
- 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");
Expand Down
11 changes: 0 additions & 11 deletions src/Support/Support.Autorest/docs/Az.Support.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,6 @@ Get ticket details for an Azure subscription.
Support ticket data is available for 18 months after ticket creation.
If a ticket was created more than 18 months ago, a request for data might cause an error.

### [Get-AzSupportTicketChatTranscriptsNoSubscription](Get-AzSupportTicketChatTranscriptsNoSubscription.md)
Lists all chat transcripts for a support ticket

### [Get-AzSupportTicketCommunicationsNoSubscription](Get-AzSupportTicketCommunicationsNoSubscription.md)
Lists all communications (attachments not included) for a support ticket.
\<br/\>\</br\> You can also filter support ticket communications by _CreatedDate_ or _CommunicationType_ using the $filter parameter.
The only type of communication supported today is _Web_.
Output will be a paged result with _nextLink_, using which you can retrieve the next set of Communication results.
\<br/\>\<br/\>Support ticket data is available for 18 months after ticket creation.
If a ticket was created more than 18 months ago, a request for data might cause an error.

### [Get-AzSupportTicketsNoSubscription](Get-AzSupportTicketsNoSubscription.md)
Gets details for a specific support ticket.
Support ticket data is available for 18 months after ticket creation.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@ Returns chatTranscript details for a no subscription support ticket.

## SYNTAX

### Get (Default)
### List (Default)
```
Get-AzSupportChatTranscriptsNoSubscription -SupportTicketName <String> [-DefaultProfile <PSObject>]
[<CommonParameters>]
```

### Get
```
Get-AzSupportChatTranscriptsNoSubscription -ChatTranscriptName <String> -SupportTicketName <String>
[-DefaultProfile <PSObject>] [<CommonParameters>]
Expand Down Expand Up @@ -127,7 +133,7 @@ Support ticket name.
```yaml
Type: System.String
Parameter Sets: Get
Parameter Sets: Get, List
Aliases:

Required: True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@ Returns communication details for a support ticket.

## SYNTAX

### Get (Default)
### List (Default)
```
Get-AzSupportCommunicationsNoSubscription -SupportTicketName <String> [-Filter <String>] [-Top <Int32>]
[-DefaultProfile <PSObject>] [<CommonParameters>]
```

### Get
```
Get-AzSupportCommunicationsNoSubscription -CommunicationName <String> -SupportTicketName <String>
[-DefaultProfile <PSObject>] [<CommonParameters>]
Expand Down Expand Up @@ -90,6 +96,24 @@ Accept pipeline input: False
Accept wildcard characters: False
```
### -Filter
The filter to apply on the operation.
You can filter by communicationType and createdDate properties.
CommunicationType supports Equals ('eq') operator and createdDate supports Greater Than ('gt') and Greater Than or Equals ('ge') operators.
You may combine the CommunicationType and CreatedDate filters by Logical And ('and') operator.
```yaml
Type: System.String
Parameter Sets: List
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -InputObject
Identity Parameter
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
Expand Down Expand Up @@ -127,7 +151,7 @@ Support ticket name.
```yaml
Type: System.String
Parameter Sets: Get
Parameter Sets: Get, List
Aliases:

Required: True
Expand All @@ -137,6 +161,22 @@ Accept pipeline input: False
Accept wildcard characters: False
```
### -Top
The number of values to return in the collection.
Default is 10 and max is 10.
```yaml
Type: System.Int32
Parameter Sets: List
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216).
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 962bda3

Please sign in to comment.