exports/New-CVVMGroup.ps1
# ---------------------------------------------------------------------------------- # Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/powershell@4.0.708) # Changes may cause incorrect behavior and will be lost if the code is regenerated. # ---------------------------------------------------------------------------------- <# .Synopsis Create a VM Group .Description Create a VM Group .Example {{ Add code here }} .Example {{ Add code here }} .Inputs Commvault.Powershell.Models.ICreatevmGroupReq .Outputs Commvault.Powershell.Models.ICreateVMGroupResp .Outputs Commvault.Powershell.Models.IGenericResp .Outputs Commvault.Powershell.Models.IGenericResponse .Notes COMPLEX PARAMETER PROPERTIES To create the parameters described below, construct a hash table containing the appropriate properties. For information on hash tables, run Get-Help about_Hash_Tables. BODY <ICreatevmGroupReq>: CreatevmGroupReq Name <String>: subclient name [ContentOverwrite <Boolean?>]: True if content in vmgroup has to be overwritten, by default it will append the content [ContentRuleGroups <List<IRuleGroupContent>>]: [MatchRule <String>]: Enum which specifies the whether to match all rules or any of the rules [Rules <List<IRuleContent>>]: [Condition <String>]: Operation type for VM rules/filters [DisplayName <String>]: The display name of the entity to be added [Guid <String>]: GUID of the entity to be added as content [Name <String>]: name of the VM to be added as content [Type <String>]: [Value <String>]: value for the few type of VM Content like powerstate [ContentVirtualMachines <List<IVirtualMachinecontent>>]: [ExistingCredentialId <Int64?>]: [ExistingCredentialName <String>]: [GuestCredentialAssocId <Int64?>]: Credential association ID given to link entity with credential id. [GuestCredentialsPassword <String>]: [GuestCredentialsUserName <String>]: [Guid <String>]: GUID of the VM to be added as content [Name <String>]: name of the VM to be added as content [Type <String>]: [EnableIntellisnap <Boolean?>]: True if Intellisnap has to be enabled [HypervisorId <Int64?>]: [HypervisorName <String>]: [MeditechListenerIP <String>]: Meditech Listener IP of FQDN name [MeditechListenerPort <Int64?>]: Meditech Listener Port [MeditechMbFtimeout <Int64?>]: MBF timeout (in seconds) [MeditechSystemName <String>]: Meditech system name [PlanId <Int64?>]: [PlanName <String>]: [StorageId <Int64?>]: [StorageName <String>]: [UserAccountName <String>]: username to access the network path [UserAccountPassword <String>]: password to access the network path CONTENTRULEGROUPS <IRuleGroupContent[]>: . [MatchRule <String>]: Enum which specifies the whether to match all rules or any of the rules [Rules <List<IRuleContent>>]: [Condition <String>]: Operation type for VM rules/filters [DisplayName <String>]: The display name of the entity to be added [Guid <String>]: GUID of the entity to be added as content [Name <String>]: name of the VM to be added as content [Type <String>]: [Value <String>]: value for the few type of VM Content like powerstate CONTENTVIRTUALMACHINES <IVirtualMachinecontent[]>: . [ExistingCredentialId <Int64?>]: [ExistingCredentialName <String>]: [GuestCredentialAssocId <Int64?>]: Credential association ID given to link entity with credential id. [GuestCredentialsPassword <String>]: [GuestCredentialsUserName <String>]: [Guid <String>]: GUID of the VM to be added as content [Name <String>]: name of the VM to be added as content [Type <String>]: .Link https://learn.microsoft.com/powershell/module/commvaultpowershell/new-cvvmgroup #> function New-CVVMGroup { [OutputType([Commvault.Powershell.Models.ICreateVMGroupResp], [Commvault.Powershell.Models.IGenericResponse], [Commvault.Powershell.Models.IGenericResp])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(ParameterSetName='Create1', Mandatory, ValueFromPipeline)] [Commvault.Powershell.Category('Body')] [Commvault.Powershell.Models.ICreatevmGroupReq] # CreatevmGroupReq ${Body}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateExpanded1')] [Commvault.Powershell.Category('Body')] [System.Management.Automation.SwitchParameter] # True if content in vmgroup has to be overwritten, by default it will append the content ${ContentOverwrite}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateExpanded1')] [AllowEmptyCollection()] [Commvault.Powershell.Category('Body')] [Commvault.Powershell.Models.IRuleGroupContent[]] # . ${ContentRuleGroups}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateExpanded1')] [AllowEmptyCollection()] [Commvault.Powershell.Category('Body')] [Commvault.Powershell.Models.IVirtualMachinecontent[]] # . ${ContentVirtualMachines}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateExpanded1')] [Commvault.Powershell.Category('Body')] [System.Management.Automation.SwitchParameter] # True if Intellisnap has to be enabled ${EnableIntellisnap}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateExpanded1')] [Commvault.Powershell.Category('Body')] [System.Int64] # . ${HypervisorId}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateExpanded1')] [Commvault.Powershell.Category('Body')] [System.String] # . ${HypervisorName}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateExpanded1')] [Commvault.Powershell.Category('Body')] [System.String] # Meditech Listener IP of FQDN name ${MeditechListenerIP}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateExpanded1')] [Commvault.Powershell.Category('Body')] [System.Int64] # Meditech Listener Port ${MeditechListenerPort}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateExpanded1')] [Commvault.Powershell.Category('Body')] [System.Int64] # MBF timeout (in seconds) ${MeditechMbFtimeout}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateExpanded1')] [Commvault.Powershell.Category('Body')] [System.String] # Meditech system name ${MeditechSystemName}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateExpanded1')] [Commvault.Powershell.Category('Body')] [System.String] # subclient name ${Name}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateExpanded1')] [Commvault.Powershell.Category('Body')] [System.Int64] # . ${PlanId}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateExpanded1')] [Commvault.Powershell.Category('Body')] [System.String] # . ${PlanName}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateExpanded1')] [Commvault.Powershell.Category('Body')] [System.Int64] # . ${StorageId}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateExpanded1')] [Commvault.Powershell.Category('Body')] [System.String] # . ${StorageName}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateExpanded1')] [Commvault.Powershell.Category('Body')] [System.String] # username to access the network path ${UserAccountName}, [Parameter(ParameterSetName='CreateExpanded')] [Parameter(ParameterSetName='CreateExpanded1')] [Commvault.Powershell.Category('Body')] [System.String] # password to access the network path ${UserAccountPassword}, [Parameter(DontShow)] [Commvault.Powershell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Wait for .NET debugger to attach ${Break}, [Parameter(DontShow)] [ValidateNotNull()] [Commvault.Powershell.Category('Runtime')] [Commvault.Powershell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be appended to the front of the pipeline ${HttpPipelineAppend}, [Parameter(DontShow)] [ValidateNotNull()] [Commvault.Powershell.Category('Runtime')] [Commvault.Powershell.Runtime.SendAsyncStep[]] # SendAsync Pipeline Steps to be prepended to the front of the pipeline ${HttpPipelinePrepend}, [Parameter(DontShow)] [Commvault.Powershell.Category('Runtime')] [System.Uri] # The URI for the proxy server to use ${Proxy}, [Parameter(DontShow)] [ValidateNotNull()] [Commvault.Powershell.Category('Runtime')] [System.Management.Automation.PSCredential] # Credentials for a proxy server to use for the remote call ${ProxyCredential}, [Parameter(DontShow)] [Commvault.Powershell.Category('Runtime')] [System.Management.Automation.SwitchParameter] # Use the default credentials for the proxy ${ProxyUseDefaultCredentials} ) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $parameterSet = $PSCmdlet.ParameterSetName $mapping = @{ Create1 = 'CommvaultPowerShell.private\New-CVVMGroup_Create1'; CreateExpanded = 'CommvaultPowerShell.private\New-CVVMGroup_CreateExpanded'; CreateExpanded1 = 'CommvaultPowerShell.private\New-CVVMGroup_CreateExpanded1'; } $cmdInfo = Get-Command -Name $mapping[$parameterSet] [Commvault.Powershell.Runtime.MessageAttributeHelper]::ProcessCustomAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) [Commvault.Powershell.Runtime.MessageAttributeHelper]::ProcessPreviewMessageAttributesAtRuntime($cmdInfo, $MyInvocation, $parameterSet, $PSCmdlet) $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand(($mapping[$parameterSet]), [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters} $steppablePipeline = $scriptCmd.GetSteppablePipeline($MyInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } } |