Skip to content

Add MemorySizeInGB parameter for SQL Managed Instance CRUD #28341

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
130 changes: 116 additions & 14 deletions src/Sql/Sql.Management.Sdk/Generated/IManagedInstancesOperations.cs

Large diffs are not rendered by default.

873 changes: 671 additions & 202 deletions src/Sql/Sql.Management.Sdk/Generated/ManagedInstancesOperations.cs

Large diffs are not rendered by default.

Large diffs are not rendered by default.

101 changes: 69 additions & 32 deletions src/Sql/Sql.Management.Sdk/Generated/Models/ManagedInstance.cs

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ public static class ManagedInstanceDatabaseFormat
{
public const string AlwaysUpToDate = "AlwaysUpToDate";
public const string SQLServer2022 = "SQLServer2022";
public const string SQLServer2025 = "SQLServer2025";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,12 @@ public ManagedInstanceProperties()
/// DR).
/// Possible values include: &#39;Active&#39;, &#39;Passive&#39;</param>

/// <param name="vCores">The number of vCores. Allowed values: 8, 16, 24, 32, 40, 64, 80.
/// <param name="vCores">The number of vCores. Allowed values: 4, 6, 8, 10, 12, 16, 20, 24, 32, 40,
/// 48, 56, 64, 80, 96, 128. Supported vCores depends on the selected hardware
/// family and service tier.
/// </param>

/// <param name="storageSizeInGb">Storage size in GB. Minimum value: 32. Maximum value: 16384. Increments of
/// <param name="storageSizeInGb">Storage size in GB. Minimum value: 32. Maximum value: 32768. Increments of
/// 32 GB allowed only. Maximum value depends on the selected hardware family
/// and number of vCores.
/// </param>
Expand All @@ -86,6 +88,11 @@ public ManagedInstanceProperties()
/// create/update operation.
/// </param>

/// <param name="memorySizeInGb">Memory size in GB. Minimum value: 28. Maximum value: 870. Minimum and
/// maximum value depend on the number of vCores and service tier. Read more
/// about resource limits: https://aka.ms/mi-resource-limits-api.
/// </param>

/// <param name="collation">Collation of the managed instance.
/// </param>

Expand Down Expand Up @@ -144,7 +151,7 @@ public ManagedInstanceProperties()
/// Geo (GeoRedundantStorage) and GeoZone(GeoZoneRedundantStorage)
/// Possible values include: &#39;Geo&#39;, &#39;Local&#39;, &#39;Zone&#39;, &#39;GeoZone&#39;</param>

/// <param name="zoneRedundant">Whether or not the multi-az is enabled.
/// <param name="zoneRedundant">Whether or not the zone-redundancy is enabled.
/// </param>

/// <param name="primaryUserAssignedIdentityId">The resource id of a user assigned identity to be used by default.
Expand All @@ -153,10 +160,10 @@ public ManagedInstanceProperties()
/// <param name="keyId">A CMK URI of the key to use for encryption.
/// </param>

/// <param name="administrators">The Azure Active Directory administrator of the instance. This can only be
/// used at instance create time. If used for instance update, it will be
/// ignored or it will result in an error. For updates individual APIs will
/// need to be used.
/// <param name="administrators">The Azure Active Directory administrator can be utilized during instance
/// creation and for instance updates, except for the azureADOnlyAuthentication
/// property. To update the azureADOnlyAuthentication property, individual API
/// must be used.
/// </param>

/// <param name="servicePrincipal">The managed instance&#39;s service principal.
Expand All @@ -168,7 +175,7 @@ public ManagedInstanceProperties()
/// <param name="externalGovernanceStatus">Status of external governance.
/// Possible values include: &#39;Enabled&#39;, &#39;Disabled&#39;</param>

/// <param name="pricingModel">Weather or not Managed Instance is freemium.
/// <param name="pricingModel">Pricing model of Managed Instance.
/// Possible values include: &#39;Regular&#39;, &#39;Freemium&#39;</param>

/// <param name="createTime">Specifies the point in time (ISO8601 format) of the Managed Instance
Expand All @@ -180,8 +187,11 @@ public ManagedInstanceProperties()

/// <param name="databaseFormat">Specifies the internal format of instance databases specific to the SQL
/// engine version.
/// Possible values include: &#39;AlwaysUpToDate&#39;, &#39;SQLServer2022&#39;</param>
public ManagedInstanceProperties(string provisioningState = default(string), string managedInstanceCreateMode = default(string), string fullyQualifiedDomainName = default(string), bool? isGeneralPurposeV2 = default(bool?), string administratorLogin = default(string), string administratorLoginPassword = default(string), string subnetId = default(string), string state = default(string), string licenseType = default(string), string hybridSecondaryUsage = default(string), string hybridSecondaryUsageDetected = default(string), int? vCores = default(int?), int? storageSizeInGb = default(int?), int? storageIOps = default(int?), int? storageThroughputMBps = default(int?), string collation = default(string), string dnsZone = default(string), string dnsZonePartner = default(string), bool? publicDataEndpointEnabled = default(bool?), string sourceManagedInstanceId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), string proxyOverride = default(string), string timezoneId = default(string), string instancePoolId = default(string), string maintenanceConfigurationId = default(string), System.Collections.Generic.IList<ManagedInstancePecProperty> privateEndpointConnections = default(System.Collections.Generic.IList<ManagedInstancePecProperty>), string minimalTlsVersion = default(string), string currentBackupStorageRedundancy = default(string), string requestedBackupStorageRedundancy = default(string), bool? zoneRedundant = default(bool?), string primaryUserAssignedIdentityId = default(string), string keyId = default(string), ManagedInstanceExternalAdministrator administrators = default(ManagedInstanceExternalAdministrator), ServicePrincipal servicePrincipal = default(ServicePrincipal), string virtualClusterId = default(string), string externalGovernanceStatus = default(string), string pricingModel = default(string), System.DateTime? createTime = default(System.DateTime?), string authenticationMetadata = default(string), string databaseFormat = default(string))
/// Possible values include: &#39;AlwaysUpToDate&#39;, &#39;SQLServer2022&#39;, &#39;SQLServer2025&#39;</param>

