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] Add suppressions for linting errors. Approved by Gaurav #2609

Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,61 @@
# regenerated.
# --------------------------------------------------------------------------

from .check_name_availability_request_parameters import CheckNameAvailabilityRequestParameters
from .check_name_availability_response import CheckNameAvailabilityResponse
from .sku import Sku
from .check_availability_parameters import CheckAvailabilityParameters
from .check_availability_result import CheckAvailabilityResult
from .namespace_create_or_update_parameters import NamespaceCreateOrUpdateParameters
from .namespace_patch_parameters import NamespacePatchParameters
from .namespace_resource import NamespaceResource
from .shared_access_authorization_rule_properties import SharedAccessAuthorizationRuleProperties
from .shared_access_authorization_rule_create_or_update_parameters import SharedAccessAuthorizationRuleCreateOrUpdateParameters
from .shared_access_authorization_rule_resource import SharedAccessAuthorizationRuleResource
from .resource_list_keys import ResourceListKeys
from .policykey_resource import PolicykeyResource
from .apns_credential import ApnsCredential
from .wns_credential import WnsCredential
from .gcm_credential import GcmCredential
from .mpns_credential import MpnsCredential
from .adm_credential import AdmCredential
from .baidu_credential import BaiduCredential
from .notification_hub_create_or_update_parameters import NotificationHubCreateOrUpdateParameters
from .notification_hub_resource import NotificationHubResource
from .pns_credentials_resource import PnsCredentialsResource
from .resource import Resource
from .sub_resource import SubResource
try:
from .operation_display_py3 import OperationDisplay
from .operation_py3 import Operation
from .error_response_py3 import ErrorResponse, ErrorResponseException
from .sku_py3 import Sku
from .check_availability_parameters_py3 import CheckAvailabilityParameters
from .check_availability_result_py3 import CheckAvailabilityResult
from .namespace_create_or_update_parameters_py3 import NamespaceCreateOrUpdateParameters
from .namespace_patch_parameters_py3 import NamespacePatchParameters
from .namespace_resource_py3 import NamespaceResource
from .shared_access_authorization_rule_properties_py3 import SharedAccessAuthorizationRuleProperties
from .shared_access_authorization_rule_create_or_update_parameters_py3 import SharedAccessAuthorizationRuleCreateOrUpdateParameters
from .shared_access_authorization_rule_resource_py3 import SharedAccessAuthorizationRuleResource
from .shared_access_authorization_rule_list_result_py3 import SharedAccessAuthorizationRuleListResult
from .resource_list_keys_py3 import ResourceListKeys
from .policykey_resource_py3 import PolicykeyResource
from .apns_credential_py3 import ApnsCredential
from .wns_credential_py3 import WnsCredential
from .gcm_credential_py3 import GcmCredential
from .mpns_credential_py3 import MpnsCredential
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_resource_py3 import NotificationHubResource
from .pns_credentials_resource_py3 import PnsCredentialsResource
from .resource_py3 import Resource
from .sub_resource_py3 import SubResource
except (SyntaxError, ImportError):
from .operation_display import OperationDisplay
from .operation import Operation
from .error_response import ErrorResponse, ErrorResponseException
from .sku import Sku
from .check_availability_parameters import CheckAvailabilityParameters
from .check_availability_result import CheckAvailabilityResult
from .namespace_create_or_update_parameters import NamespaceCreateOrUpdateParameters
from .namespace_patch_parameters import NamespacePatchParameters
from .namespace_resource import NamespaceResource
from .shared_access_authorization_rule_properties import SharedAccessAuthorizationRuleProperties
from .shared_access_authorization_rule_create_or_update_parameters import SharedAccessAuthorizationRuleCreateOrUpdateParameters
from .shared_access_authorization_rule_resource import SharedAccessAuthorizationRuleResource
from .shared_access_authorization_rule_list_result import SharedAccessAuthorizationRuleListResult
from .resource_list_keys import ResourceListKeys
from .policykey_resource import PolicykeyResource
from .apns_credential import ApnsCredential
from .wns_credential import WnsCredential
from .gcm_credential import GcmCredential
from .mpns_credential import MpnsCredential
from .adm_credential import AdmCredential
from .baidu_credential import BaiduCredential
from .notification_hub_create_or_update_parameters import NotificationHubCreateOrUpdateParameters
from .notification_hub_resource import NotificationHubResource
from .pns_credentials_resource import PnsCredentialsResource
from .resource import Resource
from .sub_resource import SubResource
from .operation_paged import OperationPaged
from .namespace_resource_paged import NamespaceResourcePaged
from .shared_access_authorization_rule_resource_paged import SharedAccessAuthorizationRuleResourcePaged
from .notification_hub_resource_paged import NotificationHubResourcePaged
Expand All @@ -43,8 +74,9 @@
)

