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

[AutoPR] notificationhubs/resource-manager #2737

Merged
merged 6 commits into from
Apr 30, 2019
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: 9 additions & 1 deletion azure-mgmt-notificationhubs/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
Release History
===============

2.1.0 (2019-04-30)
++++++++++++++++++

**Features**

- Added operation NotificationHubsOperations.patch
- Added operation NotificationHubsOperations.debug_send

2.0.0 (2018-05-25)
++++++++++++++++++

Expand Down Expand Up @@ -47,7 +55,7 @@ This version uses a next-generation code generator that *might* introduce breaki

- Return type changes from `msrestazure.azure_operation.AzureOperationPoller` to `msrest.polling.LROPoller`. External API is the same.
- Return type is now **always** a `msrest.polling.LROPoller`, regardless of the optional parameters used.
- The behavior has changed when using `raw=True`. Instead of returning the initial call result as `ClientRawResponse`,
- The behavior has changed when using `raw=True`. Instead of returning the initial call result as `ClientRawResponse`,
without polling, now this returns an LROPoller. After polling, the final resource will be returned as a `ClientRawResponse`.
- New `polling` parameter. The default behavior is `Polling=True` which will poll using ARM algorithm. When `Polling=False`,
the response of the initial call will be returned without polling.
Expand Down
4 changes: 4 additions & 0 deletions azure-mgmt-notificationhubs/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
recursive-include tests *.py *.yaml
include *.rst
include azure/__init__.py
include azure/mgmt/__init__.py

22 changes: 3 additions & 19 deletions azure-mgmt-notificationhubs/README.rst
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 All @@ -47,3 +28,6 @@ Provide Feedback
If you encounter any bugs or have suggestions, please file an issue in the
`Issues <https://github.com/Azure/azure-sdk-for-python/issues>`__
section of the project.


.. image:: https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-notificationhubs%2FREADME.png
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
from .adm_credential_py3 import AdmCredential
from .baidu_credential_py3 import BaiduCredential
from .notification_hub_create_or_update_parameters_py3 import NotificationHubCreateOrUpdateParameters
from .notification_hub_patch_parameters_py3 import NotificationHubPatchParameters
from .notification_hub_resource_py3 import NotificationHubResource
from .debug_send_response_py3 import DebugSendResponse
from .pns_credentials_resource_py3 import PnsCredentialsResource
from .resource_py3 import Resource
from .sub_resource_py3 import SubResource
Expand All @@ -59,7 +61,9 @@
from .adm_credential import AdmCredential
from .baidu_credential import BaiduCredential
from .notification_hub_create_or_update_parameters import NotificationHubCreateOrUpdateParameters
from .notification_hub_patch_parameters import NotificationHubPatchParameters
from .notification_hub_resource import NotificationHubResource
from .debug_send_response import DebugSendResponse
from .pns_credentials_resource import PnsCredentialsResource
from .resource import Resource
from .sub_resource import SubResource
Expand Down Expand Up @@ -96,7 +100,9 @@
'AdmCredential',
'BaiduCredential',
'NotificationHubCreateOrUpdateParameters',
'NotificationHubPatchParameters',
'NotificationHubResource',
'DebugSendResponse',
'PnsCredentialsResource',
'Resource',
'SubResource',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class ApnsCredential(Model):
:type certificate_key: str
:param endpoint: The endpoint of this credential.
:type endpoint: str
:param thumbprint: The Apns certificate Thumbprint
:param thumbprint: The APNS certificate Thumbprint
:type thumbprint: str
:param key_id: A 10-character key identifier (kid) key, obtained from your
developer account
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class ApnsCredential(Model):
:type certificate_key: str
:param endpoint: The endpoint of this credential.
:type endpoint: str
:param thumbprint: The Apns certificate Thumbprint
:param thumbprint: The APNS certificate Thumbprint
:type thumbprint: str
:param key_id: A 10-character key identifier (kid) key, obtained from your
developer account
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class CheckAvailabilityParameters(Model):
:type name: str
:ivar type: Resource type
:vartype type: str
:param location: Required. Resource location
:param location: Resource location
:type location: str
:param tags: Resource tags
:type tags: dict[str, str]
Expand All @@ -42,7 +42,6 @@ class CheckAvailabilityParameters(Model):
'id': {'readonly': True},
'name': {'required': True},
'type': {'readonly': True},
'location': {'required': True},
}

