Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
00b9235
{Docs} Remove stale reference in README to closed issue about extensi…
dkmiller Apr 27, 2020
ab16df0
Merge remote-tracking branch 'upstream/release'
azclibot Apr 28, 2020
03436bc
Merge remote-tracking branch 'upstream/release'
azclibot Apr 30, 2020
7d98b1f
Merge remote-tracking branch 'upstream/release'
azclibot May 19, 2020
06f6ec5
Merge remote-tracking branch 'upstream/release'
azclibot Jun 2, 2020
adab2d2
Merge remote-tracking branch 'upstream/release'
azclibot Jun 23, 2020
c7b9f98
Merge remote-tracking branch 'upstream/release'
azclibot Jul 14, 2020
18e8b8d
Merge remote-tracking branch 'upstream/release'
azclibot Jul 16, 2020
1eb5074
Merge remote-tracking branch 'upstream/release'
azclibot Aug 4, 2020
cc3a159
Merge remote-tracking branch 'upstream/release' into master
azclibot Aug 6, 2020
af8f98e
Merge remote-tracking branch 'upstream/release' into master
azclibot Aug 26, 2020
0f904b9
Merge remote-tracking branch 'upstream/release' into master
azclibot Aug 28, 2020
53ae210
intial commit for migration support for autoscale
Aug 21, 2020
f6040c8
tests and their recordings
Aug 22, 2020
2394d3e
nit
Aug 22, 2020
6726e82
revert wrong version change
Aug 24, 2020
a7e7f99
fixing linting issues
Aug 25, 2020
f58d7d2
fixing linting issues
Aug 25, 2020
ec876c7
Merged into a single cmdlet
Aug 28, 2020
2b8ece2
uncommenting tests
Aug 28, 2020
32b8991
Lint fix
Aug 28, 2020
71d0b58
Update src/azure-cli/azure/cli/command_modules/cosmosdb/commands.py
MehaKaushik Sep 5, 2020
41501d6
lint and style fixes
Sep 5, 2020
07cf1dc
more fixes to style
Sep 7, 2020
defb97f
addressing comments
Sep 10, 2020
2109770
adding examples
Sep 14, 2020
ab0977f
Merge dev
Sep 14, 2020
dbc04e4
updating help
Sep 14, 2020
23e0437
Revert "updating help"
Sep 14, 2020
bb02872
Revert "adding examples"
Sep 14, 2020
52bbea8
Merge branch 'dev2' into autoscale_migration
Sep 16, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
adding examples
  • Loading branch information
Meha Kaushik committed Sep 14, 2020
commit 2109770547160ce7408681c03aeba5bddef4fb7c
27 changes: 27 additions & 0 deletions src/azure-cli/azure/cli/command_modules/cosmosdb/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@
helps['cosmosdb cassandra keyspace throughput migrate'] = """
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could we add some examples for new commands?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added the examples manually, looks like the style and linter checks are failing after doing so. Is there a way to autogenerate these examples ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Juliehzl I have reverted the change where I was adding examples, I will take this up in my next PR. Can you please merge this PR today, so that it makes into the upcoming release cycle. There are customers who are looking forward to this change.

type: command
short-summary: Migrate the throughput of the Cassandra keyspace between autoscale and manually provisioned.
examples:
-name: Migrate to autoscale
text: az cosmosdb cassandra keyspace throughput migrate -g MyResourceGroup -a MyAccount -n MyKeyspace --throughput-type "autoscale"
"""

helps['cosmosdb cassandra table'] = """
Expand Down Expand Up @@ -130,6 +133,9 @@
helps['cosmosdb cassandra table throughput migrate'] = """
type: command
short-summary: Migrate the throughput of the Cassandra table between autoscale and manually provisioned.
examples:
-name: Migrate to autoscale
text: az cosmosdb sql container throughput migrate -g MyResourceGroup -a MyAccount -d MyDatabase -n MyContainer --throughput-type "autoscale"
"""

helps['cosmosdb cassandra table update'] = """
Expand Down Expand Up @@ -292,6 +298,9 @@
helps['cosmosdb gremlin database throughput migrate'] = """
type: command
short-summary: Migrate the throughput of the Gremlin database between autoscale and manually provisioned.
examples:
-name: Migrate to autoscale
text: az cosmosdb gremlin database throughput migrate -g MyResourceGroup -a MyAccount -n MyDatabase --throughput-type "autoscale"
"""

helps['cosmosdb gremlin graph'] = """
Expand Down Expand Up @@ -341,6 +350,9 @@
helps['cosmosdb gremlin graph throughput migrate'] = """
type: command
short-summary: Migrate the throughput of the Gremlin Graph between autoscale and manually provisioned.
examples:
-name: Migrate to autoscale
text: az cosmosdb gremlin graph throughput migrate -g MyResourceGroup -a MyAccount -d MyDatabase -n MyGraph --throughput-type "autoscale"
"""

helps['cosmosdb gremlin graph update'] = """
Expand Down Expand Up @@ -446,6 +458,9 @@
helps['cosmosdb mongodb collection throughput migrate'] = """
type: command
short-summary: Migrate the throughput of the MongoDB collection between autoscale and manually provisioned.
examples:
-name: Migrate to autoscale
text: az cosmosdb mongodb collection throughput migrate -g MyResourceGroup -a MyAccount -d MyDatabase -n MyCollection --throughput-type "autoscale"
"""

helps['cosmosdb mongodb collection update'] = """
Expand Down Expand Up @@ -509,6 +524,9 @@
helps['cosmosdb mongodb database throughput migrate'] = """
type: command
short-summary: Migrate the throughput of the MongoDB database between autoscale and manually provisioned.
examples:
-name: Migrate to autoscale
text: az cosmosdb mongodb database throughput migrate -g MyResourceGroup -a MyAccount -d MyDatabase -n MyCollection --throughput-type "autoscale"
"""

helps['cosmosdb network-rule'] = """
Expand Down Expand Up @@ -729,6 +747,9 @@
helps['cosmosdb sql container throughput migrate'] = """
type: command
short-summary: Migrate the throughput of the SQL container between autoscale and manually provisioned.
examples:
-name: Migrate to autoscale
text: az cosmosdb sql container throughput migrate -g MyResourceGroup -a MyAccount -d MyDatabase -n MyContainer --throughput-type "autoscale"
"""

helps['cosmosdb sql container update'] = """
Expand Down Expand Up @@ -783,6 +804,9 @@
helps['cosmosdb sql database throughput migrate'] = """
type: command
short-summary: Migrate the throughput of the SQL database between autoscale and manually provisioned.
examples:
-name: Migrate to autoscale
text: az cosmosdb sql database throughput migrate -g MyResourceGroup -a MyAccount -n MyDatabase --throughput-type "autoscale"
"""

helps['cosmosdb table'] = """
Expand Down Expand Up @@ -828,6 +852,9 @@
helps['cosmosdb table throughput migrate'] = """
type: command
short-summary: Migrate the throughput of the Table between autoscale and manually provisioned.
examples:
-name: Migrate to autoscale
text: az cosmosdb table throughput migrate -g MyResourceGroup -a MyAccount -n MyTable --throughput-type "autoscale"
"""

helps['cosmosdb update'] = """
Expand Down