generated/api/Models/VaultTrackerPolicies.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; public partial class VaultTrackerPolicies : Commvault.Powershell.Models.IVaultTrackerPolicies, Commvault.Powershell.Models.IVaultTrackerPoliciesInternal, Commvault.Powershell.Runtime.IValidates { /// <summary> /// Backing field for Inherited model <see cref= "Commvault.Powershell.Models.IIdName" /> /// </summary> private Commvault.Powershell.Models.IIdName __idName = new Commvault.Powershell.Models.IdName(); /// <summary>Internal Acessors for Destination</summary> Commvault.Powershell.Models.IDestinationLocation Commvault.Powershell.Models.IVaultTrackerPoliciesInternal.Destination { get => (this._destination = this._destination ?? new Commvault.Powershell.Models.DestinationLocation()); set { {_destination = value;} } } /// <summary>Internal Acessors for DestinationLibrary</summary> Commvault.Powershell.Models.ILibrary Commvault.Powershell.Models.IVaultTrackerPoliciesInternal.DestinationLibrary { get => ((Commvault.Powershell.Models.IDestinationLocationInternal)Destination).Library; set => ((Commvault.Powershell.Models.IDestinationLocationInternal)Destination).Library = value; } /// <summary>Internal Acessors for DestinationLocation</summary> Commvault.Powershell.Models.ILocation Commvault.Powershell.Models.IVaultTrackerPoliciesInternal.DestinationLocation { get => ((Commvault.Powershell.Models.IDestinationLocationInternal)Destination).Location; set => ((Commvault.Powershell.Models.IDestinationLocationInternal)Destination).Location = value; } /// <summary>Internal Acessors for DestinationShelf</summary> Commvault.Powershell.Models.IShelfDetails Commvault.Powershell.Models.IVaultTrackerPoliciesInternal.DestinationShelf { get => ((Commvault.Powershell.Models.IDestinationLocationInternal)Destination).Shelf; set => ((Commvault.Powershell.Models.IDestinationLocationInternal)Destination).Shelf = value; } /// <summary>Backing field for <see cref="Destination" /> property.</summary> private Commvault.Powershell.Models.IDestinationLocation _destination; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IDestinationLocation Destination { get => (this._destination = this._destination ?? new Commvault.Powershell.Models.DestinationLocation()); set => this._destination = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] public long? Id { get => ((Commvault.Powershell.Models.IIdNameInternal)__idName).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)__idName).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? LibraryId { get => ((Commvault.Powershell.Models.IDestinationLocationInternal)Destination).LibraryId; set => ((Commvault.Powershell.Models.IDestinationLocationInternal)Destination).LibraryId = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string LibraryName { get => ((Commvault.Powershell.Models.IDestinationLocationInternal)Destination).LibraryName; set => ((Commvault.Powershell.Models.IDestinationLocationInternal)Destination).LibraryName = value ?? null; } /// <summary>library type.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? LibraryType { get => ((Commvault.Powershell.Models.IDestinationLocationInternal)Destination).LibraryType; set => ((Commvault.Powershell.Models.IDestinationLocationInternal)Destination).LibraryType = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? LocationId { get => ((Commvault.Powershell.Models.IDestinationLocationInternal)Destination).LocationId; set => ((Commvault.Powershell.Models.IDestinationLocationInternal)Destination).LocationId = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string LocationName { get => ((Commvault.Powershell.Models.IDestinationLocationInternal)Destination).LocationName; set => ((Commvault.Powershell.Models.IDestinationLocationInternal)Destination).LocationName = value ?? null; } /// <summary>location type.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? LocationType { get => ((Commvault.Powershell.Models.IDestinationLocationInternal)Destination).LocationType; set => ((Commvault.Powershell.Models.IDestinationLocationInternal)Destination).LocationType = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] public string Name { get => ((Commvault.Powershell.Models.IIdNameInternal)__idName).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)__idName).Name = value ?? null; } /// <summary>Backing field for <see cref="Online" /> property.</summary> private string _online; /// <summary>Tells if VaultTrackerPolicies is enabled or not.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string Online { get => this._online; set => this._online = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? ShelfId { get => ((Commvault.Powershell.Models.IDestinationLocationInternal)Destination).ShelfId; set => ((Commvault.Powershell.Models.IDestinationLocationInternal)Destination).ShelfId = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string ShelfName { get => ((Commvault.Powershell.Models.IDestinationLocationInternal)Destination).ShelfName; set => ((Commvault.Powershell.Models.IDestinationLocationInternal)Destination).ShelfName = value ?? null; } /// <summary>shelf type.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? ShelfType { get => ((Commvault.Powershell.Models.IDestinationLocationInternal)Destination).ShelfType; set => ((Commvault.Powershell.Models.IDestinationLocationInternal)Destination).ShelfType = value ?? default(long); } /// <summary>Validates that this object meets the validation criteria.</summary> /// <param name="eventListener">an <see cref="Commvault.Powershell.Runtime.IEventListener" /> instance that will receive validation /// events.</param> /// <returns> /// A <see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed. /// </returns> public async global::System.Threading.Tasks.Task Validate(Commvault.Powershell.Runtime.IEventListener eventListener) { await eventListener.AssertNotNull(nameof(__idName), __idName); await eventListener.AssertObjectIsValid(nameof(__idName), __idName); } /// <summary>Creates an new <see cref="VaultTrackerPolicies" /> instance.</summary> public VaultTrackerPolicies() { } } public partial interface IVaultTrackerPolicies : Commvault.Powershell.Runtime.IJsonSerializable, Commvault.Powershell.Models.IIdName { [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>library type.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"library type.", SerializedName = @"type", PossibleTypes = new [] { typeof(long) })] long? LibraryType { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? LocationId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string LocationName { get; set; } /// <summary>location type.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"location type.", SerializedName = @"type", PossibleTypes = new [] { typeof(long) })] long? LocationType { get; set; } /// <summary>Tells if VaultTrackerPolicies is enabled or not.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Tells if VaultTrackerPolicies is enabled or not.", SerializedName = @"online", PossibleTypes = new [] { typeof(string) })] string Online { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? ShelfId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string ShelfName { get; set; } /// <summary>shelf type.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"shelf type.", SerializedName = @"type", PossibleTypes = new [] { typeof(long) })] long? ShelfType { get; set; } } internal partial interface IVaultTrackerPoliciesInternal : Commvault.Powershell.Models.IIdNameInternal { Commvault.Powershell.Models.IDestinationLocation Destination { get; set; } Commvault.Powershell.Models.ILibrary DestinationLibrary { get; set; } Commvault.Powershell.Models.ILocation DestinationLocation { get; set; } Commvault.Powershell.Models.IShelfDetails DestinationShelf { get; set; } long? LibraryId { get; set; } string LibraryName { get; set; } /// <summary>library type.</summary> long? LibraryType { get; set; } long? LocationId { get; set; } string LocationName { get; set; } /// <summary>location type.</summary> long? LocationType { get; set; } /// <summary>Tells if VaultTrackerPolicies is enabled or not.</summary> string Online { get; set; } long? ShelfId { get; set; } string ShelfName { get; set; } /// <summary>shelf type.</summary> long? ShelfType { get; set; } } } |