From 873afe1796b2cb818d94be8b18eba0f707426130 Mon Sep 17 00:00:00 2001 From: Xiang Yan Date: Wed, 2 Oct 2019 14:34:15 -0700 Subject: [PATCH 1/2] update app config dependencies --- sdk/appconfiguration/azure-appconfiguration/setup.py | 4 ++-- shared_requirements.txt | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/sdk/appconfiguration/azure-appconfiguration/setup.py b/sdk/appconfiguration/azure-appconfiguration/setup.py index e52c9a625ac..b48a84ffbe4 100644 --- a/sdk/appconfiguration/azure-appconfiguration/setup.py +++ b/sdk/appconfiguration/azure-appconfiguration/setup.py @@ -85,8 +85,8 @@ zip_safe=False, packages=find_packages(exclude=exclude_packages), install_requires=[ - "msrest>=0.5.0", - "azure-core<2.0.0,>=1.0.0b2", + "msrest>=0.6.10", + "azure-core<2.0.0,>=1.0.0b4", ], extras_require={ ":python_version<'3.0'": ['azure-nspkg'], diff --git a/shared_requirements.txt b/shared_requirements.txt index 601385e1a45..f234991091e 100644 --- a/shared_requirements.txt +++ b/shared_requirements.txt @@ -109,4 +109,6 @@ six>=1.6 #override azure-eventhub azure-core<2.0.0,>=1.0.0b4 #override azure-cosmos azure-core<2.0.0,>=1.0.0b3 #override azure-eventhub-checkpointstoreblob-aio azure-storage-blob<=12.0.0b4,>=12.0.0b2 -#override azure-eventhub-checkpointstoreblob-aio aiohttp<4.0,>=3.0 \ No newline at end of file +#override azure-eventhub-checkpointstoreblob-aio aiohttp<4.0,>=3.0 +#override azure-appconfiguration azure-core<2.0.0,>=1.0.0b4 +#override azure-appconfiguration msrest>=0.6.10 \ No newline at end of file From 8d2ef054dc7e45c916f9fedaecbe1a6ec664d825 Mon Sep 17 00:00:00 2001 From: Xiang Yan Date: Thu, 3 Oct 2019 13:07:11 -0700 Subject: [PATCH 2/2] update readme and history --- .../azure-appconfiguration/HISTORY.md | 3 +++ .../azure-appconfiguration/README.md | 25 ++++--------------- 2 files changed, 8 insertions(+), 20 deletions(-) diff --git a/sdk/appconfiguration/azure-appconfiguration/HISTORY.md b/sdk/appconfiguration/azure-appconfiguration/HISTORY.md index 670264ae08d..a042e5fea81 100644 --- a/sdk/appconfiguration/azure-appconfiguration/HISTORY.md +++ b/sdk/appconfiguration/azure-appconfiguration/HISTORY.md @@ -3,6 +3,9 @@ # Release History ------------------- +## 2019-10-07 Version 1.0.0b4 +- Add conditional operation support +- Add set_read_only and clear_read_only methods ## 2019-09-09 Version 1.0.0b3 - New azure app configuration \ No newline at end of file diff --git a/sdk/appconfiguration/azure-appconfiguration/README.md b/sdk/appconfiguration/azure-appconfiguration/README.md index 9750dc9cd3d..90ad757be2f 100644 --- a/sdk/appconfiguration/azure-appconfiguration/README.md +++ b/sdk/appconfiguration/azure-appconfiguration/README.md @@ -87,10 +87,9 @@ The following sections provide several code snippets covering some of the most c - [Configuration Setting](#configuration-setting) - [Examples](#examples) - [Create a Configuration Setting](#create-a-configuration-setting) - - [Retrieve a Configuration Setting](#retrieve-a-configuration-setting) - - [Update a Configuration Setting](#update-a-configuration-setting) + - [Get a Configuration Setting](#get-a-configuration-setting) - [Delete a Configuration Setting](#delete-a-configuration-setting) - - [Query Configuration Settings](#query-configuration-settings) + - [List Configuration Settings](#list-configuration-settings) - [Async Client](#async-client) - [Troubleshooting](#troubleshooting) - [Logging](#logging) @@ -120,8 +119,8 @@ config_setting = ConfigurationSetting( returned_config_setting = client.set_configuration_setting(config_setting) ``` -### Retrieve a Configuration Setting -Retrieve a previously stored Configuration Setting. +### Get a Configuration Setting +Get a previously stored Configuration Setting. ```python fetched_config_setting = client.get_configuration_setting( @@ -129,20 +128,6 @@ fetched_config_setting = client.get_configuration_setting( ) ``` -### Update a Configuration Setting -Use set_configuration_setting if you want to update a whole Configuration Setting object to the store. - -Use update_configuration_setting if you want to only update some attributes and leave other attributes as what they're - -```python -# key and label are the identifier of the setting. Only value will be updated. -updated_kv = client.update_configuration_setting( - key="MyKey", - label="MyLabel", - value="my updated value" -) -``` - ### Delete a Configuration Setting Delete an existing Configuration Setting by calling delete_configuration_setting @@ -152,7 +137,7 @@ deleted_config_setting = client.delete_configuration_setting( ) ``` -### Query Configuration Settings +### List Configuration Settings ```python filtered_listed = client.list_configuration_settings(