generated/api/Models/LdapAttribute.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>Attribute of an LDAP server</summary>
    public partial class LdapAttribute :
        Commvault.Powershell.Models.ILdapAttribute,
        Commvault.Powershell.Models.ILdapAttributeInternal
    {

        /// <summary>Backing field for <see cref="DefaultValue" /> property.</summary>
        private string _defaultValue;

        /// <summary>Default value of the attribute</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string DefaultValue { get => this._defaultValue; set => this._defaultValue = value; }

        /// <summary>Backing field for <see cref="Id" /> property.</summary>
        private long _id;

        /// <summary>ID of the attribute</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long Id { get => this._id; set => this._id = value; }

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

        /// <summary>Denotes if the value of the attribute is overridden</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public bool? IsOverridden { get => this._isOverridden; set => this._isOverridden = value; }

        /// <summary>Backing field for <see cref="Name" /> property.</summary>
        private string _name;

        /// <summary>Name of the attribute</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string Name { get => this._name; set => this._name = value; }

        /// <summary>Backing field for <see cref="Value" /> property.</summary>
        private string _value;

        /// <summary>Current value of the attribute</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string Value { get => this._value; set => this._value = value; }

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

        }
    }
    /// Attribute of an LDAP server
    public partial interface ILdapAttribute :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        /// <summary>Default value of the attribute</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Default value of the attribute",
        SerializedName = @"defaultValue",
        PossibleTypes = new [] { typeof(string) })]
        string DefaultValue { get; set; }
        /// <summary>ID of the attribute</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = true,
        ReadOnly = false,
        Description = @"ID of the attribute",
        SerializedName = @"id",
        PossibleTypes = new [] { typeof(long) })]
        long Id { get; set; }
        /// <summary>Denotes if the value of the attribute is overridden</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Denotes if the value of the attribute is overridden",
        SerializedName = @"isOverridden",
        PossibleTypes = new [] { typeof(bool) })]
        bool? IsOverridden { get; set; }
        /// <summary>Name of the attribute</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Name of the attribute",
        SerializedName = @"name",
        PossibleTypes = new [] { typeof(string) })]
        string Name { get; set; }
        /// <summary>Current value of the attribute</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = true,
        ReadOnly = false,
        Description = @"Current value of the attribute",
        SerializedName = @"value",
        PossibleTypes = new [] { typeof(string) })]
        string Value { get; set; }

    }
    /// Attribute of an LDAP server
    internal partial interface ILdapAttributeInternal

    {
        /// <summary>Default value of the attribute</summary>
        string DefaultValue { get; set; }
        /// <summary>ID of the attribute</summary>
        long Id { get; set; }
        /// <summary>Denotes if the value of the attribute is overridden</summary>
        bool? IsOverridden { get; set; }
        /// <summary>Name of the attribute</summary>
        string Name { get; set; }
        /// <summary>Current value of the attribute</summary>
        string Value { get; set; }

    }
}