Skip to content

Commit 7b6baf6

Browse files
Add MemorySizeInGB parameter for SQL Managed Instance CRUD (#28341)
1 parent 348232c commit 7b6baf6

File tree

38 files changed

+81545
-2006
lines changed

38 files changed

+81545
-2006
lines changed

src/Sql/Sql.Management.Sdk/Generated/IManagedInstancesOperations.cs

Lines changed: 116 additions & 14 deletions
Large diffs are not rendered by default.

src/Sql/Sql.Management.Sdk/Generated/ManagedInstancesOperations.cs

Lines changed: 671 additions & 202 deletions
Large diffs are not rendered by default.

src/Sql/Sql.Management.Sdk/Generated/ManagedInstancesOperationsExtensions.cs

Lines changed: 192 additions & 16 deletions
Large diffs are not rendered by default.

src/Sql/Sql.Management.Sdk/Generated/Models/ManagedInstance.cs

Lines changed: 69 additions & 32 deletions
Large diffs are not rendered by default.

src/Sql/Sql.Management.Sdk/Generated/Models/ManagedInstanceDatabaseFormat.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@ public static class ManagedInstanceDatabaseFormat
1515
{
1616
public const string AlwaysUpToDate = "AlwaysUpToDate";
1717
public const string SQLServer2022 = "SQLServer2022";
18+
public const string SQLServer2025 = "SQLServer2025";
1819
}
1920
}

src/Sql/Sql.Management.Sdk/Generated/Models/ManagedInstanceProperties.cs

Lines changed: 48 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,12 @@ public ManagedInstanceProperties()
6969
/// DR).
7070
/// Possible values include: &#39;Active&#39;, &#39;Passive&#39;</param>
7171

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

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

91+
/// <param name="memorySizeInGb">Memory size in GB. Minimum value: 28. Maximum value: 870. Minimum and
92+
/// maximum value depend on the number of vCores and service tier. Read more
93+
/// about resource limits: https://aka.ms/mi-resource-limits-api.
94+
/// </param>
95+
8996
/// <param name="collation">Collation of the managed instance.
9097
/// </param>
9198

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

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

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

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

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

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

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

181188
/// <param name="databaseFormat">Specifies the internal format of instance databases specific to the SQL
182189
/// engine version.
183-
/// Possible values include: &#39;AlwaysUpToDate&#39;, &#39;SQLServer2022&#39;</param>
184-
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))
190+
/// Possible values include: &#39;AlwaysUpToDate&#39;, &#39;SQLServer2022&#39;, &#39;SQLServer2025&#39;</param>
191+
192+
/// <param name="requestedLogicalAvailabilityZone">Specifies the logical availability zone Managed Instance is pinned to.
193+
/// Possible values include: &#39;NoPreference&#39;, &#39;1&#39;, &#39;2&#39;, &#39;3&#39;</param>
194+
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))
185195

186196
{
187197
this.ProvisioningState = provisioningState;
@@ -199,6 +209,7 @@ public ManagedInstanceProperties()
199209
this.StorageSizeInGb = storageSizeInGb;
200210
this.StorageIOps = storageIOps;
201211
this.StorageThroughputMBps = storageThroughputMBps;
212+
this.MemorySizeInGb = memorySizeInGb;
202213
this.Collation = collation;
203214
this.DnsZone = dnsZone;
204215
this.DnsZonePartner = dnsZonePartner;
@@ -224,6 +235,7 @@ public ManagedInstanceProperties()
224235
this.CreateTime = createTime;
225236
this.AuthenticationMetadata = authenticationMetadata;
226237
this.DatabaseFormat = databaseFormat;
238+
this.RequestedLogicalAvailabilityZone = requestedLogicalAvailabilityZone;
227239
CustomInit();
228240
}
229241

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

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

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

359+
/// <summary>
360+
/// Gets or sets memory size in GB. Minimum value: 28. Maximum value: 870.
361+
/// Minimum and maximum value depend on the number of vCores and service tier.
362+
/// Read more about resource limits: https://aka.ms/mi-resource-limits-api.
363+
/// </summary>
364+
[Newtonsoft.Json.JsonProperty(PropertyName = "memorySizeInGB")]
365+
public int? MemorySizeInGb {get; set; }
366+
346367
/// <summary>
347368
/// Gets or sets collation of the managed instance.
348369
/// </summary>
@@ -448,7 +469,7 @@ public ManagedInstanceProperties()
448469
public string RequestedBackupStorageRedundancy {get; set; }
449470

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

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

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

515536
/// <summary>
516537
/// Gets or sets specifies the internal format of instance databases specific
517-
/// to the SQL engine version. Possible values include: &#39;AlwaysUpToDate&#39;, &#39;SQLServer2022&#39;
538+
/// to the SQL engine version. Possible values include: &#39;AlwaysUpToDate&#39;, &#39;SQLServer2022&#39;, &#39;SQLServer2025&#39;
518539
/// </summary>
519540
[Newtonsoft.Json.JsonProperty(PropertyName = "databaseFormat")]
520541
public string DatabaseFormat {get; set; }
542+
543+
/// <summary>
544+
/// Gets or sets specifies the logical availability zone Managed Instance is
545+
/// pinned to. Possible values include: &#39;NoPreference&#39;, &#39;1&#39;, &#39;2&#39;, &#39;3&#39;
546+
/// </summary>
547+
[Newtonsoft.Json.JsonProperty(PropertyName = "requestedLogicalAvailabilityZone")]
548+
public string RequestedLogicalAvailabilityZone {get; set; }
521549
}
522550
}

0 commit comments

Comments
 (0)