Skip to content

Commit b40957e

Browse files
authored
[PS] Migrate StreamAnalytics module to autorest v4 (#28316)
1 parent c814080 commit b40957e

File tree

133 files changed

+31766
-6047
lines changed

Some content is hidden

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

133 files changed

+31766
-6047
lines changed

src/StreamAnalytics/StreamAnalytics.Autorest/README.md

Lines changed: 8 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,13 @@ input-file:
4343
title: StreamAnalytics
4444
module-version: 2.0.0
4545
subject-prefix: StreamAnalytics
46-
identity-correction-for-post: true
47-
48-
# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
49-
use-extension:
50-
"@autorest/powershell": "3.x"
46+
disable-transform-identity-type-for-operation:
47+
- StreamingJobs_Update
5148

5249
directive:
5350
- from: swagger-document
5451
where: $
55-
transform: return $.replace(/\/subscriptions\/\{subscriptionId\}\/resourcegroups\/\{resourceGroupName\}/g, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}")
52+
transform: $ = $.replace(/\/subscriptions\/\{subscriptionId\}\/resourcegroups\/\{resourceGroupName\}/g, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}")
5653

5754
# Deleted etag of the properties, because the etag exist in the response header.
5855
- from: swagger-document
@@ -91,6 +88,7 @@ directive:
9188
"description": "Resource type"
9289
}
9390
}
91+
# Renaming executeEndpoint to endpoint
9492
- from: swagger-document
9593
where: $.definitions.AzureMachineLearningServiceFunctionBindingRetrievalProperties.properties
9694
transform: >-
@@ -133,7 +131,7 @@ directive:
133131
- from: source-file-csharp
134132
where: $
135133
transform: $ = $.replace(/case "canceled":/g, 'case "canceled":\ncase "testsucceeded":\ncase "deleting":')
136-
134+
137135
# Remove cmdlets
138136
- where:
139137
verb: Set
@@ -191,25 +189,10 @@ directive:
191189
subject: Job$
192190
variant: ^Start$|^StartViaIdentity$
193191
remove: true
192+
# Remove Create and update unexpanded variant of cmdlets
194193
- where:
195-
verb: New
196-
subject: Cluster$
197-
variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$
198-
remove: true
199-
- where:
200-
verb: Update
201-
subject: Cluster$
202-
variant: ^Update$|^UpdateViaIdentity$
203-
remove: true
204-
- where:
205-
verb: New
206-
subject: Transformation$
207-
variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$
208-
remove: true
209-
- where:
210-
verb: Update
211-
subject: Transformation$
212-
variant: ^Update$|^UpdateViaIdentity$
194+
subject: ^Job$|Cluster$|Transformation$
195+
variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString))|^CreateViaIdentityExpanded$
213196
remove: true
214197

215198
# Rename parameter name

