From d7d4dc1e21db07cf25a75a9f73dca312c5f628ff Mon Sep 17 00:00:00 2001 From: Rohit Joy Date: Tue, 27 Feb 2018 10:30:54 -0800 Subject: [PATCH] Update MySQL and PostgreSQL help text and sku-name parameter. (#82) * Update help and sku-name parameter. * Update version and download URL. * Fix index.json. --- src/index.json | 10 +++++----- src/rdbms/azext_rdbms/_help.py | 4 ++-- src/rdbms/azext_rdbms/_params.py | 2 +- src/rdbms/setup.py | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/index.json b/src/index.json index 866596c8947..e203d36f1a0 100644 --- a/src/index.json +++ b/src/index.json @@ -505,9 +505,9 @@ ], "rdbms": [ { - "filename": "rdbms-0.0.1-py2.py3-none-any.whl", - "sha256Digest": "79ebef22a4d68f2a3f1909523357aadf6167def54d2ba4de84d1b9932fcb9eac", - "downloadUrl": "https://prodrdbmsclipackages.blob.core.windows.net/cliextensions/rdbms-0.0.1-py2.py3-none-any.whl", + "filename": "rdbms-0.0.2-py2.py3-none-any.whl", + "sha256Digest": "f7c347df4766e593e953862dfa1f08e938fb8054821b3b507f99f7e4306b4b21", + "downloadUrl": "https://prodrdbmsclipackages.blob.core.windows.net/cliextensions/rdbms-0.0.2-py2.py3-none-any.whl", "metadata": { "classifiers": [ "Development Status :: 4 - Beta", @@ -543,8 +543,8 @@ "license": "MIT", "metadata_version": "2.0", "name": "rdbms", - "summary": "An Azure CLI extension to manage Azure MySQL and Azure PostgreSQL resources", - "version": "0.0.1" + "summary": "An Azure CLI Extension to manage Azure MySQL and Azure PostgreSQL resources", + "version": "0.0.2" } } ], diff --git a/src/rdbms/azext_rdbms/_help.py b/src/rdbms/azext_rdbms/_help.py index 7f88fa92368..f22b095e98d 100644 --- a/src/rdbms/azext_rdbms/_help.py +++ b/src/rdbms/azext_rdbms/_help.py @@ -25,10 +25,10 @@ def add_helps(command_group, server_type): text: az {1} server create -l northeurope -g testgroup -n testsvr -u username -p password - name: Create a {0} server with a Standard performance tier and 2 vcore in North Europe. text: az {1} server create -l northeurope -g testgroup -n testsvr -u username -p password \\ - --performance-tier Standard --vcore 2 + --sku-name GP_Gen4_2 - name: Create a {0} server with all paramaters set. text: az {1} server create -l northeurope -g testgroup -n testsvr -u username -p password \\ - --performance-tier Basic --vcore 2 --ssl-enforcement Disabled \\ + --sku-name B_Gen4_2 --ssl-enforcement Disabled \\ --storage-size 51200 --tags "key=value" --version {{server-version}} """.format(server_type, command_group) helps['{} server restore'.format(command_group)] = """ diff --git a/src/rdbms/azext_rdbms/_params.py b/src/rdbms/azext_rdbms/_params.py index 64e471f2cee..712e58b2dec 100644 --- a/src/rdbms/azext_rdbms/_params.py +++ b/src/rdbms/azext_rdbms/_params.py @@ -68,7 +68,7 @@ def _complex_params(command_group, engine): for scope in ['mysql', 'postgres']: with self.argument_context(scope) as c: - c.argument('name', options_list=['--sku-name']) + c.argument('name', options_list=['--sku-name'], required=True) c.argument('server_name', completer=server_completers[scope], options_list=['--server-name', '-s'], help='Name of the server.') for scope in ['mysql server', 'postgres server']: diff --git a/src/rdbms/setup.py b/src/rdbms/setup.py index 28bda04297c..b8eeebf0078 100644 --- a/src/rdbms/setup.py +++ b/src/rdbms/setup.py @@ -8,7 +8,7 @@ from codecs import open from setuptools import setup, find_packages -VERSION = "0.0.1" +VERSION = "0.0.2" CLASSIFIERS = [ 'Development Status :: 4 - Beta',