_attribute_map = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class CheckAvailabilityParameters(Model):
:type name: str
:ivar type: Resource type
:vartype type: str
:param location: Required. Resource location
:param location: Resource location
:type location: str
:param tags: Resource tags
:type tags: dict[str, str]
Expand All @@ -42,7 +42,6 @@ class CheckAvailabilityParameters(Model):
'id': {'readonly': True},
'name': {'required': True},
'type': {'readonly': True},
'location': {'required': True},
}

_attribute_map = {
Expand All @@ -55,7 +54,7 @@ class CheckAvailabilityParameters(Model):
'is_availiable': {'key': 'isAvailiable', 'type': 'bool'},
}

def __init__(self, *, name: str, location: str, tags=None, sku=None, is_availiable: bool=None, **kwargs) -> None:
def __init__(self, *, name: str, location: str=None, tags=None, sku=None, is_availiable: bool=None, **kwargs) -> None:
super(CheckAvailabilityParameters, self).__init__(**kwargs)
self.id = None
self.name = name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class CheckAvailabilityResult(Resource):
"""Description of a CheckAvailibility resource.
"""Description of a CheckAvailability resource.

Variables are only populated by the server, and will be ignored when
sending a request.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class CheckAvailabilityResult(Resource):
"""Description of a CheckAvailibility resource.
"""Description of a CheckAvailability resource.

Variables are only populated by the server, and will be ignored when
sending a request.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# 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 .resource import Resource


class DebugSendResponse(Resource):
"""Description of a NotificationHub Resource.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: Resource Id
:vartype id: str
:ivar name: Resource name
:vartype name: str
:ivar type: Resource type
:vartype type: str
:param location: Resource location
:type location: str
:param tags: Resource tags
:type tags: dict[str, str]
:param sku: The sku of the created namespace
:type sku: ~azure.mgmt.notificationhubs.models.Sku
:param success: successful send
:type success: float
:param failure: send failure
:type failure: float
:param results: actual failure description
:type results: object
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'sku': {'key': 'sku', 'type': 'Sku'},
'success': {'key': 'properties.success', 'type': 'float'},
'failure': {'key': 'properties.failure', 'type': 'float'},
'results': {'key': 'properties.results', 'type': 'object'},
}

def __init__(self, **kwargs):
super(DebugSendResponse, self).__init__(**kwargs)
self.success = kwargs.get('success', None)
self.failure = kwargs.get('failure', None)
self.results = kwargs.get('results', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# 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 .resource_py3 import Resource


class DebugSendResponse(Resource):
"""Description of a NotificationHub Resource.

Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: Resource Id
:vartype id: str
:ivar name: Resource name
:vartype name: str
:ivar type: Resource type
:vartype type: str
:param location: Resource location
:type location: str
:param tags: Resource tags
:type tags: dict[str, str]
:param sku: The sku of the created namespace
:type sku: ~azure.mgmt.notificationhubs.models.Sku
:param success: successful send
:type success: float
:param failure: send failure
:type failure: float
:param results: actual failure description
:type results: object
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'location': {'key': 'location', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
'sku': {'key': 'sku', 'type': 'Sku'},
'success': {'key': 'properties.success', 'type': 'float'},
'failure': {'key': 'properties.failure', 'type': 'float'},
'results': {'key': 'properties.results', 'type': 'object'},
}

def __init__(self, *, location: str=None, tags=None, sku=None, success: float=None, failure: float=None, results=None, **kwargs) -> None:
super(DebugSendResponse, self).__init__(location=location, tags=tags, sku=sku, **kwargs)
self.success = success
self.failure = failure
self.results = results
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@


class ErrorResponse(Model):
"""Error reponse indicates NotificationHubs service is not able to process the
incoming request. The reason is provided in the error message.
"""Error response indicates NotificationHubs service is not able to process
the incoming request. The reason is provided in the error message.

:param code: Error code.
:type code: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@


class ErrorResponse(Model):
"""Error reponse indicates NotificationHubs service is not able to process the
incoming request. The reason is provided in the error message.
"""Error response indicates NotificationHubs service is not able to process
the incoming request. The reason is provided in the error message.

:param code: Error code.
:type code: str
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class MpnsCredential(Model):
:type mpns_certificate: str
:param certificate_key: The certificate key for this credential.
:type certificate_key: str
:param thumbprint: The Mpns certificate Thumbprint
:param thumbprint: The MPNS certificate Thumbprint
:type thumbprint: str
"""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class MpnsCredential(Model):
:type mpns_certificate: str
:param certificate_key: The certificate key for this credential.
:type certificate_key: str
:param thumbprint: The Mpns certificate Thumbprint
:param thumbprint: The MPNS certificate Thumbprint
:type thumbprint: str
"""

Expand Down
Loading