Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
2fe3ae4
updated sdk version
Jun 15, 2020
0d8a926
replaced ipRangeFilter by IpRules
Jun 15, 2020
e222acc
fixing IpRules
Jun 16, 2020
6224d47
Added autoscale related changes
Jun 16, 2020
063bfa4
tests for autoscale
Jun 16, 2020
3c52f90
Changes for ip_rules
Jun 17, 2020
939f147
init for updates in database account properties
Jun 16, 2020
9ea26bd
final changes and tests for enableFreeTier, serverVersion and enableA…
Jun 17, 2020
4bc3129
error message
Jun 17, 2020
8d48d6e
added analytical ttl in mongo collection
Jun 17, 2020
27bd4d7
fixes
Jun 17, 2020
e62c0b5
analytical_storage_ttl in cassandra table
Jun 17, 2020
0f46ce8
updated all tests
Jun 17, 2020
7a8cfab
[CosmosDB] Allow creating fixed collections (#13950)
MehaKaushik Jun 17, 2020
40beea1
Cherrypicking latest master CosmosDB
shurd Jun 17, 2020
d5be0d4
updated tests
Jun 18, 2020
abd4c7c
Merge upstream/dev
Jun 18, 2020
9516285
fixing lint issue
Jun 18, 2020
71adb50
fixing style check
Jun 19, 2020
5d1f99f
Addressed comments
Jun 26, 2020
39d2ab7
Removed preview tag from RuntimeResources
Jun 26, 2020
ee920e4
fixing cosmosdb in network
Jun 30, 2020
7852ac3
Fixing cosmosdb network tests
Jun 30, 2020
b20c3d7
missed private_endpint_connection yaml
Jun 30, 2020
202bf3a
Merge remote-tracking branch 'upstream/dev' into temp
Jul 2, 2020
665d105
missed private_endpint_connection yaml
Jun 30, 2020
2d07475
re-added network tests
Jul 2, 2020
db0cd1e
re-running tests
Jul 2, 2020
e3e04c1
fixture for CI
Jul 2, 2020
fe96d0a
changes to address github issue 14191
Jul 2, 2020
de2e4bf
nit
Jul 2, 2020
ec6def8
addressed PR comments
Jul 7, 2020
ec8e363
re-ran the network tests for cosmosdb
Jul 7, 2020
d11513c
lint fix
Jul 7, 2020
7c0cd0c
re-added network module tests
Jul 7, 2020
d185e0f
addressed comment
Jul 7, 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
37 changes: 31 additions & 6 deletions src/azure-cli/azure/cli/command_modules/cosmosdb/_params.py

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,14 @@ def validate_failover_policies(ns):


def validate_ip_range_filter(ns):
if ns.ip_range_filter:
ns.ip_range_filter = ",".join(ns.ip_range_filter)
""" Extracts multiple comma-separated ip rules """
from azure.mgmt.cosmosdb.models import IpAddressOrRange
if ns.ip_range_filter is not None:
ip_rules_list = []
for item in ns.ip_range_filter:
for i in item.split(","):
ip_rules_list.append(IpAddressOrRange(ip_address_or_range=i))
ns.ip_range_filter = ip_rules_list


def validate_private_endpoint_connection_id(ns):
Expand Down
10 changes: 5 additions & 5 deletions src/azure-cli/azure/cli/command_modules/cosmosdb/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def load_command_table(self, _):
g.show_command('list', 'list_by_database_account', transform=gen_dict_to_list_transform(key='values'))

# SQL api
with self.command_group('cosmosdb sql', is_preview=True):
with self.command_group('cosmosdb sql'):
pass
with self.command_group('cosmosdb sql database', cosmosdb_sql_sdk, client_factory=cf_sql_resources) as g:
g.custom_command('create', 'cli_cosmosdb_sql_database_create')
Expand Down Expand Up @@ -139,7 +139,7 @@ def load_command_table(self, _):
g.command('delete', 'delete_sql_user_defined_function', confirmation=True)

# MongoDB api
with self.command_group('cosmosdb mongodb', is_preview=True):
with self.command_group('cosmosdb mongodb'):
pass
with self.command_group('cosmosdb mongodb database', cosmosdb_mongo_sdk, client_factory=cf_mongo_db_resources) as g:
g.custom_command('create', 'cli_cosmosdb_mongodb_database_create')
Expand All @@ -157,7 +157,7 @@ def load_command_table(self, _):
g.command('delete', 'delete_mongo_db_collection', confirmation=True)

# Cassandra api
with self.command_group('cosmosdb cassandra', is_preview=True):
with self.command_group('cosmosdb cassandra'):
pass
with self.command_group('cosmosdb cassandra keyspace', cosmosdb_cassandra_sdk, client_factory=cf_cassandra_resources) as g:
g.custom_command('create', 'cli_cosmosdb_cassandra_keyspace_create')
Expand All @@ -175,7 +175,7 @@ def load_command_table(self, _):
g.command('delete', 'delete_cassandra_table', confirmation=True)

# Gremlin api
with self.command_group('cosmosdb gremlin', is_preview=True):
with self.command_group('cosmosdb gremlin'):
pass
with self.command_group('cosmosdb gremlin database', cosmosdb_gremlin_sdk, client_factory=cf_gremlin_resources) as g:
g.custom_command('create', 'cli_cosmosdb_gremlin_database_create')
Expand All @@ -193,7 +193,7 @@ def load_command_table(self, _):
g.command('delete', 'delete_gremlin_graph', confirmation=True)

# Table api
with self.command_group('cosmosdb table', cosmosdb_table_sdk, client_factory=cf_table_resources, is_preview=True) as g:
with self.command_group('cosmosdb table', cosmosdb_table_sdk, client_factory=cf_table_resources) as g:
g.custom_command('create', 'cli_cosmosdb_table_create')
g.custom_command('exists', 'cli_cosmosdb_table_exists')
g.command('list', 'list_tables')
Expand Down
203 changes: 124 additions & 79 deletions src/azure-cli/azure/cli/command_modules/cosmosdb/custom.py

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading