Hello community,

here is the log from the commit of package azure-cli-resource for 
openSUSE:Factory checked in at 2018-05-13 16:03:05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/azure-cli-resource (Old)
 and      /work/SRC/openSUSE:Factory/.azure-cli-resource.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "azure-cli-resource"

Sun May 13 16:03:05 2018 rev:3 rq:600063 version:2.0.27

Changes:
--------
--- /work/SRC/openSUSE:Factory/azure-cli-resource/azure-cli-resource.changes    
2018-02-14 09:31:48.543073368 +0100
+++ 
/work/SRC/openSUSE:Factory/.azure-cli-resource.new/azure-cli-resource.changes   
    2018-05-13 16:03:08.754532847 +0200
@@ -1,0 +2,8 @@
+Fri Apr 20 11:03:31 UTC 2018 - [email protected]
+
+- New upstream release
+  + Version 2.0.27
+- Move LICENSE.txt from %doc to %license section
+- Update Requires from setup.py
+
+-------------------------------------------------------------------

Old:
----
  azure-cli-resource-2.0.22.tar.gz

New:
----
  azure-cli-resource-2.0.27.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ azure-cli-resource.spec ++++++
--- /var/tmp/diff_new_pack.jLzTuP/_old  2018-05-13 16:03:09.498505704 +0200
+++ /var/tmp/diff_new_pack.jLzTuP/_new  2018-05-13 16:03:09.502505558 +0200
@@ -17,7 +17,7 @@
 
 
 Name:           azure-cli-resource
-Version:        2.0.22
+Version:        2.0.27
 Release:        0
 Summary:        Microsoft Azure CLI 'resource' Command Module
 License:        MIT
@@ -34,6 +34,7 @@
 Requires:       azure-cli-command-modules-nspkg
 Requires:       azure-cli-core
 Requires:       azure-cli-nspkg
+Requires:       python3-azure-mgmt-authorization >= 0.40.0
 Requires:       python3-azure-mgmt-resource >= 1.2.1
 Requires:       python3-azure-nspkg
 Conflicts:      azure-cli < 2.0.0
@@ -64,7 +65,8 @@
 
 %files
 %defattr(-,root,root,-)
-%doc HISTORY.rst LICENSE.txt README.rst
+%doc HISTORY.rst README.rst
+%license LICENSE.txt
 %{python3_sitelib}/azure/cli/command_modules/resource
 %{python3_sitelib}/azure_cli_resource-*.egg-info
 

++++++ azure-cli-resource-2.0.22.tar.gz -> azure-cli-resource-2.0.27.tar.gz 
++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure-cli-resource-2.0.22/HISTORY.rst 
new/azure-cli-resource-2.0.27/HISTORY.rst
--- old/azure-cli-resource-2.0.22/HISTORY.rst   2018-01-26 17:12:24.000000000 
+0100
+++ new/azure-cli-resource-2.0.27/HISTORY.rst   2018-04-06 19:33:13.000000000 
+0200
@@ -2,6 +2,27 @@
 
 Release History
 ===============
+2.0.27
+++++++
+* `policy definition create`: Add support for `--metadata`.
+* `policy definition update`: Add support for `--metadata`, `--set`, `--add`, 
`--remove`.
+* `sdist` is now compatible with wheel 0.31.0
+
+2.0.26
+++++++
+provider operation list/show: (breaking change)`api-version` is no longer 
required to run the command
+
+2.0.25
+++++++
+* Support Autorest 3.0 based SDKs
+
+2.0.24
+++++++
+* `group deployment export`: On failure, command will now output a partial 
template and any failures.
+
+2.0.23
+++++++
+* feature: bring back 'feature show' command
 
 2.0.22
 ++++++
@@ -48,7 +69,7 @@
 
 2.0.14 (2017-09-11)
 +++++++++++++++++++
-* Allows passing in resource policy parameter definitions in 'policy 
definition create', and 'policy definition update'. 
+* Allows passing in resource policy parameter definitions in 'policy 
definition create', and 'policy definition update'.
 * Allows passing in parameter values for 'policy assignment create'.
 * In all cases params can be provided either via json or file.
 * Incremented API version.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure-cli-resource-2.0.22/PKG-INFO 
