Skip to content

Commit

Permalink
make transformations in swagger in readme to make enrollment id not r…
Browse files Browse the repository at this point in the history
…eadonly and show isTempTicket (#11)
  • Loading branch information
grhuangmsft authored Mar 19, 2024
1 parent 112512e commit 9e778f0
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 5 deletions.
9 changes: 8 additions & 1 deletion src/Support/Support.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ 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: 99b27b136352e2f16c3f868857fa33157ace895f
commit: 138bfbe2562a56cc9c84e003229b9440beaf419c
require:
# readme.azure.noprofile.md is the common configuration file
- $(this-folder)/../../readme.azure.noprofile.md
Expand Down Expand Up @@ -191,6 +191,13 @@ directive:
- 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
Expand Down
20 changes: 18 additions & 2 deletions src/Support/Support.Autorest/docs/New-AzSupportTicket.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ New-AzSupportTicket -Name <String> -AdvancedDiagnosticConsent <String> -ContactD
-ContactDetailPreferredTimeZone <String> -ContactDetailPrimaryEmailAddress <String> -Description <String>
-ProblemClassificationId <String> -ServiceId <String> -Severity <String> -Title <String>
[-SubscriptionId <String>] [-ContactDetailAdditionalEmailAddress <String[]>]
[-ContactDetailPhoneNumber <String>] [-FileWorkspaceName <String>] [-ProblemScopingQuestion <String>]
[-ProblemStartTime <DateTime>] [-QuotaTicketDetailQuotaChangeRequest <IQuotaChangeRequest[]>]
[-ContactDetailPhoneNumber <String>] [-EnrollmentId <String>] [-FileWorkspaceName <String>]
[-ProblemScopingQuestion <String>] [-ProblemStartTime <DateTime>]
[-QuotaTicketDetailQuotaChangeRequest <IQuotaChangeRequest[]>]
[-QuotaTicketDetailQuotaChangeRequestSubType <String>] [-QuotaTicketDetailQuotaChangeRequestVersion <String>]
[-Require24X7Response] [-SecondaryConsent <ISecondaryConsent[]>] [-SupportPlanId <String>]
[-SupportTicketId <String>] [-TechnicalTicketDetailResourceId <String>] [-DefaultProfile <PSObject>] [-AsJob]
Expand Down Expand Up @@ -419,6 +420,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```
### -EnrollmentId
Enrollment Id associated with the support ticket.
```yaml
Type: System.String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -FileWorkspaceName
File workspace name.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ New-AzSupportTicketsNoSubscription -SupportTicketName <String> -AdvancedDiagnost
-ContactDetailPreferredTimeZone <String> -ContactDetailPrimaryEmailAddress <String> -Description <String>
-ProblemClassificationId <String> -ServiceId <String> -Severity <String> -Title <String>
[-ContactDetailAdditionalEmailAddress <String[]>] [-ContactDetailPhoneNumber <String>]
[-FileWorkspaceName <String>] [-ProblemScopingQuestion <String>] [-ProblemStartTime <DateTime>]
[-QuotaTicketDetailQuotaChangeRequest <IQuotaChangeRequest[]>]
[-EnrollmentId <String>] [-FileWorkspaceName <String>] [-ProblemScopingQuestion <String>]
[-ProblemStartTime <DateTime>] [-QuotaTicketDetailQuotaChangeRequest <IQuotaChangeRequest[]>]
[-QuotaTicketDetailQuotaChangeRequestSubType <String>] [-QuotaTicketDetailQuotaChangeRequestVersion <String>]
[-Require24X7Response] [-SecondaryConsent <ISecondaryConsent[]>] [-SupportPlanId <String>]
[-SupportTicketId <String>] [-TechnicalTicketDetailResourceId <String>] [-DefaultProfile <PSObject>] [-AsJob]
Expand Down Expand Up @@ -297,6 +297,21 @@ Accept pipeline input: False
Accept wildcard characters: False
```
### -EnrollmentId
Enrollment Id associated with the support ticket.
```yaml
Type: System.String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
```
### -FileWorkspaceName
File workspace name.
Expand Down

0 comments on commit 9e778f0

Please sign in to comment.