Hello community,

here is the log from the commit of package azure-cli-reservations for 
openSUSE:Factory checked in at 2018-10-15 10:47:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/azure-cli-reservations (Old)
 and      /work/SRC/openSUSE:Factory/.azure-cli-reservations.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "azure-cli-reservations"

Mon Oct 15 10:47:47 2018 rev:2 rq:641226 version:0.3.2

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/azure-cli-reservations/azure-cli-reservations.changes
    2018-02-14 09:33:41.954963945 +0100
+++ 
/work/SRC/openSUSE:Factory/.azure-cli-reservations.new/azure-cli-reservations.changes
       2018-10-15 10:47:50.807107715 +0200
@@ -1,0 +2,10 @@
+Mon Sep 17 13:48:57 UTC 2018 - John Paul Adrian Glaubitz 
<[email protected]>
+
+- New upstream release
+  + Version 0.3.2
+  + For detailed information about changes see the
+    HISTORY.txt file provided with this package
+- Move LICENSE.txt from %doc to %license section
+- Update Requires from setup.py
+
+-------------------------------------------------------------------

Old:
----
  azure-cli-reservations-0.1.1.tar.gz

New:
----
  azure-cli-reservations-0.3.2.tar.gz

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

Other differences:
------------------
++++++ azure-cli-reservations.spec ++++++
--- /var/tmp/diff_new_pack.w265nX/_old  2018-10-15 10:47:51.339107147 +0200
+++ /var/tmp/diff_new_pack.w265nX/_new  2018-10-15 10:47:51.339107147 +0200
@@ -12,11 +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-reservations
-Version:        0.1.1
+Version:        0.3.2
 Release:        0
 Summary:        Microsoft Azure CLI 'reservations' Command Module
 License:        MIT
@@ -24,16 +25,17 @@
 Url:            https://github.com/Azure/azure-cli
 Source:         
https://files.pythonhosted.org/packages/source/a/azure-cli-reservations/azure-cli-reservations-%{version}.tar.gz
 Source1:        LICENSE.txt
-BuildRequires:  python3-devel
-BuildRequires:  python3-setuptools
-BuildRequires:  unzip
 BuildRequires:  azure-cli-command-modules-nspkg
 BuildRequires:  azure-cli-nspkg
 BuildRequires:  python3-azure-nspkg
+BuildRequires:  python3-devel
+BuildRequires:  python3-setuptools
+BuildRequires:  unzip
 Requires:       azure-cli-command-modules-nspkg
+Requires:       azure-cli-core
 Requires:       azure-cli-nspkg
+Requires:       python3-azure-mgmt-reservations >= 0.2.1
 Requires:       python3-azure-nspkg
-Requires:       python3-azure-mgmt-reservations >= 0.1.0
 Conflicts:      azure-cli < 2.0.0
 
 BuildArch:      noarch
@@ -62,7 +64,9 @@
 
 %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/reservations
 %{python3_sitelib}/azure_cli_reservations-*.egg-info
+
 %changelog

++++++ azure-cli-reservations-0.1.1.tar.gz -> 
azure-cli-reservations-0.3.2.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure-cli-reservations-0.1.1/HISTORY.rst 
new/azure-cli-reservations-0.3.2/HISTORY.rst
--- old/azure-cli-reservations-0.1.1/HISTORY.rst        2018-01-05 
22:11:35.000000000 +0100
+++ new/azure-cli-reservations-0.3.2/HISTORY.rst        2018-08-23 
01:07:57.000000000 +0200
@@ -3,6 +3,45 @@
 Release History
 ===============
 
+0.3.2
++++++
+* Minor fixes
+
+0.3.1
++++++
+* Minor fixes.
+
+0.3.0
++++++
+* BREAKING CHANGE: 'show' commands log error message and fail with exit code 
of 3 upon a missing resource.
+
+0.2.1
++++++
+* Minor fixes.
+
+0.2.0
++++++
+**Breaking changes**
+
+* reservations catalog show
+    - Added required parameter ReservedResourceType.
+    - Added optional parameter Location.
+* Updated ReservationProperties model.
+    - Removed 'kind'.
+* Updated Catalog model.
+    - Renamed 'capabilities' to 'sku_properties'.
+    - Removed 'size' and 'tier'.
+
+**Notes**
+
+* reservations reservation update
+    - Added optional parameter InstanceFlexibility.
+* Support for InstanceFlexibility and ReservedResourceType.
+
+0.1.2
+++++++
+* `sdist` is now compatible with wheel 0.31.0
+
 0.1.1
 ++++++
 * Update for CLI core changes.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure-cli-reservations-0.1.1/PKG-INFO 
