generated/api/Models/KubernetesApplicationRestoreItem.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>Structure describing each namespace item for restore</summary> public partial class KubernetesApplicationRestoreItem : Commvault.Powershell.Models.IKubernetesApplicationRestoreItem, Commvault.Powershell.Models.IKubernetesApplicationRestoreItemInternal, Commvault.Powershell.Runtime.IValidates { /// <summary> /// Backing field for Inherited model <see cref= "Commvault.Powershell.Models.INameGuid" /> /// </summary> private Commvault.Powershell.Models.INameGuid __nameGuid = new Commvault.Powershell.Models.NameGuid(); [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] public string Guid { get => ((Commvault.Powershell.Models.INameGuidInternal)__nameGuid).Guid; set => ((Commvault.Powershell.Models.INameGuidInternal)__nameGuid).Guid = value ?? null; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)] public string Name { get => ((Commvault.Powershell.Models.INameGuidInternal)__nameGuid).Name; set => ((Commvault.Powershell.Models.INameGuidInternal)__nameGuid).Name = value ?? null; } /// <summary>Backing field for <see cref="NameSpace" /> property.</summary> private string _nameSpace; /// <summary> /// Specify destination namespace of the Application (Picks the source namespace if not specified) /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string NameSpace { get => this._nameSpace; set => this._nameSpace = value; } /// <summary>Backing field for <see cref="StorageClass" /> property.</summary> private string _storageClass; /// <summary> /// Specify destination storage class to use for restoring PVC (Picks the source storage class if not specified) /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string StorageClass { get => this._storageClass; set => this._storageClass = value; } /// <summary>Creates an new <see cref="KubernetesApplicationRestoreItem" /> instance.</summary> public KubernetesApplicationRestoreItem() { } /// <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(__nameGuid), __nameGuid); await eventListener.AssertObjectIsValid(nameof(__nameGuid), __nameGuid); } } /// Structure describing each namespace item for restore public partial interface IKubernetesApplicationRestoreItem : Commvault.Powershell.Runtime.IJsonSerializable, Commvault.Powershell.Models.INameGuid { /// <summary> /// Specify destination namespace of the Application (Picks the source namespace if not specified) /// </summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Specify destination namespace of the Application (Picks the source namespace if not specified)", SerializedName = @"nameSpace", PossibleTypes = new [] { typeof(string) })] string NameSpace { get; set; } /// <summary> /// Specify destination storage class to use for restoring PVC (Picks the source storage class if not specified) /// </summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Specify destination storage class to use for restoring PVC (Picks the source storage class if not specified)", SerializedName = @"storageClass", PossibleTypes = new [] { typeof(string) })] string StorageClass { get; set; } } /// Structure describing each namespace item for restore internal partial interface IKubernetesApplicationRestoreItemInternal : Commvault.Powershell.Models.INameGuidInternal { /// <summary> /// Specify destination namespace of the Application (Picks the source namespace if not specified) /// </summary> string NameSpace { get; set; } /// <summary> /// Specify destination storage class to use for restoring PVC (Picks the source storage class if not specified) /// </summary> string StorageClass { get; set; } } } |