зеркало из https://github.com/microsoft/azure-cli.git
Fix issue in storage api version and command reg
This commit is contained in:
Родитель
132b472a38
Коммит
e2edf10e6b
|
@ -87,7 +87,7 @@ artifacts/
|
|||
.noseids
|
||||
|
||||
# local Azure configuration
|
||||
.config/
|
||||
.azure-config/
|
||||
|
||||
# Python version
|
||||
.python-version
|
||||
|
|
|
@ -72,7 +72,7 @@ AZURE_API_PROFILES = {
|
|||
ResourceType.MGMT_RESOURCE_POLICY: '2016-04-01',
|
||||
ResourceType.MGMT_RESOURCE_RESOURCES: '2017-05-10',
|
||||
ResourceType.MGMT_RESOURCE_SUBSCRIPTIONS: '2016-06-01',
|
||||
ResourceType.DATA_STORAGE: '2016-05-31'
|
||||
ResourceType.DATA_STORAGE: '2017-04-17'
|
||||
},
|
||||
'2017-03-09-profile': {
|
||||
ResourceType.MGMT_STORAGE: '2015-06-15',
|
||||
|
|
|
@ -58,8 +58,8 @@ cli_command(__name__, 'storage account show-usage', custom_path + 'show_storage_
|
|||
cli_command(__name__, 'storage account show-connection-string', custom_path + 'show_storage_account_connection_string')
|
||||
cli_command(__name__, 'storage account keys renew', mgmt_path + 'regenerate_key', factory, transform=lambda x: getattr(x, 'keys', x))
|
||||
cli_command(__name__, 'storage account keys list', mgmt_path + 'list_keys', factory, transform=lambda x: getattr(x, 'keys', x))
|
||||
cli_command(__name__, 'storage account create', custom_path + 'create_storage_account_with_account_type', max_api='2015-06-15')
|
||||
cli_command(__name__, 'storage account create', custom_path + 'create_storage_account', min_api='2016-12-01')
|
||||
cli_command(__name__, 'storage account create', custom_path + 'create_storage_account_with_account_type', resource_type=ResourceType.MGMT_STORAGE, max_api='2015-06-15')
|
||||
cli_command(__name__, 'storage account create', custom_path + 'create_storage_account', resource_type=ResourceType.MGMT_STORAGE, min_api='2016-12-01')
|
||||
|
||||
if supported_api_version(ResourceType.MGMT_STORAGE, min_api='2016-12-01'):
|
||||
cli_generic_update_command(__name__, 'storage account update',
|
||||
|
|
|
@ -30,7 +30,7 @@ CLASSIFIERS = [
|
|||
]
|
||||
|
||||
DEPENDENCIES = [
|
||||
'azure-multiapi-storage==0.1.0',
|
||||
'azure-multiapi-storage==0.1.2',
|
||||
'azure-mgmt-storage==1.2.0',
|
||||
'azure-cli-core',
|
||||
]
|
||||
|
|
|
@ -37,7 +37,7 @@ DEPENDENCIES = [
|
|||
'azure-keyvault==0.3.4',
|
||||
'azure-mgmt-network==1.3.0',
|
||||
'azure-mgmt-resource==1.1.0',
|
||||
'azure-multiapi-storage==0.1.0',
|
||||
'azure-multiapi-storage==0.1.2',
|
||||
'azure-cli-core'
|
||||
]
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче