generated/api/Models/UpdatePassKey.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>Model to create, edit or disable passkey</summary>
    public partial class UpdatePassKey :
        Commvault.Powershell.Models.IUpdatePassKey,
        Commvault.Powershell.Models.IUpdatePassKeyInternal
    {

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

        /// <summary>Confirm the new passkey for restricting backup restores.</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string ConfirmPassKey { get => this._confirmPassKey; set => this._confirmPassKey = value; }

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

        /// <summary>The current passkey for restricting backup restores.</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string CurrentPassKey { get => this._currentPassKey; set => this._currentPassKey = value; }

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

        /// <summary>The new passkey for restricting backup restores.</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string NewPassKey { get => this._newPassKey; set => this._newPassKey = value; }

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

        /// <summary>The type of passkey operation</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string OperationType { get => this._operationType; set => this._operationType = value; }

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

        }
    }
    /// Model to create, edit or disable passkey
    public partial interface IUpdatePassKey :
        Commvault.Powershell.Runtime.IJsonSerializable
    {
        /// <summary>Confirm the new passkey for restricting backup restores.</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"Confirm the new passkey for restricting backup restores.",
        SerializedName = @"confirmPassKey",
        PossibleTypes = new [] { typeof(string) })]
        string ConfirmPassKey { get; set; }
        /// <summary>The current passkey for restricting backup restores.</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"The current passkey for restricting backup restores.",
        SerializedName = @"currentPassKey",
        PossibleTypes = new [] { typeof(string) })]
        string CurrentPassKey { get; set; }
        /// <summary>The new passkey for restricting backup restores.</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"The new passkey for restricting backup restores.",
        SerializedName = @"newPassKey",
        PossibleTypes = new [] { typeof(string) })]
        string NewPassKey { get; set; }
        /// <summary>The type of passkey operation</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Description = @"The type of passkey operation",
        SerializedName = @"operationType",
        PossibleTypes = new [] { typeof(string) })]
        string OperationType { get; set; }

    }
    /// Model to create, edit or disable passkey
    internal partial interface IUpdatePassKeyInternal

    {
        /// <summary>Confirm the new passkey for restricting backup restores.</summary>
        string ConfirmPassKey { get; set; }
        /// <summary>The current passkey for restricting backup restores.</summary>
        string CurrentPassKey { get; set; }
        /// <summary>The new passkey for restricting backup restores.</summary>
        string NewPassKey { get; set; }
        /// <summary>The type of passkey operation</summary>
        string OperationType { get; set; }

    }
}