Skip to content

Commit 1020487

Browse files
authored
[Az.DynatraceObservability] Update generation tool version: autorest.powershell v3->v4 (#27624)
1 parent f88cd22 commit 1020487

File tree

54 files changed

+2564
-355
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+2564
-355
lines changed

src/DynatraceObservability/DynatraceObservability.Autorest/Az.DynatraceObservability.psd1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
DotNetFrameworkVersion = '4.7.2'
1212
RequiredAssemblies = './bin/Az.DynatraceObservability.private.dll'
1313
FormatsToProcess = './Az.DynatraceObservability.format.ps1xml'
14-
FunctionsToExport = 'Get-AzDynatraceMonitor', 'Get-AzDynatraceMonitorAppService', 'Get-AzDynatraceMonitoredResource', 'Get-AzDynatraceMonitorHost', 'Get-AzDynatraceMonitorLinkableEnv', 'Get-AzDynatraceMonitorMarketplaceSaaSResourceDetail', 'Get-AzDynatraceMonitorMetricStatus', 'Get-AzDynatraceMonitorSSOConfig', 'Get-AzDynatraceMonitorSSODetail', 'Get-AzDynatraceMonitorTagRule', 'Get-AzDynatraceMonitorVMHostPayload', 'New-AzDynatraceMonitor', 'New-AzDynatraceMonitorFilteringTagObject', 'New-AzDynatraceMonitorSSOConfig', 'New-AzDynatraceMonitorTagRule', 'Remove-AzDynatraceMonitor', 'Remove-AzDynatraceMonitorTagRule', 'Update-AzDynatraceMonitor', '*'
15-
AliasesToExport = '*'
14+
FunctionsToExport = 'Get-AzDynatraceMonitor', 'Get-AzDynatraceMonitorAppService', 'Get-AzDynatraceMonitoredResource', 'Get-AzDynatraceMonitorHost', 'Get-AzDynatraceMonitorLinkableEnv', 'Get-AzDynatraceMonitorMarketplaceSaaSResourceDetail', 'Get-AzDynatraceMonitorMetricStatus', 'Get-AzDynatraceMonitorSSOConfig', 'Get-AzDynatraceMonitorSSODetail', 'Get-AzDynatraceMonitorTagRule', 'Get-AzDynatraceMonitorVMHostPayload', 'New-AzDynatraceMonitor', 'New-AzDynatraceMonitorFilteringTagObject', 'New-AzDynatraceMonitorSSOConfig', 'New-AzDynatraceMonitorTagRule', 'Remove-AzDynatraceMonitor', 'Remove-AzDynatraceMonitorTagRule', 'Update-AzDynatraceMonitor', 'Update-AzDynatraceMonitorSSOConfig', 'Update-AzDynatraceMonitorTagRule'
1615
PrivateData = @{
1716
PSData = @{
1817
Tags = 'Azure', 'ResourceManager', 'ARM', 'PSModule', 'DynatraceObservability'

src/DynatraceObservability/DynatraceObservability.Autorest/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
2121
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
2222
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - DynatraceObservability")]
23-
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.1.2")]
24-
[assembly: System.Reflection.AssemblyVersionAttribute("0.1.2")]
23+
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.2.0")]
24+
[assembly: System.Reflection.AssemblyVersionAttribute("0.2.0")]
2525
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
2626
[assembly: System.CLSCompliantAttribute(false)]
2727

src/DynatraceObservability/DynatraceObservability.Autorest/README.md

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,21 +40,17 @@ title: DynatraceObservability
4040
subject-prefix: Dynatrace
4141

4242
inlining-threshold: 100
43-
resourcegroup-append: true
44-
nested-object-to-string: true
45-
46-
# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
47-
use-extension:
48-
"@autorest/powershell": "3.x"
4943

5044
directive:
5145
- where:
5246
verb: Set
5347
remove: true
5448
- where:
55-
variant: ^Create$|^CreateViaIdentityExpanded$|^CreateViaIdentity$|^Update$|^UpdateViaIdentity$
49+
variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString))
50+
remove: true
51+
- where:
52+
variant: ^CreateViaIdentity$|^CreateViaIdentityExpanded$
5653
remove: true
57-
5854
# Rename subject
5955
- where:
6056
subject: ^MonitorAccountCredentials$
@@ -302,9 +298,10 @@ directive:
302298
- ProvisioningState
303299
- SingleSignOnState
304300
- SingleSignOnUrl
305-
# - model-cmdlet:
306-
# - FilteringTag
307-
# --> Generate cmdlet: New-AzDynatraceMonitorFilteringTagObject
301+
- model-cmdlet:
302+
- model-name: FilteringTag
303+
cmdlet-name: New-AzDynatraceMonitorFilteringTagObject
304+
308305
- from: GetAzDynatraceMonitorAppService_List.cs
309306
where: $
310307
transform: $ = $.replace(", SupportsShouldProcess = true" ,"");

src/DynatraceObservability/DynatraceObservability.Autorest/custom/New-AzDynatraceMonitorFilteringTagObject.ps1 renamed to src/DynatraceObservability/DynatraceObservability.Autorest/custom/autogen-model-cmdlets/New-AzDynatraceMonitorFilteringTagObject.ps1

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,19 @@ Create an in-memory object for FilteringTag.
2121
Create an in-memory object for FilteringTag.
2222
2323
.Outputs
24-
Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Models.Api20230427.FilteringTag
24+
Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Models.FilteringTag
25+
.Link
26+
https://learn.microsoft.com/powershell/module/Az.DynatraceObservability/new-azdynatracemonitorfilteringtagobject
2527
#>
2628
function New-AzDynatraceMonitorFilteringTagObject {
27-
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Models.Api20230427.FilteringTag')]
29+
[Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.ModelCmdletAttribute()]
30+
[OutputType('Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Models.FilteringTag')]
2831
[CmdletBinding(PositionalBinding=$false)]
2932
Param(
3033

3134
[Parameter(HelpMessage="Valid actions for a filtering tag. Exclusion takes priority over inclusion.")]
32-
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Support.TagAction])]
33-
[Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Support.TagAction]
35+
[Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.PSArgumentCompleterAttribute("Include", "Exclude")]
36+
[string]
3437
$Action,
3538
[Parameter(HelpMessage="The name (also known as the key) of the tag.")]
3639
[string]
@@ -41,7 +44,7 @@ function New-AzDynatraceMonitorFilteringTagObject {
4144
)
4245

