generated/api/Models/SecurityOwnersAssoc.cs

// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.8.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>A list of users or user groups which have permissions on the entity</summary>
    public partial class SecurityOwnersAssoc :
        Commvault.Powershell.Models.ISecurityOwnersAssoc,
        Commvault.Powershell.Models.ISecurityOwnersAssocInternal
    {

        /// <summary>Backing field for <see cref="UserGroupId" /> property.</summary>
        private long? _userGroupId;

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long? UserGroupId { get => this._userGroupId; set => this._userGroupId = value; }

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

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string UserGroupName { get => this._userGroupName; set => this._userGroupName = value; }

        /// <summary>Backing field for <see cref="UserId" /> property.</summary>
        private long? _userId;

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long? UserId { get => this._userId; set => this._userId = value; }

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

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string UserName { get => this._userName; set => this._userName = value; }

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

        }
    }
    /// A list of users or user groups which have permissions on the entity
    public partial interface ISecurityOwnersAssoc :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"userGroupId",
        PossibleTypes = new [] { typeof(long) })]
        long? UserGroupId { get; set; }

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"userGroupName",
        PossibleTypes = new [] { typeof(string) })]
        string UserGroupName { get; set; }

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"userId",
        PossibleTypes = new [] { typeof(long) })]
        long? UserId { get; set; }

        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"",
        SerializedName = @"userName",
        PossibleTypes = new [] { typeof(string) })]
        string UserName { get; set; }

    }
    /// A list of users or user groups which have permissions on the entity
    internal partial interface ISecurityOwnersAssocInternal

    {
        long? UserGroupId { get; set; }

        string UserGroupName { get; set; }

        long? UserId { get; set; }

        string UserName { get; set; }

    }
}