custom/autogen-model-cmdlets/New-NmeAzureFilesPreStageConfigModel.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 AzureFilesPreStageConfig. .Description Create an in-memory object for AzureFilesPreStageConfig. .Outputs NmePowershell.Models.AzureFilesPreStageConfig #> function New-NmeAzureFilesPreStageConfigModel { [NmePowershell.ModelCmdletAttribute()] [OutputType('NmePowershell.Models.AzureFilesPreStageConfig')] [CmdletBinding(PositionalBinding=$false)] Param( [Parameter(Mandatory)] [bool] $IsEnabled, [Parameter()] [int] $QuotaBuffer, [Parameter()] [string] $TimezoneId, [Parameter()] [NmePowershell.PSArgumentCompleterAttribute("0", "1", "2", "3", "4", "5", "6")] [int[]] $WorkDays ) process { $Object = [NmePowershell.Models.AzureFilesPreStageConfig]::New() if ($PSBoundParameters.ContainsKey('IsEnabled')) { $Object.IsEnabled = $IsEnabled } if ($PSBoundParameters.ContainsKey('QuotaBuffer')) { $Object.QuotaBuffer = $QuotaBuffer } if ($PSBoundParameters.ContainsKey('TimezoneId')) { $Object.TimezoneId = $TimezoneId } if ($PSBoundParameters.ContainsKey('WorkDays')) { $Object.WorkDays = $WorkDays } return $Object } } |