Skip to content
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
9 changes: 0 additions & 9 deletions azure-mgmt-managementpartner/HISTORY.rst

This file was deleted.

1 change: 0 additions & 1 deletion azure-mgmt-managementpartner/MANIFEST.in

This file was deleted.

1 change: 0 additions & 1 deletion azure-mgmt-managementpartner/dev_requirements.txt

This file was deleted.

17 changes: 17 additions & 0 deletions sdk/managementpartner/azure-mgmt-managementpartner/HISTORY.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.. :changelog:

Release History
===============

0.1.1 (2019-05-17)
++++++++++++++++++

**Features**

- Model PartnerResponse has a new parameter partner_name
- Added operation group PartnersOperations

0.1.0 (2018-02-06)
++++++++++++++++++

* Initial Release
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
recursive-include tests *.py *.yaml
include *.rst
include azure/__init__.py
include azure/mgmt/__init__.py

Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,6 @@ For the older Azure Service Management (ASM) libraries, see
For a more complete set of Azure libraries, see the `azure <https://pypi.python.org/pypi/azure>`__ bundle package.


Compatibility
=============

**IMPORTANT**: If you have an earlier version of the azure package
(version < 1.0), you should uninstall it before installing this package.

You can check the version using pip:

.. code:: shell

pip freeze

If you see azure==0.11.0 (or any version below 1.0), uninstall it first:

.. code:: shell

pip uninstall azure


Usage
=====

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@
# regenerated.
# --------------------------------------------------------------------------

from msrest.service_client import ServiceClient
from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
from .operations.partner_operations import PartnerOperations
from .operations.operation_operations import OperationOperations
from .operations.partners_operations import PartnersOperations
from . import models


