generated/api/Models/ArchivePlanBackupDestination.cs
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.4, generator: @autorest/powershell@3.0.415) // Changes may cause incorrect behavior and will be lost if the code is regenerated. namespace Commvault.Powershell.Models { using static Commvault.Powershell.Runtime.Extensions; public partial class ArchivePlanBackupDestination : Commvault.Powershell.Models.IArchivePlanBackupDestination, Commvault.Powershell.Models.IArchivePlanBackupDestinationInternal { /// <summary>Internal Acessors for PlanBackupDestination</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IArchivePlanBackupDestinationInternal.PlanBackupDestination { get => (this._planBackupDestination = this._planBackupDestination ?? new Commvault.Powershell.Models.IdName()); set { {_planBackupDestination = value;} } } /// <summary>Internal Acessors for Region</summary> Commvault.Powershell.Models.IIdNameDisplayName Commvault.Powershell.Models.IArchivePlanBackupDestinationInternal.Region { get => (this._region = this._region ?? new Commvault.Powershell.Models.IdNameDisplayName()); set { {_region = value;} } } /// <summary>Internal Acessors for SourceCopy</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IArchivePlanBackupDestinationInternal.SourceCopy { get => (this._sourceCopy = this._sourceCopy ?? new Commvault.Powershell.Models.IdName()); set { {_sourceCopy = value;} } } /// <summary>Internal Acessors for StoragePool</summary> Commvault.Powershell.Models.IStoragePool Commvault.Powershell.Models.IArchivePlanBackupDestinationInternal.StoragePool { get => (this._storagePool = this._storagePool ?? new Commvault.Powershell.Models.StoragePool()); set { {_storagePool = value;} } } /// <summary>Internal Acessors for StoragePoolRegion</summary> Commvault.Powershell.Models.IIdNameDisplayName Commvault.Powershell.Models.IArchivePlanBackupDestinationInternal.StoragePoolRegion { get => ((Commvault.Powershell.Models.IStoragePoolInternal)StoragePool).Region; set => ((Commvault.Powershell.Models.IStoragePoolInternal)StoragePool).Region = value; } /// <summary>Backing field for <see cref="CopyPrecedence" /> property.</summary> private long? _copyPrecedence; /// <summary>Order of copy created in storage policy</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? CopyPrecedence { get => this._copyPrecedence; set => this._copyPrecedence = value; } /// <summary>Backing field for <see cref="CopyType" /> property.</summary> private string _copyType; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string CopyType { get => this._copyType; set => this._copyType = value; } /// <summary>Backing field for <see cref="CopyTypeName" /> property.</summary> private string _copyTypeName; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string CopyTypeName { get => this._copyTypeName; set => this._copyTypeName = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string DisplayName { get => ((Commvault.Powershell.Models.IIdNameDisplayNameInternal)Region).DisplayName; set => ((Commvault.Powershell.Models.IIdNameDisplayNameInternal)Region).DisplayName = value ?? null; } /// <summary>Backing field for <see cref="EnableDataAging" /> property.</summary> private bool? _enableDataAging; /// <summary>Tells if this copy has data aging enabled</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public bool? EnableDataAging { get => this._enableDataAging; set => this._enableDataAging = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? Id { get => ((Commvault.Powershell.Models.IIdNameDisplayNameInternal)Region).Id; set => ((Commvault.Powershell.Models.IIdNameDisplayNameInternal)Region).Id = value ?? default(long); } /// <summary>Backing field for <see cref="IsDefault" /> property.</summary> private bool? _isDefault; /// <summary>Is this a default backup destination?</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public bool? IsDefault { get => this._isDefault; set => this._isDefault = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string Name { get => ((Commvault.Powershell.Models.IIdNameDisplayNameInternal)Region).Name; set => ((Commvault.Powershell.Models.IIdNameDisplayNameInternal)Region).Name = value ?? null; } /// <summary>Backing field for <see cref="OverrideRetentionSettings" /> property.</summary> private bool? _overrideRetentionSettings; /// <summary> /// Tells if this copy should use storage pool retention period days or the retention defined for this copy. Set as true to /// use retention defined on this copy. /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public bool? OverrideRetentionSettings { get => this._overrideRetentionSettings; set => this._overrideRetentionSettings = value; } /// <summary>Backing field for <see cref="PlanBackupDestination" /> property.</summary> private Commvault.Powershell.Models.IIdName _planBackupDestination; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdName PlanBackupDestination { get => (this._planBackupDestination = this._planBackupDestination ?? new Commvault.Powershell.Models.IdName()); set => this._planBackupDestination = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? PlanBackupDestinationId { get => ((Commvault.Powershell.Models.IIdNameInternal)PlanBackupDestination).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)PlanBackupDestination).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string PlanBackupDestinationName { get => ((Commvault.Powershell.Models.IIdNameInternal)PlanBackupDestination).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)PlanBackupDestination).Name = value ?? null; } /// <summary>Backing field for <see cref="Region" /> property.</summary> private Commvault.Powershell.Models.IIdNameDisplayName _region; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdNameDisplayName Region { get => (this._region = this._region ?? new Commvault.Powershell.Models.IdNameDisplayName()); set => this._region = value; } /// <summary>Backing field for <see cref="RetentionPeriodDays" /> property.</summary> private long? _retentionPeriodDays; /// <summary>Retention period in days</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? RetentionPeriodDays { get => this._retentionPeriodDays; set => this._retentionPeriodDays = value; } /// <summary>Backing field for <see cref="SourceCopy" /> property.</summary> private Commvault.Powershell.Models.IIdName _sourceCopy; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdName SourceCopy { get => (this._sourceCopy = this._sourceCopy ?? new Commvault.Powershell.Models.IdName()); set => this._sourceCopy = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? SourceCopyId { get => ((Commvault.Powershell.Models.IIdNameInternal)SourceCopy).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)SourceCopy).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string SourceCopyName { get => ((Commvault.Powershell.Models.IIdNameInternal)SourceCopy).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)SourceCopy).Name = value ?? null; } /// <summary>Backing field for <see cref="StoragePool" /> property.</summary> private Commvault.Powershell.Models.IStoragePool _storagePool; /// <summary>StoragePool</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IStoragePool StoragePool { get => (this._storagePool = this._storagePool ?? new Commvault.Powershell.Models.StoragePool()); set => this._storagePool = value; } /// <summary>Device type of the storage.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string StoragePoolDeviceType { get => ((Commvault.Powershell.Models.IStoragePoolInternal)StoragePool).DeviceType; set => ((Commvault.Powershell.Models.IStoragePoolInternal)StoragePool).DeviceType = value ?? null; } /// <summary>Id of Storage Pool</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? StoragePoolId { get => ((Commvault.Powershell.Models.IStoragePoolInternal)StoragePool).Id; set => ((Commvault.Powershell.Models.IStoragePoolInternal)StoragePool).Id = value ?? default(long); } /// <summary>Flag indicating whether the storage tier is archive.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public bool? StoragePoolIsArchiveStorage { get => ((Commvault.Powershell.Models.IStoragePoolInternal)StoragePool).IsArchiveStorage; set => ((Commvault.Powershell.Models.IStoragePoolInternal)StoragePool).IsArchiveStorage = value ?? default(bool); } /// <summary>Name of Storage Pool</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string StoragePoolName { get => ((Commvault.Powershell.Models.IStoragePoolInternal)StoragePool).Name; set => ((Commvault.Powershell.Models.IStoragePoolInternal)StoragePool).Name = value ?? null; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string StoragePoolRegionDisplayName { get => ((Commvault.Powershell.Models.IStoragePoolInternal)StoragePool).RegionDisplayName; set => ((Commvault.Powershell.Models.IStoragePoolInternal)StoragePool).RegionDisplayName = value ?? null; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? StoragePoolRegionId { get => ((Commvault.Powershell.Models.IStoragePoolInternal)StoragePool).RegionId; set => ((Commvault.Powershell.Models.IStoragePoolInternal)StoragePool).RegionId = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string StoragePoolRegionName { get => ((Commvault.Powershell.Models.IStoragePoolInternal)StoragePool).RegionName; set => ((Commvault.Powershell.Models.IStoragePoolInternal)StoragePool).RegionName = value ?? null; } /// <summary>Retention period of pool in days</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? StoragePoolRetentionPeriodDays { get => ((Commvault.Powershell.Models.IStoragePoolInternal)StoragePool).RetentionPeriodDays; set => ((Commvault.Powershell.Models.IStoragePoolInternal)StoragePool).RetentionPeriodDays = value ?? default(long); } /// <summary>Storage container information of the storage.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string StoragePoolStorageClass { get => ((Commvault.Powershell.Models.IStoragePoolInternal)StoragePool).StorageClass; set => ((Commvault.Powershell.Models.IStoragePoolInternal)StoragePool).StorageClass = value ?? null; } /// <summary>Type of Storage Pool</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string StoragePoolType { get => ((Commvault.Powershell.Models.IStoragePoolInternal)StoragePool).Type; set => ((Commvault.Powershell.Models.IStoragePoolInternal)StoragePool).Type = value ?? null; } /// <summary> /// Bit flag indicating WORM configuration of storage pool. 0 means no lock, 1 means compliance lock, 2 means worm storage /// lock, 4 means Object worm lock and 8 means bucket worm lock. /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? StoragePoolWormStoragePoolFlag { get => ((Commvault.Powershell.Models.IStoragePoolInternal)StoragePool).WormStoragePoolFlag; set => ((Commvault.Powershell.Models.IStoragePoolInternal)StoragePool).WormStoragePoolFlag = value ?? default(long); } /// <summary>Backing field for <see cref="StorageType" /> property.</summary> private string _storageType; /// <summary>StorageType</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string StorageType { get => this._storageType; set => this._storageType = value; } /// <summary>Creates an new <see cref="ArchivePlanBackupDestination" /> instance.</summary> public ArchivePlanBackupDestination() { } } public partial interface IArchivePlanBackupDestination : Commvault.Powershell.Runtime.IJsonSerializable { /// <summary>Order of copy created in storage policy</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Order of copy created in storage policy", SerializedName = @"copyPrecedence", PossibleTypes = new [] { typeof(long) })] long? CopyPrecedence { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"copyType", PossibleTypes = new [] { typeof(string) })] string CopyType { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"copyTypeName", PossibleTypes = new [] { typeof(string) })] string CopyTypeName { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"displayName", PossibleTypes = new [] { typeof(string) })] string DisplayName { get; set; } /// <summary>Tells if this copy has data aging enabled</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Tells if this copy has data aging enabled", SerializedName = @"enableDataAging", PossibleTypes = new [] { typeof(bool) })] bool? EnableDataAging { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? Id { get; set; } /// <summary>Is this a default backup destination?</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Is this a default backup destination?", SerializedName = @"isDefault", PossibleTypes = new [] { typeof(bool) })] bool? IsDefault { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string Name { get; set; } /// <summary> /// Tells if this copy should use storage pool retention period days or the retention defined for this copy. Set as true to /// use retention defined on this copy. /// </summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Tells if this copy should use storage pool retention period days or the retention defined for this copy. Set as true to use retention defined on this copy.", SerializedName = @"overrideRetentionSettings", PossibleTypes = new [] { typeof(bool) })] bool? OverrideRetentionSettings { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? PlanBackupDestinationId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string PlanBackupDestinationName { get; set; } /// <summary>Retention period in days</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Retention period in days", SerializedName = @"retentionPeriodDays", PossibleTypes = new [] { typeof(long) })] long? RetentionPeriodDays { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? SourceCopyId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string SourceCopyName { get; set; } /// <summary>Device type of the storage.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Device type of the storage.", SerializedName = @"deviceType", PossibleTypes = new [] { typeof(string) })] string StoragePoolDeviceType { get; set; } /// <summary>Id of Storage Pool</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Id of Storage Pool", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? StoragePoolId { get; set; } /// <summary>Flag indicating whether the storage tier is archive.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Flag indicating whether the storage tier is archive.", SerializedName = @"isArchiveStorage", PossibleTypes = new [] { typeof(bool) })] bool? StoragePoolIsArchiveStorage { get; set; } /// <summary>Name of Storage Pool</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Name of Storage Pool", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string StoragePoolName { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"displayName", PossibleTypes = new [] { typeof(string) })] string StoragePoolRegionDisplayName { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? StoragePoolRegionId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string StoragePoolRegionName { get; set; } /// <summary>Retention period of pool in days</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Retention period of pool in days", SerializedName = @"retentionPeriodDays", PossibleTypes = new [] { typeof(long) })] long? StoragePoolRetentionPeriodDays { get; set; } /// <summary>Storage container information of the storage.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Storage container information of the storage.", SerializedName = @"storageClass", PossibleTypes = new [] { typeof(string) })] string StoragePoolStorageClass { get; set; } /// <summary>Type of Storage Pool</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Type of Storage Pool", SerializedName = @"type", PossibleTypes = new [] { typeof(string) })] string StoragePoolType { get; set; } /// <summary> /// Bit flag indicating WORM configuration of storage pool. 0 means no lock, 1 means compliance lock, 2 means worm storage /// lock, 4 means Object worm lock and 8 means bucket worm lock. /// </summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"Bit flag indicating WORM configuration of storage pool. 0 means no lock, 1 means compliance lock, 2 means worm storage lock, 4 means Object worm lock and 8 means bucket worm lock.", SerializedName = @"wormStoragePoolFlag", PossibleTypes = new [] { typeof(long) })] long? StoragePoolWormStoragePoolFlag { get; set; } /// <summary>StorageType</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"StorageType", SerializedName = @"storageType", PossibleTypes = new [] { typeof(string) })] string StorageType { get; set; } } internal partial interface IArchivePlanBackupDestinationInternal { /// <summary>Order of copy created in storage policy</summary> long? CopyPrecedence { get; set; } string CopyType { get; set; } string CopyTypeName { get; set; } string DisplayName { get; set; } /// <summary>Tells if this copy has data aging enabled</summary> bool? EnableDataAging { get; set; } long? Id { get; set; } /// <summary>Is this a default backup destination?</summary> bool? IsDefault { get; set; } string Name { get; set; } /// <summary> /// Tells if this copy should use storage pool retention period days or the retention defined for this copy. Set as true to /// use retention defined on this copy. /// </summary> bool? OverrideRetentionSettings { get; set; } Commvault.Powershell.Models.IIdName PlanBackupDestination { get; set; } long? PlanBackupDestinationId { get; set; } string PlanBackupDestinationName { get; set; } Commvault.Powershell.Models.IIdNameDisplayName Region { get; set; } /// <summary>Retention period in days</summary> long? RetentionPeriodDays { get; set; } Commvault.Powershell.Models.IIdName SourceCopy { get; set; } long? SourceCopyId { get; set; } string SourceCopyName { get; set; } /// <summary>StoragePool</summary> Commvault.Powershell.Models.IStoragePool StoragePool { get; set; } /// <summary>Device type of the storage.</summary> string StoragePoolDeviceType { get; set; } /// <summary>Id of Storage Pool</summary> long? StoragePoolId { get; set; } /// <summary>Flag indicating whether the storage tier is archive.</summary> bool? StoragePoolIsArchiveStorage { get; set; } /// <summary>Name of Storage Pool</summary> string StoragePoolName { get; set; } Commvault.Powershell.Models.IIdNameDisplayName StoragePoolRegion { get; set; } string StoragePoolRegionDisplayName { get; set; } long? StoragePoolRegionId { get; set; } string StoragePoolRegionName { get; set; } /// <summary>Retention period of pool in days</summary> long? StoragePoolRetentionPeriodDays { get; set; } /// <summary>Storage container information of the storage.</summary> string StoragePoolStorageClass { get; set; } /// <summary>Type of Storage Pool</summary> string StoragePoolType { get; set; } /// <summary> /// Bit flag indicating WORM configuration of storage pool. 0 means no lock, 1 means compliance lock, 2 means worm storage /// lock, 4 means Object worm lock and 8 means bucket worm lock. /// </summary> long? StoragePoolWormStoragePoolFlag { get; set; } /// <summary>StorageType</summary> string StorageType { get; set; } } } |