4346
process {
44-
$Object = [Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Models.Api20230427.FilteringTag]::New()
47+
$Object = [Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Models.FilteringTag]::New()
4548

4649
if ($PSBoundParameters.ContainsKey('Action')) {
4750
$Object.Action = $Action

src/DynatraceObservability/DynatraceObservability.Autorest/docs/Az.DynatraceObservability.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,16 +45,16 @@ Get a TagRule
4545
Returns the payload that needs to be passed in the request body for installing Dynatrace agent on a VM.
4646

4747
### [New-AzDynatraceMonitor](New-AzDynatraceMonitor.md)
48-
Create a MonitorResource
48+
create a MonitorResource
4949

5050
### [New-AzDynatraceMonitorFilteringTagObject](New-AzDynatraceMonitorFilteringTagObject.md)
5151
Create an in-memory object for FilteringTag.
5252

5353
### [New-AzDynatraceMonitorSSOConfig](New-AzDynatraceMonitorSSOConfig.md)
54-
Create a DynatraceSingleSignOnResource
54+
create a DynatraceSingleSignOnResource
5555

5656
### [New-AzDynatraceMonitorTagRule](New-AzDynatraceMonitorTagRule.md)
57-
Create a TagRule
57+
create a TagRule
5858

5959
### [Remove-AzDynatraceMonitor](Remove-AzDynatraceMonitor.md)
6060
Delete a MonitorResource
@@ -63,5 +63,11 @@ Delete a MonitorResource
6363
Delete a TagRule
6464

6565
### [Update-AzDynatraceMonitor](Update-AzDynatraceMonitor.md)
66-
Update a MonitorResource
66+
update a MonitorResource
67+
68+
### [Update-AzDynatraceMonitorSSOConfig](Update-AzDynatraceMonitorSSOConfig.md)
69+
update a DynatraceSingleSignOnResource
70+
71+
### [Update-AzDynatraceMonitorTagRule](Update-AzDynatraceMonitorTagRule.md)
72+
update a TagRule
6773

src/DynatraceObservability/DynatraceObservability.Autorest/docs/Get-AzDynatraceMonitor.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,6 @@ Accept wildcard characters: False
112112
113113
### -InputObject
114114
Identity Parameter
115-
To construct, see NOTES section for INPUTOBJECT properties and create a hash table.
116115
117116
```yaml
118117
Type: Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Models.IDynatraceObservabilityIdentity
@@ -181,7 +180,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
181180
182181
## OUTPUTS
183182
184-
### Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Models.Api20230427.IMonitorResource
183+
### Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Models.IMonitorResource
185184
186185
## NOTES
187186

src/DynatraceObservability/DynatraceObservability.Autorest/docs/Get-AzDynatraceMonitorAppService.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
100100
101101
## OUTPUTS
102102
103-
### Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Models.Api20230427.IAppServiceInfo
103+
### Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Models.IAppServiceInfo
104104
105105
## NOTES
106106

src/DynatraceObservability/DynatraceObservability.Autorest/docs/Get-AzDynatraceMonitorHost.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
100100
101101
## OUTPUTS
102102
103-
### Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Models.Api20230427.IVMInfo
103+
### Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Models.IVMInfo
104104
105105
## NOTES
106106

src/DynatraceObservability/DynatraceObservability.Autorest/docs/Get-AzDynatraceMonitorLinkableEnv.md

Lines changed: 78 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,25 @@ Gets all the Dynatrace environments that a user can link a azure resource to
1212

1313
## SYNTAX
1414

15+
### ListExpanded (Default)
1516
```
1617
Get-AzDynatraceMonitorLinkableEnv -Name <String> -ResourceGroupName <String> -Region <String>
1718
-TenantId <String> -UserPrincipal <String> [-SubscriptionId <String[]>] [-DefaultProfile <PSObject>]
1819
[<CommonParameters>]
1920
```
2021

22+
### ListViaJsonFilePath
23+
```
24+
Get-AzDynatraceMonitorLinkableEnv -Name <String> -ResourceGroupName <String> -JsonFilePath <String>
25+
[-SubscriptionId <String[]>] [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
26+
```
27+
28+
### ListViaJsonString
29+
```
30+
Get-AzDynatraceMonitorLinkableEnv -Name <String> -ResourceGroupName <String> -JsonString <String>
31+
[-SubscriptionId <String[]>] [-DefaultProfile <PSObject>] [-Confirm] [-WhatIf] [<CommonParameters>]
32+
```
33+
2134
## DESCRIPTION
2235
Gets all the Dynatrace environments that a user can link a azure resource to
2336

@@ -48,6 +61,36 @@ Accept pipeline input: False
4861
Accept wildcard characters: False
4962
```
5063
64+
### -JsonFilePath
65+
Path of Json file supplied to the List operation
66+
67+
```yaml
68+
Type: System.String
69+
Parameter Sets: ListViaJsonFilePath
70+
Aliases:
71+
72+
Required: True
73+
Position: Named
74+
Default value: None
75+
Accept pipeline input: False
76+
Accept wildcard characters: False
77+
```
78+
79+
### -JsonString
80+
Json string supplied to the List operation
81+
82+
```yaml
83+
Type: System.String
84+
Parameter Sets: ListViaJsonString
85+
Aliases:
86+
87+
Required: True
88+
Position: Named
89+
Default value: None
90+
Accept pipeline input: False
91+
Accept wildcard characters: False
92+
```
93+
5194
### -Name
5295
Monitor resource name
5396
@@ -68,7 +111,7 @@ Azure region in which we want to link the environment
68111
69112
```yaml
70113
Type: System.String
71-
Parameter Sets: (All)
114+
Parameter Sets: ListExpanded
72115
Aliases:
73116

74117
Required: True
@@ -114,7 +157,7 @@ Tenant Id of the user in which they want to link the environment
114157
115158
```yaml
116159
Type: System.String
117-
Parameter Sets: (All)
160+
Parameter Sets: ListExpanded
118161
Aliases:
119162

120163
Required: True
@@ -129,7 +172,7 @@ user principal id of the user
129172
130173
```yaml
131174
Type: System.String
132-
Parameter Sets: (All)
175+
Parameter Sets: ListExpanded
133176
Aliases:
134177

135178
Required: True
@@ -139,14 +182,45 @@ Accept pipeline input: False
139182
Accept wildcard characters: False
140183
```
141184
185+
### -Confirm
186+
Prompts you for confirmation before running the cmdlet.
187+
188+
```yaml
189+
Type: System.Management.Automation.SwitchParameter
190+
Parameter Sets: (All)
191+
Aliases: cf
192+
193+
Required: False
194+
Position: Named
195+
Default value: None
196+
Accept pipeline input: False
197+
Accept wildcard characters: False
198+
```
199+
200+
### -WhatIf
201+
Shows what would happen if the cmdlet runs.
202+
The cmdlet is not run.
203+
204+
```yaml
205+
Type: System.Management.Automation.SwitchParameter
206+
Parameter Sets: (All)
207+
Aliases: wi
208+
209+
Required: False
210+
Position: Named
211+
Default value: None
212+
Accept pipeline input: False
213+
Accept wildcard characters: False
214+
```
215+
142216
### CommonParameters
143217
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).
144218
145219
## INPUTS
146220
147221
## OUTPUTS
148222
149-
### Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Models.Api20230427.ILinkableEnvironmentResponse
223+
### Microsoft.Azure.PowerShell.Cmdlets.DynatraceObservability.Models.ILinkableEnvironmentResponse
150224
151225
## NOTES
152226

0 commit comments

Comments
 (0)