new/azure-cli-resource-2.0.27/PKG-INFO
--- old/azure-cli-resource-2.0.22/PKG-INFO      2018-01-26 17:12:31.000000000 
+0100
+++ new/azure-cli-resource-2.0.27/PKG-INFO      2018-04-06 19:33:47.000000000 
+0200
@@ -1,11 +1,12 @@
 Metadata-Version: 1.1
 Name: azure-cli-resource
-Version: 2.0.22
+Version: 2.0.27
 Summary: Microsoft Azure Command-Line Tools Resource 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 'resource' Command Module
         =============================================
         
@@ -19,6 +20,27 @@
         
         Release History
         ===============
+        2.0.27
+        ++++++
+        * `policy definition create`: Add support for `--metadata`.
+        * `policy definition update`: Add support for `--metadata`, `--set`, 
`--add`, `--remove`.
+        * `sdist` is now compatible with wheel 0.31.0
+        
+        2.0.26
+        ++++++
+        provider operation list/show: (breaking change)`api-version` is no 
longer required to run the command
+        
+        2.0.25
+        ++++++
+        * Support Autorest 3.0 based SDKs
+        
+        2.0.24
+        ++++++
+        * `group deployment export`: On failure, command will now output a 
partial template and any failures.
+        
+        2.0.23
+        ++++++
+        * feature: bring back 'feature show' command
         
         2.0.22
         ++++++
@@ -65,7 +87,7 @@
         
         2.0.14 (2017-09-11)
         +++++++++++++++++++
-        * Allows passing in resource policy parameter definitions in 'policy 
definition create', and 'policy definition update'. 
+        * Allows passing in resource policy parameter definitions in 'policy 
definition create', and 'policy definition update'.
         * Allows passing in parameter values for 'policy assignment create'.
         * In all cases params can be provided either via json or file.
         * Incremented API version.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-resource-2.0.22/azure/cli/command_modules/resource/_help.py 
new/azure-cli-resource-2.0.27/azure/cli/command_modules/resource/_help.py
--- old/azure-cli-resource-2.0.22/azure/cli/command_modules/resource/_help.py   
2018-01-26 17:12:24.000000000 +0100
+++ new/azure-cli-resource-2.0.27/azure/cli/command_modules/resource/_help.py   
2018-04-06 19:33:13.000000000 +0200
@@ -173,7 +173,7 @@
                     az policy definition create -n readOnlyStorage --rules '{
                             "if":
                             {
-                                "source": "action",
+                                "field": "type",
                                 "equals": 
"Microsoft.Storage/storageAccounts/write"
                             },
                             "then":
@@ -407,6 +407,16 @@
     short-summary: Manage resource provider features.
 """
 
+helps['feature list'] = """
+    type: command
+    short-summary: List preview features.
+"""
+
+helps['feature register'] = """
+    type: command
+    short-summary: register a preview feature.
+"""
+
 helps['group'] = """
     type: group
     short-summary: Manage resource groups and template deployments.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-resource-2.0.22/azure/cli/command_modules/resource/_params.py 
new/azure-cli-resource-2.0.27/azure/cli/command_modules/resource/_params.py
--- old/azure-cli-resource-2.0.22/azure/cli/command_modules/resource/_params.py 
2018-01-26 17:12:24.000000000 +0100
+++ new/azure-cli-resource-2.0.27/azure/cli/command_modules/resource/_params.py 
2018-04-06 19:33:13.000000000 +0200
@@ -23,7 +23,7 @@
         get_policy_completion_list, get_policy_set_completion_list, 
get_policy_assignment_completion_list,
         get_resource_types_completion_list, get_providers_completion_list)
     from azure.cli.command_modules.resource._validators import (
-        validate_lock_parameters, validate_resource_lock, validate_group_lock, 
validate_subscription_lock)
+        validate_lock_parameters, validate_resource_lock, validate_group_lock, 
validate_subscription_lock, validate_metadata)
 
     # BASIC PARAMETER CONFIGURATION
 