__all__ = [
'CheckNameAvailabilityRequestParameters',
'CheckNameAvailabilityResponse',
'OperationDisplay',
'Operation',
'ErrorResponse', 'ErrorResponseException',
'Sku',
'CheckAvailabilityParameters',
'CheckAvailabilityResult',
Expand All @@ -54,6 +86,7 @@
'SharedAccessAuthorizationRuleProperties',
'SharedAccessAuthorizationRuleCreateOrUpdateParameters',
'SharedAccessAuthorizationRuleResource',
'SharedAccessAuthorizationRuleListResult',
'ResourceListKeys',
'PolicykeyResource',
'ApnsCredential',
Expand All @@ -67,6 +100,7 @@
'PnsCredentialsResource',
'Resource',
'SubResource',
'OperationPaged',
'NamespaceResourcePaged',
'SharedAccessAuthorizationRuleResourcePaged',
'NotificationHubResourcePaged',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ class AdmCredential(Model):
'auth_token_url': {'key': 'properties.authTokenUrl', 'type': 'str'},
}

def __init__(self, client_id=None, client_secret=None, auth_token_url=None):
self.client_id = client_id
self.client_secret = client_secret
self.auth_token_url = auth_token_url
def __init__(self, **kwargs):
super(AdmCredential, self).__init__(**kwargs)
self.client_id = kwargs.get('client_id', None)
self.client_secret = kwargs.get('client_secret', None)
self.auth_token_url = kwargs.get('auth_token_url', 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 AdmCredential(Model):
"""Description of a NotificationHub AdmCredential.

:param client_id: The client identifier.
:type client_id: str
:param client_secret: The credential secret access key.
:type client_secret: str
:param auth_token_url: The URL of the authorization token.
:type auth_token_url: str
"""

_attribute_map = {
'client_id': {'key': 'properties.clientId', 'type': 'str'},
'client_secret': {'key': 'properties.clientSecret', 'type': 'str'},
'auth_token_url': {'key': 'properties.authTokenUrl', 'type': 'str'},
}

def __init__(self, *, client_id: str=None, client_secret: str=None, auth_token_url: str=None, **kwargs) -> None:
super(AdmCredential, self).__init__(**kwargs)
self.client_id = client_id
self.client_secret = client_secret
self.auth_token_url = auth_token_url
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,13 @@ class ApnsCredential(Model):
'token': {'key': 'properties.token', 'type': 'str'},
}

def __init__(self, apns_certificate=None, certificate_key=None, endpoint=None, thumbprint=None, key_id=None, app_name=None, app_id=None, token=None):
self.apns_certificate = apns_certificate
self.certificate_key = certificate_key
self.endpoint = endpoint
self.thumbprint = thumbprint
self.key_id = key_id
self.app_name = app_name
self.app_id = app_id
self.token = token
def __init__(self, **kwargs):
super(ApnsCredential, self).__init__(**kwargs)
self.apns_certificate = kwargs.get('apns_certificate', None)
self.certificate_key = kwargs.get('certificate_key', None)
self.endpoint = kwargs.get('endpoint', None)
self.thumbprint = kwargs.get('thumbprint', None)
self.key_id = kwargs.get('key_id', None)
self.app_name = kwargs.get('app_name', None)
self.app_id = kwargs.get('app_id', None)
self.token = kwargs.get('token', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# 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 ApnsCredential(Model):
"""Description of a NotificationHub ApnsCredential.

:param apns_certificate: The APNS certificate.
:type apns_certificate: str
:param certificate_key: The certificate key.
:type certificate_key: str
:param endpoint: The endpoint of this credential.
:type endpoint: str
:param thumbprint: The Apns certificate Thumbprint
:type thumbprint: str
:param key_id: A 10-character key identifier (kid) key, obtained from your
developer account
:type key_id: str
:param app_name: The name of the application
:type app_name: str
:param app_id: The issuer (iss) registered claim key, whose value is your
10-character Team ID, obtained from your developer account
:type app_id: str
:param token: Provider Authentication Token, obtained through your
developer account
:type token: str
"""

_attribute_map = {
'apns_certificate': {'key': 'properties.apnsCertificate', 'type': 'str'},
'certificate_key': {'key': 'properties.certificateKey', 'type': 'str'},
'endpoint': {'key': 'properties.endpoint', 'type': 'str'},
'thumbprint': {'key': 'properties.thumbprint', 'type': 'str'},
'key_id': {'key': 'properties.keyId', 'type': 'str'},
'app_name': {'key': 'properties.appName', 'type': 'str'},
'app_id': {'key': 'properties.appId', 'type': 'str'},
'token': {'key': 'properties.token', 'type': 'str'},
}

def __init__(self, *, apns_certificate: str=None, certificate_key: str=None, endpoint: str=None, thumbprint: str=None, key_id: str=None, app_name: str=None, app_id: str=None, token: str=None, **kwargs) -> None:
super(ApnsCredential, self).__init__(**kwargs)
self.apns_certificate = apns_certificate
self.certificate_key = certificate_key
self.endpoint = endpoint
self.thumbprint = thumbprint
self.key_id = key_id
self.app_name = app_name
self.app_id = app_id
self.token = token
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ class BaiduCredential(Model):
'baidu_secret_key': {'key': 'properties.baiduSecretKey', 'type': 'str'},
}

