Skip to content

[PS] Migrate StreamAnalytics module to autorest v4 #28316

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the Apache License, Version 2.0 (the ""License"");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an ""AS IS"" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code
// is regenerated.

using System;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")]
[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")]
[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")]
[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - StreamAnalytics")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("2.1.0")]
[assembly: System.Reflection.AssemblyVersionAttribute("2.1.0")]
[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)]
[assembly: System.CLSCompliantAttribute(false)]
33 changes: 8 additions & 25 deletions src/StreamAnalytics/StreamAnalytics.Autorest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,13 @@ input-file:
title: StreamAnalytics
module-version: 2.0.0
subject-prefix: StreamAnalytics
identity-correction-for-post: true

# For new modules, please avoid setting 3.x using the use-extension method and instead, use 4.x as the default option
use-extension:
"@autorest/powershell": "3.x"
disable-transform-identity-type-for-operation:
- StreamingJobs_Update

directive:
- from: swagger-document
where: $
transform: return $.replace(/\/subscriptions\/\{subscriptionId\}\/resourcegroups\/\{resourceGroupName\}/g, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}")
transform: $ = $.replace(/\/subscriptions\/\{subscriptionId\}\/resourcegroups\/\{resourceGroupName\}/g, "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}")

# Deleted etag of the properties, because the etag exist in the response header.
- from: swagger-document
Expand Down Expand Up @@ -91,6 +88,7 @@ directive:
"description": "Resource type"
}
}
# Renaming executeEndpoint to endpoint
- from: swagger-document
where: $.definitions.AzureMachineLearningServiceFunctionBindingRetrievalProperties.properties
transform: >-
Expand Down Expand Up @@ -133,7 +131,7 @@ directive:
- from: source-file-csharp
where: $
transform: $ = $.replace(/case "canceled":/g, 'case "canceled":\ncase "testsucceeded":\ncase "deleting":')

# Remove cmdlets
- where:
verb: Set
Expand Down Expand Up @@ -191,25 +189,10 @@ directive:
subject: Job$
variant: ^Start$|^StartViaIdentity$
remove: true
# Remove Create and update unexpanded variant of cmdlets
- where:
verb: New
subject: Cluster$
variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$
remove: true
- where:
verb: Update
subject: Cluster$
variant: ^Update$|^UpdateViaIdentity$
remove: true
- where:
verb: New
subject: Transformation$
variant: ^Create$|^CreateViaIdentity$|^CreateViaIdentityExpanded$
remove: true
- where:
verb: Update
subject: Transformation$
variant: ^Update$|^UpdateViaIdentity$
subject: ^Job$|Cluster$|Transformation$
variant: ^(Create|Update)(?!.*?(Expanded|JsonFilePath|JsonString))|^CreateViaIdentityExpanded$
remove: true

# Rename parameter name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ PS C:\> {{ Add code here }}
{{ Add output here }}

.Inputs
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IFunctionRetrieveDefaultDefinitionParameters
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.IFunctionRetrieveDefaultDefinitionParameters
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.IStreamAnalyticsIdentity
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IFunction
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.IFunction
.Notes
COMPLEX PARAMETER PROPERTIES