@@ -46,7 +46,7 @@
         c.argument('parent_resource_path', resource_parent_type, 
arg_group='Resource Id')
         c.argument('tag', tag_type)
         c.argument('tags', tags_type)
-        c.argument('resource_ids', nargs='+', options_list=['--ids'], 
help='One or more resource IDs (space delimited). If provided, no other 
"Resource Id" arguments should be specified.', arg_group='Resource Id')
+        c.argument('resource_ids', nargs='+', options_list=['--ids'], 
help='One or more resource IDs (space-delimited). If provided, no other 
"Resource Id" arguments should be specified.', arg_group='Resource Id')
         c.argument('include_response_body', arg_type=get_three_state_flag(), 
help='Use if the default command output doesn\'t capture all of the property 
data.')
 
     with self.argument_context('resource list') as c:
@@ -93,6 +93,7 @@
         c.argument('display_name', help='display name of policy definition')
         c.argument('description', help='description of policy definition')
         c.argument('params', help='JSON formatted string or a path to a file 
or uri with parameter definitions', type=file_type, completer=FilesCompleter(), 
min_api='2016-12-01')
+        c.argument('metadata', min_api='2017-06-01-preview', nargs='+', 
validator=validate_metadata, help='Metadata in space-separated key=value 
pairs.')
 
     with self.argument_context('policy definition create', 
resource_type=ResourceType.MGMT_RESOURCE_POLICY) as c:
         from azure.mgmt.resource.policy.models import PolicyMode
@@ -106,7 +107,7 @@
         c.argument('display_name', help='display name of the assignment')
         c.argument('policy', help='name or id of the policy definition.', 
completer=get_policy_completion_list)
 
-    with self.argument_context('policy assignment create') as c:
+    with self.argument_context('policy assignment create', 
resource_type=ResourceType.MGMT_RESOURCE_POLICY) as c:
         c.argument('name', options_list=('--name', '-n'), help='name of the 
new assignment')
         c.argument('params', options_list=('--params', '-p'), help='JSON 
formatted string or path to file with parameter values of policy rule', 
min_api='2016-12-01')
 
@@ -161,7 +162,7 @@
         c.argument('resource_provider_namespace', resource_namespace_type)
         c.argument('resource_type', arg_type=resource_type_type, 
completer=get_resource_types_completion_list)
         c.argument('resource_name', options_list=['--resource', 
'--resource-name'], help='Name or ID of the resource being locked. If an ID is 
given, other resource arguments should not be given.')
-        c.argument('ids', nargs='+', options_list=('--ids'), help='One or more 
resource IDs (space delimited). If provided, no other "Resource Id" arguments 
should be specified.')
+        c.argument('ids', nargs='+', options_list=('--ids'), help='One or more 
resource IDs (space-delimited). If provided, no other "Resource Id" arguments 
should be specified.')
         c.argument('resource_group', resource_group_name_type, 
validator=validate_lock_parameters)
 
     with self.argument_context('resource lock') as c:
@@ -185,7 +186,7 @@
         with self.argument_context(scope) as c:
             c.argument('lock_name', options_list=('--name', '-n'), help='Name 
of the lock')
             c.argument('level', options_list=('--lock-type', '-t'), 
arg_type=get_enum_type([LockLevel.can_not_delete, LockLevel.read_only]))
-            c.argument('ids', nargs='+', options_list=('--ids'), help='One or 
more resource IDs (space delimited). If provided, no other "Resource Id" 
arguments should be specified.')
+            c.argument('ids', nargs='+', options_list=('--ids'), help='One or 
more resource IDs (space-delimited). If provided, no other "Resource Id" 
arguments should be specified.')
             c.argument('notes', help='Notes about this lock.')
 
     with self.argument_context('managedapp') as c:
@@ -205,6 +206,6 @@
 
     with self.argument_context('managedapp definition create') as c:
         c.argument('lock_level', arg_type=get_enum_type(ApplicationLockLevel))
-        c.argument('authorizations', options_list=('--authorizations', '-a'), 
nargs='+', help="space separated authorization pairs in a format of 
<principalId>:<roleDefinitionId>")
+        c.argument('authorizations', options_list=('--authorizations', '-a'), 
nargs='+', help="space-separated authorization pairs in a format of 
<principalId>:<roleDefinitionId>")
         c.argument('createUiDefinition', 
options_list=('--create-ui-definition', '-c'), help='JSON formatted string or a 
path to a file with such content', type=file_type)
         c.argument('mainTemplate', options_list=('--main-template', '-t'), 
help='JSON formatted string or a path to a file with such content', 
type=file_type)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-resource-2.0.22/azure/cli/command_modules/resource/_validators.py 
new/azure-cli-resource-2.0.27/azure/cli/command_modules/resource/_validators.py
--- 
old/azure-cli-resource-2.0.22/azure/cli/command_modules/resource/_validators.py 
    2018-01-26 17:12:24.000000000 +0100
+++ 
new/azure-cli-resource-2.0.27/azure/cli/command_modules/resource/_validators.py 
    2018-04-06 19:33:13.000000000 +0200
@@ -142,3 +142,8 @@
                       'resource_type']:
             kwargs[param] = getattr(namespace, param, None)
         internal_validate_lock_parameters(namespace, **kwargs)
+
+
+def validate_metadata(namespace):
+    if namespace.metadata:
+        namespace.metadata = dict(x.split('=', 1) for x in namespace.metadata)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-resource-2.0.22/azure/cli/command_modules/resource/commands.py 
new/azure-cli-resource-2.0.27/azure/cli/command_modules/resource/commands.py
--- 
old/azure-cli-resource-2.0.22/azure/cli/command_modules/resource/commands.py    
    2018-01-26 17:12:24.000000000 +0100
+++ 
new/azure-cli-resource-2.0.27/azure/cli/command_modules/resource/commands.py    
    2018-04-06 19:33:13.000000000 +0200
@@ -126,7 +126,7 @@
         g.custom_command('update', 'update_lock')
 
     with self.command_group('group', resource_group_sdk, 
resource_type=ResourceType.MGMT_RESOURCE_RESOURCES) as g:
-        g.command('delete', 'delete', no_wait_param='raw', confirmation=True)
+        g.command('delete', 'delete', supports_no_wait=True, confirmation=True)
         g.command('show', 'get', exception_handler=empty_on_404)
         g.command('exists', 'check_existence')
         g.custom_command('list', 'list_resource_groups', 
table_transformer=transform_resource_group_list)
@@ -170,7 +170,7 @@
         g.custom_command('operation show', 'show_provider_operations')
 
     # Resource feature commands
-    with self.command_group('feature', resource_feature_sdk, 
client_factory=cf_features, min_api='2017-05-10') as g:
+    with self.command_group('feature', resource_feature_sdk, 
client_factory=cf_features, resource_type=ResourceType.MGMT_RESOURCE_FEATURES) 
as g:
         feature_table_transform = '{Name:name, 
RegistrationState:properties.state}'
         g.custom_command('list', 'list_features', table_transformer='[].' + 
feature_table_transform)
         g.command('show', 'get', exception_handler=empty_on_404, 
table_transformer=feature_table_transform)
@@ -185,7 +185,7 @@
         g.command('remove-value', 'delete_value')
 
     with self.command_group('group deployment', resource_deployment_sdk) as g:
-        g.custom_command('create', 'deploy_arm_template', 
no_wait_param='no_wait', validator=process_deployment_create_namespace)
+        g.custom_command('create', 'deploy_arm_template', 
supports_no_wait=True, validator=process_deployment_create_namespace)
         g.command('list', 'list_by_resource_group', 
table_transformer=transform_deployments_list, min_api='2017-05-10')
         g.command('list', 'list', 
table_transformer=transform_deployments_list, max_api='2016-09-01')
         g.command('show', 'get', exception_handler=empty_on_404)
@@ -209,7 +209,7 @@
         g.command('delete', 'delete')
         g.command('list', 'list')
         g.custom_command('show', 'get_policy_definition', 
exception_handler=empty_on_404)
-        g.custom_command('update', 'update_policy_definition')
+        g.generic_update_command('update', 
custom_func_name='update_policy_definition', custom_func_type=resource_custom)
 
     with self.command_group('policy set-definition', 
resource_policy_set_definitions_sdk, 
resource_type=ResourceType.MGMT_RESOURCE_POLICY, min_api='2017-06-01-preview') 
as g:
         g.custom_command('create', 'create_policy_setdefinition')
@@ -232,13 +232,13 @@
         g.custom_command('list', 'list_resource_links')
         g.custom_command('update', 'update_resource_link')
 
-    with self.command_group('managedapp', resource_managedapp_sdk, 
min_api='2017-05-10') as g:
+    with self.command_group('managedapp', resource_managedapp_sdk, 
min_api='2017-05-10', resource_type=ResourceType.MGMT_RESOURCE_RESOURCES) as g:
         g.custom_command('create', 'create_application')
         g.command('delete', 'delete')
         g.custom_command('show', 'show_application', 
exception_handler=empty_on_404)
         g.custom_command('list', 'list_applications')
 
-    with self.command_group('managedapp definition', 
resource_managedapp_def_sdk, min_api='2017-05-10') as g:
+    with self.command_group('managedapp definition', 
resource_managedapp_def_sdk, min_api='2017-05-10', 
resource_type=ResourceType.MGMT_RESOURCE_RESOURCES) as g:
         g.custom_command('create', 'create_applicationdefinition')
         g.command('delete', 'delete')
         g.custom_command('show', 'show_applicationdefinition')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-resource-2.0.22/azure/cli/command_modules/resource/custom.py 
new/azure-cli-resource-2.0.27/azure/cli/command_modules/resource/custom.py
--- old/azure-cli-resource-2.0.22/azure/cli/command_modules/resource/custom.py  
2018-01-26 17:12:24.000000000 +0100
+++ new/azure-cli-resource-2.0.27/azure/cli/command_modules/resource/custom.py  
2018-04-06 19:33:13.000000000 +0200
@@ -30,7 +30,7 @@
 from azure.mgmt.resource.links.models import ResourceLinkProperties
 
 from azure.cli.core.parser import IncorrectUsageError
-from azure.cli.core.util import get_file_json, shell_safe_json_parse
+from azure.cli.core.util import get_file_json, shell_safe_json_parse, 
sdk_no_wait
 from azure.cli.core.commands.client_factory import get_mgmt_service_client
 from azure.cli.core.profiles import ResourceType, get_sdk
 
@@ -245,8 +245,8 @@
 
     smc = get_mgmt_service_client(cli_ctx, 
ResourceType.MGMT_RESOURCE_RESOURCES)
     if validate_only:
-        return smc.deployments.validate(resource_group_name, deployment_name, 
properties, raw=no_wait)
-    return smc.deployments.create_or_update(resource_group_name, 
deployment_name, properties, raw=no_wait)
+        return sdk_no_wait(no_wait, smc.deployments.validate, 
resource_group_name, deployment_name, properties)
+    return sdk_no_wait(no_wait, smc.deployments.create_or_update, 
resource_group_name, deployment_name, properties)
 
 
 def _list_resources_odata_filter_builder(resource_group_name=None, 
resource_provider_namespace=None,
@@ -470,16 +470,18 @@
     options = ','.join(export_options) if export_options else None
 
     result = rcf.resource_groups.export_template(resource_group_name, ['*'], 
options=options)
+
+    print(json.dumps(result.template, indent=2))
     # pylint: disable=no-member
     # On error, server still returns 200, with details in the error attribute
     if result.error:
         error = result.error
-        if (hasattr(error, 'details') and error.details and
-                hasattr(error.details[0], 'message')):
-            error = error.details[0].message
-        raise CLIError(error)
-
-    print(json.dumps(result.template, indent=2))
+        try:
+            logger.warning(error.message)
+        except AttributeError:
+            logger.warning(str(error))
+        for detail in getattr(error, 'details', None) or []:
+            logger.error(detail.message)
 
 
 def create_application(cmd, resource_group_name,
@@ -836,23 +838,20 @@
     _update_provider(cmd.cli_ctx, resource_provider_namespace, 
registering=False, wait=wait)
 
 
-def list_provider_operations(cmd, api_version=None):
-    api_version = api_version or 
_get_auth_provider_latest_api_version(cmd.cli_ctx)
+def list_provider_operations(cmd):
     auth_client = _authorization_management_client(cmd.cli_ctx)
-    return auth_client.provider_operations_metadata.list(api_version)
-
+    return auth_client.provider_operations_metadata.list()
 
-def show_provider_operations(cmd, resource_provider_namespace, 
api_version=None):
-    api_version = api_version or 
_get_auth_provider_latest_api_version(cmd.cli_ctx)
 
+def show_provider_operations(cmd, resource_provider_namespace):
     auth_client = _authorization_management_client(cmd.cli_ctx)
-    return 
auth_client.provider_operations_metadata.get(resource_provider_namespace, 
api_version)
+    return 
auth_client.provider_operations_metadata.get(resource_provider_namespace)
 
 
 def move_resource(cmd, ids, destination_group, 
destination_subscription_id=None):
     """Moves resources from one resource group to another(can be under 
different subscription)
 
-    :param ids: the space separated resource ids to be moved
+    :param ids: the space-separated resource ids to be moved
     :param destination_group: the destination resource group name
     :param destination_subscription_id: the destination subscription identifier
     """
@@ -894,7 +893,7 @@
                              resource_group_name=None, scope=None, sku=None,
                              not_scopes=None):
     """Creates a policy assignment
-    :param not_scopes: Space separated scopes where the policy assignment does 
not apply.
+    :param not_scopes: Space-separated scopes where the policy assignment does 
not apply.
     """
     if bool(policy) == bool(policy_set_definition):
         raise CLIError('usage error: --policy NAME_OR_ID | '
@@ -987,7 +986,8 @@
     return result
 
 
-def create_policy_definition(cmd, name, rules=None, params=None, 
display_name=None, description=None, mode=None):
+def create_policy_definition(cmd, name, rules=None, params=None, 
display_name=None, description=None, mode=None,
+                             metadata=None):
     rules = _load_file_string_or_uri(rules, 'rules')
     params = _load_file_string_or_uri(params, 'params', False)
 
@@ -997,6 +997,8 @@
                                   display_name=display_name)
     if cmd.supported_api_version(min_api='2016-12-01'):
         parameters.mode = mode
+    if cmd.supported_api_version(min_api='2017-06-01-preview'):
+        parameters.metadata = metadata
     return policy_client.policy_definitions.create_or_update(name, parameters)
 
 
@@ -1021,30 +1023,32 @@
     return _get_custom_or_builtin_policy(cmd, policy_client, 
policy_set_definition_name, True)
 
 
-def update_policy_definition(cmd, policy_definition_name, rules=None, 
params=None,
-                             display_name=None, description=None):
+def update_policy_definition(instance, cmd, policy_definition_name, 
rules=None, params=None,
+                             display_name=None, description=None, 
metadata=None):
     if rules:
         if os.path.exists(rules):
             rules = get_file_json(rules)
         else:
             rules = shell_safe_json_parse(rules)
+        instance.policy_rule = rules
 
     if params:
         if os.path.exists(params):
             params = get_file_json(params)
         else:
             params = shell_safe_json_parse(params)
+        instance.parameters = params
 
-    policy_client = _resource_policy_client_factory(cmd.cli_ctx)
-    definition = _get_custom_or_builtin_policy(cmd, policy_client, 
policy_definition_name)
-    # pylint: disable=line-too-long,no-member
-    PolicyDefinition = cmd.get_models('PolicyDefinition')
-    parameters = PolicyDefinition(
-        policy_rule=rules if rules is not None else definition.policy_rule,
-        description=description if description is not None else 
definition.description,
-        display_name=display_name if display_name is not None else 
definition.display_name,
-        parameters=params if params is not None else definition.parameters)
-    return 
policy_client.policy_definitions.create_or_update(policy_definition_name, 
parameters)
+    if display_name is not None:
+        instance.display_name = display_name
+
+    if description is not None:
+        instance.description = description
+
+    if metadata:
+        instance.metadata = metadata
+
+    return instance
 
 
 def update_policy_setdefinition(cmd, policy_set_definition_name, 
definitions=None, params=None,
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-resource-2.0.22/azure_cli_resource.egg-info/PKG-INFO 
new/azure-cli-resource-2.0.27/azure_cli_resource.egg-info/PKG-INFO
--- old/azure-cli-resource-2.0.22/azure_cli_resource.egg-info/PKG-INFO  
2018-01-26 17:12:31.000000000 +0100
+++ new/azure-cli-resource-2.0.27/azure_cli_resource.egg-info/PKG-INFO  
2018-04-06 19:33:47.000000000 +0200
@@ -1,11 +1,12 @@
 Metadata-Version: 1.1
 Name: azure-cli-resource
-Version: 2.0.22
+Version: 2.0.27
 Summary: Microsoft Azure Command-Line Tools Resource 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 'resource' Command Module
         =============================================
         
@@ -19,6 +20,27 @@
         
         Release History
         ===============
+        2.0.27
+        ++++++
+        * `policy definition create`: Add support for `--metadata`.
+        * `policy definition update`: Add support for `--metadata`, `--set`, 
`--add`, `--remove`.
+        * `sdist` is now compatible with wheel 0.31.0
+        
+        2.0.26
+        ++++++
+        provider operation list/show: (breaking change)`api-version` is no 
longer required to run the command
+        
+        2.0.25
+        ++++++
+        * Support Autorest 3.0 based SDKs
+        
+        2.0.24
+        ++++++
+        * `group deployment export`: On failure, command will now output a 
partial template and any failures.
+        
+        2.0.23
+        ++++++
+        * feature: bring back 'feature show' command
         
         2.0.22
         ++++++
@@ -65,7 +87,7 @@
         
         2.0.14 (2017-09-11)
         +++++++++++++++++++
-        * Allows passing in resource policy parameter definitions in 'policy 
definition create', and 'policy definition update'. 
+        * Allows passing in resource policy parameter definitions in 'policy 
definition create', and 'policy definition update'.
         * Allows passing in parameter values for 'policy assignment create'.
         * In all cases params can be provided either via json or file.
         * Incremented API version.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-resource-2.0.22/azure_cli_resource.egg-info/requires.txt 
new/azure-cli-resource-2.0.27/azure_cli_resource.egg-info/requires.txt
--- old/azure-cli-resource-2.0.22/azure_cli_resource.egg-info/requires.txt      
2018-01-26 17:12:31.000000000 +0100
+++ new/azure-cli-resource-2.0.27/azure_cli_resource.egg-info/requires.txt      
2018-04-06 19:33:47.000000000 +0200
@@ -1,3 +1,3 @@
 azure-mgmt-resource==1.2.1
 azure-cli-core
-azure-mgmt-authorization==0.30.0
+azure-mgmt-authorization==0.40.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure-cli-resource-2.0.22/setup.py 
new/azure-cli-resource-2.0.27/setup.py
--- old/azure-cli-resource-2.0.22/setup.py      2018-01-26 17:12:24.000000000 
+0100
+++ new/azure-cli-resource-2.0.27/setup.py      2018-04-06 19:33:13.000000000 
+0200
@@ -14,7 +14,8 @@
     logger.warn("Wheel is not available, disabling bdist_wheel hook")
     cmdclass = {}
 
-VERSION = "2.0.22"
+VERSION = "2.0.27"
+
 CLASSIFIERS = [
     'Development Status :: 5 - Production/Stable',
     'Intended Audience :: Developers',
@@ -32,7 +33,7 @@
 DEPENDENCIES = [
     'azure-mgmt-resource==1.2.1',
     'azure-cli-core',
-    'azure-mgmt-authorization==0.30.0'
+    'azure-mgmt-authorization==0.40.0'
 ]
 
 with open('README.rst', 'r', encoding='utf-8') as f:


Reply via email to