Skip to content

{Storage} Upgrade storage api version to 2021-01-01#17028

Merged
yonzhan merged 14 commits intoAzure:devfrom
Juliehzl:storage-17
Feb 23, 2021
Merged

{Storage} Upgrade storage api version to 2021-01-01#17028
yonzhan merged 14 commits intoAzure:devfrom
Juliehzl:storage-17

Conversation

@Juliehzl
Copy link
Contributor

@Juliehzl Juliehzl commented Feb 22, 2021

Description

To support new features, we have to use new package with api version 2021-01-01.

Testing Guide

History Notes

[Storage] Upgrade storage api version to 2021-01-01
[Storage] BREAKING CHANGE: az storage account file-service-properties: Default to enable delete retention policy with retention days 7 in server side


This checklist is used to make sure that common guidelines for a pull request are followed.

@Juliehzl Juliehzl changed the title [Storage] Upgrade storage api version to 20210-01-01 [Storage] Upgrade storage api version to 2021-01-01 Feb 22, 2021
@yonzhan
Copy link
Collaborator

yonzhan commented Feb 22, 2021

Storage

@yonzhan yonzhan requested review from kairu-ms and msyyc February 22, 2021 08:48
@yonzhan yonzhan added this to the S183 - For Ignite milestone Feb 22, 2021
Comment on lines 1068 to +1070
self.cmd('{cmd} show --account-name {sa} -g {rg}').assert_with_checks(
JMESPathCheck('shareDeleteRetentionPolicy', None))
JMESPathCheck('shareDeleteRetentionPolicy.enabled', True),
JMESPathCheck('shareDeleteRetentionPolicy.days', 7))
Copy link
Member

Choose a reason for hiding this comment

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

Can we add this breaking change into history notes so that customers can be aware?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure

Copy link
Contributor

@houk-ms houk-ms left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines +284 to +286
c.argument('sku', arg_type=get_enum_type(t_sku_name),
help='Note that the SKU name cannot be updated to Standard_ZRS, Premium_LRS or Premium_ZRS, '
'nor can accounts of those SKU names be updated to any other value')
Copy link
Member

Choose a reason for hiding this comment

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

The allowed values still contain Standard_ZRS, Premium_LRS and Premium_ZRS in help message. They should be removed to avoid confusion.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually you are right. There are previous sku type because they are still in model definition as you can see in
https://github.com/Azure/azure-sdk-for-python/blob/09521dfb517e0859ec961cae006fb728d787b565/sdk/storage/azure-mgmt-storage/azure/mgmt/storage/v2021_01_01/models/_models_py3.py#L5088.

Here is to align with SDK, so I haven't removed them. But I will check with service team and try to fix from swagger definition.
For CLI side, I want to keep current deign with SDK first and refine with next SDK generation for the fix.

Copy link
Member

@evelyn-ys evelyn-ys left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@aim-for-better aim-for-better left a comment

Choose a reason for hiding this comment

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

Approved from HDInsight part

@yonzhan yonzhan merged commit fffde7e into Azure:dev Feb 23, 2021
@Juliehzl Juliehzl deleted the storage-17 branch February 23, 2021 05:04
@Juliehzl Juliehzl changed the title [Storage] Upgrade storage api version to 2021-01-01 {Storage} Upgrade storage api version to 2021-01-01 Feb 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants