Skip to content

Commit

Permalink
update app config dependencies (#7564)
Browse files Browse the repository at this point in the history
* update app config dependencies

* update readme and history
  • Loading branch information
xiangyan99 authored Oct 3, 2019
1 parent e098030 commit e6dc588
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 23 deletions.
3 changes: 3 additions & 0 deletions sdk/appconfiguration/azure-appconfiguration/HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
25 changes: 5 additions & 20 deletions sdk/appconfiguration/azure-appconfiguration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -120,29 +119,15 @@ 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(
key="MyKey", label="MyLabel"
)
```

### 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

Expand All @@ -152,7 +137,7 @@ deleted_config_setting = client.delete_configuration_setting(
)
```

### Query Configuration Settings
### List Configuration Settings
```python

filtered_listed = client.list_configuration_settings(
Expand Down
4 changes: 2 additions & 2 deletions sdk/appconfiguration/azure-appconfiguration/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down
4 changes: 3 additions & 1 deletion shared_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
#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

0 comments on commit e6dc588

Please sign in to comment.