src/StreamAnalytics/StreamAnalytics.Autorest/custom/Get-AzStreamAnalyticsDefaultFunctionDefinition.ps1

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ PS C:\> {{ Add code here }}
2828
{{ Add output here }}
2929
3030
.Inputs
31-
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IFunctionRetrieveDefaultDefinitionParameters
31+
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.IFunctionRetrieveDefaultDefinitionParameters
3232
.Inputs
3333
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.IStreamAnalyticsIdentity
3434
.Outputs
35-
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IFunction
35+
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.IFunction
3636
.Notes
3737
COMPLEX PARAMETER PROPERTIES
3838
@@ -56,7 +56,7 @@ INPUTOBJECT <IStreamAnalyticsIdentity>: Identity Parameter
5656
https://learn.microsoft.com/powershell/module/az.streamanalytics/get-azstreamanalyticsdefaultfunctiondefinition
5757
#>
5858
function Get-AzStreamAnalyticsDefaultFunctionDefinition {
59-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IFunction])]
59+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.IFunction])]
6060
[CmdletBinding(DefaultParameterSetName='RetrieveExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
6161
param(
6262
[Parameter(ParameterSetName='RetrieveExpanded', Mandatory)]
@@ -101,7 +101,7 @@ param(
101101
${Endpoint},
102102

103103
[Parameter(ParameterSetName='RetrieveExpanded', Mandatory)]
104-
[System.Management.Automation.ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Support.UdfType])]
104+
[Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.PSArgumentCompleterAttribute("Scalar")]
105105
[Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Category('Path')]
106106
[System.String]
107107
# The name of the resource group.
@@ -159,14 +159,14 @@ param(
159159
try {
160160
if ($BindingType -eq "Microsoft.MachineLearning/WebService")
161161
{
162-
$functionRetrieveDefaultDefinition = [Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.AzureMachineLearningStudioFunctionRetrieveDefaultDefinitionParameters]::New()
163-
$functionRetrieveDefaultDefinition.BindingType = $BindingType
162+
$functionRetrieveDefaultDefinition = [Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.AzureMachineLearningStudioFunctionRetrieveDefaultDefinitionParameters]::New()
163+
# $functionRetrieveDefaultDefinition.BindingType = $BindingType
164164
$functionRetrieveDefaultDefinition.BindingRetrievalPropertyEndpoint = $Endpoint
165165
$functionRetrieveDefaultDefinition.BindingRetrievalPropertyUdfType = $UdfType
166166

167167
} elseif ($BindingType -eq "Microsoft.MachineLearningServices") {
168-
$functionRetrieveDefaultDefinition = [Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.AzureMachineLearningServiceFunctionRetrieveDefaultDefinitionParameters]::New()
169-
$functionRetrieveDefaultDefinition.BindingType = $BindingType
168+
$functionRetrieveDefaultDefinition = [Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.AzureMachineLearningServiceFunctionRetrieveDefaultDefinitionParameters]::New()
169+
# $functionRetrieveDefaultDefinition.BindingType = $BindingType
170170
$functionRetrieveDefaultDefinition.BindingRetrievalPropertyEndpoint = $Endpoint
171171
$functionRetrieveDefaultDefinition.BindingRetrievalPropertyUdfType = $UdfType
172172
} else {

src/StreamAnalytics/StreamAnalytics.Autorest/custom/New-AzStreamAnalyticsFunction.ps1

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ PS C:\> {{ Add code here }}
2828
{{ Add output here }}
2929
3030
.Inputs
31-
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IFunction
31+
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.IFunction
3232
.Inputs
3333
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.IStreamAnalyticsIdentity
3434
.Outputs
35-
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IFunction
35+
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.IFunction
3636
.Notes
3737
COMPLEX PARAMETER PROPERTIES
3838
@@ -66,7 +66,7 @@ INPUTOBJECT <IStreamAnalyticsIdentity>: Identity Parameter
6666
https://learn.microsoft.com/powershell/module/az.streamanalytics/new-azstreamanalyticsfunction
6767
#>
6868
function New-AzStreamAnalyticsFunction {
69-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IFunction])]
69+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.IFunction])]
7070
[CmdletBinding(DefaultParameterSetName='Create', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
7171
param(
7272
[Parameter(ParameterSetName='Create', Mandatory)]
@@ -118,7 +118,6 @@ param(
118118
# Other values will result in a 412 Pre-condition Failed response.
119119
${IfNoneMatch},
120120

121-
122121
[Parameter()]
123122
[Alias('AzureRMContext', 'AzureCredential')]
124123
[ValidateNotNull()]
@@ -171,9 +170,9 @@ begin {
171170
try {
172171
$functionParameters = Get-Content -Path $File | Out-String
173172

174-
if ([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.FunctionTypeConverter]::CanConvertFrom($functionParameters))
173+
if ([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.FunctionTypeConverter]::CanConvertFrom($functionParameters))
175174
{
176-
$function = [Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.FunctionTypeConverter]::ConvertFrom($functionParameters)
175+
$function = [Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.FunctionTypeConverter]::ConvertFrom($functionParameters)
177176
} else {
178177
throw "The json format is invalid"
179178
}
@@ -220,7 +219,7 @@ end {
220219

221220
function New-FunctionObjectFromJson
222221
{
223-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IFunction])]
222+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.IFunction])]
224223
[Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.DoNotExportAttribute()]
225224
param (
226225
[Parameter()]
@@ -234,22 +233,22 @@ function New-FunctionObjectFromJson
234233
# Remove binding object from source object
235234
$Source.properties.properties.PSObject.Properties.Remove("binding");
236235

237-
$function = [Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.Function]::DeserializeFromPSObject($Source)
236+
$function = [Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Function]::DeserializeFromPSObject($Source)
238237

239238
if ($binding.type -eq "Microsoft.MachineLearning/WebService") {
240-
$function.Binding = [Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.AzureMachineLearningStudioFunctionBinding]::DeserializeFromPSObject($binding)
239+
$function.Binding = [Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.AzureMachineLearningStudioFunctionBinding]::DeserializeFromPSObject($binding)
241240
}
242241

243242
if ($binding.type -eq "Microsoft.StreamAnalytics/JavascriptUdf") {
244-
$function.Binding = [Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.JavaScriptFunctionBinding]::DeserializeFromPSObject($binding)
243+
$function.Binding = [Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.JavaScriptFunctionBinding]::DeserializeFromPSObject($binding)
245244
}
246245

247246
if ($binding.type -eq "Microsoft.StreamAnalytics/CLRUdf") {
248-
$function.Binding = [Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.CSharpFunctionBinding]::DeserializeFromPSObject($binding)
247+
$function.Binding = [Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.CSharpFunctionBinding]::DeserializeFromPSObject($binding)
249248
}
250249

251250
if ($binding.type -eq "Microsoft.MachineLearningServices") {
252-
$function.Binding = [Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.AzureMachineLearningServiceFunctionBinding]::DeserializeFromPSObject($binding)
251+
$function.Binding = [Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.AzureMachineLearningServiceFunctionBinding]::DeserializeFromPSObject($binding)
253252
}
254253
return $function
255254
}

src/StreamAnalytics/StreamAnalytics.Autorest/custom/New-AzStreamAnalyticsInput.ps1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ PS C:\> {{ Add code here }}
2828
{{ Add output here }}
2929
3030
.Inputs
31-
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IInput
31+
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.IInput
3232
.Inputs
3333
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.IStreamAnalyticsIdentity
3434
.Outputs
35-
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IInput
35+
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.IInput
3636
.Notes
3737
COMPLEX PARAMETER PROPERTIES
3838
@@ -71,7 +71,7 @@ PROPERTY <IInputProperties>: The properties that are associated with an input. R
7171
https://learn.microsoft.com/powershell/module/az.streamanalytics/new-azstreamanalyticsinput
7272
#>
7373
function New-AzStreamAnalyticsInput {
74-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IInput])]
74+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.IInput])]
7575
[CmdletBinding(DefaultParameterSetName='Create', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
7676
param(
7777
[Parameter(ParameterSetName='Create', Mandatory)]
@@ -174,9 +174,9 @@ begin {
174174
try {
175175
$inputParameters = Get-Content -Path $File | Out-String
176176

177-
if ([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.InputTypeConverter]::CanConvertFrom($inputParameters))
177+
if ([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.InputTypeConverter]::CanConvertFrom($inputParameters))
178178
{
179-
$function = [Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.InputTypeConverter]::ConvertFrom($inputParameters)
179+
$function = [Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.InputTypeConverter]::ConvertFrom($inputParameters)
180180
} else {
181181
throw "The json format is invalid"
182182
}

src/StreamAnalytics/StreamAnalytics.Autorest/custom/New-AzStreamAnalyticsJob.ps1

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ PS C:\> {{ Add code here }}
2828
{{ Add output here }}
2929
3030
.Inputs
31-
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IStreamingJob
31+
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.IStreamingJob
3232
.Inputs
3333
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.IStreamAnalyticsIdentity
3434
.Outputs
35-
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IStreamingJob
35+
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.IStreamingJob
3636
.Notes
3737
COMPLEX PARAMETER PROPERTIES
3838
@@ -141,7 +141,7 @@ STREAMINGJOB <IStreamingJob>: A streaming job object, containing all information
141141
https://learn.microsoft.com/powershell/module/az.streamanalytics/new-azstreamanalyticsjob
142142
#>
143143
function New-AzStreamAnalyticsJob {
144-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IStreamingJob])]
144+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.IStreamingJob])]
145145
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
146146
[Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Runtime.OutputBreakingChange("Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IStreamingJob", "15.0.0", "3.0.0", "2025/11/03", ChangeDescription = "The types of the properties Function, Input and Output will be changed from fixed array to 'List'.")]
147147
param(
@@ -181,13 +181,12 @@ param(
181181
${IfNoneMatch},
182182

183183
[Parameter(ParameterSetName='CreateExpanded')]
184-
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Support.CompatibilityLevel])]
184+
[Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.PSArgumentCompleterAttribute("1.0")]
185185
[Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Category('Body')]
186-
[Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Support.CompatibilityLevel]
186+
[System.String]
187187
# Controls certain runtime behaviors of the streaming job.
188188
${CompatibilityLevel},
189189

