generated/api/Models/HyperScaleStorageResp.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>HyperScaleStorageResp</summary> public partial class HyperScaleStorageResp : Commvault.Powershell.Models.IHyperScaleStorageResp, Commvault.Powershell.Models.IHyperScaleStorageRespInternal, Commvault.Powershell.Runtime.IValidates { /// <summary> /// Backing field for Inherited model <see cref= "Commvault.Powershell.Models.IGenericResp" /> /// </summary> private Commvault.Powershell.Models.IGenericResp __genericResp = new Commvault.Powershell.Models.GenericResp(); /// <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>Backing field for <see cref="CopyId" /> property.</summary> private long? _copyId; /// <summary>Id of Storage Policy Copy</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public long? CopyId { get => this._copyId; set => this._copyId = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] public long? ErrorCode { get => ((Commvault.Powershell.Models.IGenericRespInternal)__genericResp).ErrorCode; set => ((Commvault.Powershell.Models.IGenericRespInternal)__genericResp).ErrorCode = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] public string ErrorMessage { get => ((Commvault.Powershell.Models.IGenericRespInternal)__genericResp).ErrorMessage; set => ((Commvault.Powershell.Models.IGenericRespInternal)__genericResp).ErrorMessage = value ?? null; } [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.Inherited)] public string Name { get => ((Commvault.Powershell.Models.IIdNameInternal)__idName).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)__idName).Name = value ?? null; } /// <summary>Creates an new <see cref="HyperScaleStorageResp" /> instance.</summary> public HyperScaleStorageResp() { } /// <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); await eventListener.AssertNotNull(nameof(__genericResp), __genericResp); await eventListener.AssertObjectIsValid(nameof(__genericResp), __genericResp); } } /// HyperScaleStorageResp public partial interface IHyperScaleStorageResp : Commvault.Powershell.Runtime.IJsonSerializable, Commvault.Powershell.Models.IIdName, Commvault.Powershell.Models.IGenericResp { /// <summary>Id of Storage Policy Copy</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Id of Storage Policy Copy", SerializedName = @"copyId", PossibleTypes = new [] { typeof(long) })] long? CopyId { get; set; } } /// HyperScaleStorageResp internal partial interface IHyperScaleStorageRespInternal : Commvault.Powershell.Models.IIdNameInternal, Commvault.Powershell.Models.IGenericRespInternal { /// <summary>Id of Storage Policy Copy</summary> long? CopyId { get; set; } } } |