/// <param name="requestedLogicalAvailabilityZone">Specifies the logical availability zone Managed Instance is pinned to.
/// Possible values include: &#39;NoPreference&#39;, &#39;1&#39;, &#39;2&#39;, &#39;3&#39;</param>
public ManagedInstanceProperties(string provisioningState = default(string), string managedInstanceCreateMode = default(string), string fullyQualifiedDomainName = default(string), bool? isGeneralPurposeV2 = default(bool?), string administratorLogin = default(string), string administratorLoginPassword = default(string), string subnetId = default(string), string state = default(string), string licenseType = default(string), string hybridSecondaryUsage = default(string), string hybridSecondaryUsageDetected = default(string), int? vCores = default(int?), int? storageSizeInGb = default(int?), int? storageIOps = default(int?), int? storageThroughputMBps = default(int?), int? memorySizeInGb = default(int?), string collation = default(string), string dnsZone = default(string), string dnsZonePartner = default(string), bool? publicDataEndpointEnabled = default(bool?), string sourceManagedInstanceId = default(string), System.DateTime? restorePointInTime = default(System.DateTime?), string proxyOverride = default(string), string timezoneId = default(string), string instancePoolId = default(string), string maintenanceConfigurationId = default(string), System.Collections.Generic.IList<ManagedInstancePecProperty> privateEndpointConnections = default(System.Collections.Generic.IList<ManagedInstancePecProperty>), string minimalTlsVersion = default(string), string currentBackupStorageRedundancy = default(string), string requestedBackupStorageRedundancy = default(string), bool? zoneRedundant = default(bool?), string primaryUserAssignedIdentityId = default(string), string keyId = default(string), ManagedInstanceExternalAdministrator administrators = default(ManagedInstanceExternalAdministrator), ServicePrincipal servicePrincipal = default(ServicePrincipal), string virtualClusterId = default(string), string externalGovernanceStatus = default(string), string pricingModel = default(string), System.DateTime? createTime = default(System.DateTime?), string authenticationMetadata = default(string), string databaseFormat = default(string), string requestedLogicalAvailabilityZone = default(string))

{
this.ProvisioningState = provisioningState;
Expand All @@ -199,6 +209,7 @@ public ManagedInstanceProperties()
this.StorageSizeInGb = storageSizeInGb;
this.StorageIOps = storageIOps;
this.StorageThroughputMBps = storageThroughputMBps;
this.MemorySizeInGb = memorySizeInGb;
this.Collation = collation;
this.DnsZone = dnsZone;
this.DnsZonePartner = dnsZonePartner;
Expand All @@ -224,6 +235,7 @@ public ManagedInstanceProperties()
this.CreateTime = createTime;
this.AuthenticationMetadata = authenticationMetadata;
this.DatabaseFormat = databaseFormat;
this.RequestedLogicalAvailabilityZone = requestedLogicalAvailabilityZone;
CustomInit();
}

