generated/api/Models/SecurityOptions.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>SecurityOptions</summary>
    public partial class SecurityOptions :
        Commvault.Powershell.Models.ISecurityOptions,
        Commvault.Powershell.Models.ISecurityOptionsInternal
    {

        /// <summary>Backing field for <see cref="SecurityGroups" /> property.</summary>
        private Commvault.Powershell.Models.ISecurityGroup[] _securityGroups;

        /// <summary>List of security groups that provide controlled access of the DR VM</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public Commvault.Powershell.Models.ISecurityGroup[] SecurityGroups { get => this._securityGroups; set => this._securityGroups = value; }

        /// <summary>Backing field for <see cref="TestSecurityGroups" /> property.</summary>
        private Commvault.Powershell.Models.ISecurityGroup[] _testSecurityGroups;

        /// <summary>
        /// List of security groups that provide controlled access of the VM in cloud for test failover
        /// </summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public Commvault.Powershell.Models.ISecurityGroup[] TestSecurityGroups { get => this._testSecurityGroups; set => this._testSecurityGroups = value; }

        /// <summary>Backing field for <see cref="UserGroups" /> property.</summary>
        private Commvault.Powershell.Models.IIdName[] _userGroups;

        /// <summary>User groups that have access to the recovery target</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public Commvault.Powershell.Models.IIdName[] UserGroups { get => this._userGroups; set => this._userGroups = value; }

        /// <summary>Backing field for <see cref="Users" /> property.</summary>
        private Commvault.Powershell.Models.IIdNameFullName[] _users;

        /// <summary>Users that have access to the recovery target</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public Commvault.Powershell.Models.IIdNameFullName[] Users { get => this._users; set => this._users = value; }

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

        }
    }
    /// SecurityOptions
    public partial interface ISecurityOptions :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        /// <summary>List of security groups that provide controlled access of the DR VM</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"List of security groups that provide controlled access of the DR VM",
        SerializedName = @"securityGroups",
        PossibleTypes = new [] { typeof(Commvault.Powershell.Models.ISecurityGroup) })]
        Commvault.Powershell.Models.ISecurityGroup[] SecurityGroups { get; set; }
        /// <summary>
        /// List of security groups that provide controlled access of the VM in cloud for test failover
        /// </summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"List of security groups that provide controlled access of the VM in cloud for test failover",
        SerializedName = @"testSecurityGroups",
        PossibleTypes = new [] { typeof(Commvault.Powershell.Models.ISecurityGroup) })]
        Commvault.Powershell.Models.ISecurityGroup[] TestSecurityGroups { get; set; }
        /// <summary>User groups that have access to the recovery target</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"User groups that have access to the recovery target",
        SerializedName = @"userGroups",
        PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IIdName) })]
        Commvault.Powershell.Models.IIdName[] UserGroups { get; set; }
        /// <summary>Users that have access to the recovery target</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Users that have access to the recovery target",
        SerializedName = @"users",
        PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IIdNameFullName) })]
        Commvault.Powershell.Models.IIdNameFullName[] Users { get; set; }

    }
    /// SecurityOptions
    internal partial interface ISecurityOptionsInternal

    {
        /// <summary>List of security groups that provide controlled access of the DR VM</summary>
        Commvault.Powershell.Models.ISecurityGroup[] SecurityGroups { get; set; }
        /// <summary>
        /// List of security groups that provide controlled access of the VM in cloud for test failover
        /// </summary>
        Commvault.Powershell.Models.ISecurityGroup[] TestSecurityGroups { get; set; }
        /// <summary>User groups that have access to the recovery target</summary>
        Commvault.Powershell.Models.IIdName[] UserGroups { get; set; }
        /// <summary>Users that have access to the recovery target</summary>
        Commvault.Powershell.Models.IIdNameFullName[] Users { get; set; }

    }
}