Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add partner name for create, update and show commands for managementp… #112

Merged
merged 8 commits into from
Mar 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.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",
Expand Down Expand Up @@ -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.2"
}
}
],
Expand Down
1 change: 1 addition & 0 deletions src/managementpartner/azext_managementpartner/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@
__all__ = ['ACEProvisioningManagementPartnerAPI']

__version__ = VERSION

Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

class OperationResponsePaged(Paged):
"""
A paging container for iterating over a list of :class:`OperationResponse <managementpartner.models.OperationResponse>` object
A paging container for iterating over a list of :class:`OperationResponse <azure.mgmt.managementpartner.models.OperationResponse>` object
"""

_attribute_map = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
"""
Expand All @@ -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'},
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ def list(
overrides<msrest:optionsforoperations>`.
: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<managementpartner.models.ErrorException>`
:class:`ErrorException<azure.mgmt.managementpartner.models.ErrorException>`
"""
def internal_paging(next_link=None, raw=False):

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ def get(
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
: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<managementpartner.models.ErrorException>`
:class:`ErrorException<azure.mgmt.managementpartner.models.ErrorException>`
"""
# Construct URL
url = '/providers/Microsoft.ManagementPartner/partners/{partnerId}'
Expand Down Expand Up @@ -108,10 +108,10 @@ def create(
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
: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<managementpartner.models.ErrorException>`
:class:`ErrorException<azure.mgmt.managementpartner.models.ErrorException>`
"""
# Construct URL
url = '/providers/Microsoft.ManagementPartner/partners/{partnerId}'
Expand Down Expand Up @@ -166,10 +166,10 @@ def update(
:param operation_config: :ref:`Operation configuration
overrides<msrest:optionsforoperations>`.
: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<managementpartner.models.ErrorException>`
:class:`ErrorException<azure.mgmt.managementpartner.models.ErrorException>`
"""
# Construct URL
url = '/providers/Microsoft.ManagementPartner/partners/{partnerId}'
Expand Down Expand Up @@ -226,7 +226,7 @@ def delete(
:return: None or ClientRawResponse if raw=true
:rtype: None or ~msrest.pipeline.ClientRawResponse
:raises:
:class:`ErrorException<managementpartner.models.ErrorException>`
:class:`ErrorException<azure.mgmt.managementpartner.models.ErrorException>`
"""
# Construct URL
url = '/providers/Microsoft.ManagementPartner/partners/{partnerId}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
# regenerated.
# --------------------------------------------------------------------------

VERSION = "0.1.0"
VERSION = "0.1.2"

Original file line number Diff line number Diff line change
Expand Up @@ -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.2 Azure-SDK-For-Python
AZURECLI/2.0.27]
accept-language: [en-US]
method: PUT
Expand Down Expand Up @@ -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.2 Azure-SDK-For-Python
AZURECLI/2.0.27]
accept-language: [en-US]
method: DELETE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.2 Azure-SDK-For-Python
AZURECLI/2.0.27]
accept-language: [en-US]
method: PUT
Expand Down Expand Up @@ -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.2 Azure-SDK-For-Python
AZURECLI/2.0.27]
accept-language: [en-US]
method: DELETE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.2 Azure-SDK-For-Python
AZURECLI/2.0.27]
accept-language: [en-US]
method: PUT
Expand Down Expand Up @@ -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.2 Azure-SDK-For-Python
AZURECLI/2.0.27]
accept-language: [en-US]
method: GET
Expand Down Expand Up @@ -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.2 Azure-SDK-For-Python
AZURECLI/2.0.27]
accept-language: [en-US]
method: DELETE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.2 Azure-SDK-For-Python
AZURECLI/2.0.27]
accept-language: [en-US]
method: PUT
Expand Down Expand Up @@ -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.2 Azure-SDK-For-Python
AZURECLI/2.0.27]
accept-language: [en-US]
method: PATCH
Expand Down Expand Up @@ -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.2 Azure-SDK-For-Python
AZURECLI/2.0.27]
accept-language: [en-US]
method: DELETE
Expand Down
6 changes: 3 additions & 3 deletions src/managementpartner/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from codecs import open
from setuptools import setup, find_packages

VERSION = "0.1.0"
VERSION = "0.1.2"

CLASSIFIERS = [
'Development Status :: 4 - Beta',
Expand All @@ -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',
Expand Down