|
| 1 | +// Copyright (c) Microsoft Corporation. All rights reserved. |
| 2 | +// Licensed under the MIT License. |
| 3 | +using System.Text.Json.Serialization; |
| 4 | + |
| 5 | +namespace AzureMcp.Sql.Services.Models |
| 6 | +{ |
| 7 | + /// <summary> |
| 8 | + /// A class representing the SqlDatabase properties model. |
| 9 | + /// A database resource properties. |
| 10 | + /// </summary> |
| 11 | + internal sealed class SqlDatabaseProperties |
| 12 | + { |
| 13 | + /// <summary> The collation of the database. </summary> |
| 14 | + public string? Collation { get; set; } |
| 15 | + /// <summary> The max size of the database expressed in bytes. </summary> |
| 16 | + public long? MaxSizeBytes { get; set; } |
| 17 | + /// <summary> The resource identifier of the elastic pool containing this database. </summary> |
| 18 | + public string? ElasticPoolId { get; set; } |
| 19 | + /// <summary> The status of the database. </summary> |
| 20 | + public string? Status { get; set; } |
| 21 | + /// <summary> The creation date of the database (ISO8601 format). </summary> |
| 22 | + [JsonPropertyName("creationDate")] |
| 23 | + public DateTimeOffset? CreatedOn { get; set; } |
| 24 | + /// <summary> The current service level objective name of the database. </summary> |
| 25 | + public string? CurrentServiceObjectiveName { get; set; } |
| 26 | + /// <summary> The license type to apply for this database. `LicenseIncluded` if you need a license, or `BasePrice` if you have a license and are eligible for the Azure Hybrid Benefit. </summary> |
| 27 | + public string? LicenseType { get; set; } |
| 28 | + /// <summary> This records the earliest start date and time that restore is available for this database (ISO8601 format). </summary> |
| 29 | + [JsonPropertyName("earliestRestoreDate")] |
| 30 | + public DateTimeOffset? EarliestRestoreOn { get; set; } |
| 31 | + /// <summary> The state of read-only routing. If enabled, connections that have application intent set to readonly in their connection string may be routed to a readonly secondary replica in the same region. Not applicable to a Hyperscale database within an elastic pool. </summary> |
| 32 | + public string? ReadScale { get; set; } |
| 33 | + /// <summary> Whether or not this database is zone redundant, which means the replicas of this database will be spread across multiple availability zones. </summary> |
| 34 | + public bool? IsZoneRedundant { get; set; } |
| 35 | + /// <summary> The name and tier of the SKU. </summary> |
| 36 | + public SqlSku? CurrentSku { get; set; } |
| 37 | + } |
| 38 | +} |
0 commit comments