Skip to content

Support for Serverless specific parameters for CRUD #9105

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

Merged
merged 20 commits into from
May 3, 2019
Merged

Support for Serverless specific parameters for CRUD #9105

merged 20 commits into from
May 3, 2019

Conversation

mykolian
Copy link
Member

@mykolian mykolian commented Apr 26, 2019

Description

Adding MinCapacity and AutoPauseDelay and ComputeModel optional parameters for Serverless databases CRUD

Checklist

@jamestao jamestao added this to the 2019-05-06 (BUILD) milestone Apr 26, 2019
@adxsdkps
Copy link
Collaborator

Can one of the admins verify this patch?

@mykolian mykolian requested a review from akromm-zz April 26, 2019 22:00
.SYNOPSIS
Tests updating a vcore database
#>
function Test-UpdateServerlessDatabase()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good test, thx

jaredmoo
jaredmoo previously approved these changes Apr 29, 2019
@markcowl
Copy link
Member

Copy link
Contributor

@jaredmoo jaredmoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

MinimumCapacity was correct. Not MinimumVCoreCapacity.

{
if (string.IsNullOrWhiteSpace(tier))
{
return null;
}

return SqlSkuUtils.GetVcoreSkuPrefix(tier) ?? tier;
return (SqlSkuUtils.GetVcoreSkuPrefix(tier) ?? tier) + (isServerless ? "_S" : "");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is already a unit test for this method, would be nice if you added isServerless coverage to that test.

@@ -213,6 +223,8 @@ public AzureSqlDatabaseModel(string resourceGroup, string serverName, Management
ReadScale = readScale;

ZoneRedundant = false;
AutoPauseDelayInMinutes = null;
MinimumCapacity = null;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should be setting these. Otherwise they will always be null in response!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, I'm wrong. This is converting from legacy model

Copy link
Contributor

@jaredmoo jaredmoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need response values to be populated

@markcowl markcowl removed this from the 2019-05-06 (BUILD) milestone May 1, 2019
@markcowl
Copy link
Member

markcowl commented May 1, 2019

@azuresdkci add to whitelist

@markcowl
Copy link
Member

markcowl commented May 1, 2019

Marked as do not merge until the release branch is merged back

@markcowl markcowl merged commit ff4f18d into Azure:master May 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants