generated/cmdlets/SetCVPlan_UpdateViaIdentityExpanded.cs
// 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. namespace Commvault.Powershell.Cmdlets { using static Commvault.Powershell.Runtime.Extensions; using Commvault.Powershell.Runtime.PowerShell; using Commvault.Powershell.Runtime.Cmdlets; using System; /// <summary>Used to modify an exsiting server plan</summary> /// <remarks> /// [OpenAPI] UpdatePlan=>PUT:"/V4/ServerPlan/{planId}" /// </remarks> [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Set, @"CVPlan_UpdateViaIdentityExpanded", SupportsShouldProcess = true)] [global::System.Management.Automation.OutputType(typeof(Commvault.Powershell.Models.IGenericResp))] [global::Commvault.Powershell.Description(@"Used to modify an exsiting server plan")] [global::Commvault.Powershell.Generated] [global::Commvault.Powershell.HttpPath(Path = "/V4/ServerPlan/{planId}", ApiVersion = "LATEST")] public partial class SetCVPlan_UpdateViaIdentityExpanded : global::System.Management.Automation.PSCmdlet, Commvault.Powershell.Runtime.IEventListener, Commvault.Powershell.Runtime.IContext { /// <summary>A copy of the Invocation Info (necessary to allow asJob to clone this cmdlet)</summary> private global::System.Management.Automation.InvocationInfo __invocationInfo; private Commvault.Powershell.Models.IUpdateServerPlan _body = new Commvault.Powershell.Models.UpdateServerPlan(); /// <summary> /// The <see cref="global::System.Threading.CancellationTokenSource" /> for this operation. /// </summary> private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// <summary>A dictionary to carry over additional data for pipeline.</summary> private global::System.Collections.Generic.Dictionary<global::System.String,global::System.Object> _extensibleParameters = new System.Collections.Generic.Dictionary<string, object>(); /// <summary>A buffer to record first returned object in response.</summary> private object _firstResponse = null; /// <summary> /// A flag to tell whether it is the first returned object in a call. Zero means no response yet. One means 1 returned object. /// Two means multiple returned objects in response. /// </summary> private int _responseSize = 0; /// <summary>Flag to enable overriding of plan. Once enabled, cannot be disabled.</summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Flag to enable overriding of plan. Once enabled, cannot be disabled.")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Flag to enable overriding of plan. Once enabled, cannot be disabled.", SerializedName = @"allowPlanOverride", PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] public global::System.Management.Automation.SwitchParameter AllowPlanOverride { get => _body.AllowPlanOverride ?? default(global::System.Management.Automation.SwitchParameter); set => _body.AllowPlanOverride = value; } /// <summary>Do you want to back up the system state Applicable only for Windows</summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Do you want to back up the system state Applicable only for Windows")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Do you want to back up the system state Applicable only for Windows", SerializedName = @"backupSystemState", PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] public global::System.Management.Automation.SwitchParameter BackupContentBackupSystemState { get => _body.BackupContentBackupSystemState ?? default(global::System.Management.Automation.SwitchParameter); set => _body.BackupContentBackupSystemState = value; } /// <summary> /// Do you want to back up system state only with full backup Applicable only if the value of backupSystemState is true /// </summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Do you want to back up system state only with full backup Applicable only if the value of backupSystemState is true")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Do you want to back up system state only with full backup Applicable only if the value of backupSystemState is true", SerializedName = @"backupSystemStateOnlyWithFullBackup", PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] public global::System.Management.Automation.SwitchParameter BackupContentBackupSystemStateOnlyWithFullBackup { get => _body.BackupContentBackupSystemStateOnlyWithFullBackup ?? default(global::System.Management.Automation.SwitchParameter); set => _body.BackupContentBackupSystemStateOnlyWithFullBackup = value; } /// <summary> /// Do you want to sync properties on associated subclients even if properties are overriden at subclient level /// </summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Do you want to sync properties on associated subclients even if properties are overriden at subclient level")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Do you want to sync properties on associated subclients even if properties are overriden at subclient level", SerializedName = @"forceUpdateProperties", PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] public global::System.Management.Automation.SwitchParameter BackupContentForceUpdateProperties { get => _body.BackupContentForceUpdateProperties ?? default(global::System.Management.Automation.SwitchParameter); set => _body.BackupContentForceUpdateProperties = value; } /// <summary>Paths to exclude for Mac</summary> [global::System.Management.Automation.AllowEmptyCollection] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Paths to exclude for Mac")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Paths to exclude for Mac", SerializedName = @"macExcludedPaths", PossibleTypes = new [] { typeof(string) })] public string[] BackupContentMacExcludedPaths { get => _body.BackupContentMacExcludedPaths?.ToArray() ?? null /* fixedArrayOf */; set => _body.BackupContentMacExcludedPaths = (value != null ? new System.Collections.Generic.List<string>(value) : null); } /// <summary>Paths that are exception to excluded paths for Mac</summary> [global::System.Management.Automation.AllowEmptyCollection] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Paths that are exception to excluded paths for Mac")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Paths that are exception to excluded paths for Mac", SerializedName = @"macFilterToExcludePaths", PossibleTypes = new [] { typeof(string) })] public string[] BackupContentMacFilterToExcludePaths { get => _body.BackupContentMacFilterToExcludePaths?.ToArray() ?? null /* fixedArrayOf */; set => _body.BackupContentMacFilterToExcludePaths = (value != null ? new System.Collections.Generic.List<string>(value) : null); } /// <summary>Paths to include for Mac</summary> [global::System.Management.Automation.AllowEmptyCollection] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Paths to include for Mac")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Paths to include for Mac", SerializedName = @"macIncludedPaths", PossibleTypes = new [] { typeof(string) })] public string[] BackupContentMacIncludedPaths { get => _body.BackupContentMacIncludedPaths?.ToArray() ?? null /* fixedArrayOf */; set => _body.BackupContentMacIncludedPaths = (value != null ? new System.Collections.Generic.List<string>(value) : null); } /// <summary>Paths to exclude for UNIX</summary> [global::System.Management.Automation.AllowEmptyCollection] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Paths to exclude for UNIX")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Paths to exclude for UNIX", SerializedName = @"unixExcludedPaths", PossibleTypes = new [] { typeof(string) })] public string[] BackupContentUnixExcludedPaths { get => _body.BackupContentUnixExcludedPaths?.ToArray() ?? null /* fixedArrayOf */; set => _body.BackupContentUnixExcludedPaths = (value != null ? new System.Collections.Generic.List<string>(value) : null); } /// <summary>Paths that are exception to excluded paths for Unix</summary> [global::System.Management.Automation.AllowEmptyCollection] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Paths that are exception to excluded paths for Unix")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Paths that are exception to excluded paths for Unix", SerializedName = @"unixFilterToExcludePaths", PossibleTypes = new [] { typeof(string) })] public string[] BackupContentUnixFilterToExcludePaths { get => _body.BackupContentUnixFilterToExcludePaths?.ToArray() ?? null /* fixedArrayOf */; set => _body.BackupContentUnixFilterToExcludePaths = (value != null ? new System.Collections.Generic.List<string>(value) : null); } /// <summary>Paths to include for UNIX</summary> [global::System.Management.Automation.AllowEmptyCollection] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Paths to include for UNIX")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Paths to include for UNIX", SerializedName = @"unixIncludedPaths", PossibleTypes = new [] { typeof(string) })] public string[] BackupContentUnixIncludedPaths { get => _body.BackupContentUnixIncludedPaths?.ToArray() ?? null /* fixedArrayOf */; set => _body.BackupContentUnixIncludedPaths = (value != null ? new System.Collections.Generic.List<string>(value) : null); } /// <summary> /// Do you want to back up system state with VSS Applicable only if the value of backupSystemState is true /// </summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Do you want to back up system state with VSS Applicable only if the value of backupSystemState is true")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Do you want to back up system state with VSS Applicable only if the value of backupSystemState is true", SerializedName = @"useVSSForSystemState", PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] public global::System.Management.Automation.SwitchParameter BackupContentUseVssForSystemState { get => _body.BackupContentUseVssForSystemState ?? default(global::System.Management.Automation.SwitchParameter); set => _body.BackupContentUseVssForSystemState = value; } /// <summary>Paths to exclude for Windows</summary> [global::System.Management.Automation.AllowEmptyCollection] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Paths to exclude for Windows")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Paths to exclude for Windows", SerializedName = @"windowsExcludedPaths", PossibleTypes = new [] { typeof(string) })] public string[] BackupContentWindowsExcludedPaths { get => _body.BackupContentWindowsExcludedPaths?.ToArray() ?? null /* fixedArrayOf */; set => _body.BackupContentWindowsExcludedPaths = (value != null ? new System.Collections.Generic.List<string>(value) : null); } /// <summary>Paths that are exception to excluded paths for Windows</summary> [global::System.Management.Automation.AllowEmptyCollection] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Paths that are exception to excluded paths for Windows")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Paths that are exception to excluded paths for Windows", SerializedName = @"windowsFilterToExcludePaths", PossibleTypes = new [] { typeof(string) })] public string[] BackupContentWindowsFilterToExcludePaths { get => _body.BackupContentWindowsFilterToExcludePaths?.ToArray() ?? null /* fixedArrayOf */; set => _body.BackupContentWindowsFilterToExcludePaths = (value != null ? new System.Collections.Generic.List<string>(value) : null); } /// <summary>Paths to include for Windows</summary> [global::System.Management.Automation.AllowEmptyCollection] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Paths to include for Windows")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Paths to include for Windows", SerializedName = @"windowsIncludedPaths", PossibleTypes = new [] { typeof(string) })] public string[] BackupContentWindowsIncludedPaths { get => _body.BackupContentWindowsIncludedPaths?.ToArray() ?? null /* fixedArrayOf */; set => _body.BackupContentWindowsIncludedPaths = (value != null ? new System.Collections.Generic.List<string>(value) : null); } /// <summary> /// Frequency of the schedule based on schedule frequency type eg. for Hours, value 2 is 2 hours, for Minutes, 30 is 30 minutes, /// for Daily, 2 is 2 days. for Monthly 2 is it repeats every 2 months /// </summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Frequency of the schedule based on schedule frequency type eg. for Hours, value 2 is 2 hours, for Minutes, 30 is 30 minutes, for Daily, 2 is 2 days. for Monthly 2 is it repeats every 2 months")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Frequency of the schedule based on schedule frequency type eg. for Hours, value 2 is 2 hours, for Minutes, 30 is 30 minutes, for Daily, 2 is 2 days. for Monthly 2 is it repeats every 2 months", SerializedName = @"frequency", PossibleTypes = new [] { typeof(long) })] public long BackupCopyFrequency { get => _body.BackupCopyFrequency ?? default(long); set => _body.BackupCopyFrequency = value; } /// <summary>Day on which to run the schedule, applicable for monthly, yearly</summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Day on which to run the schedule, applicable for monthly, yearly")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Day on which to run the schedule, applicable for monthly, yearly", SerializedName = @"dayOfMonth", PossibleTypes = new [] { typeof(long) })] public long BackupCopyFrequencyDayOfMonth { get => _body.BackupCopyFrequencyDayOfMonth ?? default(long); set => _body.BackupCopyFrequencyDayOfMonth = value; } /// <summary>.</summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = ".")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @".", SerializedName = @"dayOfWeek", PossibleTypes = new [] { typeof(string) })] public string BackupCopyFrequencyDayOfWeek { get => _body.BackupCopyFrequencyDayOfWeek ?? null; set => _body.BackupCopyFrequencyDayOfWeek = value; } /// <summary>.</summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = ".")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @".", SerializedName = @"monthOfYear", PossibleTypes = new [] { typeof(string) })] public string BackupCopyFrequencyMonthOfYear { get => _body.BackupCopyFrequencyMonthOfYear ?? null; set => _body.BackupCopyFrequencyMonthOfYear = value; } /// <summary>schedule frequency type</summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "schedule frequency type")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"schedule frequency type", SerializedName = @"scheduleFrequencyType", PossibleTypes = new [] { typeof(string) })] public string BackupCopyFrequencyScheduleFrequencyType { get => _body.BackupCopyFrequencyScheduleFrequencyType ?? null; set => _body.BackupCopyFrequencyScheduleFrequencyType = value; } /// <summary>start time of schedule in seconds for daily, weekly, monthly, yearly frequency</summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "start time of schedule in seconds for daily, weekly, monthly, yearly frequency")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"start time of schedule in seconds for daily, weekly, monthly, yearly frequency", SerializedName = @"startTime", PossibleTypes = new [] { typeof(long) })] public long BackupCopyFrequencyStartTime { get => _body.BackupCopyFrequencyStartTime ?? default(long); set => _body.BackupCopyFrequencyStartTime = value; } /// <summary>Specific week of a month</summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Specific week of a month")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Specific week of a month", SerializedName = @"weekOfMonth", PossibleTypes = new [] { typeof(string) })] public string BackupCopyFrequencyWeekOfMonth { get => _body.BackupCopyFrequencyWeekOfMonth ?? null; set => _body.BackupCopyFrequencyWeekOfMonth = value; } /// <summary>Days of the week for weekly frequency</summary> [global::System.Management.Automation.AllowEmptyCollection] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Days of the week for weekly frequency")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Days of the week for weekly frequency", SerializedName = @"weeklyDays", PossibleTypes = new [] { typeof(string) })] public string[] BackupCopyFrequencyWeeklyDays { get => _body.BackupCopyFrequencyWeeklyDays?.ToArray() ?? null /* fixedArrayOf */; set => _body.BackupCopyFrequencyWeeklyDays = (value != null ? new System.Collections.Generic.List<string>(value) : null); } /// <summary>Which type of action should be followed if backup copy falls behind</summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Which type of action should be followed if backup copy falls behind")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Which type of action should be followed if backup copy falls behind", SerializedName = @"action", PossibleTypes = new [] { typeof(string) })] public string BackupCopyOptionAction { get => _body.BackupCopyOptionAction ?? null; set => _body.BackupCopyOptionAction = value; } /// <summary>Alert to throw when backup copy falls behind in hours</summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Alert to throw when backup copy falls behind in hours")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Alert to throw when backup copy falls behind in hours", SerializedName = @"alertInHours", PossibleTypes = new [] { typeof(long) })] public long BackupCopyOptionAlertInHours { get => _body.BackupCopyOptionAlertInHours ?? default(long); set => _body.BackupCopyOptionAlertInHours = value; } /// <summary> /// Which type of backup type should be copied for the given backup destination when backup type is not all jobs. Default /// is LAST while adding new backup destination. /// </summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Which type of backup type should be copied for the given backup destination when backup type is not all jobs. Default is LAST while adding new backup destination.")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Which type of backup type should be copied for the given backup destination when backup type is not all jobs. Default is LAST while adding new backup destination.", SerializedName = @"backupFullToCopy", PossibleTypes = new [] { typeof(string) })] public string BackupCopyOptionBackupFullToCopy { get => _body.BackupCopyOptionBackupFullToCopy ?? null; set => _body.BackupCopyOptionBackupFullToCopy = value; } /// <summary>Backup type to copy for backup copy operation</summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Backup type to copy for backup copy operation")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Backup type to copy for backup copy operation", SerializedName = @"backupTypeToCopy", PossibleTypes = new [] { typeof(string) })] public string BackupCopyOptionBackupTypeToCopy { get => _body.BackupCopyOptionBackupTypeToCopy ?? null; set => _body.BackupCopyOptionBackupTypeToCopy = value; } /// <summary>Flag to enable backup copy fallen behind alert</summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Flag to enable backup copy fallen behind alert")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Flag to enable backup copy fallen behind alert", SerializedName = @"enableAlert", PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] public global::System.Management.Automation.SwitchParameter BackupCopyOptionEnableAlert { get => _body.BackupCopyOptionEnableAlert ?? default(global::System.Management.Automation.SwitchParameter); set => _body.BackupCopyOptionEnableAlert = value; } /// <summary>The allowable delay in days before a backup copy job is considered overdue</summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The allowable delay in days before a backup copy job is considered overdue")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"The allowable delay in days before a backup copy job is considered overdue", SerializedName = @"skipAfterThresholdDays", PossibleTypes = new [] { typeof(long) })] public long BackupCopyOptionSkipAfterThresholdDays { get => _body.BackupCopyOptionSkipAfterThresholdDays ?? default(long); set => _body.BackupCopyOptionSkipAfterThresholdDays = value; } /// <summary> /// Snapshots to be copied from a particular time in unix time format. By default, 0 means since the inception of the snap /// copy. /// </summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Snapshots to be copied from a particular time in unix time format. By default, 0 means since the inception of the snap copy.")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Snapshots to be copied from a particular time in unix time format. By default, 0 means since the inception of the snap copy.", SerializedName = @"startTime", PossibleTypes = new [] { typeof(long) })] public long BackupCopyOptionStartTime { get => _body.BackupCopyOptionStartTime ?? default(long); set => _body.BackupCopyOptionStartTime = value; } /// <summary>Primary Backup Destination Ids (which were created before plan creation).</summary> [global::System.Management.Automation.AllowEmptyCollection] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Primary Backup Destination Ids (which were created before plan creation).")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Primary Backup Destination Ids (which were created before plan creation).", SerializedName = @"backupDestinationIds", PossibleTypes = new [] { typeof(long) })] public long[] BackupDestinationIds { get => _body.BackupDestinationIds?.ToArray() ?? null /* fixedArrayOf */; set => _body.BackupDestinationIds = (value != null ? new System.Collections.Generic.List<long>(value) : null); } /// <summary>Operation type for the list</summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Operation type for the list")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Operation type for the list", SerializedName = @"operationType", PossibleTypes = new [] { typeof(string) })] public string BackupFrequencyOperationType { get => _body.BackupFrequencyOperationType ?? null; set => _body.BackupFrequencyOperationType = value; } /// <summary>.</summary> [global::System.Management.Automation.AllowEmptyCollection] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = ".")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @".", SerializedName = @"schedules", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IPlanSchedule) })] public Commvault.Powershell.Models.IPlanSchedule[] BackupFrequencySchedules { get => _body.BackupFrequencySchedules?.ToArray() ?? null /* fixedArrayOf */; set => _body.BackupFrequencySchedules = (value != null ? new System.Collections.Generic.List<Commvault.Powershell.Models.IPlanSchedule>(value) : null); } /// <summary>Wait for .NET debugger to attach</summary> [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Wait for .NET debugger to attach")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter Break { get; set; } /// <summary>Accessor for cancellationTokenSource.</summary> public global::System.Threading.CancellationTokenSource CancellationTokenSource { get => _cancellationTokenSource ; set { _cancellationTokenSource = value; } } /// <summary>The reference to the client API class.</summary> public Commvault.Powershell.CommvaultPowerShell Client => Commvault.Powershell.Module.Instance.ClientAPI; /// <summary>Commit frequency in hours</summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Commit frequency in hours")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Commit frequency in hours", SerializedName = @"commitFrequencyInHours", PossibleTypes = new [] { typeof(long) })] public long DatabaseOptionCommitFrequencyInHours { get => _body.DatabaseOptionCommitFrequencyInHours ?? default(long); set => _body.DatabaseOptionCommitFrequencyInHours = value; } /// <summary>Log backup RPO in minutes</summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Log backup RPO in minutes")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Log backup RPO in minutes", SerializedName = @"logBackupRPOMins", PossibleTypes = new [] { typeof(long) })] public long DatabaseOptionLogBackupRpoMins { get => _body.DatabaseOptionLogBackupRpoMins ?? default(long); set => _body.DatabaseOptionLogBackupRpoMins = value; } /// <summary>Full backup frequency in days</summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Full backup frequency in days")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Full backup frequency in days", SerializedName = @"runFullBackupEvery", PossibleTypes = new [] { typeof(long) })] public long DatabaseOptionRunFullBackupEvery { get => _body.DatabaseOptionRunFullBackupEvery ?? default(long); set => _body.DatabaseOptionRunFullBackupEvery = value; } /// <summary>Use disk cache for log backups</summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Use disk cache for log backups")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Use disk cache for log backups", SerializedName = @"useDiskCacheForLogBackups", PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] public global::System.Management.Automation.SwitchParameter DatabaseOptionUseDiskCacheForLogBackups { get => _body.DatabaseOptionUseDiskCacheForLogBackups ?? default(global::System.Management.Automation.SwitchParameter); set => _body.DatabaseOptionUseDiskCacheForLogBackups = value; } /// <summary>Accessor for extensibleParameters.</summary> public global::System.Collections.Generic.IDictionary<global::System.String,global::System.Object> ExtensibleParameters { get => _extensibleParameters ; } /// <summary>Flag for enabling indexing</summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Flag for enabling indexing")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Flag for enabling indexing", SerializedName = @"enabled", PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] public global::System.Management.Automation.SwitchParameter FileSearchEnabled { get => _body.FileSearchEnabled ?? default(global::System.Management.Automation.SwitchParameter); set => _body.FileSearchEnabled = value; } /// <summary> /// File search was enabled on plan but failed to process some of the storage pool(s) with these errors /// </summary> [global::System.Management.Automation.AllowEmptyCollection] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "File search was enabled on plan but failed to process some of the storage pool(s) with these errors")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"File search was enabled on plan but failed to process some of the storage pool(s) with these errors", SerializedName = @"errors", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IPlanFileSearchSetupError) })] public Commvault.Powershell.Models.IPlanFileSearchSetupError[] FileSearchErrors { get => _body.FileSearchErrors?.ToArray() ?? null /* fixedArrayOf */; set => _body.FileSearchErrors = (value != null ? new System.Collections.Generic.List<Commvault.Powershell.Models.IPlanFileSearchSetupError>(value) : null); } /// <summary>Type of indexing status.</summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Type of indexing status.")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Type of indexing status.", SerializedName = @"status", PossibleTypes = new [] { typeof(string) })] public string FileSearchStatus { get => _body.FileSearchStatus ?? null; set => _body.FileSearchStatus = value; } /// <summary> /// Tells what is happening behind the scene, so that user can knows why indexing is not enabled or if its in progress /// </summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Tells what is happening behind the scene, so that user can knows why indexing is not enabled or if its in progress")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Tells what is happening behind the scene, so that user can knows why indexing is not enabled or if its in progress", SerializedName = @"statusMessage", PossibleTypes = new [] { typeof(string) })] public string FileSearchStatusMessage { get => _body.FileSearchStatusMessage ?? null; set => _body.FileSearchStatusMessage = value; } /// <summary>flag to enable backup content association for applicable file system workload.</summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "flag to enable backup content association for applicable file system workload.")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"flag to enable backup content association for applicable file system workload.", SerializedName = @"filesystemAddon", PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] public global::System.Management.Automation.SwitchParameter FilesystemAddon { get => _body.FilesystemAddon ?? default(global::System.Management.Automation.SwitchParameter); set => _body.FilesystemAddon = value; } /// <summary>SendAsync Pipeline Steps to be appended to the front of the pipeline</summary> [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Runtime)] public Commvault.Powershell.Runtime.SendAsyncStep[] HttpPipelineAppend { get; set; } /// <summary>SendAsync Pipeline Steps to be prepended to the front of the pipeline</summary> [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be prepended to the front of the pipeline")] [global::System.Management.Automation.ValidateNotNull] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Runtime)] public Commvault.Powershell.Runtime.SendAsyncStep[] HttpPipelinePrepend { get; set; } /// <summary>Backing field for <see cref="InputObject" /> property.</summary> private Commvault.Powershell.Models.ICommvaultPowerShellIdentity _inputObject; /// <summary>Identity Parameter</summary> [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Identity Parameter", ValueFromPipeline = true)] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Path)] public Commvault.Powershell.Models.ICommvaultPowerShellIdentity InputObject { get => this._inputObject; set => this._inputObject = value; } /// <summary>Accessor for our copy of the InvocationInfo.</summary> public global::System.Management.Automation.InvocationInfo InvocationInformation { get => __invocationInfo = __invocationInfo ?? this.MyInvocation ; set { __invocationInfo = value; } } /// <summary>Number of data readers.</summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Number of data readers.")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Number of data readers.", SerializedName = @"count", PossibleTypes = new [] { typeof(long) })] public long MacNumberOfDataReaderCount { get => _body.MacNumberOfDataReaderCount ?? default(long); set => _body.MacNumberOfDataReaderCount = value; } /// <summary> /// Set optimal number of data readers. if it is set to true, count will be ignored. /// </summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Set optimal number of data readers. if it is set to true, count will be ignored.")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Set optimal number of data readers. if it is set to true, count will be ignored.", SerializedName = @"useOptimal", PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] public global::System.Management.Automation.SwitchParameter MacNumberOfDataReaderUseOptimal { get => _body.MacNumberOfDataReaderUseOptimal ?? default(global::System.Management.Automation.SwitchParameter); set => _body.MacNumberOfDataReaderUseOptimal = value; } /// <summary> /// <see cref="Commvault.Powershell.Runtime.IEventListener" /> cancellation delegate. Stops the cmdlet when called. /// </summary> global::System.Action Commvault.Powershell.Runtime.IEventListener.Cancel => _cancellationTokenSource.Cancel; /// <summary><see cref="Commvault.Powershell.Runtime.IEventListener" /> cancellation token.</summary> global::System.Threading.CancellationToken Commvault.Powershell.Runtime.IEventListener.Token => _cancellationTokenSource.Token; /// <summary>New plan name to update</summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "New plan name to update")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"New plan name to update", SerializedName = @"newName", PossibleTypes = new [] { typeof(string) })] public string NewName { get => _body.NewName ?? null; set => _body.NewName = value; } /// <summary> /// Flag to specify if parent or derived plan backupContent should be used when inherit mode is optional. True - derived, /// False - Base. /// </summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Flag to specify if parent or derived plan backupContent should be used when inherit mode is optional. True - derived, False - Base.")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Flag to specify if parent or derived plan backupContent should be used when inherit mode is optional. True - derived, False - Base.", SerializedName = @"backupContent", PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] public global::System.Management.Automation.SwitchParameter OverrideInheritSettingBackupContent { get => _body.OverrideInheritSettingBackupContent ?? default(global::System.Management.Automation.SwitchParameter); set => _body.OverrideInheritSettingBackupContent = value; } /// <summary> /// Flag to specify if parent or derived plan backupDestination should be used when inherit mode is optional. True - derived, /// False - Base. /// </summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Flag to specify if parent or derived plan backupDestination should be used when inherit mode is optional. True - derived, False - Base.")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Flag to specify if parent or derived plan backupDestination should be used when inherit mode is optional. True - derived, False - Base.", SerializedName = @"backupDestination", PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] public global::System.Management.Automation.SwitchParameter OverrideInheritSettingBackupDestination { get => _body.OverrideInheritSettingBackupDestination ?? default(global::System.Management.Automation.SwitchParameter); set => _body.OverrideInheritSettingBackupDestination = value; } /// <summary> /// Flag to specify if parent or derived plan rpo should be used when inherit mode is optional. True - derived, False - Base. /// </summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Flag to specify if parent or derived plan rpo should be used when inherit mode is optional. True - derived, False - Base.")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Flag to specify if parent or derived plan rpo should be used when inherit mode is optional. True - derived, False - Base.", SerializedName = @"rpo", PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] public global::System.Management.Automation.SwitchParameter OverrideInheritSettingRpo { get => _body.OverrideInheritSettingRpo ?? default(global::System.Management.Automation.SwitchParameter); set => _body.OverrideInheritSettingRpo = value; } /// <summary>.</summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = ".")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @".", SerializedName = @"backupContent", PossibleTypes = new [] { typeof(string) })] public string OverrideRestrictionBackupContent { get => _body.OverrideRestrictionBackupContent ?? null; set => _body.OverrideRestrictionBackupContent = value; } /// <summary>.</summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = ".")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @".", SerializedName = @"RPO", PossibleTypes = new [] { typeof(string) })] public string OverrideRestrictionRpo { get => _body.OverrideRestrictionRpo ?? null; set => _body.OverrideRestrictionRpo = value; } /// <summary>.</summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = ".")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @".", SerializedName = @"storagePool", PossibleTypes = new [] { typeof(string) })] public string OverrideRestrictionStoragePool { get => _body.OverrideRestrictionStoragePool ?? null; set => _body.OverrideRestrictionStoragePool = value; } /// <summary> /// When specified, forces the cmdlet return a 'bool' given that there isn't a return type by default. /// </summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Returns true when the command succeeds")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter PassThru { get; set; } /// <summary> /// The instance of the <see cref="Commvault.Powershell.Runtime.HttpPipeline" /> that the remote call will use. /// </summary> public Commvault.Powershell.Runtime.HttpPipeline Pipeline { get; set; } /// <summary>The URI for the proxy server to use</summary> [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "The URI for the proxy server to use")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Runtime)] public global::System.Uri Proxy { get; set; } /// <summary>Credentials for a proxy server to use for the remote call</summary> [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Credentials for a proxy server to use for the remote call")] [global::System.Management.Automation.ValidateNotNull] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Runtime)] public global::System.Management.Automation.PSCredential ProxyCredential { get; set; } /// <summary>Use the default credentials for the proxy</summary> [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "Use the default credentials for the proxy")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Runtime)] public global::System.Management.Automation.SwitchParameter ProxyUseDefaultCredentials { get; set; } /// <summary>.</summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = ".")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @".", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] public long RegionToConfigureId { get => _body.RegionToConfigureId ?? default(long); set => _body.RegionToConfigureId = value; } /// <summary>.</summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = ".")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @".", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] public string RegionToConfigureName { get => _body.RegionToConfigureName ?? null; set => _body.RegionToConfigureName = value; } /// <summary>Backup window for incremental backup</summary> [global::System.Management.Automation.AllowEmptyCollection] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Backup window for incremental backup")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Backup window for incremental backup", SerializedName = @"backupWindow", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IDayAndTime) })] public Commvault.Powershell.Models.IDayAndTime[] RpoBackupWindow { get => _body.RpoBackupWindow?.ToArray() ?? null /* fixedArrayOf */; set => _body.RpoBackupWindow = (value != null ? new System.Collections.Generic.List<Commvault.Powershell.Models.IDayAndTime>(value) : null); } /// <summary>Backup window for full backup</summary> [global::System.Management.Automation.AllowEmptyCollection] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Backup window for full backup")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Backup window for full backup", SerializedName = @"fullBackupWindow", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IDayAndTime) })] public Commvault.Powershell.Models.IDayAndTime[] RpoFullBackupWindow { get => _body.RpoFullBackupWindow?.ToArray() ?? null /* fixedArrayOf */; set => _body.RpoFullBackupWindow = (value != null ? new System.Collections.Generic.List<Commvault.Powershell.Models.IDayAndTime>(value) : null); } /// <summary> /// For each region, the data to backup is divided into these many streams while writing to backup destination. /// </summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "For each region, the data to backup is divided into these many streams while writing to backup destination.")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"For each region, the data to backup is divided into these many streams while writing to backup destination.", SerializedName = @"deviceStreams", PossibleTypes = new [] { typeof(long) })] public long SettingDeviceStreams { get => _body.SettingDeviceStreams ?? default(long); set => _body.SettingDeviceStreams = value; } /// <summary> /// Setting to suggest plan has some advanced settings present. Setting is OEM specific and not applicable for all cases. /// </summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Setting to suggest plan has some advanced settings present. Setting is OEM specific and not applicable for all cases.")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Setting to suggest plan has some advanced settings present. Setting is OEM specific and not applicable for all cases.", SerializedName = @"enableAdvancedView", PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] public global::System.Management.Automation.SwitchParameter SettingEnableAdvancedView { get => _body.SettingEnableAdvancedView ?? default(global::System.Management.Automation.SwitchParameter); set => _body.SettingEnableAdvancedView = value; } /// <summary>Time provided in Unix format. Give 0 to reset any existing delay.</summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Time provided in Unix format. Give 0 to reset any existing delay.")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Time provided in Unix format. Give 0 to reset any existing delay.", SerializedName = @"enableAfterDelay", PossibleTypes = new [] { typeof(long) })] public long SlaEnableAfterDelay { get => _body.SlaEnableAfterDelay ?? default(long); set => _body.SlaEnableAfterDelay = value; } /// <summary>Flag to set to exclude plan from SLA</summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Flag to set to exclude plan from SLA")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Flag to set to exclude plan from SLA", SerializedName = @"excludeFromSLA", PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] public global::System.Management.Automation.SwitchParameter SlaExcludeFromSla { get => _body.SlaExcludeFromSla ?? default(global::System.Management.Automation.SwitchParameter); set => _body.SlaExcludeFromSla = value; } /// <summary>Reason for exclusion from SLA</summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Reason for exclusion from SLA")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Reason for exclusion from SLA", SerializedName = @"exclusionReason", PossibleTypes = new [] { typeof(string) })] public string SlaExclusionReason { get => _body.SlaExclusionReason ?? null; set => _body.SlaExclusionReason = value; } /// <summary>Database log SLA period in Minutes</summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Database log SLA period in Minutes")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Database log SLA period in Minutes", SerializedName = @"logSLAMinutes", PossibleTypes = new [] { typeof(long) })] public long SlaLogSlaMinutes { get => _body.SlaLogSlaMinutes ?? default(long); set => _body.SlaLogSlaMinutes = value; } /// <summary>SLA Period in Days</summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "SLA Period in Days")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"SLA Period in Days", SerializedName = @"SLAPeriod", PossibleTypes = new [] { typeof(long) })] public long SlaPeriod { get => _body.SlaPeriod ?? default(long); set => _body.SlaPeriod = value; } /// <summary>Flag to set to use System Default Service Level Agreement</summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Flag to set to use System Default Service Level Agreement")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Flag to set to use System Default Service Level Agreement", SerializedName = @"useSystemDefaultSLA", PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] public global::System.Management.Automation.SwitchParameter SlaUseSystemDefaultSla { get => _body.SlaUseSystemDefaultSla ?? default(global::System.Management.Automation.SwitchParameter); set => _body.SlaUseSystemDefaultSla = value; } /// <summary>Backup copy RPO in minutes</summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Backup copy RPO in minutes")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Backup copy RPO in minutes", SerializedName = @"backupCopyRPOMins", PossibleTypes = new [] { typeof(long) })] public long SnapshotOptionBackupCopyRpoMins { get => _body.SnapshotOptionBackupCopyRpoMins ?? default(long); set => _body.SnapshotOptionBackupCopyRpoMins = value; } /// <summary>Flag to enable backup copy</summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Flag to enable backup copy")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Flag to enable backup copy", SerializedName = @"enableBackupCopy", PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] public global::System.Management.Automation.SwitchParameter SnapshotOptionEnableBackupCopy { get => _body.SnapshotOptionEnableBackupCopy ?? default(global::System.Management.Automation.SwitchParameter); set => _body.SnapshotOptionEnableBackupCopy = value; } /// <summary>Flag to enable deferred snapshot cataloging</summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Flag to enable deferred snapshot cataloging")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Flag to enable deferred snapshot cataloging", SerializedName = @"enableSnapCatalog", PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] public global::System.Management.Automation.SwitchParameter SnapshotOptionEnableSnapCatalog { get => _body.SnapshotOptionEnableSnapCatalog ?? default(global::System.Management.Automation.SwitchParameter); set => _body.SnapshotOptionEnableSnapCatalog = value; } /// <summary>Number of data readers.</summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Number of data readers.")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Number of data readers.", SerializedName = @"count", PossibleTypes = new [] { typeof(long) })] public long UnixNumberOfDataReaderCount { get => _body.UnixNumberOfDataReaderCount ?? default(long); set => _body.UnixNumberOfDataReaderCount = value; } /// <summary> /// Set optimal number of data readers. if it is set to true, count will be ignored. /// </summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Set optimal number of data readers. if it is set to true, count will be ignored.")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Set optimal number of data readers. if it is set to true, count will be ignored.", SerializedName = @"useOptimal", PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] public global::System.Management.Automation.SwitchParameter UnixNumberOfDataReaderUseOptimal { get => _body.UnixNumberOfDataReaderUseOptimal ?? default(global::System.Management.Automation.SwitchParameter); set => _body.UnixNumberOfDataReaderUseOptimal = value; } /// <summary>Number of data readers.</summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Number of data readers.")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Number of data readers.", SerializedName = @"count", PossibleTypes = new [] { typeof(long) })] public long WindowNumberOfDataReaderCount { get => _body.WindowNumberOfDataReaderCount ?? default(long); set => _body.WindowNumberOfDataReaderCount = value; } /// <summary> /// Set optimal number of data readers. if it is set to true, count will be ignored. /// </summary> [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Set optimal number of data readers. if it is set to true, count will be ignored.")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Set optimal number of data readers. if it is set to true, count will be ignored.", SerializedName = @"useOptimal", PossibleTypes = new [] { typeof(global::System.Management.Automation.SwitchParameter) })] public global::System.Management.Automation.SwitchParameter WindowNumberOfDataReaderUseOptimal { get => _body.WindowNumberOfDataReaderUseOptimal ?? default(global::System.Management.Automation.SwitchParameter); set => _body.WindowNumberOfDataReaderUseOptimal = value; } /// <summary>.</summary> [global::System.Management.Automation.AllowEmptyCollection] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = ".")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @".", SerializedName = @"workloadGroupTypes", PossibleTypes = new [] { typeof(string) })] public string[] WorkloadGroupTypes { get => _body.WorkloadGroupTypes?.ToArray() ?? null /* fixedArrayOf */; set => _body.WorkloadGroupTypes = (value != null ? new System.Collections.Generic.List<string>(value) : null); } /// <summary>.</summary> [global::System.Management.Automation.AllowEmptyCollection] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = ".")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @".", SerializedName = @"solutions", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IIdName) })] public Commvault.Powershell.Models.IIdName[] WorkloadSolutions { get => _body.WorkloadSolutions?.ToArray() ?? null /* fixedArrayOf */; set => _body.WorkloadSolutions = (value != null ? new System.Collections.Generic.List<Commvault.Powershell.Models.IIdName>(value) : null); } /// <summary>.</summary> [global::System.Management.Automation.AllowEmptyCollection] [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = ".")] [global::Commvault.Powershell.Category(global::Commvault.Powershell.ParameterCategory.Body)] [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @".", SerializedName = @"workloadTypes", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IIdName) })] public Commvault.Powershell.Models.IIdName[] WorkloadTypes { get => _body.WorkloadTypes?.ToArray() ?? null /* fixedArrayOf */; set => _body.WorkloadTypes = (value != null ? new System.Collections.Generic.List<Commvault.Powershell.Models.IIdName>(value) : null); } /// <summary> /// <c>overrideOnNotFound</c> will be called before the regular onNotFound has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// </summary> /// <param name="responseMessage">the raw response message as an global::System.Net.Http.HttpResponseMessage.</param> /// <param name="returnNow">/// Determines if the rest of the onNotFound method should be processed, or if the method should /// return immediately (set to true to skip further processing )</param> partial void overrideOnNotFound(global::System.Net.Http.HttpResponseMessage responseMessage, ref global::System.Threading.Tasks.Task<bool> returnNow); /// <summary> /// <c>overrideOnOk</c> will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// </summary> /// <param name="responseMessage">the raw response message as an global::System.Net.Http.HttpResponseMessage.</param> /// <param name="response">the body result as a <see cref="Commvault.Powershell.Models.IGenericResp">Commvault.Powershell.Models.IGenericResp</see> /// from the remote call</param> /// <param name="returnNow">/// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing )</param> partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task<Commvault.Powershell.Models.IGenericResp> response, ref global::System.Threading.Tasks.Task<bool> returnNow); /// <summary> /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) /// </summary> protected override void BeginProcessing() { Module.Instance.SetProxyConfiguration(Proxy, ProxyCredential, ProxyUseDefaultCredentials); if (Break) { Commvault.Powershell.Runtime.AttachDebugger.Break(); } ((Commvault.Powershell.Runtime.IEventListener)this).Signal(Commvault.Powershell.Runtime.Events.CmdletBeginProcessing).Wait(); if( ((Commvault.Powershell.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } /// <summary>Performs clean-up after the command execution</summary> protected override void EndProcessing() { if (1 ==_responseSize) { // Flush buffer WriteObject(_firstResponse); } ((Commvault.Powershell.Runtime.IEventListener)this).Signal(Commvault.Powershell.Runtime.Events.CmdletEndProcessing).Wait(); if( ((Commvault.Powershell.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } /// <summary>Handles/Dispatches events during the call to the REST service.</summary> /// <param name="id">The message id</param> /// <param name="token">The message cancellation token. When this call is cancelled, this should be <c>true</c></param> /// <param name="messageData">Detailed message data for the message event.</param> /// <returns> /// A <see cref="global::System.Threading.Tasks.Task" /> that will be complete when handling of the message is completed. /// </returns> async global::System.Threading.Tasks.Task Commvault.Powershell.Runtime.IEventListener.Signal(string id, global::System.Threading.CancellationToken token, global::System.Func<Commvault.Powershell.Runtime.EventData> messageData) { using( NoSynchronizationContext ) { if (token.IsCancellationRequested) { return ; } switch ( id ) { case Commvault.Powershell.Runtime.Events.Verbose: { WriteVerbose($"{(messageData().Message ?? global::System.String.Empty)}"); return ; } case Commvault.Powershell.Runtime.Events.Warning: { WriteWarning($"{(messageData().Message ?? global::System.String.Empty)}"); return ; } case Commvault.Powershell.Runtime.Events.Information: { var data = messageData(); WriteInformation(data.Message, new string[]{}); return ; } case Commvault.Powershell.Runtime.Events.Debug: { WriteDebug($"{(messageData().Message ?? global::System.String.Empty)}"); return ; } case Commvault.Powershell.Runtime.Events.Error: { WriteError(new global::System.Management.Automation.ErrorRecord( new global::System.Exception(messageData().Message), string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null ) ); return ; } case Commvault.Powershell.Runtime.Events.Progress: { var data = messageData(); int progress = (int)data.Value; string activityMessage, statusDescription; global::System.Management.Automation.ProgressRecordType recordType; if (progress < 100) { activityMessage = "In progress"; statusDescription = "Checking operation status"; recordType = System.Management.Automation.ProgressRecordType.Processing; } else { activityMessage = "Completed"; statusDescription = "Completed"; recordType = System.Management.Automation.ProgressRecordType.Completed; } WriteProgress(new global::System.Management.Automation.ProgressRecord(1, activityMessage, statusDescription) { PercentComplete = progress, RecordType = recordType }); return ; } } await Commvault.Powershell.Module.Instance.Signal(id, token, messageData, (i, t, m) => ((Commvault.Powershell.Runtime.IEventListener)this).Signal(i, t, () => Commvault.Powershell.Runtime.EventDataConverter.ConvertFrom(m()) as Commvault.Powershell.Runtime.EventData), InvocationInformation, this.ParameterSetName, null ); if (token.IsCancellationRequested) { return ; } WriteDebug($"{id}: {(messageData().Message ?? global::System.String.Empty)}"); } } /// <summary>Performs execution of the command.</summary> protected override void ProcessRecord() { ((Commvault.Powershell.Runtime.IEventListener)this).Signal(Commvault.Powershell.Runtime.Events.CmdletProcessRecordStart).Wait(); if( ((Commvault.Powershell.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } try { // work if (ShouldProcess($"Call remote 'UpdatePlan' operation")) { using( var asyncCommandRuntime = new Commvault.Powershell.Runtime.PowerShell.AsyncCommandRuntime(this, ((Commvault.Powershell.Runtime.IEventListener)this).Token) ) { asyncCommandRuntime.Wait( ProcessRecordAsync(),((Commvault.Powershell.Runtime.IEventListener)this).Token); } } } catch (global::System.AggregateException aggregateException) { // unroll the inner exceptions to get the root cause foreach( var innerException in aggregateException.Flatten().InnerExceptions ) { ((Commvault.Powershell.Runtime.IEventListener)this).Signal(Commvault.Powershell.Runtime.Events.CmdletException, $"{innerException.GetType().Name} - {innerException.Message} : {innerException.StackTrace}").Wait(); if( ((Commvault.Powershell.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } // Write exception out to error channel. WriteError( new global::System.Management.Automation.ErrorRecord(innerException,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); } } catch (global::System.Exception exception) when ((exception as System.Management.Automation.PipelineStoppedException)== null || (exception as System.Management.Automation.PipelineStoppedException).InnerException != null) { ((Commvault.Powershell.Runtime.IEventListener)this).Signal(Commvault.Powershell.Runtime.Events.CmdletException, $"{exception.GetType().Name} - {exception.Message} : {exception.StackTrace}").Wait(); if( ((Commvault.Powershell.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } // Write exception out to error channel. WriteError( new global::System.Management.Automation.ErrorRecord(exception,string.Empty, global::System.Management.Automation.ErrorCategory.NotSpecified, null) ); } finally { ((Commvault.Powershell.Runtime.IEventListener)this).Signal(Commvault.Powershell.Runtime.Events.CmdletProcessRecordEnd).Wait(); } } /// <summary>Performs execution of the command, working asynchronously if required.</summary> /// <returns> /// A <see cref="global::System.Threading.Tasks.Task" /> that will be complete when handling of the method is completed. /// </returns> protected async global::System.Threading.Tasks.Task ProcessRecordAsync() { using( NoSynchronizationContext ) { await ((Commvault.Powershell.Runtime.IEventListener)this).Signal(Commvault.Powershell.Runtime.Events.CmdletProcessRecordAsyncStart); if( ((Commvault.Powershell.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } await ((Commvault.Powershell.Runtime.IEventListener)this).Signal(Commvault.Powershell.Runtime.Events.CmdletGetPipeline); if( ((Commvault.Powershell.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } Pipeline = Commvault.Powershell.Module.Instance.CreatePipeline(InvocationInformation, this.ParameterSetName, this.ExtensibleParameters); if (null != HttpPipelinePrepend) { Pipeline.Prepend((this.CommandRuntime as Commvault.Powershell.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelinePrepend) ?? HttpPipelinePrepend); } if (null != HttpPipelineAppend) { Pipeline.Append((this.CommandRuntime as Commvault.Powershell.Runtime.PowerShell.IAsyncCommandRuntimeExtensions)?.Wrap(HttpPipelineAppend) ?? HttpPipelineAppend); } // get the client instance try { await ((Commvault.Powershell.Runtime.IEventListener)this).Signal(Commvault.Powershell.Runtime.Events.CmdletBeforeAPICall); if( ((Commvault.Powershell.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } // try to call with PATH parameters from Input Object if (null == InputObject.PlanId) { ThrowTerminatingError( new global::System.Management.Automation.ErrorRecord(new global::System.Exception("InputObject has null value for InputObject.PlanId"),string.Empty, global::System.Management.Automation.ErrorCategory.InvalidArgument, InputObject) ); } await this.Client.UpdatePlan(InputObject.PlanId ?? default(long), _body, onOk, onNotFound, this, Pipeline, Commvault.Powershell.Runtime.SerializationMode.IncludeCreate); await ((Commvault.Powershell.Runtime.IEventListener)this).Signal(Commvault.Powershell.Runtime.Events.CmdletAfterAPICall); if( ((Commvault.Powershell.Runtime.IEventListener)this).Token.IsCancellationRequested ) { return; } } catch (Commvault.Powershell.Runtime.UndeclaredResponseException urexception) { WriteError(new global::System.Management.Automation.ErrorRecord(urexception, urexception.StatusCode.ToString(), global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(urexception.Message) { RecommendedAction = urexception.Action } }); } finally { await ((Commvault.Powershell.Runtime.IEventListener)this).Signal(Commvault.Powershell.Runtime.Events.CmdletProcessRecordAsyncEnd); } } } /// <summary> /// Initializes a new instance of the <see cref="SetCVPlan_UpdateViaIdentityExpanded" /> cmdlet class. /// </summary> public SetCVPlan_UpdateViaIdentityExpanded() { } /// <summary>Interrupts currently running code within the command.</summary> protected override void StopProcessing() { ((Commvault.Powershell.Runtime.IEventListener)this).Cancel(); base.StopProcessing(); } /// <summary>a delegate that is called when the remote service returns 404 (NotFound).</summary> /// <param name="responseMessage">the raw response message as an global::System.Net.Http.HttpResponseMessage.</param> /// <returns> /// A <see cref="global::System.Threading.Tasks.Task" /> that will be complete when handling of the method is completed. /// </returns> private async global::System.Threading.Tasks.Task onNotFound(global::System.Net.Http.HttpResponseMessage responseMessage) { using( NoSynchronizationContext ) { var _returnNow = global::System.Threading.Tasks.Task<bool>.FromResult(false); overrideOnNotFound(responseMessage, ref _returnNow); // if overrideOnNotFound has returned true, then return right away. if ((null != _returnNow && await _returnNow)) { return ; } // onNotFound - response for 404 / if (true == MyInvocation?.BoundParameters?.ContainsKey("PassThru")) { WriteObject(true); } } } /// <summary>a delegate that is called when the remote service returns 200 (OK).</summary> /// <param name="responseMessage">the raw response message as an global::System.Net.Http.HttpResponseMessage.</param> /// <param name="response">the body result as a <see cref="Commvault.Powershell.Models.IGenericResp">Commvault.Powershell.Models.IGenericResp</see> /// from the remote call</param> /// <returns> /// A <see cref="global::System.Threading.Tasks.Task" /> that will be complete when handling of the method is completed. /// </returns> private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task<Commvault.Powershell.Models.IGenericResp> response) { using( NoSynchronizationContext ) { var _returnNow = global::System.Threading.Tasks.Task<bool>.FromResult(false); overrideOnOk(responseMessage, response, ref _returnNow); // if overrideOnOk has returned true, then return right away. if ((null != _returnNow && await _returnNow)) { return ; } // onOk - response for 200 / application/json // (await response) // should be Commvault.Powershell.Models.IGenericResp var result = (await response); if (null != result) { if (0 == _responseSize) { _firstResponse = result; _responseSize = 1; } else { if (1 ==_responseSize) { // Flush buffer WriteObject(_firstResponse.AddMultipleTypeNameIntoPSObject()); } WriteObject(result.AddMultipleTypeNameIntoPSObject()); _responseSize = 2; } } } } } } |