// // Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using Microsoft.SqlTools.ResourceProvider.Core; using Models = Microsoft.Azure.Management.Sql.Models; namespace Microsoft.SqlTools.ResourceProvider.DefaultImpl { /// /// Implementation for using VS services /// Provides information about an Azure Sql Server resource /// public class SqlAzureResource : AzureResourceWrapper, IAzureSqlServerResource { private readonly Models.Server _azureSqlServerResource; /// /// Initializes the resource /// public SqlAzureResource(Models.Server azureResource) : base(azureResource) { CommonUtil.CheckForNull(azureResource, nameof(azureResource)); _azureSqlServerResource = azureResource; } /// /// Fully qualified domain name /// public string FullyQualifiedDomainName { get { return _azureSqlServerResource != null ? _azureSqlServerResource.FullyQualifiedDomainName : string.Empty; } } /// /// Administrator User /// public string AdministratorLogin { get { return _azureSqlServerResource != null ? _azureSqlServerResource.AdministratorLogin : string.Empty; } } } }