generated/api/Models/LaptopPlanResp.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>LaptopPlanResponse CustomerManaged</summary> public partial class LaptopPlanResp : Commvault.Powershell.Models.ILaptopPlanResp, Commvault.Powershell.Models.ILaptopPlanRespInternal { /// <summary>Internal Acessors for Plan</summary> Commvault.Powershell.Models.IIdNameGuid Commvault.Powershell.Models.ILaptopPlanRespInternal.Plan { get => (this._plan = this._plan ?? new Commvault.Powershell.Models.IdNameGuid()); set { {_plan = value;} } } /// <summary>Backing field for <see cref="Errors" /> property.</summary> private System.Collections.Generic.List<Commvault.Powershell.Models.IPlanComponentError> _errors; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public System.Collections.Generic.List<Commvault.Powershell.Models.IPlanComponentError> Errors { get => this._errors; set => this._errors = value; } /// <summary>Backing field for <see cref="Plan" /> property.</summary> private Commvault.Powershell.Models.IIdNameGuid _plan; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdNameGuid Plan { get => (this._plan = this._plan ?? new Commvault.Powershell.Models.IdNameGuid()); set => this._plan = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string PlanGuid { get => ((Commvault.Powershell.Models.IIdNameGuidInternal)Plan).Guid; set => ((Commvault.Powershell.Models.IIdNameGuidInternal)Plan).Guid = value ?? null; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? PlanId { get => ((Commvault.Powershell.Models.IIdNameGuidInternal)Plan).Id; set => ((Commvault.Powershell.Models.IIdNameGuidInternal)Plan).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string PlanName { get => ((Commvault.Powershell.Models.IIdNameGuidInternal)Plan).Name; set => ((Commvault.Powershell.Models.IIdNameGuidInternal)Plan).Name = value ?? null; } /// <summary>Creates an new <see cref="LaptopPlanResp" /> instance.</summary> public LaptopPlanResp() { } } /// LaptopPlanResponse CustomerManaged public partial interface ILaptopPlanResp : Commvault.Powershell.Runtime.IJsonSerializable { [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"errors", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IPlanComponentError) })] System.Collections.Generic.List<Commvault.Powershell.Models.IPlanComponentError> Errors { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"GUID", PossibleTypes = new [] { typeof(string) })] string PlanGuid { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? PlanId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string PlanName { get; set; } } /// LaptopPlanResponse CustomerManaged internal partial interface ILaptopPlanRespInternal { System.Collections.Generic.List<Commvault.Powershell.Models.IPlanComponentError> Errors { get; set; } Commvault.Powershell.Models.IIdNameGuid Plan { get; set; } string PlanGuid { get; set; } long? PlanId { get; set; } string PlanName { get; set; } } } |