generated/api/Models/VaultTrackerMediaDetails.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.Models { using static Commvault.Powershell.Runtime.Extensions; /// <summary>Info of Vault Tracker Media</summary> public partial class VaultTrackerMediaDetails : Commvault.Powershell.Models.IVaultTrackerMediaDetails, Commvault.Powershell.Models.IVaultTrackerMediaDetailsInternal { /// <summary>Backing field for <see cref="ActionId" /> property.</summary> private long? _actionId; /// <summary>Id of Action</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? ActionId { get => this._actionId; set => this._actionId = value; } /// <summary>Backing field for <see cref="Barcode" /> property.</summary> private string _barcode; /// <summary>Barcode label of media</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string Barcode { get => this._barcode; set => this._barcode = value; } /// <summary>Internal Acessors for Container</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IVaultTrackerMediaDetailsInternal.Container { get => (this._container = this._container ?? new Commvault.Powershell.Models.IdName()); set { {_container = value;} } } /// <summary>Internal Acessors for CurrentLocation</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IVaultTrackerMediaDetailsInternal.CurrentLocation { get => (this._currentLocation = this._currentLocation ?? new Commvault.Powershell.Models.IdName()); set { {_currentLocation = value;} } } /// <summary>Internal Acessors for DestLocation</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IVaultTrackerMediaDetailsInternal.DestLocation { get => (this._destLocation = this._destLocation ?? new Commvault.Powershell.Models.IdName()); set { {_destLocation = value;} } } /// <summary>Internal Acessors for Library</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IVaultTrackerMediaDetailsInternal.Library { get => (this._library = this._library ?? new Commvault.Powershell.Models.IdName()); set { {_library = value;} } } /// <summary>Internal Acessors for SourceLocation</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IVaultTrackerMediaDetailsInternal.SourceLocation { get => (this._sourceLocation = this._sourceLocation ?? new Commvault.Powershell.Models.IdName()); set { {_sourceLocation = value;} } } /// <summary>Internal Acessors for StoragePolicy</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IVaultTrackerMediaDetailsInternal.StoragePolicy { get => (this._storagePolicy = this._storagePolicy ?? new Commvault.Powershell.Models.IdName()); set { {_storagePolicy = value;} } } /// <summary>Internal Acessors for StoragePolicyCopy</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.IVaultTrackerMediaDetailsInternal.StoragePolicyCopy { get => (this._storagePolicyCopy = this._storagePolicyCopy ?? new Commvault.Powershell.Models.IdName()); set { {_storagePolicyCopy = value;} } } /// <summary>Backing field for <see cref="Container" /> property.</summary> private Commvault.Powershell.Models.IIdName _container; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdName Container { get => (this._container = this._container ?? new Commvault.Powershell.Models.IdName()); set => this._container = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? ContainerId { get => ((Commvault.Powershell.Models.IIdNameInternal)Container).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)Container).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string ContainerName { get => ((Commvault.Powershell.Models.IIdNameInternal)Container).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)Container).Name = value ?? null; } /// <summary>Backing field for <see cref="CurrentLocation" /> property.</summary> private Commvault.Powershell.Models.IIdName _currentLocation; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdName CurrentLocation { get => (this._currentLocation = this._currentLocation ?? new Commvault.Powershell.Models.IdName()); set => this._currentLocation = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? CurrentLocationId { get => ((Commvault.Powershell.Models.IIdNameInternal)CurrentLocation).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)CurrentLocation).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string CurrentLocationName { get => ((Commvault.Powershell.Models.IIdNameInternal)CurrentLocation).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)CurrentLocation).Name = value ?? null; } /// <summary>Backing field for <see cref="DestLocation" /> property.</summary> private Commvault.Powershell.Models.IIdName _destLocation; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdName DestLocation { get => (this._destLocation = this._destLocation ?? new Commvault.Powershell.Models.IdName()); set => this._destLocation = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? DestLocationId { get => ((Commvault.Powershell.Models.IIdNameInternal)DestLocation).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)DestLocation).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string DestLocationName { get => ((Commvault.Powershell.Models.IIdNameInternal)DestLocation).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)DestLocation).Name = value ?? null; } /// <summary>Backing field for <see cref="DueBackForReuseOn" /> property.</summary> private string _dueBackForReuseOn; /// <summary>Due back for reuse 'Now' or 'Never'</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string DueBackForReuseOn { get => this._dueBackForReuseOn; set => this._dueBackForReuseOn = value; } /// <summary>Backing field for <see cref="ExportError" /> property.</summary> private string _exportError; /// <summary>Export error message</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string ExportError { get => this._exportError; set => this._exportError = value; } /// <summary>Backing field for <see cref="HistoryId" /> property.</summary> private long? _historyId; /// <summary>Id of history</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? HistoryId { get => this._historyId; set => this._historyId = value; } /// <summary>Backing field for <see cref="IsInLibrary" /> property.</summary> private bool? _isInLibrary; /// <summary>Media is in library or not</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public bool? IsInLibrary { get => this._isInLibrary; set => this._isInLibrary = value; } /// <summary>Backing field for <see cref="Library" /> property.</summary> private Commvault.Powershell.Models.IIdName _library; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdName Library { get => (this._library = this._library ?? new Commvault.Powershell.Models.IdName()); set => this._library = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? LibraryId { get => ((Commvault.Powershell.Models.IIdNameInternal)Library).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)Library).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string LibraryName { get => ((Commvault.Powershell.Models.IIdNameInternal)Library).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)Library).Name = value ?? null; } /// <summary>Backing field for <see cref="MediaId" /> property.</summary> private long? _mediaId; /// <summary>Id of media</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? MediaId { get => this._mediaId; set => this._mediaId = value; } /// <summary>Backing field for <see cref="PolicyId" /> property.</summary> private long? _policyId; /// <summary>Id of policy</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? PolicyId { get => this._policyId; set => this._policyId = value; } /// <summary>Backing field for <see cref="SourceLocation" /> property.</summary> private Commvault.Powershell.Models.IIdName _sourceLocation; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdName SourceLocation { get => (this._sourceLocation = this._sourceLocation ?? new Commvault.Powershell.Models.IdName()); set => this._sourceLocation = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? SourceLocationId { get => ((Commvault.Powershell.Models.IIdNameInternal)SourceLocation).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)SourceLocation).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string SourceLocationName { get => ((Commvault.Powershell.Models.IIdNameInternal)SourceLocation).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)SourceLocation).Name = value ?? null; } /// <summary>Backing field for <see cref="State" /> property.</summary> private string _state; /// <summary>state of media</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string State { get => this._state; set => this._state = value; } /// <summary>Backing field for <see cref="StoragePolicy" /> property.</summary> private Commvault.Powershell.Models.IIdName _storagePolicy; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdName StoragePolicy { get => (this._storagePolicy = this._storagePolicy ?? new Commvault.Powershell.Models.IdName()); set => this._storagePolicy = value; } /// <summary>Backing field for <see cref="StoragePolicyCopy" /> property.</summary> private Commvault.Powershell.Models.IIdName _storagePolicyCopy; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdName StoragePolicyCopy { get => (this._storagePolicyCopy = this._storagePolicyCopy ?? new Commvault.Powershell.Models.IdName()); set => this._storagePolicyCopy = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? StoragePolicyCopyId { get => ((Commvault.Powershell.Models.IIdNameInternal)StoragePolicyCopy).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)StoragePolicyCopy).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string StoragePolicyCopyName { get => ((Commvault.Powershell.Models.IIdNameInternal)StoragePolicyCopy).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)StoragePolicyCopy).Name = value ?? null; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? StoragePolicyId { get => ((Commvault.Powershell.Models.IIdNameInternal)StoragePolicy).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)StoragePolicy).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string StoragePolicyName { get => ((Commvault.Powershell.Models.IIdNameInternal)StoragePolicy).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)StoragePolicy).Name = value ?? null; } /// <summary>Creates an new <see cref="VaultTrackerMediaDetails" /> instance.</summary> public VaultTrackerMediaDetails() { } } /// Info of Vault Tracker Media public partial interface IVaultTrackerMediaDetails : Commvault.Powershell.Runtime.IJsonSerializable { /// <summary>Id of Action</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Id of Action", SerializedName = @"actionId", PossibleTypes = new [] { typeof(long) })] long? ActionId { get; set; } /// <summary>Barcode label of media</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Barcode label of media", SerializedName = @"barcode", PossibleTypes = new [] { typeof(string) })] string Barcode { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? ContainerId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string ContainerName { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? CurrentLocationId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string CurrentLocationName { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? DestLocationId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string DestLocationName { get; set; } /// <summary>Due back for reuse 'Now' or 'Never'</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Due back for reuse 'Now' or 'Never'", SerializedName = @"dueBackForReuseOn", PossibleTypes = new [] { typeof(string) })] string DueBackForReuseOn { get; set; } /// <summary>Export error message</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Export error message", SerializedName = @"exportError", PossibleTypes = new [] { typeof(string) })] string ExportError { get; set; } /// <summary>Id of history</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Id of history", SerializedName = @"historyId", PossibleTypes = new [] { typeof(long) })] long? HistoryId { get; set; } /// <summary>Media is in library or not</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Media is in library or not", SerializedName = @"isInLibrary", PossibleTypes = new [] { typeof(bool) })] bool? IsInLibrary { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? LibraryId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string LibraryName { get; set; } /// <summary>Id of media</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Id of media", SerializedName = @"mediaId", PossibleTypes = new [] { typeof(long) })] long? MediaId { get; set; } /// <summary>Id of policy</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Id of policy", SerializedName = @"policyId", PossibleTypes = new [] { typeof(long) })] long? PolicyId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? SourceLocationId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string SourceLocationName { get; set; } /// <summary>state of media</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"state of media", SerializedName = @"state", PossibleTypes = new [] { typeof(string) })] string State { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? StoragePolicyCopyId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string StoragePolicyCopyName { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? StoragePolicyId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string StoragePolicyName { get; set; } } /// Info of Vault Tracker Media internal partial interface IVaultTrackerMediaDetailsInternal { /// <summary>Id of Action</summary> long? ActionId { get; set; } /// <summary>Barcode label of media</summary> string Barcode { get; set; } Commvault.Powershell.Models.IIdName Container { get; set; } long? ContainerId { get; set; } string ContainerName { get; set; } Commvault.Powershell.Models.IIdName CurrentLocation { get; set; } long? CurrentLocationId { get; set; } string CurrentLocationName { get; set; } Commvault.Powershell.Models.IIdName DestLocation { get; set; } long? DestLocationId { get; set; } string DestLocationName { get; set; } /// <summary>Due back for reuse 'Now' or 'Never'</summary> string DueBackForReuseOn { get; set; } /// <summary>Export error message</summary> string ExportError { get; set; } /// <summary>Id of history</summary> long? HistoryId { get; set; } /// <summary>Media is in library or not</summary> bool? IsInLibrary { get; set; } Commvault.Powershell.Models.IIdName Library { get; set; } long? LibraryId { get; set; } string LibraryName { get; set; } /// <summary>Id of media</summary> long? MediaId { get; set; } /// <summary>Id of policy</summary> long? PolicyId { get; set; } Commvault.Powershell.Models.IIdName SourceLocation { get; set; } long? SourceLocationId { get; set; } string SourceLocationName { get; set; } /// <summary>state of media</summary> string State { get; set; } Commvault.Powershell.Models.IIdName StoragePolicy { get; set; } Commvault.Powershell.Models.IIdName StoragePolicyCopy { get; set; } long? StoragePolicyCopyId { get; set; } string StoragePolicyCopyName { get; set; } long? StoragePolicyId { get; set; } string StoragePolicyName { get; set; } } } |