190-
191190
[Parameter(ParameterSetName='CreateExpanded')]
192191
[Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Category('Body')]
193192
[System.String]
@@ -211,16 +210,16 @@ param(
211210
${EventsOutOfOrderMaxDelayInSecond},
212211

213212
[Parameter(ParameterSetName='CreateExpanded')]
214-
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Support.EventsOutOfOrderPolicy])]
213+
[Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.PSArgumentCompleterAttribute("Adjust", "Drop")]
215214
[Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Category('Body')]
216-
[Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Support.EventsOutOfOrderPolicy]
215+
[System.String]
217216
# Indicates the policy to apply to events that arrive out of order in the input event stream.
218217
${EventsOutOfOrderPolicy},
219218

220219
[Parameter(ParameterSetName='CreateExpanded')]
221-
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Support.OutputErrorPolicy])]
220+
[Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.PSArgumentCompleterAttribute("Stop", "Drop")]
222221
[Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Category('Body')]
223-
[Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Support.OutputErrorPolicy]
222+
[System.String]
224223
# Indicates the policy to apply to events that arrive at the output and cannot be written to the external storage due to being malformed (missing column values, column values of wrong type or size).
225224
${OutputErrorPolicy},
226225

@@ -231,9 +230,9 @@ param(
231230
${Location},
232231

233232
[Parameter(ParameterSetName='CreateExpanded', Mandatory)]
234-
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Support.StreamingJobSkuName])]
233+
[Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.PSArgumentCompleterAttribute("Standard")]
235234
[Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Category('Body')]
236-
[Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Support.StreamingJobSkuName]
235+
[System.String]
237236
# The name of the SKU.
238237
# Required on PUT (CreateOrReplace) requests.
239238
${SkuName},
@@ -246,7 +245,7 @@ param(
246245

247246
[Parameter(ParameterSetName='CreateExpanded')]
248247
[Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Category('Body')]
249-
[Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.ApiV1.ITrackedResourceTags]))]
248+
[Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.ITrackedResourceTags]))]
250249
[System.Collections.Hashtable]
251250
# Resource tags.
252251
${Tag},

