Skip to content

Commit 9958b22

Browse files
committed
rename autoPauseDelay into autoPauseDelayMinutes
1 parent afdc0aa commit 9958b22

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

src/Sql/Sql.Test/ScenarioTests/DatabaseCrudTests.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ function Test-CreateServerlessDatabase
198198
{
199199
# Create with Edition and RequestedServiceObjectiveName
200200
$databaseName = Get-DatabaseName
201-
$job1 = New-AzSqlDatabase -ResourceGroupName $rg.ResourceGroupName -ServerName $server.ServerName -DatabaseName $databaseName -RequestedServiceObjectiveName GP_S_Gen5_2 -AutoPauseDelay 360 -MinVCore 0.5 -AsJob
201+
$job1 = New-AzSqlDatabase -ResourceGroupName $rg.ResourceGroupName -ServerName $server.ServerName -DatabaseName $databaseName -RequestedServiceObjectiveName GP_S_Gen5_2 -AutoPauseDelayMinutes 360 -MinVCore 0.5 -AsJob
202202
$job1 | Wait-Job
203203
$db = $job1.Output
204204

@@ -599,7 +599,7 @@ function Test-UpdateServerlessDatabase()
599599

600600
# Alter mincapacity and autopausedelay
601601
$job = Set-AzSqlDatabase -ResourceGroupName $db.ResourceGroupName -ServerName $db.ServerName -DatabaseName $db.DatabaseName `
602-
-Vcore 2 -Edition GeneralPurpose -ComputeModel Serverless -ComputeGeneration Gen5 -MinCapacity 2 -AutoPauseDelay 1440 -AsJob
602+
-Vcore 2 -Edition GeneralPurpose -ComputeModel Serverless -ComputeGeneration Gen5 -MinCapacity 2 -AutoPauseDelayMinutes 1440 -AsJob
603603
$job | Wait-Job
604604
$db1 = $job.Output
605605
Assert-AreEqual $db1.DatabaseName $db.DatabaseName

src/Sql/Sql/Database/Cmdlet/NewAzureSqlDatabase.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public class NewAzureSqlDatabase : AzureSqlDatabaseCmdletBase<AzureSqlDatabaseCr
174174
/// </summary>
175175
[Parameter(Mandatory = false,
176176
HelpMessage = "The auto pause delay in minutes for database(serverless only), -1 to opt out")]
177-
public int? AutoPauseDelay { get; set; }
177+
public int? AutoPauseDelayMinutes { get; set; }
178178

179179
/// <summary>
180180
/// Gets or sets the Minimal capacity that database will always have allocated, if not paused
@@ -244,7 +244,7 @@ protected override AzureSqlDatabaseCreateOrUpdateModel ApplyUserInputToModel(Azu
244244
ReadScale = ReadScale,
245245
ZoneRedundant = MyInvocation.BoundParameters.ContainsKey("ZoneRedundant") ? (bool?)ZoneRedundant.ToBool() : null,
246246
LicenseType = LicenseType, // note: default license type will be LicenseIncluded in SQL RP if not specified
247-
AutoPauseDelay = AutoPauseDelay,
247+
AutoPauseDelay = AutoPauseDelayMinutes,
248248
MinCapacity = MinCapacity,
249249
};
250250

src/Sql/Sql/Database/Cmdlet/SetAzureSqlDatabase.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public class SetAzureSqlDatabase : AzureSqlDatabaseCmdletBase<IEnumerable<AzureS
199199
[Parameter(Mandatory = false,
200200
HelpMessage = "The auto pause delay in minutes for database (serverless only), -1 to opt out",
201201
ParameterSetName = VcoreDatabaseParameterSet)]
202-
public int? AutoPauseDelay { get; set; }
202+
public int? AutoPauseDelayMinutes { get; set; }
203203

204204
/// <summary>
205205
/// Gets or sets the Minimal capacity that database will always have allocated, if not paused
@@ -255,7 +255,7 @@ protected override IEnumerable<AzureSqlDatabaseModel> ApplyUserInputToModel(IEnu
255255
? (bool?)ZoneRedundant.ToBool()
256256
: null,
257257
LicenseType = LicenseType ?? model.FirstOrDefault().LicenseType, // set to original license type
258-
AutoPauseDelay = AutoPauseDelay,
258+
AutoPauseDelay = AutoPauseDelayMinutes,
259259
MinCapacity = MinCapacity,
260260
};
261261

src/Sql/Sql/help/New-AzSqlDatabase.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Creates a database or an elastic database.
1818
New-AzSqlDatabase -DatabaseName <String> [-CollationName <String>] [-CatalogCollation <String>]
1919
[-MaxSizeBytes <Int64>] [-Edition <String>] [-RequestedServiceObjectiveName <String>]
2020
[-ElasticPoolName <String>] [-ReadScale <DatabaseReadScale>] [-Tags <Hashtable>] [-SampleName <String>]
21-
[-ZoneRedundant] [-AsJob] [-LicenseType <String>] [-AutoPauseDelay <Int32>] [-MinCapacity <Double>]
21+
[-ZoneRedundant] [-AsJob] [-LicenseType <String>] [-AutoPauseDelayMinutes <Int32>] [-MinCapacity <Double>]
2222
[-ServerName] <String> [-ResourceGroupName] <String> [-DefaultProfile <IAzureContextContainer>] [-WhatIf]
2323
[-Confirm] [<CommonParameters>]
2424
```
@@ -28,7 +28,7 @@ New-AzSqlDatabase -DatabaseName <String> [-CollationName <String>] [-CatalogColl
2828
New-AzSqlDatabase -DatabaseName <String> [-CollationName <String>] [-CatalogCollation <String>]
2929
[-MaxSizeBytes <Int64>] -Edition <String> [-ReadScale <DatabaseReadScale>] [-Tags <Hashtable>]
3030
[-SampleName <String>] [-ZoneRedundant] [-AsJob] -VCore <Int32> -ComputeGeneration <String>
31-
[-LicenseType <String>] [-ComputeModel <String>] [-AutoPauseDelay <Int32>] [-MinCapacity <Double>]
31+
[-LicenseType <String>] [-ComputeModel <String>] [-AutoPauseDelayMinutes <Int32>] [-MinCapacity <Double>]
3232
[-ServerName] <String> [-ResourceGroupName] <String> [-DefaultProfile <IAzureContextContainer>] [-WhatIf]
3333
[-Confirm] [<CommonParameters>]
3434
```
@@ -164,7 +164,7 @@ Accept pipeline input: False
164164
Accept wildcard characters: False
165165
```
166166
167-
### -AutoPauseDelay
167+
### -AutoPauseDelayMinutes
168168
The auto pause delay in minutes for database(serverless only), -1 to opt out
169169
170170
```yaml

src/Sql/Sql/help/Set-AzSqlDatabase.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Sets properties for a database, or moves an existing database into an elastic po
1818
Set-AzSqlDatabase [-DatabaseName] <String> [-MaxSizeBytes <Int64>] [-Edition <String>]
1919
[-RequestedServiceObjectiveName <String>] [-ElasticPoolName <String>] [-ReadScale <DatabaseReadScale>]
2020
[-Tags <Hashtable>] [-ZoneRedundant] [-AsJob] [-LicenseType <String>] [-ComputeModel <String>]
21-
[-AutoPauseDelay <Int32>] [-MinCapacity <Double>] [-ServerName] <String>
21+
[-AutoPauseDelayMinutes <Int32>] [-MinCapacity <Double>] [-ServerName] <String>
2222
[-ResourceGroupName] <String> [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm]
2323
[<CommonParameters>]
2424
```
@@ -28,7 +28,7 @@ Set-AzSqlDatabase [-DatabaseName] <String> [-MaxSizeBytes <Int64>] [-Edition <St
2828
Set-AzSqlDatabase [-DatabaseName] <String> [-MaxSizeBytes <Int64>] [-Edition <String>]
2929
[-ReadScale <DatabaseReadScale>] [-Tags <Hashtable>] [-ZoneRedundant] [-AsJob] [-VCore <Int32>]
3030
[-ComputeGeneration <String>] [-LicenseType <String>] [-ComputeModel <String>]
31-
[-AutoPauseDelay <Int32>] [-MinCapacity <Double>] [-ServerName] <String>
31+
[-AutoPauseDelayMinutes <Int32>] [-MinCapacity <Double>] [-ServerName] <String>
3232
[-ResourceGroupName] <String> [-DefaultProfile <IAzureContextContainer>] [-WhatIf] [-Confirm]
3333
[<CommonParameters>]
3434
```
@@ -137,7 +137,7 @@ Accept pipeline input: False
137137
Accept wildcard characters: False
138138
```
139139
140-
### -AutoPauseDelay
140+
### -AutoPauseDelayMinutes
141141
The auto pause delay in minutes for database (serverless only), -1 to opt out
142142
143143
```yaml

0 commit comments

Comments
 (0)