From 1124f97decdcfdc235bc21542e93d0f072aca4d2 Mon Sep 17 00:00:00 2001 From: jeffrey-ACE Date: Mon, 26 Mar 2018 15:48:06 -0700 Subject: [PATCH 1/7] add partner name for create, update and show commands for managementpartner --- src/index.json | 6 +++--- .../azext_managementpartner/custom.py | 1 + .../managementpartner/__init__.py | 1 + .../ace_provisioning_management_partner_api.py | 6 +++--- .../managementpartner/models/error.py | 2 +- .../models/extended_error_info.py | 2 +- .../managementpartner/models/operation_response.py | 2 +- .../models/operation_response_paged.py | 2 +- .../managementpartner/models/partner_response.py | 8 ++++++-- .../operations/operation_operations.py | 4 ++-- .../operations/partner_operations.py | 14 +++++++------- .../managementpartner/version.py | 3 ++- src/managementpartner/setup.py | 2 +- 13 files changed, 30 insertions(+), 23 deletions(-) diff --git a/src/index.json b/src/index.json index ffd1defbfcd..191edbac381 100644 --- a/src/index.json +++ b/src/index.json @@ -514,9 +514,9 @@ ], "managementpartner": [ { - "filename": "managementpartner-0.1.0-py2.py3-none-any.whl", - "sha256Digest": "b7aa85e4686cd441afec7272228407eac3d7090c1e411d9990ca1d02885584ce", - "downloadUrl": "https://files.pythonhosted.org/packages/74/b0/272479338346bf69040f4d952efa6a8c88084e2ac3adc58f11308254ab18/managementpartner-0.1.0-py2.py3-none-any.whl", + "filename": "managementpartner-0.1.1-py2.py3-none-any.whl", + "sha256Digest": "AAD06A4EC86E6926A384265A99084A02FC8210D88DDD18EDDF34F4672B6995FA", + "downloadUrl": "https://pypi.python.org/packages/6d/1e/3edcb79d4f7aa6b70d5e1d3e1ea6f9df6cef7e771695e90f731235e75484/managementpartner-0.1.1-py2.py3-none-any.whl", "metadata": { "classifiers": [ "Development Status :: 4 - Beta", diff --git a/src/managementpartner/azext_managementpartner/custom.py b/src/managementpartner/azext_managementpartner/custom.py index c77f6dad92a..36178a65fab 100644 --- a/src/managementpartner/azext_managementpartner/custom.py +++ b/src/managementpartner/azext_managementpartner/custom.py @@ -10,6 +10,7 @@ def print_managementpartner(partnerresponse): partner["partnerId"] = partnerresponse.partner_id partner["tenantId"] = partnerresponse.tenant_id partner["state"] = partnerresponse.state + partner["partnerName"] = partnerresponse.partner_name return partner diff --git a/src/managementpartner/azext_managementpartner/managementpartner/__init__.py b/src/managementpartner/azext_managementpartner/managementpartner/__init__.py index abd61c078ba..90af592e5a7 100644 --- a/src/managementpartner/azext_managementpartner/managementpartner/__init__.py +++ b/src/managementpartner/azext_managementpartner/managementpartner/__init__.py @@ -15,3 +15,4 @@ __all__ = ['ACEProvisioningManagementPartnerAPI'] __version__ = VERSION + diff --git a/src/managementpartner/azext_managementpartner/managementpartner/ace_provisioning_management_partner_api.py b/src/managementpartner/azext_managementpartner/managementpartner/ace_provisioning_management_partner_api.py index 7c678713a06..14b4b6bf0c0 100644 --- a/src/managementpartner/azext_managementpartner/managementpartner/ace_provisioning_management_partner_api.py +++ b/src/managementpartner/azext_managementpartner/managementpartner/ace_provisioning_management_partner_api.py @@ -39,7 +39,7 @@ def __init__( super(ACEProvisioningManagementPartnerAPIConfiguration, self).__init__(base_url) - self.add_user_agent('aceprovisioningmanagementpartnerapi/{}'.format(VERSION)) + self.add_user_agent('azure-mgmt-managementpartner/{}'.format(VERSION)) self.add_user_agent('Azure-SDK-For-Python') self.credentials = credentials @@ -52,9 +52,9 @@ class ACEProvisioningManagementPartnerAPI(object): :vartype config: ACEProvisioningManagementPartnerAPIConfiguration :ivar partner: Partner operations - :vartype partner: managementpartner.operations.PartnerOperations + :vartype partner: azure.mgmt.managementpartner.operations.PartnerOperations :ivar operation: Operation operations - :vartype operation: managementpartner.operations.OperationOperations + :vartype operation: azure.mgmt.managementpartner.operations.OperationOperations :param credentials: Credentials needed for the client to connect to Azure. :type credentials: :mod:`A msrestazure Credentials diff --git a/src/managementpartner/azext_managementpartner/managementpartner/models/error.py b/src/managementpartner/azext_managementpartner/managementpartner/models/error.py index 415174e789d..de426d8a236 100644 --- a/src/managementpartner/azext_managementpartner/managementpartner/models/error.py +++ b/src/managementpartner/azext_managementpartner/managementpartner/models/error.py @@ -17,7 +17,7 @@ class Error(Model): """this is the management partner operations error. :param error: this is the ExtendedErrorInfo property - :type error: ~managementpartner.models.ExtendedErrorInfo + :type error: ~azure.mgmt.managementpartner.models.ExtendedErrorInfo """ _attribute_map = { diff --git a/src/managementpartner/azext_managementpartner/managementpartner/models/extended_error_info.py b/src/managementpartner/azext_managementpartner/managementpartner/models/extended_error_info.py index 0babf48b6f5..25cb3debb55 100644 --- a/src/managementpartner/azext_managementpartner/managementpartner/models/extended_error_info.py +++ b/src/managementpartner/azext_managementpartner/managementpartner/models/extended_error_info.py @@ -17,7 +17,7 @@ class ExtendedErrorInfo(Model): :param code: this is the error response code. Possible values include: 'NotFound', 'Conflict', 'BadRequest' - :type code: str or ~managementpartner.models.enum + :type code: str or ~azure.mgmt.managementpartner.models.enum :param message: this is the extended error info message :type message: str """ diff --git a/src/managementpartner/azext_managementpartner/managementpartner/models/operation_response.py b/src/managementpartner/azext_managementpartner/managementpartner/models/operation_response.py index 7c05736cf2b..baaaeab196c 100644 --- a/src/managementpartner/azext_managementpartner/managementpartner/models/operation_response.py +++ b/src/managementpartner/azext_managementpartner/managementpartner/models/operation_response.py @@ -18,7 +18,7 @@ class OperationResponse(Model): :param name: this is the operation response name :type name: str :param display: this is the operation display - :type display: ~managementpartner.models.OperationDisplay + :type display: ~azure.mgmt.managementpartner.models.OperationDisplay :param origin: the is operation response origin information :type origin: str """ diff --git a/src/managementpartner/azext_managementpartner/managementpartner/models/operation_response_paged.py b/src/managementpartner/azext_managementpartner/managementpartner/models/operation_response_paged.py index 6fe6132cf70..6b6a6eaf6f0 100644 --- a/src/managementpartner/azext_managementpartner/managementpartner/models/operation_response_paged.py +++ b/src/managementpartner/azext_managementpartner/managementpartner/models/operation_response_paged.py @@ -14,7 +14,7 @@ class OperationResponsePaged(Paged): """ - A paging container for iterating over a list of :class:`OperationResponse ` object + A paging container for iterating over a list of :class:`OperationResponse ` object """ _attribute_map = { diff --git a/src/managementpartner/azext_managementpartner/managementpartner/models/partner_response.py b/src/managementpartner/azext_managementpartner/managementpartner/models/partner_response.py index f2444e91b71..a9ae5f28d31 100644 --- a/src/managementpartner/azext_managementpartner/managementpartner/models/partner_response.py +++ b/src/managementpartner/azext_managementpartner/managementpartner/models/partner_response.py @@ -26,6 +26,8 @@ class PartnerResponse(Model): :vartype name: str :param partner_id: This is the partner id :type partner_id: str + :param partner_name: This is the partner name + :type partner_name: str :param tenant_id: This is the tenant id. :type tenant_id: str :param object_id: This is the object id. @@ -38,7 +40,7 @@ class PartnerResponse(Model): :type created_time: datetime :param state: This is the partner state. Possible values include: 'Active', 'Deleted' - :type state: str or ~managementpartner.models.enum + :type state: str or ~azure.mgmt.managementpartner.models.enum :ivar type: Type of resource. "Microsoft.ManagementPartner/partners" :vartype type: str """ @@ -54,6 +56,7 @@ class PartnerResponse(Model): 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'partner_id': {'key': 'properties.partnerId', 'type': 'str'}, + 'partner_name': {'key': 'properties.partnerName', 'type': 'str'}, 'tenant_id': {'key': 'properties.tenantId', 'type': 'str'}, 'object_id': {'key': 'properties.objectId', 'type': 'str'}, 'version': {'key': 'properties.version', 'type': 'str'}, @@ -63,12 +66,13 @@ class PartnerResponse(Model): 'type': {'key': 'type', 'type': 'str'}, } - def __init__(self, etag=None, partner_id=None, tenant_id=None, object_id=None, version=None, updated_time=None, created_time=None, state=None): + def __init__(self, etag=None, partner_id=None, partner_name=None, tenant_id=None, object_id=None, version=None, updated_time=None, created_time=None, state=None): super(PartnerResponse, self).__init__() self.etag = etag self.id = None self.name = None self.partner_id = partner_id + self.partner_name = partner_name self.tenant_id = tenant_id self.object_id = object_id self.version = version diff --git a/src/managementpartner/azext_managementpartner/managementpartner/operations/operation_operations.py b/src/managementpartner/azext_managementpartner/managementpartner/operations/operation_operations.py index f919f1b20c8..3ffb2175345 100644 --- a/src/managementpartner/azext_managementpartner/managementpartner/operations/operation_operations.py +++ b/src/managementpartner/azext_managementpartner/managementpartner/operations/operation_operations.py @@ -49,9 +49,9 @@ def list( overrides`. :return: An iterator like instance of OperationResponse :rtype: - ~managementpartner.models.OperationResponsePaged[~managementpartner.models.OperationResponse] + ~azure.mgmt.managementpartner.models.OperationResponsePaged[~azure.mgmt.managementpartner.models.OperationResponse] :raises: - :class:`ErrorException` + :class:`ErrorException` """ def internal_paging(next_link=None, raw=False): diff --git a/src/managementpartner/azext_managementpartner/managementpartner/operations/partner_operations.py b/src/managementpartner/azext_managementpartner/managementpartner/operations/partner_operations.py index 252f666dd0b..9564c141655 100644 --- a/src/managementpartner/azext_managementpartner/managementpartner/operations/partner_operations.py +++ b/src/managementpartner/azext_managementpartner/managementpartner/operations/partner_operations.py @@ -50,10 +50,10 @@ def get( :param operation_config: :ref:`Operation configuration overrides`. :return: PartnerResponse or ClientRawResponse if raw=true - :rtype: ~managementpartner.models.PartnerResponse or + :rtype: ~azure.mgmt.managementpartner.models.PartnerResponse or ~msrest.pipeline.ClientRawResponse :raises: - :class:`ErrorException` + :class:`ErrorException` """ # Construct URL url = '/providers/Microsoft.ManagementPartner/partners/{partnerId}' @@ -108,10 +108,10 @@ def create( :param operation_config: :ref:`Operation configuration overrides`. :return: PartnerResponse or ClientRawResponse if raw=true - :rtype: ~managementpartner.models.PartnerResponse or + :rtype: ~azure.mgmt.managementpartner.models.PartnerResponse or ~msrest.pipeline.ClientRawResponse :raises: - :class:`ErrorException` + :class:`ErrorException` """ # Construct URL url = '/providers/Microsoft.ManagementPartner/partners/{partnerId}' @@ -166,10 +166,10 @@ def update( :param operation_config: :ref:`Operation configuration overrides`. :return: PartnerResponse or ClientRawResponse if raw=true - :rtype: ~managementpartner.models.PartnerResponse or + :rtype: ~azure.mgmt.managementpartner.models.PartnerResponse or ~msrest.pipeline.ClientRawResponse :raises: - :class:`ErrorException` + :class:`ErrorException` """ # Construct URL url = '/providers/Microsoft.ManagementPartner/partners/{partnerId}' @@ -226,7 +226,7 @@ def delete( :return: None or ClientRawResponse if raw=true :rtype: None or ~msrest.pipeline.ClientRawResponse :raises: - :class:`ErrorException` + :class:`ErrorException` """ # Construct URL url = '/providers/Microsoft.ManagementPartner/partners/{partnerId}' diff --git a/src/managementpartner/azext_managementpartner/managementpartner/version.py b/src/managementpartner/azext_managementpartner/managementpartner/version.py index fb0159ed93d..e7efe25ea7e 100644 --- a/src/managementpartner/azext_managementpartner/managementpartner/version.py +++ b/src/managementpartner/azext_managementpartner/managementpartner/version.py @@ -9,4 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "0.1.0" +VERSION = "0.1.1" + diff --git a/src/managementpartner/setup.py b/src/managementpartner/setup.py index 531467e4813..4cf50580d88 100644 --- a/src/managementpartner/setup.py +++ b/src/managementpartner/setup.py @@ -8,7 +8,7 @@ from codecs import open from setuptools import setup, find_packages -VERSION = "0.1.0" +VERSION = "0.1.1" CLASSIFIERS = [ 'Development Status :: 4 - Beta', From 931a74405e7a0dcaa6080ad8c2b08c93e2f3c1db Mon Sep 17 00:00:00 2001 From: jeffrey-ACE Date: Mon, 26 Mar 2018 16:04:19 -0700 Subject: [PATCH 2/7] fix the url for managementpartner whl file --- src/index.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.json b/src/index.json index cef14e01709..172862ce52d 100644 --- a/src/index.json +++ b/src/index.json @@ -516,7 +516,7 @@ { "filename": "managementpartner-0.1.1-py2.py3-none-any.whl", "sha256Digest": "AAD06A4EC86E6926A384265A99084A02FC8210D88DDD18EDDF34F4672B6995FA", - "downloadUrl": "https://pypi.python.org/packages/6d/1e/3edcb79d4f7aa6b70d5e1d3e1ea6f9df6cef7e771695e90f731235e75484/managementpartner-0.1.1-py2.py3-none-any.whl", + "downloadUrl": "https://files.pythonhosted.org/packages/6d/1e/3edcb79d4f7aa6b70d5e1d3e1ea6f9df6cef7e771695e90f731235e75484/managementpartner-0.1.1-py2.py3-none-any.whl", "metadata": { "classifiers": [ "Development Status :: 4 - Beta", From f5ff1fa50831810739ec1a1f8d884e57dacd160d Mon Sep 17 00:00:00 2001 From: jeffrey-ACE Date: Mon, 26 Mar 2018 16:27:28 -0700 Subject: [PATCH 3/7] Fix managementpartner sha256Digest and description --- src/index.json | 2 +- src/managementpartner/setup.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/index.json b/src/index.json index 172862ce52d..5d519fbaaf1 100644 --- a/src/index.json +++ b/src/index.json @@ -515,7 +515,7 @@ "managementpartner": [ { "filename": "managementpartner-0.1.1-py2.py3-none-any.whl", - "sha256Digest": "AAD06A4EC86E6926A384265A99084A02FC8210D88DDD18EDDF34F4672B6995FA", + "sha256Digest": "aad06a4ec86e6926a384265a99084a02fc8210d88ddd18eddf34f4672b6995fa", "downloadUrl": "https://files.pythonhosted.org/packages/6d/1e/3edcb79d4f7aa6b70d5e1d3e1ea6f9df6cef7e771695e90f731235e75484/managementpartner-0.1.1-py2.py3-none-any.whl", "metadata": { "classifiers": [ diff --git a/src/managementpartner/setup.py b/src/managementpartner/setup.py index 4cf50580d88..9bcb9758ac0 100644 --- a/src/managementpartner/setup.py +++ b/src/managementpartner/setup.py @@ -29,8 +29,8 @@ setup( name='managementpartner', version=VERSION, - description='An Azure CLI Extension for Management Partner', - long_description='An Azure CLI Extension for Management Partner', + description='Support for Management Partner preview', + long_description='Support for Management Partner preview', license='MIT', author='Jeffrey Li', author_email='jefl@microsoft.com', From 82e62638361d595b0b6d33fe8ec2f8dea33c9dd5 Mon Sep 17 00:00:00 2001 From: jeffrey-ACE Date: Mon, 26 Mar 2018 17:30:31 -0700 Subject: [PATCH 4/7] Fix the test cases --- .../latest/recordings/test_create_managementpartner.yaml | 4 ++-- .../latest/recordings/test_delete_managementpartner.yaml | 4 ++-- .../latest/recordings/test_show_managementpartner.yaml | 6 +++--- .../latest/recordings/test_update_managementpartner.yaml | 6 +++--- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/managementpartner/azext_managementpartner/tests/latest/recordings/test_create_managementpartner.yaml b/src/managementpartner/azext_managementpartner/tests/latest/recordings/test_create_managementpartner.yaml index f9b60622a3c..566a4f030dc 100644 --- a/src/managementpartner/azext_managementpartner/tests/latest/recordings/test_create_managementpartner.yaml +++ b/src/managementpartner/azext_managementpartner/tests/latest/recordings/test_create_managementpartner.yaml @@ -42,7 +42,7 @@ interactions: Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 aceprovisioningmanagementpartnerapi/0.1.0 Azure-SDK-For-Python + msrest_azure/0.4.20 aceprovisioningmanagementpartnerapi/0.1.1 Azure-SDK-For-Python AZURECLI/2.0.27] accept-language: [en-US] method: PUT @@ -108,7 +108,7 @@ interactions: Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 aceprovisioningmanagementpartnerapi/0.1.0 Azure-SDK-For-Python + msrest_azure/0.4.20 aceprovisioningmanagementpartnerapi/0.1.1 Azure-SDK-For-Python AZURECLI/2.0.27] accept-language: [en-US] method: DELETE diff --git a/src/managementpartner/azext_managementpartner/tests/latest/recordings/test_delete_managementpartner.yaml b/src/managementpartner/azext_managementpartner/tests/latest/recordings/test_delete_managementpartner.yaml index 24698ab4dc4..e8ab994a3be 100644 --- a/src/managementpartner/azext_managementpartner/tests/latest/recordings/test_delete_managementpartner.yaml +++ b/src/managementpartner/azext_managementpartner/tests/latest/recordings/test_delete_managementpartner.yaml @@ -42,7 +42,7 @@ interactions: Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 aceprovisioningmanagementpartnerapi/0.1.0 Azure-SDK-For-Python + msrest_azure/0.4.20 aceprovisioningmanagementpartnerapi/0.1.1 Azure-SDK-For-Python AZURECLI/2.0.27] accept-language: [en-US] method: PUT @@ -108,7 +108,7 @@ interactions: Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 aceprovisioningmanagementpartnerapi/0.1.0 Azure-SDK-For-Python + msrest_azure/0.4.20 aceprovisioningmanagementpartnerapi/0.1.1 Azure-SDK-For-Python AZURECLI/2.0.27] accept-language: [en-US] method: DELETE diff --git a/src/managementpartner/azext_managementpartner/tests/latest/recordings/test_show_managementpartner.yaml b/src/managementpartner/azext_managementpartner/tests/latest/recordings/test_show_managementpartner.yaml index 6d0abb8be7d..73eb0ae7944 100644 --- a/src/managementpartner/azext_managementpartner/tests/latest/recordings/test_show_managementpartner.yaml +++ b/src/managementpartner/azext_managementpartner/tests/latest/recordings/test_show_managementpartner.yaml @@ -42,7 +42,7 @@ interactions: Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 aceprovisioningmanagementpartnerapi/0.1.0 Azure-SDK-For-Python + msrest_azure/0.4.20 aceprovisioningmanagementpartnerapi/0.1.1 Azure-SDK-For-Python AZURECLI/2.0.27] accept-language: [en-US] method: PUT @@ -107,7 +107,7 @@ interactions: Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 aceprovisioningmanagementpartnerapi/0.1.0 Azure-SDK-For-Python + msrest_azure/0.4.20 aceprovisioningmanagementpartnerapi/0.1.1 Azure-SDK-For-Python AZURECLI/2.0.27] accept-language: [en-US] method: GET @@ -172,7 +172,7 @@ interactions: Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 aceprovisioningmanagementpartnerapi/0.1.0 Azure-SDK-For-Python + msrest_azure/0.4.20 aceprovisioningmanagementpartnerapi/0.1.1 Azure-SDK-For-Python AZURECLI/2.0.27] accept-language: [en-US] method: DELETE diff --git a/src/managementpartner/azext_managementpartner/tests/latest/recordings/test_update_managementpartner.yaml b/src/managementpartner/azext_managementpartner/tests/latest/recordings/test_update_managementpartner.yaml index 998767f27d2..430e7cfdfac 100644 --- a/src/managementpartner/azext_managementpartner/tests/latest/recordings/test_update_managementpartner.yaml +++ b/src/managementpartner/azext_managementpartner/tests/latest/recordings/test_update_managementpartner.yaml @@ -42,7 +42,7 @@ interactions: Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 aceprovisioningmanagementpartnerapi/0.1.0 Azure-SDK-For-Python + msrest_azure/0.4.20 aceprovisioningmanagementpartnerapi/0.1.1 Azure-SDK-For-Python AZURECLI/2.0.27] accept-language: [en-US] method: PUT @@ -108,7 +108,7 @@ interactions: Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 aceprovisioningmanagementpartnerapi/0.1.0 Azure-SDK-For-Python + msrest_azure/0.4.20 aceprovisioningmanagementpartnerapi/0.1.1 Azure-SDK-For-Python AZURECLI/2.0.27] accept-language: [en-US] method: PATCH @@ -174,7 +174,7 @@ interactions: Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 aceprovisioningmanagementpartnerapi/0.1.0 Azure-SDK-For-Python + msrest_azure/0.4.20 aceprovisioningmanagementpartnerapi/0.1.1 Azure-SDK-For-Python AZURECLI/2.0.27] accept-language: [en-US] method: DELETE From 0160b3eb0b33d6d03db2900a2bf403bfc96e58e3 Mon Sep 17 00:00:00 2001 From: jeffrey-ACE Date: Mon, 26 Mar 2018 17:49:13 -0700 Subject: [PATCH 5/7] fix the version in index.json --- src/index.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.json b/src/index.json index 5d519fbaaf1..2960dab2a73 100644 --- a/src/index.json +++ b/src/index.json @@ -552,8 +552,8 @@ "license": "MIT", "metadata_version": "2.0", "name": "managementpartner", - "summary": "An Azure CLI Extension for Management Partner", - "version": "0.1.0" + "summary": "Support for Management Partner preview", + "version": "0.1.1" } } ], From cc1e61d8aaa536d163d901ea6eddcfce241e4226 Mon Sep 17 00:00:00 2001 From: jeffrey-ACE Date: Tue, 27 Mar 2018 10:42:53 -0700 Subject: [PATCH 6/7] regenerate the whl file --- src/index.json | 8 ++++---- .../latest/recordings/test_create_managementpartner.yaml | 4 ++-- .../latest/recordings/test_delete_managementpartner.yaml | 4 ++-- .../latest/recordings/test_show_managementpartner.yaml | 6 +++--- .../latest/recordings/test_update_managementpartner.yaml | 4 ++-- src/managementpartner/setup.py | 2 +- 6 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/index.json b/src/index.json index 2960dab2a73..6f17378fa70 100644 --- a/src/index.json +++ b/src/index.json @@ -514,9 +514,9 @@ ], "managementpartner": [ { - "filename": "managementpartner-0.1.1-py2.py3-none-any.whl", - "sha256Digest": "aad06a4ec86e6926a384265a99084a02fc8210d88ddd18eddf34f4672b6995fa", - "downloadUrl": "https://files.pythonhosted.org/packages/6d/1e/3edcb79d4f7aa6b70d5e1d3e1ea6f9df6cef7e771695e90f731235e75484/managementpartner-0.1.1-py2.py3-none-any.whl", + "filename": "managementpartner-0.1.2-py2.py3-none-any.whl", + "sha256Digest": "f7ec0984b4d5a4c9192aa3ab6b78c867fc38cf620effef1804d89c9d1d9f204f", + "downloadUrl": "https://files.pythonhosted.org/packages/28/08/0fde582cf50eaf1ef304b35674b9b22f6731d95b2e41339eba4d35583b18/managementpartner-0.1.2-py2.py3-none-any.whl", "metadata": { "classifiers": [ "Development Status :: 4 - Beta", @@ -553,7 +553,7 @@ "metadata_version": "2.0", "name": "managementpartner", "summary": "Support for Management Partner preview", - "version": "0.1.1" + "version": "0.1.2" } } ], diff --git a/src/managementpartner/azext_managementpartner/tests/latest/recordings/test_create_managementpartner.yaml b/src/managementpartner/azext_managementpartner/tests/latest/recordings/test_create_managementpartner.yaml index 566a4f030dc..0ce536dc8d4 100644 --- a/src/managementpartner/azext_managementpartner/tests/latest/recordings/test_create_managementpartner.yaml +++ b/src/managementpartner/azext_managementpartner/tests/latest/recordings/test_create_managementpartner.yaml @@ -42,7 +42,7 @@ interactions: Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 aceprovisioningmanagementpartnerapi/0.1.1 Azure-SDK-For-Python + msrest_azure/0.4.20 aceprovisioningmanagementpartnerapi/0.1.2 Azure-SDK-For-Python AZURECLI/2.0.27] accept-language: [en-US] method: PUT @@ -108,7 +108,7 @@ interactions: Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 aceprovisioningmanagementpartnerapi/0.1.1 Azure-SDK-For-Python + msrest_azure/0.4.20 aceprovisioningmanagementpartnerapi/0.1.2 Azure-SDK-For-Python AZURECLI/2.0.27] accept-language: [en-US] method: DELETE diff --git a/src/managementpartner/azext_managementpartner/tests/latest/recordings/test_delete_managementpartner.yaml b/src/managementpartner/azext_managementpartner/tests/latest/recordings/test_delete_managementpartner.yaml index e8ab994a3be..01acd949bd6 100644 --- a/src/managementpartner/azext_managementpartner/tests/latest/recordings/test_delete_managementpartner.yaml +++ b/src/managementpartner/azext_managementpartner/tests/latest/recordings/test_delete_managementpartner.yaml @@ -42,7 +42,7 @@ interactions: Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 aceprovisioningmanagementpartnerapi/0.1.1 Azure-SDK-For-Python + msrest_azure/0.4.20 aceprovisioningmanagementpartnerapi/0.1.2 Azure-SDK-For-Python AZURECLI/2.0.27] accept-language: [en-US] method: PUT @@ -108,7 +108,7 @@ interactions: Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 aceprovisioningmanagementpartnerapi/0.1.1 Azure-SDK-For-Python + msrest_azure/0.4.20 aceprovisioningmanagementpartnerapi/0.1.2 Azure-SDK-For-Python AZURECLI/2.0.27] accept-language: [en-US] method: DELETE diff --git a/src/managementpartner/azext_managementpartner/tests/latest/recordings/test_show_managementpartner.yaml b/src/managementpartner/azext_managementpartner/tests/latest/recordings/test_show_managementpartner.yaml index 73eb0ae7944..fb86ba133fa 100644 --- a/src/managementpartner/azext_managementpartner/tests/latest/recordings/test_show_managementpartner.yaml +++ b/src/managementpartner/azext_managementpartner/tests/latest/recordings/test_show_managementpartner.yaml @@ -42,7 +42,7 @@ interactions: Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 aceprovisioningmanagementpartnerapi/0.1.1 Azure-SDK-For-Python + msrest_azure/0.4.20 aceprovisioningmanagementpartnerapi/0.1.2 Azure-SDK-For-Python AZURECLI/2.0.27] accept-language: [en-US] method: PUT @@ -107,7 +107,7 @@ interactions: Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 aceprovisioningmanagementpartnerapi/0.1.1 Azure-SDK-For-Python + msrest_azure/0.4.20 aceprovisioningmanagementpartnerapi/0.1.2 Azure-SDK-For-Python AZURECLI/2.0.27] accept-language: [en-US] method: GET @@ -172,7 +172,7 @@ interactions: Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 aceprovisioningmanagementpartnerapi/0.1.1 Azure-SDK-For-Python + msrest_azure/0.4.20 aceprovisioningmanagementpartnerapi/0.1.2 Azure-SDK-For-Python AZURECLI/2.0.27] accept-language: [en-US] method: DELETE diff --git a/src/managementpartner/azext_managementpartner/tests/latest/recordings/test_update_managementpartner.yaml b/src/managementpartner/azext_managementpartner/tests/latest/recordings/test_update_managementpartner.yaml index 430e7cfdfac..c38d42fe0f7 100644 --- a/src/managementpartner/azext_managementpartner/tests/latest/recordings/test_update_managementpartner.yaml +++ b/src/managementpartner/azext_managementpartner/tests/latest/recordings/test_update_managementpartner.yaml @@ -108,7 +108,7 @@ interactions: Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 aceprovisioningmanagementpartnerapi/0.1.1 Azure-SDK-For-Python + msrest_azure/0.4.20 aceprovisioningmanagementpartnerapi/0.1.2 Azure-SDK-For-Python AZURECLI/2.0.27] accept-language: [en-US] method: PATCH @@ -174,7 +174,7 @@ interactions: Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 aceprovisioningmanagementpartnerapi/0.1.1 Azure-SDK-For-Python + msrest_azure/0.4.20 aceprovisioningmanagementpartnerapi/0.1.2 Azure-SDK-For-Python AZURECLI/2.0.27] accept-language: [en-US] method: DELETE diff --git a/src/managementpartner/setup.py b/src/managementpartner/setup.py index 9bcb9758ac0..2adb428093e 100644 --- a/src/managementpartner/setup.py +++ b/src/managementpartner/setup.py @@ -8,7 +8,7 @@ from codecs import open from setuptools import setup, find_packages -VERSION = "0.1.1" +VERSION = "0.1.2" CLASSIFIERS = [ 'Development Status :: 4 - Beta', From c948d1dda867e63bb936320b100f5366d31204d0 Mon Sep 17 00:00:00 2001 From: jeffrey-ACE Date: Tue, 27 Mar 2018 11:50:45 -0700 Subject: [PATCH 7/7] Fix the version --- .../azext_managementpartner/managementpartner/version.py | 2 +- .../tests/latest/recordings/test_update_managementpartner.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/managementpartner/azext_managementpartner/managementpartner/version.py b/src/managementpartner/azext_managementpartner/managementpartner/version.py index e7efe25ea7e..2f6846af552 100644 --- a/src/managementpartner/azext_managementpartner/managementpartner/version.py +++ b/src/managementpartner/azext_managementpartner/managementpartner/version.py @@ -9,5 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "0.1.1" +VERSION = "0.1.2" diff --git a/src/managementpartner/azext_managementpartner/tests/latest/recordings/test_update_managementpartner.yaml b/src/managementpartner/azext_managementpartner/tests/latest/recordings/test_update_managementpartner.yaml index c38d42fe0f7..48f41113afb 100644 --- a/src/managementpartner/azext_managementpartner/tests/latest/recordings/test_update_managementpartner.yaml +++ b/src/managementpartner/azext_managementpartner/tests/latest/recordings/test_update_managementpartner.yaml @@ -42,7 +42,7 @@ interactions: Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.25 - msrest_azure/0.4.20 aceprovisioningmanagementpartnerapi/0.1.1 Azure-SDK-For-Python + msrest_azure/0.4.20 aceprovisioningmanagementpartnerapi/0.1.2 Azure-SDK-For-Python AZURECLI/2.0.27] accept-language: [en-US] method: PUT