generated/api/Models/KubernetesApplicationGroupContent.cs

// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.9.4, generator: @autorest/powershell@3.0.415)
// 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>Item describing the content for Application Group</summary>
    public partial class KubernetesApplicationGroupContent :
        Commvault.Powershell.Models.IKubernetesApplicationGroupContent,
        Commvault.Powershell.Models.IKubernetesApplicationGroupContentInternal,
        Commvault.Powershell.Runtime.IValidates
    {
        /// <summary>
        /// Backing field for Inherited model <see cref= "Commvault.Powershell.Models.IKubernetesApplicationGroupContentItem" />
        /// </summary>
        private Commvault.Powershell.Models.IKubernetesApplicationGroupContentItem __kubernetesApplicationGroupContentItem = new Commvault.Powershell.Models.KubernetesApplicationGroupContentItem();

        /// <summary>List of applications to be added as content</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)]
        public Commvault.Powershell.Models.IKubernetesContentApplications[] Applications { get => ((Commvault.Powershell.Models.IKubernetesApplicationGroupContentItemInternal)__kubernetesApplicationGroupContentItem).Applications; set => ((Commvault.Powershell.Models.IKubernetesApplicationGroupContentItemInternal)__kubernetesApplicationGroupContentItem).Applications = value; }

        /// <summary>List of label selectors to be added as content</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)]
        public Commvault.Powershell.Models.IKubernetesContentSelectors[] LabelSelectors { get => ((Commvault.Powershell.Models.IKubernetesApplicationGroupContentItemInternal)__kubernetesApplicationGroupContentItem).LabelSelectors; set => ((Commvault.Powershell.Models.IKubernetesApplicationGroupContentItemInternal)__kubernetesApplicationGroupContentItem).LabelSelectors = value; }

        /// <summary>Backing field for <see cref="Overwrite" /> property.</summary>
        private bool? _overwrite;

        /// <summary>Specifies whether content has to be overwritten or appended</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public bool? Overwrite { get => this._overwrite; set => this._overwrite = value; }

        /// <summary>Creates an new <see cref="KubernetesApplicationGroupContent" /> instance.</summary>
        public KubernetesApplicationGroupContent()
        {

        }

        /// <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(__kubernetesApplicationGroupContentItem), __kubernetesApplicationGroupContentItem);
            await eventListener.AssertObjectIsValid(nameof(__kubernetesApplicationGroupContentItem), __kubernetesApplicationGroupContentItem);
        }
    }
    /// Item describing the content for Application Group
    public partial interface IKubernetesApplicationGroupContent :
        Commvault.Powershell.Runtime.IJsonSerializable,
        Commvault.Powershell.Models.IKubernetesApplicationGroupContentItem
    {
        /// <summary>Specifies whether content has to be overwritten or appended</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Specifies whether content has to be overwritten or appended",
        SerializedName = @"overwrite",
        PossibleTypes = new [] { typeof(bool) })]
        bool? Overwrite { get; set; }

    }
    /// Item describing the content for Application Group
    internal partial interface IKubernetesApplicationGroupContentInternal :
        Commvault.Powershell.Models.IKubernetesApplicationGroupContentItemInternal
    {
        /// <summary>Specifies whether content has to be overwritten or appended</summary>
        bool? Overwrite { get; set; }

    }
}