generated/api/Models/KubernetesPreviewItem.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>Kubernetes Application Group Preview Item</summary> public partial class KubernetesPreviewItem : Commvault.Powershell.Models.IKubernetesPreviewItem, Commvault.Powershell.Models.IKubernetesPreviewItemInternal, 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; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string NameSpace { get => this._nameSpace; set => this._nameSpace = value; } /// <summary>Backing field for <see cref="Type" /> property.</summary> private string _type; /// <summary>Application type of the content</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string Type { get => this._type; set => this._type = value; } /// <summary>Creates an new <see cref="KubernetesPreviewItem" /> instance.</summary> public KubernetesPreviewItem() { } /// <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); } } /// Kubernetes Application Group Preview Item public partial interface IKubernetesPreviewItem : Commvault.Powershell.Runtime.IJsonSerializable, Commvault.Powershell.Models.INameGuid { [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"nameSpace", PossibleTypes = new [] { typeof(string) })] string NameSpace { get; set; } /// <summary>Application type of the content</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Application type of the content", SerializedName = @"type", PossibleTypes = new [] { typeof(string) })] string Type { get; set; } } /// Kubernetes Application Group Preview Item internal partial interface IKubernetesPreviewItemInternal : Commvault.Powershell.Models.INameGuidInternal { string NameSpace { get; set; } /// <summary>Application type of the content</summary> string Type { get; set; } } } |