new/azure-cli-reservations-0.3.2/PKG-INFO
--- old/azure-cli-reservations-0.1.1/PKG-INFO   2018-01-05 22:12:12.000000000 
+0100
+++ new/azure-cli-reservations-0.3.2/PKG-INFO   2018-08-23 01:10:10.000000000 
+0200
@@ -1,12 +1,11 @@
 Metadata-Version: 1.1
 Name: azure-cli-reservations
-Version: 0.1.1
+Version: 0.3.2
 Summary: Microsoft Azure Command-Line Tools Reservations 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 'reservations' Command Module
         =================================================
         
@@ -19,6 +18,45 @@
         Release History
         ===============
         
+        0.3.2
+        +++++
+        * Minor fixes
+        
+        0.3.1
+        +++++
+        * Minor fixes.
+        
+        0.3.0
+        +++++
+        * BREAKING CHANGE: 'show' commands log error message and fail with 
exit code of 3 upon a missing resource.
+        
+        0.2.1
+        +++++
+        * Minor fixes.
+        
+        0.2.0
+        +++++
+        **Breaking changes**
+        
+        * reservations catalog show
+            - Added required parameter ReservedResourceType.
+            - Added optional parameter Location.
+        * Updated ReservationProperties model.
+            - Removed 'kind'.
+        * Updated Catalog model.
+            - Renamed 'capabilities' to 'sku_properties'.
+            - Removed 'size' and 'tier'.
+        
+        **Notes**
+        
+        * reservations reservation update
+            - Added optional parameter InstanceFlexibility.
+        * Support for InstanceFlexibility and ReservedResourceType.
+        
+        0.1.2
+        ++++++
+        * `sdist` is now compatible with wheel 0.31.0
+        
         0.1.1
         ++++++
         * Update for CLI core changes.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-reservations-0.1.1/azure/cli/command_modules/reservations/__init__.py
 
new/azure-cli-reservations-0.3.2/azure/cli/command_modules/reservations/__init__.py
--- 
old/azure-cli-reservations-0.1.1/azure/cli/command_modules/reservations/__init__.py
 2018-01-05 22:11:35.000000000 +0100
+++ 
new/azure-cli-reservations-0.3.2/azure/cli/command_modules/reservations/__init__.py
 2018-08-23 01:07:57.000000000 +0200
@@ -17,7 +17,9 @@
         reservations_custom = 
CliCommandType(operations_tmpl='azure.cli.command_modules.reservations.custom#{}',
                                              
client_factory=reservation_mgmt_client_factory,
                                              
exception_handler=reservations_exception_handler)
-        super(ReservationsCommandsLoader, self).__init__(cli_ctx=cli_ctx, 
custom_command_type=reservations_custom)
+        super(ReservationsCommandsLoader, self).__init__(cli_ctx=cli_ctx,
+                                                         
custom_command_type=reservations_custom,
+                                                         
min_profile='2017-03-10-profile')
 
     def load_command_table(self, args):
         from azure.cli.command_modules.reservations.commands import 
load_command_table
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-reservations-0.1.1/azure/cli/command_modules/reservations/_client_factory.py
 
new/azure-cli-reservations-0.3.2/azure/cli/command_modules/reservations/_client_factory.py
--- 
old/azure-cli-reservations-0.1.1/azure/cli/command_modules/reservations/_client_factory.py
  2018-01-05 22:11:35.000000000 +0100
+++ 
new/azure-cli-reservations-0.3.2/azure/cli/command_modules/reservations/_client_factory.py
  2018-08-23 01:07:57.000000000 +0200
@@ -16,3 +16,7 @@
 
 def reservation_order_mgmt_client_factory(cli_ctx, kwargs):
     return cf_reservations(cli_ctx, **kwargs).reservation_order
+
+
+def base_mgmt_client_factory(cli_ctx, kwargs):
+    return cf_reservations(cli_ctx, **kwargs)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-reservations-0.1.1/azure/cli/command_modules/reservations/_help.py
 
new/azure-cli-reservations-0.3.2/azure/cli/command_modules/reservations/_help.py
--- 
old/azure-cli-reservations-0.1.1/azure/cli/command_modules/reservations/_help.py
    2018-01-05 22:11:35.000000000 +0100