def __init__(self, baidu_api_key=None, baidu_end_point=None, baidu_secret_key=None):
self.baidu_api_key = baidu_api_key
self.baidu_end_point = baidu_end_point
self.baidu_secret_key = baidu_secret_key
def __init__(self, **kwargs):
super(BaiduCredential, self).__init__(**kwargs)
self.baidu_api_key = kwargs.get('baidu_api_key', None)
self.baidu_end_point = kwargs.get('baidu_end_point', None)
self.baidu_secret_key = kwargs.get('baidu_secret_key', 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 BaiduCredential(Model):
"""Description of a NotificationHub BaiduCredential.

:param baidu_api_key: Baidu Api Key.
:type baidu_api_key: str
:param baidu_end_point: Baidu Endpoint.
:type baidu_end_point: str
:param baidu_secret_key: Baidu Secret Key
:type baidu_secret_key: str
"""

_attribute_map = {
'baidu_api_key': {'key': 'properties.baiduApiKey', 'type': 'str'},
'baidu_end_point': {'key': 'properties.baiduEndPoint', 'type': 'str'},
'baidu_secret_key': {'key': 'properties.baiduSecretKey', 'type': 'str'},
}

def __init__(self, *, baidu_api_key: str=None, baidu_end_point: str=None, baidu_secret_key: str=None, **kwargs) -> None:
super(BaiduCredential, self).__init__(**kwargs)
self.baidu_api_key = baidu_api_key
self.baidu_end_point = baidu_end_point
self.baidu_secret_key = baidu_secret_key
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,20 @@ class CheckAvailabilityParameters(Model):
Variables are only populated by the server, and will be ignored when
sending a request.

All required parameters must be populated in order to send to Azure.

:ivar id: Resource Id
:vartype id: str
:param name: Resource name
:param name: Required. Resource name
:type name: str
:ivar type: Resource type
:vartype type: str
:param location: Resource location
:param location: Required. Resource location
:type location: str
:param tags: Resource tags
:type tags: dict
:type tags: dict[str, str]
:param sku: The sku of the created namespace
:type sku: :class:`Sku <azure.mgmt.notificationhubs.models.Sku>`
:type sku: ~azure.mgmt.notificationhubs.models.Sku
:param is_availiable: True if the name is available and can be used to
create new Namespace/NotificationHub. Otherwise false.
:type is_availiable: bool
Expand All @@ -53,11 +55,12 @@ class CheckAvailabilityParameters(Model):
'is_availiable': {'key': 'isAvailiable', 'type': 'bool'},
}

def __init__(self, name, location, tags=None, sku=None, is_availiable=None):
def __init__(self, **kwargs):
super(CheckAvailabilityParameters, self).__init__(**kwargs)
self.id = None
self.name = name
self.name = kwargs.get('name', None)
self.type = None
self.location = location
self.tags = tags
self.sku = sku
self.is_availiable = is_availiable
self.location = kwargs.get('location', None)
self.tags = kwargs.get('tags', None)
self.sku = kwargs.get('sku', None)
self.is_availiable = kwargs.get('is_availiable', None)
Loading