Skip to content

Commit

Permalink
fix doc, sample, docstring (#12784)
Browse files Browse the repository at this point in the history
* fix doc, sample, docstring

* update version

* update
  • Loading branch information
xiangyan99 authored Jul 30, 2020
1 parent e39c7e0 commit 3e91896
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 9 deletions.
6 changes: 6 additions & 0 deletions sdk/appconfiguration/azure-appconfiguration/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@

-------------------

## 1.0.1 (Unreleased)

### Fixes

- Doc & Sample fixes

## 1.0.0 (2020-01-06)

### Features
Expand Down
4 changes: 2 additions & 2 deletions sdk/appconfiguration/azure-appconfiguration/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ deleted_config_setting = client.delete_configuration_setting(
```python

filtered_listed = client.list_configuration_settings(
labels=["*Labe*"], keys=["*Ke*"]
label_filter="My*", key_filter="My*"
)
for item in filtered_listed:
pass # do something
Expand Down Expand Up @@ -234,7 +234,7 @@ To use list_configuration_settings, call it synchronously and iterate over the r
```python

filtered_listed = async_client.list_configuration_settings(
labels=["*Labe*"], keys=["*Ke*"]
label_filter="My*", key_filter="My*"
)
async for item in filtered_listed:
pass # do something
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def list_configuration_settings(
pass # do something
filtered_listed = client.list_configuration_settings(
label_filter="*Labe*", key_filter="*Ke*", accept_datetime=accept_datetime
label_filter="Labe*", key_filter="Ke*", accept_datetime=accept_datetime
)
for item in filtered_listed:
pass # do something
Expand Down Expand Up @@ -473,7 +473,7 @@ def list_revisions(
pass # do something
filtered_revisions = client.list_revisions(
label_filter="*Labe*", key_filter="*Ke*", accept_datetime=accept_datetime
label_filter="Labe*", key_filter="Ke*", accept_datetime=accept_datetime
)
for item in filtered_revisions:
pass # do something
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
# Licensed under the MIT License.
# ------------------------------------

VERSION = "1.0.0"
VERSION = "1.0.1"
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ def list_configuration_settings(
pass # do something
filtered_listed = async_client.list_configuration_settings(
label_filter="*Labe*", key_filter="*Ke*", accept_datetime=accept_datetime
label_filter="Labe*", key_filter="Ke*", accept_datetime=accept_datetime
)
async for item in filtered_listed:
pass # do something
Expand Down Expand Up @@ -491,7 +491,7 @@ def list_revisions(
pass # do something
filtered_revisions = async_client.list_revisions(
label_filter="*Labe*", key_filter="*Ke*", accept_datetime=accept_datetime
label_filter="Labe*", key_filter="Ke*", accept_datetime=accept_datetime
)
async for item in filtered_revisions:
pass # do something
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async def main():
print("")

print("List configuration settings")
config_settings = client.list_configuration_settings(labels=["MyLabel"])
config_settings = client.list_configuration_settings(label_filter="MyLabel")
async for item in config_settings:
print_configuration_setting(item)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def main():
print("")

print("List configuration settings")
config_settings = client.list_configuration_settings(labels=["MyLabel"])
config_settings = client.list_configuration_settings(label_filter="MyLabel")
for item in config_settings:
print_configuration_setting(item)

Expand Down

0 comments on commit 3e91896

Please sign in to comment.