Skip to content

Commit 58dda1a

Browse files
committed
regen storageAction from TSP
1 parent 68e0001 commit 58dda1a

18 files changed

+121
-126
lines changed

src/StorageAction/StorageAction.Autorest/Properties/AssemblyInfo.cs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
// Copyright (c) Microsoft Corporation. All rights reserved.
2+
// Licensed under the MIT License. See License.txt in the project root for license information.
3+
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
4+
// Copyright (c) Microsoft Corporation. All rights reserved.
25
// Licensed under the Apache License, Version 2.0 (the ""License"");
36
// you may not use this file except in compliance with the License.
47
// You may obtain a copy of the License at
@@ -19,12 +22,8 @@
1922
[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
2023
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
2124
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
22-
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - StorageAction")]
23-
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.2")]
24-
[assembly: System.Reflection.AssemblyVersionAttribute("0.1.2")]
25+
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - StorageActionsManagementClient")]
26+
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0")]
27+
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0")]
2528
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
2629
[assembly: System.CLSCompliantAttribute(false)]
27-
28-
29-
30-

src/StorageAction/StorageAction.Autorest/README.md

Lines changed: 0 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -22,70 +22,3 @@ AutoRest does not generate authentication code for the module. Authentication is
2222
## Development
2323
For information on how to develop for `Az.StorageAction`, see [how-to.md](how-to.md).
2424
<!-- endregion -->
25-
26-
### AutoRest Configuration
27-
> see https://aka.ms/autorest
28-
29-
```yaml
30-
# pin the swagger version by using the commit id instead of branch name
31-
commit: 2219e4e4e0409bcb88a2b82e8febe1a3baecaf18
32-
tag: package-2023-01-01
33-
require:
34-
# readme.azure.noprofile.md is the common configuration file
35-
- $(this-folder)/../../readme.azure.noprofile.md
36-
- $(repo)/specification/storageactions/resource-manager/readme.md
37-
# If the swagger has not been put in the repo, you may uncomment the following line and refer to it locally
38-
# - (this-folder)/relative-path-to-your-local-readme.md
39-
40-
try-require:
41-
- $(repo)/specification/storageactions/resource-manager/readme.powershell.md
42-
43-
# The next three configurations are activated by default.
44-
# identity-correction-for-post: true
45-
# resourcegroup-append: true
46-
# nested-object-to-string: true
47-
48-
# For new RP, the version is 0.1.0
49-
module-version: 1.0.0
50-
# Normally, title is the service name
51-
title: StorageAction
52-
subject-prefix: $(service-name)
53-
54-
directive:
55-
# # Following are common directives which are normally required in all the RPs
56-
# # 1. Remove the unexpanded parameter set
57-
# # 2. For New-* cmdlets, ViaIdentity is not required
58-
# # Following two directives are v4 specific
59-
- where:
60-
variant: ^(Create|Update|Preview)(?!.*?(Expanded|JsonFilePath|JsonString))
61-
remove: true
62-
- where:
63-
variant: ^CreateViaIdentity.*$
64-
remove: true
65-
# Rename commands
66-
- where:
67-
subject: StorageTask
68-
set:
69-
subject: Task
70-
- where:
71-
verb: Invoke
72-
subject: PreviewStorageTaskAction
73-
set:
74-
subject: TaskPreviewAction
75-
- where:
76-
subject: StorageTaskAssignment
77-
set:
78-
subject: TaskAssignment
79-
- where:
80-
subject: StorageTasksReport
81-
set:
82-
subject: TasksReport
83-
# Add model
84-
- model-cmdlet:
85-
- model-name: StorageTaskOperation
86-
cmdlet-name: New-AzStorageActionTaskOperationObject
87-
- model-name: StorageTaskPreviewBlobProperties
88-
cmdlet-name: New-AzStorageActionTaskPreviewBlobPropertiesObject
89-
- model-name: StorageTaskPreviewKeyValueProperties
90-
cmdlet-name: New-AzStorageActionTaskPreviewKeyValuePropertiesObject
91-
```

src/StorageAction/StorageAction.Autorest/custom/autogen-model-cmdlets/New-AzStorageActionTaskOperationObject.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ function New-AzStorageActionTaskOperationObject {
4444
[string]
4545
$OnSuccess,
4646
[Parameter(HelpMessage="Key-value parameters for the operation.")]
47-
[Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.IStorageTaskOperationParameters]
47+
[Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.ITags]
4848
$Parameter
4949
)
5050

src/StorageAction/StorageAction.Autorest/docs/Az.StorageAction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
Module Name: Az.StorageAction
3-
Module Guid: 78dad367-40fa-497c-afc0-831ee12e5038
3+
Module Guid: 91c656ee-fb0d-416c-9c7b-4afc327dc792
44
Download Help Link: https://learn.microsoft.com/powershell/module/az.storageaction
55
Help Version: 1.0.0.0
66
Locale: en-US

src/StorageAction/StorageAction.Autorest/docs/Get-AzStorageActionTask.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Get the storage task properties
1212

1313
## SYNTAX
1414

15-
### List (Default)
15+
### List1 (Default)
1616
```
1717
Get-AzStorageActionTask [-SubscriptionId <String[]>] [-DefaultProfile <PSObject>] [<CommonParameters>]
1818
```
@@ -29,7 +29,7 @@ Get-AzStorageActionTask -InputObject <IStorageActionIdentity> [-DefaultProfile <
2929
[<CommonParameters>]
3030
```
3131

32-
### List1
32+
### List
3333
```
3434
Get-AzStorageActionTask -ResourceGroupName <String> [-SubscriptionId <String[]>] [-DefaultProfile <PSObject>]
3535
[<CommonParameters>]
@@ -154,7 +154,7 @@ The name is case insensitive.
154154
155155
```yaml
156156
Type: System.String
157-
Parameter Sets: Get, List1
157+
Parameter Sets: Get, List
158158
Aliases:
159159

160160
Required: True

src/StorageAction/StorageAction.Autorest/docs/Get-AzStorageActionTaskAssignment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
123123
124124
## OUTPUTS
125125
126-
### Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.IStorageTaskAssignment
126+
### Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.IStorageTaskAssignmentsListResult
127127
128128
## NOTES
129129

src/StorageAction/StorageAction.Autorest/docs/Get-AzStorageActionTasksReport.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
184184
185185
## OUTPUTS
186186
187-
### Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.IStorageTaskReportInstance
187+
### Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.IStorageTaskReportSummary
188188
189189
## NOTES
190190

src/StorageAction/StorageAction.Autorest/docs/Invoke-AzStorageActionTaskPreviewAction.md

Lines changed: 34 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,26 @@ Runs the input conditions against input object metadata properties and designate
1212

1313
## SYNTAX
1414

15-
### PreviewExpanded (Default)
15+
### Preview (Default)
16+
```
17+
Invoke-AzStorageActionTaskPreviewAction -Location <String> -Body <IStorageTaskPreviewAction>
18+
[-SubscriptionId <String>] [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
19+
```
20+
21+
### PreviewExpanded
1622
```
1723
Invoke-AzStorageActionTaskPreviewAction -Location <String> -ActionElseBlockExist
1824
-Blob <IStorageTaskPreviewBlobProperties[]> [-SubscriptionId <String>]
1925
[-ContainerMetadata <IStorageTaskPreviewKeyValueProperties[]>] [-ContainerName <String>]
2026
[-IfCondition <String>] [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
2127
```
2228

29+
### PreviewViaIdentity
30+
```
31+
Invoke-AzStorageActionTaskPreviewAction -InputObject <IStorageActionIdentity>
32+
-Body <IStorageTaskPreviewAction> [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
33+
```
34+
2335
### PreviewViaIdentityExpanded
2436
```
2537
Invoke-AzStorageActionTaskPreviewAction -InputObject <IStorageActionIdentity> -ActionElseBlockExist
@@ -242,6 +254,21 @@ Accept pipeline input: False
242254
Accept wildcard characters: False
243255
```
244256
257+
### -Body
258+
Storage Task Preview Action.
259+
260+
```yaml
261+
Type: Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.IStorageTaskPreviewAction
262+
Parameter Sets: Preview, PreviewViaIdentity
263+
Aliases:
264+
265+
Required: True
266+
Position: Named
267+
Default value: None
268+
Accept pipeline input: True (ByValue)
269+
Accept wildcard characters: False
270+
```
271+
245272
### -ContainerMetadata
246273
metadata key value pairs to be tested for a match against the provided condition.
247274
@@ -308,7 +335,7 @@ Identity Parameter
308335
309336
```yaml
310337
Type: Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.IStorageActionIdentity
311-
Parameter Sets: PreviewViaIdentityExpanded
338+
Parameter Sets: PreviewViaIdentity, PreviewViaIdentityExpanded
312339
Aliases:
313340

314341
Required: True
@@ -349,11 +376,11 @@ Accept wildcard characters: False
349376
```
350377
351378
### -Location
352-
The location to perform preview of the actions.
379+
.
353380
354381
```yaml
355382
Type: System.String
356-
Parameter Sets: PreviewExpanded, PreviewViaJsonFilePath, PreviewViaJsonString
383+
Parameter Sets: Preview, PreviewExpanded, PreviewViaJsonFilePath, PreviewViaJsonString
357384
Aliases:
358385

359386
Required: True
@@ -369,7 +396,7 @@ The value must be an UUID.
369396
370397
```yaml
371398
Type: System.String
372-
Parameter Sets: PreviewExpanded, PreviewViaJsonFilePath, PreviewViaJsonString
399+
Parameter Sets: Preview, PreviewExpanded, PreviewViaJsonFilePath, PreviewViaJsonString
373400
Aliases:
374401

375402
Required: False
@@ -417,6 +444,8 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
417444
418445
### Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.IStorageActionIdentity
419446
447+
### Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.IStorageTaskPreviewAction
448+
420449
## OUTPUTS
421450
422451
### Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.IStorageTaskPreviewAction

src/StorageAction/StorageAction.Autorest/docs/New-AzStorageActionTaskOperationObject.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Create an in-memory object for StorageTaskOperation.
1414

1515
```
1616
New-AzStorageActionTaskOperationObject -Name <String> [-OnFailure <String>] [-OnSuccess <String>]
17-
[-Parameter <IStorageTaskOperationParameters>] [<CommonParameters>]
17+
[-Parameter <ITags>] [<CommonParameters>]
1818
```
1919

2020
## DESCRIPTION
@@ -89,7 +89,7 @@ Accept wildcard characters: False
8989
Key-value parameters for the operation.
9090
9191
```yaml
92-
Type: Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.IStorageTaskOperationParameters
92+
Type: Microsoft.Azure.PowerShell.Cmdlets.StorageAction.Models.ITags
9393
Parameter Sets: (All)
9494
Aliases:
9595

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"generate_Id": "3f2c49f4-d751-4192-8f46-6a62b3c249c4"
2+
"generate_Id": "fd9e7c92-6c60-42db-8add-a8264571ebc7"
33
}

0 commit comments

Comments
 (0)