Hello community,
here is the log from the commit of package azure-cli-cosmosdb for
openSUSE:Factory checked in at 2018-10-15 10:45:00
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/azure-cli-cosmosdb (Old)
and /work/SRC/openSUSE:Factory/.azure-cli-cosmosdb.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "azure-cli-cosmosdb"
Mon Oct 15 10:45:00 2018 rev:4 rq:641111 version:0.2.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/azure-cli-cosmosdb/azure-cli-cosmosdb.changes
2018-05-13 16:01:58.421098890 +0200
+++
/work/SRC/openSUSE:Factory/.azure-cli-cosmosdb.new/azure-cli-cosmosdb.changes
2018-10-15 10:45:04.063285923 +0200
@@ -1,0 +2,9 @@
+Mon Sep 17 09:44:57 UTC 2018 - John Paul Adrian Glaubitz
<[email protected]>
+
+- New upstream release
+ + Version 0.2.1
+ + For detailed information about changes see the
+ HISTORY.txt file provided with this package
+- Update Requires from setup.py
+
+-------------------------------------------------------------------
Old:
----
azure-cli-cosmosdb-0.1.20.tar.gz
New:
----
azure-cli-cosmosdb-0.2.1.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ azure-cli-cosmosdb.spec ++++++
--- /var/tmp/diff_new_pack.J50j99/_old 2018-10-15 10:45:06.103283741 +0200
+++ /var/tmp/diff_new_pack.J50j99/_new 2018-10-15 10:45:06.107283737 +0200
@@ -12,12 +12,12 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: azure-cli-cosmosdb
-Version: 0.1.20
+Version: 0.2.1
Release: 0
Summary: Microsoft Azure CLI 'cosmosdb' Command Module
License: MIT
@@ -34,7 +34,7 @@
Requires: azure-cli-command-modules-nspkg
Requires: azure-cli-core
Requires: azure-cli-nspkg
-Requires: python3-azure-mgmt-cosmosdb >= 0.3.1
+Requires: python3-azure-mgmt-cosmosdb >= 0.4.0
Requires: python3-azure-nspkg
Requires: python3-pydocumentdb >= 2.0.1
Conflicts: azure-cli < 2.0.0
++++++ azure-cli-cosmosdb-0.1.20.tar.gz -> azure-cli-cosmosdb-0.2.1.tar.gz
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/azure-cli-cosmosdb-0.1.20/HISTORY.rst
new/azure-cli-cosmosdb-0.2.1/HISTORY.rst
--- old/azure-cli-cosmosdb-0.1.20/HISTORY.rst 2018-04-06 19:33:13.000000000
+0200
+++ new/azure-cli-cosmosdb-0.2.1/HISTORY.rst 2018-08-23 01:07:57.000000000
+0200
@@ -3,6 +3,22 @@
Release History
===============
+0.2.1
++++++
+* Minor fixes
+
+0.2.0
++++++
+* BREAKING CHANGE: 'show' commands log error message and fail with exit code
of 3 upon a missing resource.
+
+0.1.22
+++++++
+* Minor fixes.
+
+0.1.21
+++++++
+* Introducing VNET support for Azure CLI - Cosmos DB
+
0.1.20
++++++
* Minor fixes
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/azure-cli-cosmosdb-0.1.20/PKG-INFO
new/azure-cli-cosmosdb-0.2.1/PKG-INFO
--- old/azure-cli-cosmosdb-0.1.20/PKG-INFO 2018-04-06 19:33:24.000000000
+0200
+++ new/azure-cli-cosmosdb-0.2.1/PKG-INFO 2018-08-23 01:09:45.000000000
+0200
@@ -1,12 +1,11 @@
Metadata-Version: 1.1
Name: azure-cli-cosmosdb
-Version: 0.1.20
+Version: 0.2.1
Summary: Microsoft Azure Command-Line Tools Cosmos DB Command Module
Home-page: https://github.com/Azure/azure-cli
Author: Microsoft Corporation
Author-email: [email protected]
License: MIT
-Description-Content-Type: UNKNOWN
Description: Microsoft Azure CLI 'cosmosdb' Command Module
=============================================
@@ -21,6 +20,22 @@
Release History
===============
+ 0.2.1
+ +++++
+ * Minor fixes
+
+ 0.2.0
+ +++++
+ * BREAKING CHANGE: 'show' commands log error message and fail with
exit code of 3 upon a missing resource.
+
+ 0.1.22
+ ++++++
+ * Minor fixes.
+
+ 0.1.21
+ ++++++
+ * Introducing VNET support for Azure CLI - Cosmos DB
+
0.1.20
++++++
* Minor fixes
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-cli-cosmosdb-0.1.20/azure/cli/command_modules/cosmosdb/_help.py
new/azure-cli-cosmosdb-0.2.1/azure/cli/command_modules/cosmosdb/_help.py
--- old/azure-cli-cosmosdb-0.1.20/azure/cli/command_modules/cosmosdb/_help.py
2018-04-06 19:33:13.000000000 +0200
+++ new/azure-cli-cosmosdb-0.2.1/azure/cli/command_modules/cosmosdb/_help.py
2018-08-23 01:07:57.000000000 +0200
@@ -1,3 +1,4 @@
+# coding=utf-8
#
--------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
license information.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-cli-cosmosdb-0.1.20/azure/cli/command_modules/cosmosdb/_params.py
new/azure-cli-cosmosdb-0.2.1/azure/cli/command_modules/cosmosdb/_params.py
--- old/azure-cli-cosmosdb-0.1.20/azure/cli/command_modules/cosmosdb/_params.py
2018-04-06 19:33:13.000000000 +0200
+++ new/azure-cli-cosmosdb-0.2.1/azure/cli/command_modules/cosmosdb/_params.py
2018-08-23 01:07:57.000000000 +0200
@@ -11,12 +11,13 @@
from azure.cli.core.util import shell_safe_json_parse
from azure.cli.command_modules.cosmosdb._validators import (
- validate_locations, validate_ip_range_filter, validate_failover_policies,
validate_capabilities)
+ validate_locations, validate_ip_range_filter, validate_failover_policies,
validate_capabilities,
+ validate_virtual_network_rules)
def load_arguments(self, _):
- from azure.mgmt.cosmosdb.models.cosmos_db_enums import KeyKind,
DefaultConsistencyLevel, DatabaseAccountKind
+ from azure.mgmt.cosmosdb.models import KeyKind, DefaultConsistencyLevel,
DatabaseAccountKind
with self.argument_context('cosmosdb') as c:
c.argument('account_name', arg_type=name_type, help='Name of the
Cosmos DB database account',
completer=get_resource_name_completion_list('Microsoft.DocumentDb/databaseAccounts'),
id_part='name')
@@ -35,6 +36,8 @@
c.argument('kind', arg_type=get_enum_type(DatabaseAccountKind),
help='The type of Cosmos DB database account to create')
c.argument('enable_automatic_failover',
arg_type=get_three_state_flag(), help='Enables automatic failover of the write
region in the rare event that the region is unavailable due to an outage.
Automatic failover will result in a new write region for the account and is
chosen based on the failover priorities configured for the account.')
c.argument('capabilities', nargs='+',
validator=validate_capabilities, help='set custom capabilities on the Cosmos DB
database account.')
+ c.argument('enable_virtual_network',
arg_type=get_three_state_flag(), help='Enables virtual network on the Cosmos DB
database account')
+ c.argument('virtual_network_rules', nargs='+',
validator=validate_virtual_network_rules, help='ACL\'s for virtual network')
with self.argument_context('cosmosdb regenerate-key') as c:
c.argument('key_kind', arg_type=get_enum_type(KeyKind))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-cli-cosmosdb-0.1.20/azure/cli/command_modules/cosmosdb/_validators.py
new/azure-cli-cosmosdb-0.2.1/azure/cli/command_modules/cosmosdb/_validators.py
---
old/azure-cli-cosmosdb-0.1.20/azure/cli/command_modules/cosmosdb/_validators.py
2018-04-06 19:33:13.000000000 +0200
+++
new/azure-cli-cosmosdb-0.2.1/azure/cli/command_modules/cosmosdb/_validators.py
2018-08-23 01:07:57.000000000 +0200
@@ -6,17 +6,17 @@
def validate_failover_policies(ns):
""" Extracts multiple space-separated failoverPolicies in
regionName=failoverPriority format """
- from azure.mgmt.cosmosdb.models.failover_policy import FailoverPolicy
+ from azure.mgmt.cosmosdb.models import FailoverPolicy
fp_dict = []
for item in ns.failover_policies:
comps = item.split('=', 1)
- fp_dict.append(FailoverPolicy(comps[0], int(comps[1])))
+ fp_dict.append(FailoverPolicy(location_name=comps[0],
failover_priority=int(comps[1])))
ns.failover_policies = fp_dict
def validate_locations(ns):
""" Extracts multiple space-separated locations in
regionName=failoverPriority format """
- from azure.mgmt.cosmosdb.models.location import Location
+ from azure.mgmt.cosmosdb.models import Location
if ns.locations is None:
ns.locations = []
return
@@ -34,9 +34,19 @@
def validate_capabilities(ns):
""" Extracts multiple space-separated capabilities """
- from azure.mgmt.cosmosdb.models.capability import Capability
+ from azure.mgmt.cosmosdb.models import Capability
if ns.capabilities is not None:
capabilties_list = []
for item in ns.capabilities:
capabilties_list.append(Capability(name=item))
ns.capabilities = capabilties_list
+
+
+def validate_virtual_network_rules(ns):
+ """ Extracts multiple space-separated virtual network rules """
+ from azure.mgmt.cosmosdb.models import VirtualNetworkRule
+ if ns.virtual_network_rules is not None:
+ virtual_network_rules_list = []
+ for item in ns.virtual_network_rules:
+ virtual_network_rules_list.append(VirtualNetworkRule(id=item))
+ ns.virtual_network_rules = virtual_network_rules_list
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-cli-cosmosdb-0.1.20/azure/cli/command_modules/cosmosdb/commands.py
new/azure-cli-cosmosdb-0.2.1/azure/cli/command_modules/cosmosdb/commands.py
---
old/azure-cli-cosmosdb-0.1.20/azure/cli/command_modules/cosmosdb/commands.py
2018-04-06 19:33:13.000000000 +0200
+++ new/azure-cli-cosmosdb-0.2.1/azure/cli/command_modules/cosmosdb/commands.py
2018-08-23 01:07:57.000000000 +0200
@@ -17,7 +17,7 @@
client_factory=cf_db_accounts)
with self.command_group('cosmosdb', cosmosdb_sdk,
client_factory=cf_db_accounts) as g:
- g.command('show', 'get')
+ g.show_command('show', 'get')
g.command('list-keys', 'list_keys')
g.command('list-read-only-keys', 'list_read_only_keys')
g.command('list-connection-strings', 'list_connection_strings')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-cli-cosmosdb-0.1.20/azure/cli/command_modules/cosmosdb/custom.py
new/azure-cli-cosmosdb-0.2.1/azure/cli/command_modules/cosmosdb/custom.py
--- old/azure-cli-cosmosdb-0.1.20/azure/cli/command_modules/cosmosdb/custom.py
2018-04-06 19:33:13.000000000 +0200
+++ new/azure-cli-cosmosdb-0.2.1/azure/cli/command_modules/cosmosdb/custom.py
2018-08-23 01:07:57.000000000 +0200
@@ -9,14 +9,12 @@
from azure.mgmt.cosmosdb.models import (
ConsistencyPolicy,
DatabaseAccountCreateUpdateParameters,
- Location
+ Location,
+ DatabaseAccountKind
)
-from azure.mgmt.cosmosdb.models.cosmos_db_enums import DatabaseAccountKind
-
logger = get_logger(__name__)
-
DEFAULT_INDEXING_POLICY = """{
"indexingMode": "consistent",
"automatic": true,
@@ -51,12 +49,15 @@
max_interval=5,
ip_range_filter=None,
enable_automatic_failover=None,
- capabilities=None):
+ capabilities=None,
+ enable_virtual_network=None,
+ virtual_network_rules=None):
"""Create a new Azure Cosmos DB database account."""
consistency_policy = None
if default_consistency_level is not None:
- consistency_policy = ConsistencyPolicy(default_consistency_level,
max_staleness_prefix,
- max_interval)
+ consistency_policy =
ConsistencyPolicy(default_consistency_level=default_consistency_level,
+
max_staleness_prefix=max_staleness_prefix,
+
max_interval_in_seconds=max_interval)
from azure.mgmt.resource import ResourceManagementClient
from azure.cli.core.commands.client_factory import get_mgmt_service_client
@@ -68,14 +69,16 @@
locations.append(Location(location_name=resource_group_location,
failover_priority=0))
params = DatabaseAccountCreateUpdateParameters(
- resource_group_location,
- locations,
+ location=resource_group_location,
+ locations=locations,
tags=tags,
kind=kind,
consistency_policy=consistency_policy,
ip_range_filter=ip_range_filter,
+ is_virtual_network_filter_enabled=enable_virtual_network,
enable_automatic_failover=enable_automatic_failover,
- capabilities=capabilities)
+ capabilities=capabilities,
+ virtual_network_rules=virtual_network_rules)
async_docdb_create = client.create_or_update(resource_group_name,
account_name, params)
docdb_account = async_docdb_create.result()
@@ -93,7 +96,9 @@
max_interval=None,
ip_range_filter=None,
enable_automatic_failover=None,
- capabilities=None):
+ capabilities=None,
+ enable_virtual_network=None,
+ virtual_network_rules=None):
"""Update an existing Azure Cosmos DB database account. """
existing = client.get(resource_group_name, account_name)
@@ -101,11 +106,13 @@
# pylint: disable=too-many-boolean-expressions
if capabilities is not None:
if locations or \
- default_consistency_level is not None or \
- max_staleness_prefix is not None or \
- max_interval is not None or \
- ip_range_filter is not None or \
- enable_automatic_failover is not None:
+ default_consistency_level is not None or \
+ max_staleness_prefix is not None or \
+ max_interval is not None or \
+ ip_range_filter is not None or \
+ enable_automatic_failover is not None or \
+ enable_virtual_network is not None or \
+ virtual_network_rules is not None:
raise CLIError("Cannot set capabilities and update properties at
the same time. {0}".format(locations))
else:
@@ -117,13 +124,14 @@
# Workaround until PATCH support for all properties
# pylint: disable=too-many-boolean-expressions
if tags is not None:
- if not locations and\
- default_consistency_level is None and\
- max_staleness_prefix is None and\
- max_interval is None and\
- ip_range_filter is None and\
- enable_automatic_failover is None:
-
+ if not locations and \
+ default_consistency_level is None and \
+ max_staleness_prefix is None and \
+ max_interval is None and \
+ ip_range_filter is None and \
+ enable_automatic_failover is None and \
+ enable_virtual_network is None and \
+ virtual_network_rules is None:
async_docdb_create = client.patch(resource_group_name,
account_name, tags=tags, capabilities=capabilities)
docdb_account = async_docdb_create.result()
docdb_account = client.get(resource_group_name, account_name)
@@ -131,8 +139,8 @@
update_consistency_policy = False
if max_interval is not None or \
- max_staleness_prefix is not None or \
- default_consistency_level is not None:
+ max_staleness_prefix is not None or \
+ default_consistency_level is not None:
update_consistency_policy = True
if max_staleness_prefix is None:
@@ -146,8 +154,9 @@
consistency_policy = None
if update_consistency_policy:
- consistency_policy = ConsistencyPolicy(default_consistency_level,
max_staleness_prefix,
- max_interval)
+ consistency_policy =
ConsistencyPolicy(default_consistency_level=default_consistency_level,
+
max_staleness_prefix=max_staleness_prefix,
+
max_interval_in_seconds=max_interval)
else:
consistency_policy = existing.consistency_policy
@@ -162,18 +171,26 @@
if enable_automatic_failover is None:
enable_automatic_failover = existing.enable_automatic_failover
+ if enable_virtual_network is None:
+ enable_virtual_network = existing.is_virtual_network_filter_enabled
+
+ if virtual_network_rules is None:
+ virtual_network_rules = existing.virtual_network_rules
+
if tags is None:
tags = existing.tags
params = DatabaseAccountCreateUpdateParameters(
- existing.location,
- locations,
+ location=existing.location,
+ locations=locations,
tags=tags,
kind=existing.kind,
consistency_policy=consistency_policy,
ip_range_filter=ip_range_filter,
enable_automatic_failover=enable_automatic_failover,
- capabilities=existing.capabilities)
+ capabilities=existing.capabilities,
+ is_virtual_network_filter_enabled=enable_virtual_network,
+ virtual_network_rules=virtual_network_rules)
async_docdb_create = client.create_or_update(resource_group_name,
account_name, params)
docdb_account = async_docdb_create.result()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-cli-cosmosdb-0.1.20/azure_cli_cosmosdb.egg-info/PKG-INFO
new/azure-cli-cosmosdb-0.2.1/azure_cli_cosmosdb.egg-info/PKG-INFO
--- old/azure-cli-cosmosdb-0.1.20/azure_cli_cosmosdb.egg-info/PKG-INFO
2018-04-06 19:33:24.000000000 +0200
+++ new/azure-cli-cosmosdb-0.2.1/azure_cli_cosmosdb.egg-info/PKG-INFO
2018-08-23 01:09:45.000000000 +0200
@@ -1,12 +1,11 @@
Metadata-Version: 1.1
Name: azure-cli-cosmosdb
-Version: 0.1.20
+Version: 0.2.1
Summary: Microsoft Azure Command-Line Tools Cosmos DB Command Module
Home-page: https://github.com/Azure/azure-cli
Author: Microsoft Corporation
Author-email: [email protected]
License: MIT
-Description-Content-Type: UNKNOWN
Description: Microsoft Azure CLI 'cosmosdb' Command Module
=============================================
@@ -21,6 +20,22 @@
Release History
===============
+ 0.2.1
+ +++++
+ * Minor fixes
+
+ 0.2.0
+ +++++
+ * BREAKING CHANGE: 'show' commands log error message and fail with
exit code of 3 upon a missing resource.
+
+ 0.1.22
+ ++++++
+ * Minor fixes.
+
+ 0.1.21
+ ++++++
+ * Introducing VNET support for Azure CLI - Cosmos DB
+
0.1.20
++++++
* Minor fixes
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore'
old/azure-cli-cosmosdb-0.1.20/azure_cli_cosmosdb.egg-info/requires.txt
new/azure-cli-cosmosdb-0.2.1/azure_cli_cosmosdb.egg-info/requires.txt
--- old/azure-cli-cosmosdb-0.1.20/azure_cli_cosmosdb.egg-info/requires.txt
2018-04-06 19:33:24.000000000 +0200
+++ new/azure-cli-cosmosdb-0.2.1/azure_cli_cosmosdb.egg-info/requires.txt
2018-08-23 01:09:45.000000000 +0200
@@ -1,3 +1,3 @@
-azure-mgmt-cosmosdb==0.3.1
+azure-mgmt-cosmosdb==0.4.0
azure-cli-core
pydocumentdb>=2.0.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/azure-cli-cosmosdb-0.1.20/setup.py
new/azure-cli-cosmosdb-0.2.1/setup.py
--- old/azure-cli-cosmosdb-0.1.20/setup.py 2018-04-06 19:33:13.000000000
+0200
+++ new/azure-cli-cosmosdb-0.2.1/setup.py 2018-08-23 01:07:57.000000000
+0200
@@ -16,7 +16,7 @@
cmdclass = {}
-VERSION = "0.1.20"
+VERSION = "0.2.1"
# The full list of classifiers is available at
# https://pypi.python.org/pypi?%3Aaction=list_classifiers
CLASSIFIERS = [
@@ -34,7 +34,7 @@
DEPENDENCIES = [
- 'azure-mgmt-cosmosdb==0.3.1',
+ 'azure-mgmt-cosmosdb==0.4.0',
'azure-cli-core',
'pydocumentdb>=2.0.1'
]