generated/api/Models/EntitySettingsValue.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>EntitySettingsValue</summary> public partial class EntitySettingsValue : Commvault.Powershell.Models.IEntitySettingsValue, Commvault.Powershell.Models.IEntitySettingsValueInternal { /// <summary>Backing field for <see cref="Comment" /> property.</summary> private string _comment; /// <summary> /// Comment set by user while modifying the specified entity setting for the given entity /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string Comment { get => this._comment; set => this._comment = value; } /// <summary>Internal Acessors for Entity</summary> Commvault.Powershell.Models.IIdNameType Commvault.Powershell.Models.IEntitySettingsValueInternal.Entity { get => (this._entity = this._entity ?? new Commvault.Powershell.Models.IdNameType()); set { {_entity = value;} } } /// <summary>Backing field for <see cref="Entity" /> property.</summary> private Commvault.Powershell.Models.IIdNameType _entity; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdNameType Entity { get => (this._entity = this._entity ?? new Commvault.Powershell.Models.IdNameType()); set => this._entity = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? EntityId { get => ((Commvault.Powershell.Models.IIdNameTypeInternal)Entity).Id; set => ((Commvault.Powershell.Models.IIdNameTypeInternal)Entity).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string EntityName { get => ((Commvault.Powershell.Models.IIdNameTypeInternal)Entity).Name; set => ((Commvault.Powershell.Models.IIdNameTypeInternal)Entity).Name = value ?? null; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string EntityType { get => ((Commvault.Powershell.Models.IIdNameTypeInternal)Entity).Type; set => ((Commvault.Powershell.Models.IIdNameTypeInternal)Entity).Type = value ?? null; } /// <summary>Backing field for <see cref="Value" /> property.</summary> private string _value; /// <summary>Value set for the specified setting linked to the specified entity</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string Value { get => this._value; set => this._value = value; } /// <summary>Creates an new <see cref="EntitySettingsValue" /> instance.</summary> public EntitySettingsValue() { } } /// EntitySettingsValue public partial interface IEntitySettingsValue : Commvault.Powershell.Runtime.IJsonSerializable { /// <summary> /// Comment set by user while modifying the specified entity setting for the given entity /// </summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Comment set by user while modifying the specified entity setting for the given entity", SerializedName = @"comment", PossibleTypes = new [] { typeof(string) })] string Comment { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? EntityId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string EntityName { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"type", PossibleTypes = new [] { typeof(string) })] string EntityType { get; set; } /// <summary>Value set for the specified setting linked to the specified entity</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Value set for the specified setting linked to the specified entity", SerializedName = @"value", PossibleTypes = new [] { typeof(string) })] string Value { get; set; } } /// EntitySettingsValue internal partial interface IEntitySettingsValueInternal { /// <summary> /// Comment set by user while modifying the specified entity setting for the given entity /// </summary> string Comment { get; set; } Commvault.Powershell.Models.IIdNameType Entity { get; set; } long? EntityId { get; set; } string EntityName { get; set; } string EntityType { get; set; } /// <summary>Value set for the specified setting linked to the specified entity</summary> string Value { get; set; } } } |