Expand All @@ -56,7 +56,7 @@ INPUTOBJECT <IStreamAnalyticsIdentity>: Identity Parameter
https://learn.microsoft.com/powershell/module/az.streamanalytics/get-azstreamanalyticsdefaultfunctiondefinition
#>
function Get-AzStreamAnalyticsDefaultFunctionDefinition {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IFunction])]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.IFunction])]
[CmdletBinding(DefaultParameterSetName='RetrieveExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='RetrieveExpanded', Mandatory)]
Expand Down Expand Up @@ -101,7 +101,7 @@ param(
${Endpoint},

[Parameter(ParameterSetName='RetrieveExpanded', Mandatory)]
[System.Management.Automation.ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Support.UdfType])]
[Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.PSArgumentCompleterAttribute("Scalar")]
[Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Category('Path')]
[System.String]
# The name of the resource group.
Expand Down Expand Up @@ -159,14 +159,14 @@ param(
try {
if ($BindingType -eq "Microsoft.MachineLearning/WebService")
{
$functionRetrieveDefaultDefinition = [Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.AzureMachineLearningStudioFunctionRetrieveDefaultDefinitionParameters]::New()
$functionRetrieveDefaultDefinition.BindingType = $BindingType
$functionRetrieveDefaultDefinition = [Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.AzureMachineLearningStudioFunctionRetrieveDefaultDefinitionParameters]::New()
# $functionRetrieveDefaultDefinition.BindingType = $BindingType
$functionRetrieveDefaultDefinition.BindingRetrievalPropertyEndpoint = $Endpoint
$functionRetrieveDefaultDefinition.BindingRetrievalPropertyUdfType = $UdfType

} elseif ($BindingType -eq "Microsoft.MachineLearningServices") {
$functionRetrieveDefaultDefinition = [Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.AzureMachineLearningServiceFunctionRetrieveDefaultDefinitionParameters]::New()
$functionRetrieveDefaultDefinition.BindingType = $BindingType
$functionRetrieveDefaultDefinition = [Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.AzureMachineLearningServiceFunctionRetrieveDefaultDefinitionParameters]::New()
# $functionRetrieveDefaultDefinition.BindingType = $BindingType
$functionRetrieveDefaultDefinition.BindingRetrievalPropertyEndpoint = $Endpoint
$functionRetrieveDefaultDefinition.BindingRetrievalPropertyUdfType = $UdfType
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ PS C:\> {{ Add code here }}
{{ Add output here }}

.Inputs
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IFunction
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.IFunction
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.IStreamAnalyticsIdentity
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IFunction
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.IFunction
.Notes
COMPLEX PARAMETER PROPERTIES

Expand Down Expand Up @@ -66,7 +66,7 @@ INPUTOBJECT <IStreamAnalyticsIdentity>: Identity Parameter
https://learn.microsoft.com/powershell/module/az.streamanalytics/new-azstreamanalyticsfunction
#>
function New-AzStreamAnalyticsFunction {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IFunction])]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.IFunction])]
[CmdletBinding(DefaultParameterSetName='Create', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='Create', Mandatory)]
Expand Down Expand Up @@ -118,7 +118,6 @@ param(
# Other values will result in a 412 Pre-condition Failed response.
${IfNoneMatch},


[Parameter()]
[Alias('AzureRMContext', 'AzureCredential')]
[ValidateNotNull()]
Expand Down Expand Up @@ -171,9 +170,9 @@ begin {
try {
$functionParameters = Get-Content -Path $File | Out-String

if ([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.FunctionTypeConverter]::CanConvertFrom($functionParameters))
if ([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.FunctionTypeConverter]::CanConvertFrom($functionParameters))
{
$function = [Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.FunctionTypeConverter]::ConvertFrom($functionParameters)
$function = [Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.FunctionTypeConverter]::ConvertFrom($functionParameters)
} else {
throw "The json format is invalid"
}
Expand Down Expand Up @@ -220,7 +219,7 @@ end {

function New-FunctionObjectFromJson
{
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IFunction])]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.IFunction])]
[Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.DoNotExportAttribute()]
param (
[Parameter()]
Expand All @@ -234,22 +233,22 @@ function New-FunctionObjectFromJson
# Remove binding object from source object
$Source.properties.properties.PSObject.Properties.Remove("binding");

$function = [Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.Function]::DeserializeFromPSObject($Source)
$function = [Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Function]::DeserializeFromPSObject($Source)

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

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

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

if ($binding.type -eq "Microsoft.MachineLearningServices") {
$function.Binding = [Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.AzureMachineLearningServiceFunctionBinding]::DeserializeFromPSObject($binding)
$function.Binding = [Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.AzureMachineLearningServiceFunctionBinding]::DeserializeFromPSObject($binding)
}
return $function
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ PS C:\> {{ Add code here }}
{{ Add output here }}

.Inputs
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IInput
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.IInput
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.IStreamAnalyticsIdentity
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IInput
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.IInput
.Notes
COMPLEX PARAMETER PROPERTIES

Expand Down Expand Up @@ -71,7 +71,7 @@ PROPERTY <IInputProperties>: The properties that are associated with an input. R
https://learn.microsoft.com/powershell/module/az.streamanalytics/new-azstreamanalyticsinput
#>
function New-AzStreamAnalyticsInput {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IInput])]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.IInput])]
[CmdletBinding(DefaultParameterSetName='Create', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='Create', Mandatory)]
Expand Down Expand Up @@ -174,9 +174,9 @@ begin {
try {
$inputParameters = Get-Content -Path $File | Out-String

if ([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.InputTypeConverter]::CanConvertFrom($inputParameters))
if ([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.InputTypeConverter]::CanConvertFrom($inputParameters))
{
$function = [Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.InputTypeConverter]::ConvertFrom($inputParameters)
$function = [Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.InputTypeConverter]::ConvertFrom($inputParameters)
} else {
throw "The json format is invalid"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ PS C:\> {{ Add code here }}
{{ Add output here }}

.Inputs
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IStreamingJob
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.IStreamingJob
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.IStreamAnalyticsIdentity
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IStreamingJob
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.IStreamingJob
.Notes
COMPLEX PARAMETER PROPERTIES

Expand Down Expand Up @@ -141,7 +141,7 @@ STREAMINGJOB <IStreamingJob>: A streaming job object, containing all information
https://learn.microsoft.com/powershell/module/az.streamanalytics/new-azstreamanalyticsjob
#>
function New-AzStreamAnalyticsJob {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IStreamingJob])]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.IStreamingJob])]
[CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='CreateExpanded', Mandatory)]
Expand Down Expand Up @@ -180,13 +180,12 @@ param(
${IfNoneMatch},

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


[Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Category('Body')]
[System.String]
Expand All @@ -210,16 +209,16 @@ param(
${EventsOutOfOrderMaxDelayInSecond},

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

[Parameter(ParameterSetName='CreateExpanded')]
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Support.OutputErrorPolicy])]
[Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.PSArgumentCompleterAttribute("Stop", "Drop")]
[Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Support.OutputErrorPolicy]
[System.String]
# 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).
${OutputErrorPolicy},

