generated/api/Models/CreateSharepointClient.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; /// <summary>Request Message for sharepoint app creation</summary> public partial class CreateSharepointClient : Commvault.Powershell.Models.ICreateSharepointClient, Commvault.Powershell.Models.ICreateSharepointClientInternal { /// <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.ICreateSharepointClientInternal.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.ICreateSharepointClientInternal.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 Sharepoint 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>Backing field for <see cref="TenantAdminSiteUrl" /> property.</summary> private string _tenantAdminSiteUrl; /// <summary>SharePoint Online tenant admin site URL</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string TenantAdminSiteUrl { get => this._tenantAdminSiteUrl; set => this._tenantAdminSiteUrl = value; } /// <summary>Creates an new <see cref="CreateSharepointClient" /> instance.</summary> public CreateSharepointClient() { } } /// Request Message for sharepoint app creation public partial interface ICreateSharepointClient : Commvault.Powershell.Runtime.IJsonSerializable { /// <summary>Azure Application ID</summary> [Commvault.Powershell.Runtime.Info( Required = true, ReadOnly = false, Read = true, Create = true, Update = true, 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, Read = true, Create = true, Update = true, 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, Read = true, Create = true, Update = true, Description = @"Azure directory (tenant) ID", SerializedName = @"azureDirectoryId", PossibleTypes = new [] { typeof(string) })] string AzureAppAzureDirectoryId { get; set; } /// <summary>Unique Sharepoint app name</summary> [Commvault.Powershell.Runtime.Info( Required = true, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Unique Sharepoint app name", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string Name { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(long) })] long? ServerPlanId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string ServerPlanName { get; set; } /// <summary>SharePoint Online tenant admin site URL</summary> [Commvault.Powershell.Runtime.Info( Required = true, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"SharePoint Online tenant admin site URL", SerializedName = @"tenantAdminSiteURL", PossibleTypes = new [] { typeof(string) })] string TenantAdminSiteUrl { get; set; } } /// Request Message for sharepoint app creation internal partial interface ICreateSharepointClientInternal { /// <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 Sharepoint app name</summary> string Name { get; set; } Commvault.Powershell.Models.IIdName ServerPlan { get; set; } long? ServerPlanId { get; set; } string ServerPlanName { get; set; } /// <summary>SharePoint Online tenant admin site URL</summary> string TenantAdminSiteUrl { get; set; } } } |