+++ 
new/azure-cli-reservations-0.3.2/azure/cli/command_modules/reservations/_help.py
    2018-08-23 01:07:57.000000000 +0200
@@ -1,10 +1,13 @@
-# 
--------------------------------------------------------------------------------------------
+# 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.
 # 
--------------------------------------------------------------------------------------------
 
 from knack.help_files import helps
 
+# pylint: disable=line-too-long
+
 helps['reservations'] = """
     type: group
     short-summary: Manage Azure Reservations.
@@ -67,6 +70,9 @@
         - name: --subscription-id
           type: string
           short-summary: Id of the subscription to get the catalog for
+        - name: --reserved-resource-type
+          type: string
+          short-summary: Type of the resource for which the skus should be 
provided.
 """
 
 helps['reservations reservation list'] = """
@@ -98,16 +104,19 @@
     parameters:
         - name: --reservation-order-id
           type: string
-          short-summary: Order id of reservation to update
+          short-summary: Reservation order id of the reservation to update
         - name: --reservation-id
           type: string
-          short-summary: Reservation id of reservation to update
+          short-summary: Id of the reservation to update
         - name: --applied-scope-type -t
           type: string
-          short-summary: 'Type is either Single or Shared'
+          short-summary: Type of the Applied Scope to update the reservation 
with
         - name: --applied-scopes -s
           type: string
-          short-summary: 'If applied scope type is Single, this field must be 
provided'
+          short-summary: Subscription that the benefit will be applied. Do not 
specify if AppliedScopeType is Shared.
+        - name: --instance-flexibility -i
+          type: string
+          short-summary: Type of the Instance Flexibility to update the 
reservation with
 """
 
 helps['reservations reservation split'] = """
@@ -116,10 +125,10 @@
     parameters:
         - name: --reservation-order-id
           type: string
-          short-summary: Order id of original reservation
+          short-summary: Reservation order id of the reservation to split
         - name: --reservation-id
           type: string
-          short-summary: Reservation id of original reservation
+          short-summary: Reservation id of the reservation to split
         - name: --quantity-1 -1
           type: int
           short-summary: Quantity of the first reservation that will be 
created from split operation
@@ -134,7 +143,7 @@
     parameters:
         - name: --reservation-order-id
           type: string
-          short-summary: Order id of original reservation
+          short-summary: Reservation order id of the reservations to merge
         - name: --reservation-id-1 -1
           type: string
           short-summary: Id of the first reservation to merge
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-reservations-0.1.1/azure/cli/command_modules/reservations/_params.py
 
new/azure-cli-reservations-0.3.2/azure/cli/command_modules/reservations/_params.py
--- 
old/azure-cli-reservations-0.1.1/azure/cli/command_modules/reservations/_params.py
  2018-01-05 22:11:35.000000000 +0100
+++ 
new/azure-cli-reservations-0.3.2/azure/cli/command_modules/reservations/_params.py
  2018-08-23 01:07:57.000000000 +0200
@@ -5,10 +5,21 @@
 
 
 # pylint: disable=line-too-long
+
+from azure.cli.core.commands.parameters import get_enum_type
+
+from azure.mgmt.reservations.models import (
+    ReservedResourceType,
+    InstanceFlexibility,
+    AppliedScopeType
+)
+
+
 def load_arguments(self, _):
     with self.argument_context('reservations reservation update') as c:
-        c.argument('applied_scope_type', options_list=['--applied-scope-type', 
'-t'])
+        c.argument('applied_scope_type', options_list=['--applied-scope-type', 
'-t'], arg_type=get_enum_type(AppliedScopeType))
         c.argument('applied_scopes', options_list=['--applied-scopes', '-s'])
+        c.argument('instance_flexibility', 
options_list=['--instance-flexibility', '-i'], 
arg_type=get_enum_type(InstanceFlexibility))
 
     with self.argument_context('reservations reservation split') as c:
         c.argument('quantity_1', options_list=['--quantity-1', '-1'])
@@ -17,3 +28,6 @@
     with self.argument_context('reservations reservation merge') as c:
         c.argument('reservation_id_1', options_list=['--reservation-id-1', 
'-1'])
         c.argument('reservation_id_2', options_list=['--reservation-id-2', 
'-2'])
+
+    with self.argument_context('reservations catalog show') as c:
+        c.argument('reserved_resource_type', 
arg_type=get_enum_type(ReservedResourceType))
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-reservations-0.1.1/azure/cli/command_modules/reservations/commands.py
 
new/azure-cli-reservations-0.3.2/azure/cli/command_modules/reservations/commands.py
--- 
old/azure-cli-reservations-0.1.1/azure/cli/command_modules/reservations/commands.py
 2018-01-05 22:11:35.000000000 +0100
+++ 
new/azure-cli-reservations-0.3.2/azure/cli/command_modules/reservations/commands.py
 2018-08-23 01:07:57.000000000 +0200
@@ -7,7 +7,7 @@
 
 from azure.cli.core.commands import CliCommandType
 from azure.cli.command_modules.reservations._client_factory import (
-    reservation_mgmt_client_factory, reservation_order_mgmt_client_factory)
+    reservation_mgmt_client_factory, reservation_order_mgmt_client_factory, 
base_mgmt_client_factory)
 from ._exception_handler import reservations_exception_handler
 
 
@@ -27,16 +27,16 @@
 
     reservations_client_sdk = reservations_type(
         
operations_tmpl='azure.mgmt.reservations.azure_reservation_api#AzureReservationAPI.{}',
-        client_factory=reservation_order_mgmt_client_factory
+        client_factory=base_mgmt_client_factory
     )
 
     with self.command_group('reservations reservation-order', 
reservations_order_sdk) as g:
         g.command('list', 'list')
-        g.command('show', 'get')
+        g.show_command('show', 'get')
 
     with self.command_group('reservations reservation', reservations_sdk) as g:
         g.command('list', 'list')
-        g.command('show', 'get')
+        g.show_command('show', 'get')
         g.command('list-history', 'list_revisions')
         g.custom_command('update', 'cli_reservation_update_reservation')
         g.custom_command('split', 'cli_reservation_split_reservation')
@@ -46,4 +46,4 @@
         g.command('list', 'get_applied_reservation_list')
 
     with self.command_group('reservations catalog', reservations_client_sdk) 
as g:
-        g.command('show', 'get_catalog')
+        g.show_command('show', 'get_catalog')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-reservations-0.1.1/azure/cli/command_modules/reservations/custom.py
 
new/azure-cli-reservations-0.3.2/azure/cli/command_modules/reservations/custom.py
--- 
old/azure-cli-reservations-0.1.1/azure/cli/command_modules/reservations/custom.py
   2018-01-05 22:11:35.000000000 +0100
+++ 
new/azure-cli-reservations-0.3.2/azure/cli/command_modules/reservations/custom.py
   2018-08-23 01:07:57.000000000 +0200
@@ -3,17 +3,19 @@
 # Licensed under the MIT License. See License.txt in the project root for 
license information.
 # 
--------------------------------------------------------------------------------------------
 
-from azure.mgmt.reservations.models.patch import Patch
-from azure.mgmt.reservations.models.split_request import SplitRequest
-from azure.mgmt.reservations.models.merge_request import MergeRequest
+from azure.mgmt.reservations.models import Patch
 
 
 def cli_reservation_update_reservation(client, reservation_order_id, 
reservation_id,
-                                       applied_scope_type, 
applied_scopes=None):
+                                       applied_scope_type, applied_scopes=None,
+                                       instance_flexibility=None):
     if applied_scopes:
-        patch = Patch(applied_scope_type, [applied_scopes])
+        patch = Patch(applied_scope_type=applied_scope_type,
+                      applied_scopes=[applied_scopes],
+                      instance_flexibility=instance_flexibility)
     else:
-        patch = Patch(applied_scope_type)
+        patch = Patch(applied_scope_type=applied_scope_type,
+                      instance_flexibility=instance_flexibility)
     return client.update(reservation_order_id, reservation_id, patch)
 
 
@@ -22,12 +24,14 @@
     return template.format(reservation_order_id, reservation_id)
 
 
-def cli_reservation_split_reservation(client, reservation_order_id, 
reservation_id, quantity_1, quantity_2):
-    split = SplitRequest([quantity_1, quantity_2], 
create_resource_id(reservation_order_id, reservation_id))
-    return client.split(reservation_order_id, split)
+def cli_reservation_split_reservation(client, reservation_order_id,
+                                      reservation_id, quantity_1, quantity_2):
+    reservationToSplit = create_resource_id(reservation_order_id, 
reservation_id)
+    return client.split(reservation_order_id, [quantity_1, quantity_2], 
reservationToSplit)
 
 
-def cli_reservation_merge_reservation(client, reservation_order_id, 
reservation_id_1, reservation_id_2):
-    merge = MergeRequest([create_resource_id(reservation_order_id, 
reservation_id_1),
-                          create_resource_id(reservation_order_id, 
reservation_id_2)])
-    return client.merge(reservation_order_id, merge)
+def cli_reservation_merge_reservation(client, reservation_order_id,
+                                      reservation_id_1, reservation_id_2):
+    return client.merge(reservation_order_id,
+                        [create_resource_id(reservation_order_id, 
reservation_id_1),
+                         create_resource_id(reservation_order_id, 
reservation_id_2)])
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-reservations-0.1.1/azure_cli_reservations.egg-info/PKG-INFO 
new/azure-cli-reservations-0.3.2/azure_cli_reservations.egg-info/PKG-INFO
--- old/azure-cli-reservations-0.1.1/azure_cli_reservations.egg-info/PKG-INFO   
2018-01-05 22:12:11.000000000 +0100
+++ new/azure-cli-reservations-0.3.2/azure_cli_reservations.egg-info/PKG-INFO   
2018-08-23 01:10:10.000000000 +0200
@@ -1,12 +1,11 @@
 Metadata-Version: 1.1
 Name: azure-cli-reservations
-Version: 0.1.1
+Version: 0.3.2
 Summary: Microsoft Azure Command-Line Tools Reservations 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 'reservations' Command Module
         =================================================
         
@@ -19,6 +18,45 @@
         Release History
         ===============
         
+        0.3.2
+        +++++
+        * Minor fixes
+        
+        0.3.1
+        +++++
+        * Minor fixes.
+        
+        0.3.0
+        +++++
+        * BREAKING CHANGE: 'show' commands log error message and fail with 
exit code of 3 upon a missing resource.
+        
+        0.2.1
+        +++++
+        * Minor fixes.
+        
+        0.2.0
+        +++++
+        **Breaking changes**
+        
+        * reservations catalog show
+            - Added required parameter ReservedResourceType.
+            - Added optional parameter Location.
+        * Updated ReservationProperties model.
+            - Removed 'kind'.
+        * Updated Catalog model.
+            - Renamed 'capabilities' to 'sku_properties'.
+            - Removed 'size' and 'tier'.
+        
+        **Notes**
+        
+        * reservations reservation update
+            - Added optional parameter InstanceFlexibility.
+        * Support for InstanceFlexibility and ReservedResourceType.
+        
+        0.1.2
+        ++++++
+        * `sdist` is now compatible with wheel 0.31.0
+        
         0.1.1
         ++++++
         * Update for CLI core changes.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-cli-reservations-0.1.1/azure_cli_reservations.egg-info/requires.txt 
new/azure-cli-reservations-0.3.2/azure_cli_reservations.egg-info/requires.txt
--- 
old/azure-cli-reservations-0.1.1/azure_cli_reservations.egg-info/requires.txt   
    2018-01-05 22:12:11.000000000 +0100
+++ 
new/azure-cli-reservations-0.3.2/azure_cli_reservations.egg-info/requires.txt   
    2018-08-23 01:10:10.000000000 +0200
@@ -1,2 +1,2 @@
-azure-mgmt-reservations==0.1.0
+azure-mgmt-reservations==0.2.1
 azure-cli-core
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure-cli-reservations-0.1.1/setup.py 
new/azure-cli-reservations-0.3.2/setup.py
--- old/azure-cli-reservations-0.1.1/setup.py   2018-01-05 22:11:35.000000000 
+0100
+++ new/azure-cli-reservations-0.3.2/setup.py   2018-08-23 01:07:57.000000000 
+0200
@@ -15,7 +15,7 @@
     logger.warn("Wheel is not available, disabling bdist_wheel hook")
     cmdclass = {}
 
-VERSION = "0.1.1"
+VERSION = "0.3.2"
 # The full list of classifiers is available at
 # https://pypi.python.org/pypi?%3Aaction=list_classifiers
 CLASSIFIERS = [
@@ -33,7 +33,7 @@
 ]
 
 DEPENDENCIES = [
-    'azure-mgmt-reservations==0.1.0',
+    'azure-mgmt-reservations==0.2.1',
     'azure-cli-core'
 ]
 


Reply via email to