generated/api/Models/CreateAzureAdClient.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>Request Message for Azure active directory app creation</summary> public partial class CreateAzureAdClient : Commvault.Powershell.Models.ICreateAzureAdClient, Commvault.Powershell.Models.ICreateAzureAdClientInternal { /// <summary>Backing field for <see cref="AzureApp" /> property.</summary> private Commvault.Powershell.Models.IOffice365ConnectionsSettings _azureApp; /// <summary>Office365ConnectionsSettings</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IOffice365ConnectionsSettings AzureApp { get => (this._azureApp = this._azureApp ?? new Commvault.Powershell.Models.Office365ConnectionsSettings()); set => this._azureApp = value; } /// <summary>Azure Application ID</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string AzureAppApplicationId { get => ((Commvault.Powershell.Models.IAzureAdAppInternal)AzureApp).ApplicationId; set => ((Commvault.Powershell.Models.IAzureAdAppInternal)AzureApp).ApplicationId = value ; } /// <summary>Azure app secret key, needs to be base64 encoded</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string AzureAppApplicationSecret { get => ((Commvault.Powershell.Models.IAzureAdAppInternal)AzureApp).ApplicationSecret; set => ((Commvault.Powershell.Models.IAzureAdAppInternal)AzureApp).ApplicationSecret = value ; } /// <summary>Azure directory (tenant) ID</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string AzureAppAzureDirectoryId { get => ((Commvault.Powershell.Models.IOffice365ConnectionsSettingsInternal)AzureApp).AzureDirectoryId; set => ((Commvault.Powershell.Models.IOffice365ConnectionsSettingsInternal)AzureApp).AzureDirectoryId = value ; } /// <summary>Internal Acessors for AzureApp</summary> Commvault.Powershell.Models.IOffice365ConnectionsSettings Commvault.Powershell.Models.ICreateAzureAdClientInternal.AzureApp { get => (this._azureApp = this._azureApp ?? new Commvault.Powershell.Models.Office365ConnectionsSettings()); set { {_azureApp = value;} } } /// <summary>Internal Acessors for ServerPlan</summary> Commvault.Powershell.Models.IIdName Commvault.Powershell.Models.ICreateAzureAdClientInternal.ServerPlan { get => (this._serverPlan = this._serverPlan ?? new Commvault.Powershell.Models.IdName()); set { {_serverPlan = value;} } } /// <summary>Backing field for <see cref="Name" /> property.</summary> private string _name; /// <summary>Unique Azure AD app name</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string Name { get => this._name; set => this._name = value; } /// <summary>Backing field for <see cref="ServerPlan" /> property.</summary> private Commvault.Powershell.Models.IIdName _serverPlan; [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IIdName ServerPlan { get => (this._serverPlan = this._serverPlan ?? new Commvault.Powershell.Models.IdName()); set => this._serverPlan = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public long? ServerPlanId { get => ((Commvault.Powershell.Models.IIdNameInternal)ServerPlan).Id; set => ((Commvault.Powershell.Models.IIdNameInternal)ServerPlan).Id = value ?? default(long); } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string ServerPlanName { get => ((Commvault.Powershell.Models.IIdNameInternal)ServerPlan).Name; set => ((Commvault.Powershell.Models.IIdNameInternal)ServerPlan).Name = value ?? null; } /// <summary>Creates an new <see cref="CreateAzureAdClient" /> instance.</summary> public CreateAzureAdClient() { } } /// Request Message for Azure active directory app creation public partial interface ICreateAzureAdClient : Commvault.Powershell.Runtime.IJsonSerializable { /// <summary>Azure Application ID</summary> [Commvault.Powershell.Runtime.Info( Required = true, ReadOnly = false, Description = @"Azure Application ID", SerializedName = @"applicationId", PossibleTypes = new [] { typeof(string) })] string AzureAppApplicationId { get; set; } /// <summary>Azure app secret key, needs to be base64 encoded</summary> [Commvault.Powershell.Runtime.Info( Required = true, ReadOnly = false, Description = @"Azure app secret key, needs to be base64 encoded", SerializedName = @"applicationSecret", PossibleTypes = new [] { typeof(string) })] string AzureAppApplicationSecret { get; set; } /// <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 AzureAppAzureDirectoryId { get; set; } /// <summary>Unique Azure AD app name</summary> [Commvault.Powershell.Runtime.Info( Required = true, ReadOnly = false, Description = @"Unique Azure AD app name", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string Name { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? ServerPlanId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string ServerPlanName { get; set; } } /// Request Message for Azure active directory app creation internal partial interface ICreateAzureAdClientInternal { /// <summary>Office365ConnectionsSettings</summary> Commvault.Powershell.Models.IOffice365ConnectionsSettings AzureApp { get; set; } /// <summary>Azure Application ID</summary> string AzureAppApplicationId { get; set; } /// <summary>Azure app secret key, needs to be base64 encoded</summary> string AzureAppApplicationSecret { get; set; } /// <summary>Azure directory (tenant) ID</summary> string AzureAppAzureDirectoryId { get; set; } /// <summary>Unique Azure AD app name</summary> string Name { get; set; } Commvault.Powershell.Models.IIdName ServerPlan { get; set; } long? ServerPlanId { get; set; } string ServerPlanName { get; set; } } } |