custom/autogen-model-cmdlets/New-NmeMsixPackageUploadModel.ps1
|
# ---------------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.8, generator: @autorest/powershell@4.0.752) # Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- <# .Synopsis Create an in-memory object for MsixPackageUpload. .Description Create an in-memory object for MsixPackageUpload. .Outputs NmePowershell.Models.MsixPackageUpload #> function New-NmeMsixPackageUploadModel { [NmePowershell.ModelCmdletAttribute()] [OutputType('NmePowershell.Models.MsixPackageUpload')] [CmdletBinding(PositionalBinding=$false)] Param( [Parameter()] [bool] $FailurePolicyCleanup, [Parameter()] [bool] $FailurePolicyRestart, [Parameter(Mandatory)] [string] $ImageName, [Parameter(Mandatory)] [string] $LocationId, [Parameter(Mandatory)] [string[]] $PackageLinks, [Parameter()] [string[]] $StorageLocationIds, [Parameter()] [string] $TempVMParamDiskPerformanceTier, [Parameter(Mandatory)] [int] $TempVMParamDiskSize, [Parameter(Mandatory)] [string] $TempVMParamImage, [Parameter()] [string] $TempVMParamNetworkId, [Parameter(Mandatory)] [string] $TempVMParamStorageType, [Parameter()] [string] $TempVMParamSubnet, [Parameter(Mandatory)] [string] $TempVMParamVmsize, [Parameter(Mandatory)] [string] $VMIdName, [Parameter()] [string] $VMIdResourceGroup, [Parameter()] [string] $VMIdSubscriptionId ) process { $Object = [NmePowershell.Models.MsixPackageUpload]::New() if ($PSBoundParameters.ContainsKey('FailurePolicyCleanup')) { $Object.FailurePolicyCleanup = $FailurePolicyCleanup } if ($PSBoundParameters.ContainsKey('FailurePolicyRestart')) { $Object.FailurePolicyRestart = $FailurePolicyRestart } if ($PSBoundParameters.ContainsKey('ImageName')) { $Object.ImageName = $ImageName } if ($PSBoundParameters.ContainsKey('LocationId')) { $Object.LocationId = $LocationId } if ($PSBoundParameters.ContainsKey('PackageLinks')) { $Object.PackageLinks = $PackageLinks } if ($PSBoundParameters.ContainsKey('StorageLocationIds')) { $Object.StorageLocationIds = $StorageLocationIds } if ($PSBoundParameters.ContainsKey('TempVMParamDiskPerformanceTier')) { $Object.TempVMParamDiskPerformanceTier = $TempVMParamDiskPerformanceTier } if ($PSBoundParameters.ContainsKey('TempVMParamDiskSize')) { $Object.TempVMParamDiskSize = $TempVMParamDiskSize } if ($PSBoundParameters.ContainsKey('TempVMParamImage')) { $Object.TempVMParamImage = $TempVMParamImage } if ($PSBoundParameters.ContainsKey('TempVMParamNetworkId')) { $Object.TempVMParamNetworkId = $TempVMParamNetworkId } if ($PSBoundParameters.ContainsKey('TempVMParamStorageType')) { $Object.TempVMParamStorageType = $TempVMParamStorageType } if ($PSBoundParameters.ContainsKey('TempVMParamSubnet')) { $Object.TempVMParamSubnet = $TempVMParamSubnet } if ($PSBoundParameters.ContainsKey('TempVMParamVmsize')) { $Object.TempVMParamVmsize = $TempVMParamVmsize } if ($PSBoundParameters.ContainsKey('VMIdName')) { $Object.VMIdName = $VMIdName } if ($PSBoundParameters.ContainsKey('VMIdResourceGroup')) { $Object.VMIdResourceGroup = $VMIdResourceGroup } if ($PSBoundParameters.ContainsKey('VMIdSubscriptionId')) { $Object.VMIdSubscriptionId = $VMIdSubscriptionId } return $Object } } |