src/StreamAnalytics/StreamAnalytics.Autorest/custom/New-AzStreamAnalyticsOutput.ps1

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ PS C:\> {{ Add code here }}
2828
{{ Add output here }}
2929
3030
.Inputs
31-
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IOutput
31+
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.IOutput
3232
.Inputs
3333
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.IStreamAnalyticsIdentity
3434
.Outputs
35-
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IOutput
35+
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.IOutput
3636
.Notes
3737
COMPLEX PARAMETER PROPERTIES
3838
@@ -64,7 +64,7 @@ OUTPUT <IOutput>: An output object, containing all information associated with t
6464
https://learn.microsoft.com/powershell/module/az.streamanalytics/new-azstreamanalyticsoutput
6565
#>
6666
function New-AzStreamAnalyticsOutput {
67-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IOutput])]
67+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.IOutput])]
6868
[CmdletBinding(DefaultParameterSetName='Create', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
6969
param(
7070
[Parameter(ParameterSetName='Create', Mandatory)]
@@ -100,7 +100,6 @@ param(
100100
# The ID of the target subscription.
101101
${SubscriptionId},
102102

103-
104103
[Parameter()]
105104
[Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Category('Header')]
106105
[System.String]
@@ -168,9 +167,9 @@ begin {
168167
try {
169168
$outputParameters = Get-Content -Path $File | Out-String
170169

171-
if ([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.OutputTypeConverter]::CanConvertFrom($outputParameters))
170+
if ([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.OutputTypeConverter]::CanConvertFrom($outputParameters))
172171
{
173-
$function = [Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.OutputTypeConverter]::ConvertFrom($outputParameters)
172+
$function = [Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.OutputTypeConverter]::ConvertFrom($outputParameters)
174173
} else {
175174
throw "The json format is invalid"
176175
}

src/StreamAnalytics/StreamAnalytics.Autorest/custom/Test-AzStreamAnalyticsFunction.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,11 @@ PS C:\> {{ Add code here }}
3030
{{ Add output here }}
3131
3232
.Inputs
33-
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IFunction
33+
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.IFunction
3434
.Inputs
3535
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.IStreamAnalyticsIdentity
3636
.Outputs
37-
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IResourceTestStatus
37+
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.IResourceTestStatus
3838
.Notes
3939
COMPLEX PARAMETER PROPERTIES
4040
@@ -76,7 +76,7 @@ INPUTOBJECT <IStreamAnalyticsIdentity>: Identity Parameter
7676
https://learn.microsoft.com/powershell/module/az.streamanalytics/test-azstreamanalyticsfunction
7777
#>
7878
function Test-AzStreamAnalyticsFunction {
79-
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IResourceTestStatus])]
79+
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.IResourceTestStatus])]
8080
[CmdletBinding(DefaultParameterSetName='TestExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
8181
param(
8282
[Parameter(ParameterSetName='TestExpanded', Mandatory)]

0 commit comments

Comments
 (0)