generated/api/Models/Office365ConnectionsSettings.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>Office365ConnectionsSettings</summary>
    public partial class Office365ConnectionsSettings :
        Commvault.Powershell.Models.IOffice365ConnectionsSettings,
        Commvault.Powershell.Models.IOffice365ConnectionsSettingsInternal,
        Commvault.Powershell.Runtime.IValidates
    {
        /// <summary>
        /// Backing field for Inherited model <see cref= "Commvault.Powershell.Models.IAzureAdApp" />
        /// </summary>
        private Commvault.Powershell.Models.IAzureAdApp __azureAdApp = new Commvault.Powershell.Models.AzureAdApp();

        /// <summary>Azure Application ID</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)]
        public string ApplicationId { get => ((Commvault.Powershell.Models.IAzureAdAppInternal)__azureAdApp).ApplicationId; set => ((Commvault.Powershell.Models.IAzureAdAppInternal)__azureAdApp).ApplicationId = value; }

        /// <summary>Azure app secret key, needs to be base64 encoded</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inherited)]
        public string ApplicationSecret { get => ((Commvault.Powershell.Models.IAzureAdAppInternal)__azureAdApp).ApplicationSecret; set => ((Commvault.Powershell.Models.IAzureAdAppInternal)__azureAdApp).ApplicationSecret = value; }

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

        /// <summary>Azure directory (tenant) ID</summary>
        [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)]
        public string AzureDirectoryId { get => this._azureDirectoryId; set => this._azureDirectoryId = value; }

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

        }

        /// <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(__azureAdApp), __azureAdApp);
            await eventListener.AssertObjectIsValid(nameof(__azureAdApp), __azureAdApp);
        }
    }
    /// Office365ConnectionsSettings
    public partial interface IOffice365ConnectionsSettings :
        Commvault.Powershell.Runtime.IJsonSerializable,
        Commvault.Powershell.Models.IAzureAdApp
    {
        /// <summary>Azure directory (tenant) ID</summary>
        [Commvault.Powershell.Runtime.Info(
        Required = true,
        ReadOnly = false,
        Description = @"Azure directory (tenant) ID",
        SerializedName = @"azureDirectoryId",
        PossibleTypes = new [] { typeof(string) })]
        string AzureDirectoryId { get; set; }

    }
    /// Office365ConnectionsSettings
    internal partial interface IOffice365ConnectionsSettingsInternal :
        Commvault.Powershell.Models.IAzureAdAppInternal
    {
        /// <summary>Azure directory (tenant) ID</summary>
        string AzureDirectoryId { get; set; }

    }
}