We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Azure/azure-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server
SqlElasticPoolData.cs•1.43 KiB
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System.Text.Json;
using System.Text.Json.Serialization;
using AzureMcp.Sql.Commands;
namespace AzureMcp.Sql.Services.Models
{
/// <summary>
/// A class representing the ElasticPool data model.
/// An elastic pool.
/// </summary>
internal sealed class SqlElasticPoolData
{
/// <summary> The resource ID for the resource. </summary>
[JsonPropertyName("id")]
public string? ResourceId { get; set; }
/// <summary> The type of the resource. </summary>
[JsonPropertyName("type")]
public string? ResourceType { get; set; }
/// <summary> The name of the resource. </summary>
[JsonPropertyName("name")]
public string? ResourceName { get; set; }
/// <summary> The location of the resource. </summary>
public string? Location { get; set; }
/// <summary> The database SKU. </summary>
public SqlSku? Sku { get; set; }
/// <summary> The properties of elastic pool. </summary>
public SqlElasticPoolProperties? Properties { get; set; }
// Read the JSON response content and create a model instance from it.
public static SqlElasticPoolData? FromJson(JsonElement source)
{
return JsonSerializer.Deserialize<SqlElasticPoolData>(source, SqlJsonContext.Default.SqlElasticPoolData);
}
}
}