Skip to content
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 @@ -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
@@ -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
@@ -0,0 +1,92 @@
# 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 NotificationHubPatchParameters(Resource):
"""Parameters supplied to the patch NotificationHub operation.

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 notification_hub_patch_parameters_name: The NotificationHub name.
:type notification_hub_patch_parameters_name: str
:param registration_ttl: The RegistrationTtl of the created
NotificationHub
:type registration_ttl: str
:param authorization_rules: The AuthorizationRules of the created
NotificationHub
:type authorization_rules:
list[~azure.mgmt.notificationhubs.models.SharedAccessAuthorizationRuleProperties]
:param apns_credential: The ApnsCredential of the created NotificationHub
:type apns_credential: ~azure.mgmt.notificationhubs.models.ApnsCredential
:param wns_credential: The WnsCredential of the created NotificationHub
:type wns_credential: ~azure.mgmt.notificationhubs.models.WnsCredential
:param gcm_credential: The GcmCredential of the created NotificationHub
:type gcm_credential: ~azure.mgmt.notificationhubs.models.GcmCredential
:param mpns_credential: The MpnsCredential of the created NotificationHub
:type mpns_credential: ~azure.mgmt.notificationhubs.models.MpnsCredential
:param adm_credential: The AdmCredential of the created NotificationHub
:type adm_credential: ~azure.mgmt.notificationhubs.models.AdmCredential
:param baidu_credential: The BaiduCredential of the created
NotificationHub
:type baidu_credential:
~azure.mgmt.notificationhubs.models.BaiduCredential
"""

_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'},
'notification_hub_patch_parameters_name': {'key': 'properties.name', 'type': 'str'},
'registration_ttl': {'key': 'properties.registrationTtl', 'type': 'str'},
'authorization_rules': {'key': 'properties.authorizationRules', 'type': '[SharedAccessAuthorizationRuleProperties]'},
'apns_credential': {'key': 'properties.apnsCredential', 'type': 'ApnsCredential'},
'wns_credential': {'key': 'properties.wnsCredential', 'type': 'WnsCredential'},
'gcm_credential': {'key': 'properties.gcmCredential', 'type': 'GcmCredential'},
'mpns_credential': {'key': 'properties.mpnsCredential', 'type': 'MpnsCredential'},
'adm_credential': {'key': 'properties.admCredential', 'type': 'AdmCredential'},
'baidu_credential': {'key': 'properties.baiduCredential', 'type': 'BaiduCredential'},
}

def __init__(self, **kwargs):
super(NotificationHubPatchParameters, self).__init__(**kwargs)
self.notification_hub_patch_parameters_name = kwargs.get('notification_hub_patch_parameters_name', None)
self.registration_ttl = kwargs.get('registration_ttl', None)
self.authorization_rules = kwargs.get('authorization_rules', None)
self.apns_credential = kwargs.get('apns_credential', None)
self.wns_credential = kwargs.get('wns_credential', None)
self.gcm_credential = kwargs.get('gcm_credential', None)
self.mpns_credential = kwargs.get('mpns_credential', None)
self.adm_credential = kwargs.get('adm_credential', None)
self.baidu_credential = kwargs.get('baidu_credential', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
# 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 NotificationHubPatchParameters(Resource):
"""Parameters supplied to the patch NotificationHub operation.

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 notification_hub_patch_parameters_name: The NotificationHub name.
:type notification_hub_patch_parameters_name: str
:param registration_ttl: The RegistrationTtl of the created
NotificationHub
:type registration_ttl: str
:param authorization_rules: The AuthorizationRules of the created
NotificationHub
:type authorization_rules:
list[~azure.mgmt.notificationhubs.models.SharedAccessAuthorizationRuleProperties]
:param apns_credential: The ApnsCredential of the created NotificationHub
:type apns_credential: ~azure.mgmt.notificationhubs.models.ApnsCredential
:param wns_credential: The WnsCredential of the created NotificationHub
:type wns_credential: ~azure.mgmt.notificationhubs.models.WnsCredential
:param gcm_credential: The GcmCredential of the created NotificationHub
:type gcm_credential: ~azure.mgmt.notificationhubs.models.GcmCredential
:param mpns_credential: The MpnsCredential of the created NotificationHub
:type mpns_credential: ~azure.mgmt.notificationhubs.models.MpnsCredential
:param adm_credential: The AdmCredential of the created NotificationHub
:type adm_credential: ~azure.mgmt.notificationhubs.models.AdmCredential
:param baidu_credential: The BaiduCredential of the created
NotificationHub
:type baidu_credential:
~azure.mgmt.notificationhubs.models.BaiduCredential
"""

_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'},
'notification_hub_patch_parameters_name': {'key': 'properties.name', 'type': 'str'},
'registration_ttl': {'key': 'properties.registrationTtl', 'type': 'str'},
'authorization_rules': {'key': 'properties.authorizationRules', 'type': '[SharedAccessAuthorizationRuleProperties]'},
'apns_credential': {'key': 'properties.apnsCredential', 'type': 'ApnsCredential'},
'wns_credential': {'key': 'properties.wnsCredential', 'type': 'WnsCredential'},
'gcm_credential': {'key': 'properties.gcmCredential', 'type': 'GcmCredential'},
'mpns_credential': {'key': 'properties.mpnsCredential', 'type': 'MpnsCredential'},
'adm_credential': {'key': 'properties.admCredential', 'type': 'AdmCredential'},
'baidu_credential': {'key': 'properties.baiduCredential', 'type': 'BaiduCredential'},
}

def __init__(self, *, location: str=None, tags=None, sku=None, notification_hub_patch_parameters_name: str=None, registration_ttl: str=None, authorization_rules=None, apns_credential=None, wns_credential=None, gcm_credential=None, mpns_credential=None, adm_credential=None, baidu_credential=None, **kwargs) -> None:
super(NotificationHubPatchParameters, self).__init__(location=location, tags=tags, sku=sku, **kwargs)
self.notification_hub_patch_parameters_name = notification_hub_patch_parameters_name
self.registration_ttl = registration_ttl
self.authorization_rules = authorization_rules
self.apns_credential = apns_credential
self.wns_credential = wns_credential
self.gcm_credential = gcm_credential
self.mpns_credential = mpns_credential
self.adm_credential = adm_credential
self.baidu_credential = baidu_credential
Loading