Skip to content
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

[storage-preview] Bump azure_mgmt_storage to 2022_09_01 and clear out-of-date commands #6149

Merged
merged 31 commits into from
Apr 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
f2b5085
sync up `az storage account create` with main repo
MoChilia Mar 27, 2023
75aaa7c
Merge branch 'main' of https://github.com/Azure/azure-cli-extensions …
MoChilia Mar 28, 2023
1c6f101
update test recording
MoChilia Mar 29, 2023
dd66b62
sync up storage account update
MoChilia Mar 29, 2023
976cfdb
update test recording
MoChilia Mar 29, 2023
65f3e64
remove `az storage Account NetworkRule` in extension
MoChilia Mar 29, 2023
c468d86
Merge branch 'main' of https://github.com/Azure/azure-cli-extensions …
MoChilia Mar 29, 2023
8ca3044
update test
MoChilia Mar 29, 2023
0bf1959
remove `az storage account local-user` from extensions
MoChilia Mar 29, 2023
4def3a7
remove `az storage file upload/upload-batch`, `az storage fs service-…
MoChilia Mar 30, 2023
1aacfbe
remove help
MoChilia Mar 30, 2023
619efa4
remove unused parameter
MoChilia Mar 30, 2023
c2b02bf
Merge branch 'main' into syncup_storageAccountCreate
MoChilia Mar 30, 2023
5f695a1
sync tests
MoChilia Mar 31, 2023
cfbf3e2
Bump `azure-mgmt-storage` to 2022-09-01
MoChilia Mar 31, 2023
cf637e5
Merge pull request #1 from MoChilia/syncup_storageAccountCreate
MoChilia Mar 31, 2023
6194cb0
merge conflict
MoChilia Mar 31, 2023
9a638a0
merge
MoChilia Mar 31, 2023
9f4771f
Merge pull request #2 from MoChilia/remove_storageAccountNetworkRule
MoChilia Mar 31, 2023
9337345
merge conflict
MoChilia Mar 31, 2023
3d5d9fb
merge conflict
MoChilia Mar 31, 2023
8e8d67b
merge conflict
MoChilia Mar 31, 2023
33283d7
Merge pull request #3 from MoChilia/remove_storageAccountLocal-user
MoChilia Mar 31, 2023
1cba096
merge conflict
MoChilia Mar 31, 2023
18e8454
Merge pull request #4 from MoChilia/sync_storageFile
MoChilia Mar 31, 2023
ef72175
update test recordings
MoChilia Mar 31, 2023
1092efd
remove unused functions
MoChilia Apr 6, 2023
8f62776
fix static analysis
MoChilia Apr 6, 2023
217e06f
remove unused import
MoChilia Apr 6, 2023
5b3e37d
upgrade the version in setup.py and history.rst
MoChilia Apr 27, 2023
873c7b3
Merge remote-tracking branch 'origin/sync_storage_preview' into sync_…
MoChilia Apr 27, 2023
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
4 changes: 4 additions & 0 deletions src/storage-preview/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

Release History
===============
0.8.4(2023-04-27)
++++++++++++++++++
* Bump azure_mgmt_storage to 2022_09_01 and remove commands supported in azure cli

0.8.3(2022-05-24)
++++++++++++++++++
* `az storage account create/update`: Rename `--key-vault-federated-identity-client-id` to `--key-vault-federated-client-id`
Expand Down
2 changes: 1 addition & 1 deletion src/storage-preview/azext_storage_preview/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def __init__(self, cli_ctx=None):

register_resource_type('latest', CUSTOM_DATA_STORAGE, '2018-03-28')
register_resource_type('latest', CUSTOM_DATA_STORAGE_ADLS, '2019-02-02-preview')
register_resource_type('latest', CUSTOM_MGMT_STORAGE, '2021-09-01')
register_resource_type('latest', CUSTOM_MGMT_STORAGE, '2022-09-01')
register_resource_type('latest', CUSTOM_DATA_STORAGE_FILESHARE, '2020-02-10')
register_resource_type('latest', CUSTOM_DATA_STORAGE_FILEDATALAKE, '2020-06-12')

Expand Down
115 changes: 0 additions & 115 deletions src/storage-preview/azext_storage_preview/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,79 +144,6 @@
short-summary: Updates the data policy rules associated with the specified storage account.
"""

helps['storage account local-user'] = """
type: group
short-summary: Manage storage account local users.
"""

helps['storage account local-user create'] = """
type: command
short-summary: Create a local user for a given storage account.
examples:
- name: Create a local-user with two permission scopes and an ssh-authorized-key
text: >
az storage account local-user create --account-name {account-name} -g {resource-group} -n {username}
--home-directory home --permission-scope permissions=r service=blob resource-name=container1
--permission-scope permissions=rw service=file resource-name=share2 --ssh-authorized-key key="ssh-rsa a2V5"
--has-ssh-key true --has-ssh-password --has-shared-key false
"""

helps['storage account local-user update'] = """
type: command
short-summary: Update properties for a local user.
examples:
- name: Update a local-user with one permission scopes and no ssh-key
text: >
az storage account local-user update --account-name {account-name} -g {resource-group} -n {username}
--permission-scope permissions=rw service=file resource-name=share2
--has-ssh-key false
"""

helps['storage account local-user delete'] = """
type: command
short-summary: Delete a local user.
examples:
- name: Delete a local-user
text: >
az storage account local-user delete --account-name {account-name} -g {resource-group} -n {username}
"""

helps['storage account local-user list'] = """
type: command
short-summary: List local users for a storage account.
examples:
- name: List local-user for a storage account
text: >
az storage account local-user list --account-name {account-name} -g {resource-group}
"""

helps['storage account local-user show'] = """
type: command
short-summary: Show info for a local user.
examples:
- name: Show info for a local-user
text: >
az storage account local-user show --account-name {account-name} -g {resource-group} -n {username}
"""

helps['storage account local-user list-keys'] = """
type: command
short-summary: List sharedkeys and sshAuthorizedKeys for a local user.
examples:
- name: List sharedkeys and sshAuthorizedKeys for a local-user
text: >
az storage account local-user list-keys --account-name {account-name} -g {resource-group} -n {username}
"""

helps['storage account local-user regenerate-password'] = """
type: command
short-summary: Regenerate sshPassword for a local user.
examples:
- name: Regenerate sshPassword for a local-user
text: >
az storage account local-user regenerate-password --account-name {account-name} -g {resource-group} -n {username}
"""

helps['storage azcopy'] = """
type: group
short-summary: |
Expand Down Expand Up @@ -469,45 +396,3 @@
- name: Upload a set of files in a local directory to a storage blob directory.
text: az storage blob directory upload -c MyContainer --account-name MyStorageAccount -s "path/to/file*" -d directory --recursive
"""

helps['storage fs list-deleted-path'] = """
type: command
short-summary: List the deleted (file or directory) paths under the specified file system.
examples:
- name: List the deleted (file or directory) paths under the specified file system..
text: |
az storage fs list-deleted-path -f myfilesystem --account-name mystorageccount --account-key 00000000
"""

helps['storage fs service-properties'] = """
type: group
short-summary: Manage storage datalake service properties.
"""

helps['storage fs service-properties show'] = """
type: command
short-summary: Show the properties of a storage account's datalake service, including Azure Storage Analytics.
examples:
- name: Show the properties of a storage account's datalake service
text: |
az storage fs service-properties show --account-name mystorageccount --account-key 00000000
"""

helps['storage fs service-properties update'] = """
type: command
short-summary: Update the properties of a storage account's datalake service, including Azure Storage Analytics.
examples:
- name: Update the properties of a storage account's datalake service
text: |
az storage fs service-properties update --delete-retention --delete-retention-period 7 --account-name mystorageccount --account-key 00000000
"""

helps['storage fs undelete-path'] = """
type: command
short-summary: Restore soft-deleted path.
long-summary: Operation will only be successful if used within the specified number of days set in the delete retention policy.
examples:
- name: Restore soft-deleted path.
text: |
az storage fs undelete-path -f myfilesystem --deleted-path-name dir --deletion-id 0000 --account-name mystorageccount --account-key 00000000
"""
Loading