Source code for azure.mgmt.notificationhubs.models.namespace_create_or_update_parameters

# 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


[docs]class NamespaceCreateOrUpdateParameters(Model): """Parameters supplied to the CreateOrUpdate Namespace operation. :param location: Gets or sets Namespace data center location. :type location: str :param tags: Gets or sets Namespace tags. :type tags: dict :param properties: Gets or sets properties of the Namespace. :type properties: :class:`NamespaceProperties <azure.mgmt.notificationhubs.models.NamespaceProperties>` """ _validation = { 'location': {'required': True}, 'properties': {'required': True}, } _attribute_map = { 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'properties': {'key': 'properties', 'type': 'NamespaceProperties'}, } def __init__(self, location, properties, tags=None): self.location = location self.tags = tags self.properties = properties