Expand Down Expand Up @@ -45,7 +46,7 @@ def __init__(
self.credentials = credentials


class ACEProvisioningManagementPartnerAPI(object):
class ACEProvisioningManagementPartnerAPI(SDKClient):
"""This API describe ACE Provisioning ManagementPartner

:ivar config: Configuration for client.
Expand All @@ -55,6 +56,8 @@ class ACEProvisioningManagementPartnerAPI(object):
:vartype partner: azure.mgmt.managementpartner.operations.PartnerOperations
:ivar operation: Operation operations
:vartype operation: azure.mgmt.managementpartner.operations.OperationOperations
:ivar partners: Partners operations
:vartype partners: azure.mgmt.managementpartner.operations.PartnersOperations

:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
Expand All @@ -66,7 +69,7 @@ def __init__(
self, credentials, base_url=None):

self.config = ACEProvisioningManagementPartnerAPIConfiguration(credentials, base_url)
self._client = ServiceClient(self.config.credentials, self.config)
super(ACEProvisioningManagementPartnerAPI, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2018-02-01'
Expand All @@ -77,3 +80,5 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.operation = OperationOperations(
self._client, self.config, self._serialize, self._deserialize)
self.partners = PartnersOperations(
self._client, self.config, self._serialize, self._deserialize)
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,18 @@
# regenerated.
# --------------------------------------------------------------------------

from .partner_response import PartnerResponse
from .extended_error_info import ExtendedErrorInfo
from .error import Error, ErrorException
from .operation_display import OperationDisplay
from .operation_response import OperationResponse
try:
from .partner_response_py3 import PartnerResponse
from .extended_error_info_py3 import ExtendedErrorInfo
from .error_py3 import Error, ErrorException
from .operation_display_py3 import OperationDisplay
from .operation_response_py3 import OperationResponse
except (SyntaxError, ImportError):
from .partner_response import PartnerResponse
from .extended_error_info import ExtendedErrorInfo
from .error import Error, ErrorException
from .operation_display import OperationDisplay
from .operation_response import OperationResponse
from .operation_response_paged import OperationResponsePaged

__all__ = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ class Error(Model):
'error': {'key': 'error', 'type': 'ExtendedErrorInfo'},
}

def __init__(self, error=None):
super(Error, self).__init__()
self.error = error
def __init__(self, **kwargs):
super(Error, self).__init__(**kwargs)
self.error = kwargs.get('error', None)


class ErrorException(HttpOperationError):
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# 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.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model
from msrest.exceptions import HttpOperationError


class Error(Model):
"""this is the management partner operations error.

:param error: this is the ExtendedErrorInfo property
:type error: ~azure.mgmt.managementpartner.models.ExtendedErrorInfo
"""

_attribute_map = {
'error': {'key': 'error', 'type': 'ExtendedErrorInfo'},
}

def __init__(self, *, error=None, **kwargs) -> None:
super(Error, self).__init__(**kwargs)
self.error = error


class ErrorException(HttpOperationError):
"""Server responsed with exception of type: 'Error'.

:param deserialize: A deserializer
:param response: Server response to be deserialized.
"""

def __init__(self, deserialize, response, *args):

super(ErrorException, self).__init__(deserialize, response, 'Error', *args)
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class ExtendedErrorInfo(Model):
'message': {'key': 'message', 'type': 'str'},
}

def __init__(self, code=None, message=None):
super(ExtendedErrorInfo, self).__init__()
self.code = code
self.message = message
def __init__(self, **kwargs):
super(ExtendedErrorInfo, self).__init__(**kwargs)
self.code = kwargs.get('code', None)
self.message = kwargs.get('message', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# 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.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class ExtendedErrorInfo(Model):
"""this is the extended error info.

:param code: this is the error response code. Possible values include:
'NotFound', 'Conflict', 'BadRequest'
:type code: str or ~azure.mgmt.managementpartner.models.enum
:param message: this is the extended error info message
:type message: str
"""

_attribute_map = {
'code': {'key': 'code', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
}

def __init__(self, *, code=None, message: str=None, **kwargs) -> None:
super(ExtendedErrorInfo, self).__init__(**kwargs)
self.code = code
self.message = message
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ class OperationDisplay(Model):
'description': {'key': 'description', 'type': 'str'},
}

def __init__(self, provider=None, resource=None, operation=None, description=None):
super(OperationDisplay, self).__init__()
self.provider = provider
self.resource = resource
self.operation = operation
self.description = description
def __init__(self, **kwargs):
super(OperationDisplay, self).__init__(**kwargs)
self.provider = kwargs.get('provider', None)
self.resource = kwargs.get('resource', None)
self.operation = kwargs.get('operation', None)
self.description = kwargs.get('description', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# 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.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class OperationDisplay(Model):
"""this is the management partner operation.

:param provider: the is management partner provider
:type provider: str
:param resource: the is management partner resource
:type resource: str
:param operation: the is management partner operation
:type operation: str
:param description: the is management partner operation description
:type description: str
"""

_attribute_map = {
'provider': {'key': 'provider', 'type': 'str'},
'resource': {'key': 'resource', 'type': 'str'},
'operation': {'key': 'operation', 'type': 'str'},
'description': {'key': 'description', 'type': 'str'},
}

def __init__(self, *, provider: str=None, resource: str=None, operation: str=None, description: str=None, **kwargs) -> None:
super(OperationDisplay, self).__init__(**kwargs)
self.provider = provider
self.resource = resource
self.operation = operation
self.description = description
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ class OperationResponse(Model):
'origin': {'key': 'origin', 'type': 'str'},
}

def __init__(self, name=None, display=None, origin=None):
super(OperationResponse, self).__init__()
self.name = name
self.display = display
self.origin = origin
def __init__(self, **kwargs):
super(OperationResponse, self).__init__(**kwargs)
self.name = kwargs.get('name', None)
self.display = kwargs.get('display', None)
self.origin = kwargs.get('origin', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# 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.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class OperationResponse(Model):
"""this is the management partner operations response.

:param name: this is the operation response name
:type name: str
:param display: this is the operation display
:type display: ~azure.mgmt.managementpartner.models.OperationDisplay
:param origin: the is operation response origin information
:type origin: str
"""

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'display': {'key': 'display', 'type': 'OperationDisplay'},
'origin': {'key': 'origin', 'type': 'str'},
}

def __init__(self, *, name: str=None, display=None, origin: str=None, **kwargs) -> None:
super(OperationResponse, self).__init__(**kwargs)
self.name = name
self.display = display
self.origin = origin
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 Down Expand Up @@ -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,16 +66,17 @@ 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):
super(PartnerResponse, self).__init__()
self.etag = etag
def __init__(self, **kwargs):
super(PartnerResponse, self).__init__(**kwargs)
self.etag = kwargs.get('etag', None)
self.id = None
self.name = None
self.partner_id = partner_id
self.tenant_id = tenant_id
self.object_id = object_id
self.version = version
self.updated_time = updated_time
self.created_time = created_time
self.state = state
self.partner_id = kwargs.get('partner_id', None)
self.partner_name = kwargs.get('partner_name', None)
self.tenant_id = kwargs.get('tenant_id', None)
self.object_id = kwargs.get('object_id', None)
self.version = kwargs.get('version', None)
self.updated_time = kwargs.get('updated_time', None)
self.created_time = kwargs.get('created_time', None)
self.state = kwargs.get('state', None)
self.type = None
Loading