generated/api/Models/UpdateDiskAccessPath.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>
    /// While adding network access path, please add credentials or saved credentials. If both are provided, credentials will
    /// be selected.
    /// </summary>
    public partial class UpdateDiskAccessPath :
        Commvault.Powershell.Models.IUpdateDiskAccessPath,
        Commvault.Powershell.Models.IUpdateDiskAccessPathInternal
    {

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

        /// <summary>
        /// The access type for the access path can be either read (writing to path not allowed) or read and write (writing to path
        /// allowed).
        /// </summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string Access { get => this._access; set => this._access = value; }

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

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public bool? Enabled { get => this._enabled; set => this._enabled = value; }

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

        }
    }
    /// While adding network access path, please add credentials or saved credentials. If both are provided, credentials will
    /// be selected.
    public partial interface IUpdateDiskAccessPath :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        /// <summary>
        /// The access type for the access path can be either read (writing to path not allowed) or read and write (writing to path
        /// allowed).
        /// </summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"The access type for the access path can be either read (writing to path not allowed) or read and write (writing to path allowed).",
        SerializedName = @"access",
        PossibleTypes = new [] { typeof(string) })]
        string Access { get; set; }

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

    }
    /// While adding network access path, please add credentials or saved credentials. If both are provided, credentials will
    /// be selected.
    internal partial interface IUpdateDiskAccessPathInternal

    {
        /// <summary>
        /// The access type for the access path can be either read (writing to path not allowed) or read and write (writing to path
        /// allowed).
        /// </summary>
        string Access { get; set; }

        bool? Enabled { get; set; }

    }
}