generated/api/Models/CyberResilienceCredentialDetails.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;

    public partial class CyberResilienceCredentialDetails :
        Commvault.Powershell.Models.ICyberResilienceCredentialDetails,
        Commvault.Powershell.Models.ICyberResilienceCredentialDetailsInternal,
        Commvault.Powershell.Runtime.IValidates
    {
        /// <summary>
        /// Backing field for Inherited model <see cref= "Commvault.Powershell.Models.IIdName" />
        /// </summary>
        private Commvault.Powershell.Models.IIdName __idName = new Commvault.Powershell.Models.IdName();

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

        /// <summary>To signify if the credential is already configured</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public bool? Configured { get => this._configured; set => this._configured = value; }

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)]
        public long? Id { get => ((Commvault.Powershell.Models.IIdNameInternal)__idName).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)__idName).Id = value ?? default(long); }

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

        /// <summary>Signifies epoch time of last successful sync</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public long? LastSyncedAt { get => this._lastSyncedAt; set => this._lastSyncedAt = value; }

        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)]
        public string Name { get => ((Commvault.Powershell.Models.IIdNameInternal)__idName).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)__idName).Name = value ?? null; }

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

        /// <summary>Cloud vendor types appilcable only for Cloud Account type</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string VendorType { get => this._vendorType; set => this._vendorType = value; }

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

        }

        /// <summary>Validates that this object meets the validation criteria.</summary>
        /// <param name="eventListener">an <see cref="Commvault.Powershell.Runtime.IEventListener" /> instance that will receive validation
        /// events.</param>
        /// <returns>
        /// A <see cref = "global::System.Threading.Tasks.Task" /> that will be complete when validation is completed.
        /// </returns>
        public async global::System.Threading.Tasks.Task Validate(Commvault.Powershell.Runtime.IEventListener eventListener)
        {
            await eventListener.AssertNotNull(nameof(__idName), __idName);
            await eventListener.AssertObjectIsValid(nameof(__idName), __idName);
        }
    }
    public partial interface ICyberResilienceCredentialDetails :
        Commvault.Powershell.Runtime.IJsonSerializable,
        Commvault.Powershell.Models.IIdName
    {
        /// <summary>To signify if the credential is already configured</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"To signify if the credential is already configured",
        SerializedName = @"configured",
        PossibleTypes = new [] { typeof(bool) })]
        bool? Configured { get; set; }
        /// <summary>Signifies epoch time of last successful sync</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"Signifies epoch time of last successful sync",
        SerializedName = @"lastSyncedAt",
        PossibleTypes = new [] { typeof(long) })]
        long? LastSyncedAt { get; set; }
        /// <summary>Cloud vendor types appilcable only for Cloud Account type</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = false,
        ReadOnly = false,
        Read = true,
        Create = true,
        Update = true,
        Description = @"Cloud vendor types appilcable only for Cloud Account type",
        SerializedName = @"vendorType",
        PossibleTypes = new [] { typeof(string) })]
        string VendorType { get; set; }

    }
    internal partial interface ICyberResilienceCredentialDetailsInternal :
        Commvault.Powershell.Models.IIdNameInternal
    {
        /// <summary>To signify if the credential is already configured</summary>
        bool? Configured { get; set; }
        /// <summary>Signifies epoch time of last successful sync</summary>
        long? LastSyncedAt { get; set; }
        /// <summary>Cloud vendor types appilcable only for Cloud Account type</summary>
        string VendorType { get; set; }

    }
}