Skip to content

Commit b953811

Browse files
committed
autogen docs for no sub file upload
1 parent a5b213d commit b953811

File tree

5 files changed

+197
-1
lines changed

5 files changed

+197
-1
lines changed

src/Support/Support.Autorest/Az.Support.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
DotNetFrameworkVersion = '4.7.2'
1212
RequiredAssemblies = './bin/Az.Support.private.dll'
1313
FormatsToProcess = './Az.Support.format.ps1xml'
14-
FunctionsToExport = 'Get-AzSupportChatTranscript', 'Get-AzSupportChatTranscriptsNoSubscription', 'Get-AzSupportCommunication', 'Get-AzSupportCommunicationsNoSubscription', 'Get-AzSupportFile', 'Get-AzSupportFilesNoSubscription', 'Get-AzSupportFileWorkspace', 'Get-AzSupportFileWorkspacesNoSubscription', 'Get-AzSupportProblemClassification', 'Get-AzSupportService', 'Get-AzSupportTicket', 'Get-AzSupportTicketChatTranscriptsNoSubscription', 'Get-AzSupportTicketCommunicationsNoSubscription', 'Get-AzSupportTicketsNoSubscription', 'Invoke-AzSupportUploadFile', 'Invoke-AzSupportUploadFilesNoSubscription', 'New-AzSupportCommunication', 'New-AzSupportCommunicationsNoSubscription', 'New-AzSupportFile', 'New-AzSupportFileAndUpload', 'New-AzSupportFilesNoSubscription', 'New-AzSupportFileWorkspace', 'New-AzSupportFileWorkspacesNoSubscription', 'New-AzSupportTicket', 'New-AzSupportTicketsNoSubscription', 'Test-AzSupportCommunicationNameAvailability', 'Test-AzSupportCommunicationsNoSubscriptionNameAvailability', 'Test-AzSupportTicketNameAvailability', 'Test-AzSupportTicketsNoSubscriptionNameAvailability', 'Update-AzSupportCommunication', 'Update-AzSupportCommunicationsNoSubscription', 'Update-AzSupportFile', 'Update-AzSupportFilesNoSubscription', 'Update-AzSupportTicket', 'Update-AzSupportTicketsNoSubscription'
14+
FunctionsToExport = 'Get-AzSupportChatTranscript', 'Get-AzSupportChatTranscriptsNoSubscription', 'Get-AzSupportCommunication', 'Get-AzSupportCommunicationsNoSubscription', 'Get-AzSupportFile', 'Get-AzSupportFilesNoSubscription', 'Get-AzSupportFileWorkspace', 'Get-AzSupportFileWorkspacesNoSubscription', 'Get-AzSupportProblemClassification', 'Get-AzSupportService', 'Get-AzSupportTicket', 'Get-AzSupportTicketChatTranscriptsNoSubscription', 'Get-AzSupportTicketCommunicationsNoSubscription', 'Get-AzSupportTicketsNoSubscription', 'Invoke-AzSupportUploadFile', 'Invoke-AzSupportUploadFilesNoSubscription', 'New-AzSupportCommunication', 'New-AzSupportCommunicationsNoSubscription', 'New-AzSupportFile', 'New-AzSupportFileAndUpload', 'New-AzSupportFileAndUploadNoSubscription', 'New-AzSupportFilesNoSubscription', 'New-AzSupportFileWorkspace', 'New-AzSupportFileWorkspacesNoSubscription', 'New-AzSupportTicket', 'New-AzSupportTicketsNoSubscription', 'Test-AzSupportCommunicationNameAvailability', 'Test-AzSupportCommunicationsNoSubscriptionNameAvailability', 'Test-AzSupportTicketNameAvailability', 'Test-AzSupportTicketsNoSubscriptionNameAvailability', 'Update-AzSupportCommunication', 'Update-AzSupportCommunicationsNoSubscription', 'Update-AzSupportFile', 'Update-AzSupportFilesNoSubscription', 'Update-AzSupportTicket', 'Update-AzSupportTicketsNoSubscription'
1515
PrivateData = @{
1616
PSData = @{
1717
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'Support'

src/Support/Support.Autorest/docs/Az.Support.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ Creates a new file under a workspace for the specified subscription.
8080
### [New-AzSupportFileAndUpload](New-AzSupportFileAndUpload.md)
8181
Creates and uploads a new file under a workspace for the specified subscription.
8282

83+
### [New-AzSupportFileAndUploadNoSubscription](New-AzSupportFileAndUploadNoSubscription.md)
84+
Creates and uploads a new file under a workspace for the specified subscription.
85+
8386
### [New-AzSupportFilesNoSubscription](New-AzSupportFilesNoSubscription.md)
8487
Creates a new file under a workspace.
8588

Lines changed: 150 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
---
2+
external help file:
3+
Module Name: Az.Support
4+
online version: https://learn.microsoft.com/powershell/module/az.support/new-azsupportfile
5+
schema: 2.0.0
6+
---
7+
8+
# New-AzSupportFileAndUploadNoSubscription
9+
10+
## SYNOPSIS
11+
Creates and uploads a new file under a workspace for the specified subscription.
12+
13+
## SYNTAX
14+
15+
```
16+
New-AzSupportFileAndUploadNoSubscription -Name <String> -WorkspaceName <String> -FilePath <String>
17+
[-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
18+
```
19+
20+
## DESCRIPTION
21+
Creates and uploads a new file under a workspace for the specified subscription.
22+
23+
## EXAMPLES
24+
25+
### -------------------------- EXAMPLE 1 --------------------------
26+
```powershell
27+
{{ Add code here }}
28+
```
29+
30+
31+
32+
### -------------------------- EXAMPLE 2 --------------------------
33+
```powershell
34+
{{ Add code here }}
35+
```
36+
37+
38+
39+
## PARAMETERS
40+
41+
### -DefaultProfile
42+
The DefaultProfile parameter is not functional.
43+
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
44+
45+
```yaml
46+
Type: System.Management.Automation.PSObject
47+
Parameter Sets: (All)
48+
Aliases: AzureRMContext, AzureCredential
49+
50+
Required: False
51+
Position: Named
52+
Default value: None
53+
Accept pipeline input: False
54+
Accept wildcard characters: False
55+
```
56+
57+
### -FilePath
58+
[Parameter(Mandatory)]
59+
[Microsoft.Azure.PowerShell.Cmdlets.Support.Category('Body')]
60+
[System.Single]
61+
# Number of chunks to be uploaded
62+
${NumberOfChunk},
63+
Path of the file to be uploaded
64+
65+
```yaml
66+
Type: System.String
67+
Parameter Sets: (All)
68+
Aliases:
69+
70+
Required: True
71+
Position: Named
72+
Default value: None
73+
Accept pipeline input: False
74+
Accept wildcard characters: False
75+
```
76+
77+
### -Name
78+
File name.
79+
80+
```yaml
81+
Type: System.String
82+
Parameter Sets: (All)
83+
Aliases: FileName
84+
85+
Required: True
86+
Position: Named
87+
Default value: None
88+
Accept pipeline input: False
89+
Accept wildcard characters: False
90+
```
91+
92+
### -WorkspaceName
93+
File workspace name.
94+
95+
```yaml
96+
Type: System.String
97+
Parameter Sets: (All)
98+
Aliases: FileWorkspaceName
99+
100+
Required: True
101+
Position: Named
102+
Default value: None
103+
Accept pipeline input: False
104+
Accept wildcard characters: False
105+
```
106+
107+
### -Confirm
108+
Prompts you for confirmation before running the cmdlet.
109+
110+
```yaml
111+
Type: System.Management.Automation.SwitchParameter
112+
Parameter Sets: (All)
113+
Aliases: cf
114+
115+
Required: False
116+
Position: Named
117+
Default value: None
118+
Accept pipeline input: False
119+
Accept wildcard characters: False
120+
```
121+
122+
### -WhatIf
123+
Shows what would happen if the cmdlet runs.
124+
The cmdlet is not run.
125+
126+
```yaml
127+
Type: System.Management.Automation.SwitchParameter
128+
Parameter Sets: (All)
129+
Aliases: wi
130+
131+
Required: False
132+
Position: Named
133+
Default value: None
134+
Accept pipeline input: False
135+
Accept wildcard characters: False
136+
```
137+
138+
### CommonParameters
139+
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).
140+
141+
## INPUTS
142+
143+
## OUTPUTS
144+
145+
### Microsoft.Azure.PowerShell.Cmdlets.Support.Models.IFileDetails
146+
147+
## NOTES
148+
149+
## RELATED LINKS
150+
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
### Example 1: {{ Add title here }}
2+
```powershell
3+
{{ Add code here }}
4+
```
5+
6+
```output
7+
{{ Add output here (remove the output block if the example doesn't have an output) }}
8+
```
9+
10+
{{ Add description here }}
11+
12+
### Example 2: {{ Add title here }}
13+
```powershell
14+
{{ Add code here }}
15+
```
16+
17+
```output
18+
{{ Add output here (remove the output block if the example doesn't have an output) }}
19+
```
20+
21+
{{ Add description here }}
22+
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
if(($null -eq $TestName) -or ($TestName -contains 'New-AzSupportFileAndUploadNoSubscription'))
2+
{
3+
$loadEnvPath = Join-Path $PSScriptRoot 'loadEnv.ps1'
4+
if (-Not (Test-Path -Path $loadEnvPath)) {
5+
$loadEnvPath = Join-Path $PSScriptRoot '..\loadEnv.ps1'
6+
}
7+
. ($loadEnvPath)
8+
$TestRecordingFile = Join-Path $PSScriptRoot 'New-AzSupportFileAndUploadNoSubscription.Recording.json'
9+
$currentPath = $PSScriptRoot
10+
while(-not $mockingPath) {
11+
$mockingPath = Get-ChildItem -Path $currentPath -Recurse -Include 'HttpPipelineMocking.ps1' -File
12+
$currentPath = Split-Path -Path $currentPath -Parent
13+
}
14+
. ($mockingPath | Select-Object -First 1).FullName
15+
}
16+
17+
Describe 'New-AzSupportFileAndUploadNoSubscription' {
18+
It 'CreateExpanded' -skip {
19+
{ throw [System.NotImplementedException] } | Should -Not -Throw
20+
}
21+
}

0 commit comments

Comments
 (0)