Expand Down Expand Up @@ -314,14 +326,15 @@ public ManagedInstanceProperties()
public string HybridSecondaryUsageDetected {get; private set; }

/// <summary>
/// Gets or sets the number of vCores. Allowed values: 8, 16, 24, 32, 40, 64,
/// 80.
/// Gets or sets the number of vCores. Allowed values: 4, 6, 8, 10, 12, 16, 20,
/// 24, 32, 40, 48, 56, 64, 80, 96, 128. Supported vCores depends on the
/// selected hardware family and service tier.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "vCores")]
public int? VCores {get; set; }

/// <summary>
/// Gets or sets storage size in GB. Minimum value: 32. Maximum value: 16384.
/// Gets or sets storage size in GB. Minimum value: 32. Maximum value: 32768.
/// Increments of 32 GB allowed only. Maximum value depends on the selected
/// hardware family and number of vCores.
/// </summary>
Expand All @@ -343,6 +356,14 @@ public ManagedInstanceProperties()
[Newtonsoft.Json.JsonProperty(PropertyName = "storageThroughputMBps")]
public int? StorageThroughputMBps {get; set; }

/// <summary>
/// Gets or sets memory size in GB. Minimum value: 28. Maximum value: 870.
/// Minimum and maximum value depend on the number of vCores and service tier.
/// Read more about resource limits: https://aka.ms/mi-resource-limits-api.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "memorySizeInGB")]
public int? MemorySizeInGb {get; set; }

/// <summary>
/// Gets or sets collation of the managed instance.
/// </summary>
Expand Down Expand Up @@ -448,7 +469,7 @@ public ManagedInstanceProperties()
public string RequestedBackupStorageRedundancy {get; set; }

/// <summary>
/// Gets or sets whether or not the multi-az is enabled.
/// Gets or sets whether or not the zone-redundancy is enabled.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "zoneRedundant")]
public bool? ZoneRedundant {get; set; }
Expand All @@ -467,10 +488,10 @@ public ManagedInstanceProperties()
public string KeyId {get; set; }

/// <summary>
/// Gets or sets the Azure Active Directory administrator of the instance. This
/// can only be used at instance create time. If used for instance update, it
/// will be ignored or it will result in an error. For updates individual APIs
/// will need to be used.
/// Gets or sets the Azure Active Directory administrator can be utilized
/// during instance creation and for instance updates, except for the
/// azureADOnlyAuthentication property. To update the azureADOnlyAuthentication
/// property, individual API must be used.
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "administrators")]
public ManagedInstanceExternalAdministrator Administrators {get; set; }
Expand All @@ -494,7 +515,7 @@ public ManagedInstanceProperties()
public string ExternalGovernanceStatus {get; private set; }

/// <summary>
/// Gets or sets weather or not Managed Instance is freemium. Possible values include: &#39;Regular&#39;, &#39;Freemium&#39;
/// Gets or sets pricing model of Managed Instance. Possible values include: &#39;Regular&#39;, &#39;Freemium&#39;
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "pricingModel")]
public string PricingModel {get; set; }
Expand All @@ -514,9 +535,16 @@ public ManagedInstanceProperties()

/// <summary>
/// Gets or sets specifies the internal format of instance databases specific
/// to the SQL engine version. Possible values include: &#39;AlwaysUpToDate&#39;, &#39;SQLServer2022&#39;
/// to the SQL engine version. Possible values include: &#39;AlwaysUpToDate&#39;, &#39;SQLServer2022&#39;, &#39;SQLServer2025&#39;
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "databaseFormat")]
public string DatabaseFormat {get; set; }

/// <summary>
/// Gets or sets specifies the logical availability zone Managed Instance is
/// pinned to. Possible values include: &#39;NoPreference&#39;, &#39;1&#39;, &#39;2&#39;, &#39;3&#39;
/// </summary>
[Newtonsoft.Json.JsonProperty(PropertyName = "requestedLogicalAvailabilityZone")]
public string RequestedLogicalAvailabilityZone {get; set; }
}
}
Loading