Expand All @@ -230,9 +229,9 @@ param(
${Location},

[Parameter(ParameterSetName='CreateExpanded', Mandatory)]
[ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Support.StreamingJobSkuName])]
[Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.PSArgumentCompleterAttribute("Standard")]
[Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Support.StreamingJobSkuName]
[System.String]
# The name of the SKU.
# Required on PUT (CreateOrReplace) requests.
${SkuName},
Expand All @@ -245,7 +244,7 @@ param(

[Parameter(ParameterSetName='CreateExpanded')]
[Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Category('Body')]
[Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.ApiV1.ITrackedResourceTags]))]
[Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.ITrackedResourceTags]))]
[System.Collections.Hashtable]
# Resource tags.
${Tag},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ PS C:\> {{ Add code here }}
{{ Add output here }}

.Inputs
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IOutput
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.IOutput
.Inputs
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.IStreamAnalyticsIdentity
.Outputs
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IOutput
Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.IOutput
.Notes
COMPLEX PARAMETER PROPERTIES

Expand Down Expand Up @@ -64,7 +64,7 @@ OUTPUT <IOutput>: An output object, containing all information associated with t
https://learn.microsoft.com/powershell/module/az.streamanalytics/new-azstreamanalyticsoutput
#>
function New-AzStreamAnalyticsOutput {
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.IOutput])]
[OutputType([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.IOutput])]
[CmdletBinding(DefaultParameterSetName='Create', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')]
param(
[Parameter(ParameterSetName='Create', Mandatory)]
Expand Down Expand Up @@ -100,7 +100,6 @@ param(
# The ID of the target subscription.
${SubscriptionId},


[Parameter()]
[Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Category('Header')]
[System.String]
Expand Down Expand Up @@ -168,9 +167,9 @@ begin {
try {
$outputParameters = Get-Content -Path $File | Out-String

if ([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.OutputTypeConverter]::CanConvertFrom($outputParameters))
if ([Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.OutputTypeConverter]::CanConvertFrom($outputParameters))
{
$function = [Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.Api20170401Preview.OutputTypeConverter]::ConvertFrom($outputParameters)
$function = [Microsoft.Azure.PowerShell.Cmdlets.StreamAnalytics.Models.OutputTypeConverter]::ConvertFrom($outputParameters)
} else {
throw "The json format is invalid"
}
Expand Down
Loading