# coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***

import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from . import outputs

__all__ = [
    'GetNamespaceResult',
    'AwaitableGetNamespaceResult',
    'get_namespace',
]

warnings.warn("""The 'latest' version is deprecated. Please migrate to the function in the top-level module: 'azure-native:notificationhubs:getNamespace'.""", DeprecationWarning)

@pulumi.output_type
class GetNamespaceResult:
    """
    Description of a Namespace resource.
    """
    def __init__(__self__, created_at=None, critical=None, data_center=None, enabled=None, id=None, location=None, metric_id=None, name=None, namespace_type=None, provisioning_state=None, region=None, scale_unit=None, service_bus_endpoint=None, sku=None, status=None, subscription_id=None, tags=None, type=None, updated_at=None):
        if created_at and not isinstance(created_at, str):
            raise TypeError("Expected argument 'created_at' to be a str")
        pulumi.set(__self__, "created_at", created_at)
        if critical and not isinstance(critical, bool):
            raise TypeError("Expected argument 'critical' to be a bool")
        pulumi.set(__self__, "critical", critical)
        if data_center and not isinstance(data_center, str):
            raise TypeError("Expected argument 'data_center' to be a str")
        pulumi.set(__self__, "data_center", data_center)
        if enabled and not isinstance(enabled, bool):
            raise TypeError("Expected argument 'enabled' to be a bool")
        pulumi.set(__self__, "enabled", enabled)
        if id and not isinstance(id, str):
            raise TypeError("Expected argument 'id' to be a str")
        pulumi.set(__self__, "id", id)
        if location and not isinstance(location, str):
            raise TypeError("Expected argument 'location' to be a str")
        pulumi.set(__self__, "location", location)
        if metric_id and not isinstance(metric_id, str):
            raise TypeError("Expected argument 'metric_id' to be a str")
        pulumi.set(__self__, "metric_id", metric_id)
        if name and not isinstance(name, str):
            raise TypeError("Expected argument 'name' to be a str")
        pulumi.set(__self__, "name", name)
        if namespace_type and not isinstance(namespace_type, str):
            raise TypeError("Expected argument 'namespace_type' to be a str")
        pulumi.set(__self__, "namespace_type", namespace_type)
        if provisioning_state and not isinstance(provisioning_state, str):
            raise TypeError("Expected argument 'provisioning_state' to be a str")
        pulumi.set(__self__, "provisioning_state", provisioning_state)
        if region and not isinstance(region, str):
            raise TypeError("Expected argument 'region' to be a str")
        pulumi.set(__self__, "region", region)
        if scale_unit and not isinstance(scale_unit, str):
            raise TypeError("Expected argument 'scale_unit' to be a str")
        pulumi.set(__self__, "scale_unit", scale_unit)
        if service_bus_endpoint and not isinstance(service_bus_endpoint, str):
            raise TypeError("Expected argument 'service_bus_endpoint' to be a str")
        pulumi.set(__self__, "service_bus_endpoint", service_bus_endpoint)
        if sku and not isinstance(sku, dict):
            raise TypeError("Expected argument 'sku' to be a dict")
        pulumi.set(__self__, "sku", sku)
        if status and not isinstance(status, str):
            raise TypeError("Expected argument 'status' to be a str")
        pulumi.set(__self__, "status", status)
        if subscription_id and not isinstance(subscription_id, str):
            raise TypeError("Expected argument 'subscription_id' to be a str")
        pulumi.set(__self__, "subscription_id", subscription_id)
        if tags and not isinstance(tags, dict):
            raise TypeError("Expected argument 'tags' to be a dict")
        pulumi.set(__self__, "tags", tags)
        if type and not isinstance(type, str):
            raise TypeError("Expected argument 'type' to be a str")
        pulumi.set(__self__, "type", type)
        if updated_at and not isinstance(updated_at, str):
            raise TypeError("Expected argument 'updated_at' to be a str")
        pulumi.set(__self__, "updated_at", updated_at)

    @property
    @pulumi.getter(name="createdAt")
    def created_at(self) -> Optional[str]:
        """
        The time the namespace was created.
        """
        return pulumi.get(self, "created_at")

    @property
    @pulumi.getter
    def critical(self) -> Optional[bool]:
        """
        Whether or not the namespace is set as Critical.
        """
        return pulumi.get(self, "critical")

    @property
    @pulumi.getter(name="dataCenter")
    def data_center(self) -> Optional[str]:
        """
        Data center for the namespace
        """
        return pulumi.get(self, "data_center")

    @property
    @pulumi.getter
    def enabled(self) -> Optional[bool]:
        """
        Whether or not the namespace is currently enabled.
        """
        return pulumi.get(self, "enabled")

    @property
    @pulumi.getter
    def id(self) -> str:
        """
        Resource Id
        """
        return pulumi.get(self, "id")

    @property
    @pulumi.getter
    def location(self) -> Optional[str]:
        """
        Resource location
        """
        return pulumi.get(self, "location")

    @property
    @pulumi.getter(name="metricId")
    def metric_id(self) -> str:
        """
        Identifier for Azure Insights metrics
        """
        return pulumi.get(self, "metric_id")

    @property
    @pulumi.getter
    def name(self) -> str:
        """
        Resource name
        """
        return pulumi.get(self, "name")

    @property
    @pulumi.getter(name="namespaceType")
    def namespace_type(self) -> Optional[str]:
        """
        The namespace type.
        """
        return pulumi.get(self, "namespace_type")

    @property
    @pulumi.getter(name="provisioningState")
    def provisioning_state(self) -> Optional[str]:
        """
        Provisioning state of the Namespace.
        """
        return pulumi.get(self, "provisioning_state")

    @property
    @pulumi.getter
    def region(self) -> Optional[str]:
        """
        Specifies the targeted region in which the namespace should be created. It can be any of the following values: Australia East, Australia Southeast, Central US, East US, East US 2, West US, North Central US, South Central US, East Asia, Southeast Asia, Brazil South, Japan East, Japan West, North Europe, West Europe
        """
        return pulumi.get(self, "region")

    @property
    @pulumi.getter(name="scaleUnit")
    def scale_unit(self) -> Optional[str]:
        """
        ScaleUnit where the namespace gets created
        """
        return pulumi.get(self, "scale_unit")

    @property
    @pulumi.getter(name="serviceBusEndpoint")
    def service_bus_endpoint(self) -> Optional[str]:
        """
        Endpoint you can use to perform NotificationHub operations.
        """
        return pulumi.get(self, "service_bus_endpoint")

    @property
    @pulumi.getter
    def sku(self) -> Optional['outputs.SkuResponse']:
        """
        The sku of the created namespace
        """
        return pulumi.get(self, "sku")

    @property
    @pulumi.getter
    def status(self) -> Optional[str]:
        """
        Status of the namespace. It can be any of these values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting
        """
        return pulumi.get(self, "status")

    @property
    @pulumi.getter(name="subscriptionId")
    def subscription_id(self) -> Optional[str]:
        """
        The Id of the Azure subscription associated with the namespace.
        """
        return pulumi.get(self, "subscription_id")

    @property
    @pulumi.getter
    def tags(self) -> Optional[Mapping[str, str]]:
        """
        Resource tags
        """
        return pulumi.get(self, "tags")

    @property
    @pulumi.getter
    def type(self) -> str:
        """
        Resource type
        """
        return pulumi.get(self, "type")

    @property
    @pulumi.getter(name="updatedAt")
    def updated_at(self) -> Optional[str]:
        """
        The time the namespace was updated.
        """
        return pulumi.get(self, "updated_at")


class AwaitableGetNamespaceResult(GetNamespaceResult):
    # pylint: disable=using-constant-test
    def __await__(self):
        if False:
            yield self
        return GetNamespaceResult(
            created_at=self.created_at,
            critical=self.critical,
            data_center=self.data_center,
            enabled=self.enabled,
            id=self.id,
            location=self.location,
            metric_id=self.metric_id,
            name=self.name,
            namespace_type=self.namespace_type,
            provisioning_state=self.provisioning_state,
            region=self.region,
            scale_unit=self.scale_unit,
            service_bus_endpoint=self.service_bus_endpoint,
            sku=self.sku,
            status=self.status,
            subscription_id=self.subscription_id,
            tags=self.tags,
            type=self.type,
            updated_at=self.updated_at)


def get_namespace(namespace_name: Optional[str] = None,
                  resource_group_name: Optional[str] = None,
                  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetNamespaceResult:
    """
    Description of a Namespace resource.
    Latest API Version: 2017-04-01.


    :param str namespace_name: The namespace name.
    :param str resource_group_name: The name of the resource group.
    """
    pulumi.log.warn("""get_namespace is deprecated: The 'latest' version is deprecated. Please migrate to the function in the top-level module: 'azure-native:notificationhubs:getNamespace'.""")
    __args__ = dict()
    __args__['namespaceName'] = namespace_name
    __args__['resourceGroupName'] = resource_group_name
    if opts is None:
        opts = pulumi.InvokeOptions()
    if opts.version is None:
        opts.version = _utilities.get_version()
    __ret__ = pulumi.runtime.invoke('azure-native:notificationhubs/latest:getNamespace', __args__, opts=opts, typ=GetNamespaceResult).value

    return AwaitableGetNamespaceResult(
        created_at=__ret__.created_at,
        critical=__ret__.critical,
        data_center=__ret__.data_center,
        enabled=__ret__.enabled,
        id=__ret__.id,
        location=__ret__.location,
        metric_id=__ret__.metric_id,
        name=__ret__.name,
        namespace_type=__ret__.namespace_type,
        provisioning_state=__ret__.provisioning_state,
        region=__ret__.region,
        scale_unit=__ret__.scale_unit,
        service_bus_endpoint=__ret__.service_bus_endpoint,
        sku=__ret__.sku,
        status=__ret__.status,
        subscription_id=__ret__.subscription_id,
        tags=__ret__.tags,
        type=__ret__.type,
        updated_at=__ret__.updated_at)

[((18, 0, 18, 178), 'warnings.warn', 'warnings.warn', ({(18, 14, 18, 157): '"""The \'latest\' version is deprecated. Please migrate to the function in the top-level module: \'azure-native:notificationhubs:getNamespace\'."""', (18, 159, 18, 177): 'DeprecationWarning'}, {}), '(\n    "The \'latest\' version is deprecated. Please migrate to the function in the top-level module: \'azure-native:notificationhubs:getNamespace\'."\n    , DeprecationWarning)', False, 'import warnings\n'), ((85, 5, 85, 36), 'pulumi.getter', 'pulumi.getter', (), '', False, 'import pulumi\n'), ((101, 5, 101, 37), 'pulumi.getter', 'pulumi.getter', (), '', False, 'import pulumi\n'), ((133, 5, 133, 35), 'pulumi.getter', 'pulumi.getter', (), '', False, 'import pulumi\n'), ((149, 5, 149, 40), 'pulumi.getter', 'pulumi.getter', (), '', False, 'import pulumi\n'), ((157, 5, 157, 44), 'pulumi.getter', 'pulumi.getter', (), '', False, 'import pulumi\n'), ((173, 5, 173, 36), 'pulumi.getter', 'pulumi.getter', (), '', False, 'import pulumi\n'), ((181, 5, 181, 45), 'pulumi.getter', 'pulumi.getter', (), '', False, 'import pulumi\n'), ((205, 5, 205, 41), 'pulumi.getter', 'pulumi.getter', (), '', False, 'import pulumi\n'), ((229, 5, 229, 36), 'pulumi.getter', 'pulumi.getter', (), '', False, 'import pulumi\n'), ((275, 4, 275, 193), 'pulumi.log.warn', 'pulumi.log.warn', ({(275, 20, 275, 192): '"""get_namespace is deprecated: The \'latest\' version is deprecated. Please migrate to the function in the top-level module: \'azure-native:notificationhubs:getNamespace\'."""'}, {}), '(\n    "get_namespace is deprecated: The \'latest\' version is deprecated. Please migrate to the function in the top-level module: \'azure-native:notificationhubs:getNamespace\'."\n    )', False, 'import pulumi\n'), ((28, 8, 28, 54), 'pulumi.set', 'pulumi.set', ({(28, 19, 28, 27): '__self__', (28, 29, 28, 41): '"""created_at"""', (28, 43, 28, 53): 'created_at'}, {}), "(__self__, 'created_at', created_at)", False, 'import pulumi\n'), ((31, 8, 31, 50), 'pulumi.set', 'pulumi.set', ({(31, 19, 31, 27): '__self__', (31, 29, 31, 39): '"""critical"""', (31, 41, 31, 49): 'critical'}, {}), "(__self__, 'critical', critical)", False, 'import pulumi\n'), ((34, 8, 34, 56), 'pulumi.set', 'pulumi.set', ({(34, 19, 34, 27): '__self__', (34, 29, 34, 42): '"""data_center"""', (34, 44, 34, 55): 'data_center'}, {}), "(__self__, 'data_center', data_center)", False, 'import pulumi\n'), ((37, 8, 37, 48), 'pulumi.set', 'pulumi.set', ({(37, 19, 37, 27): '__self__', (37, 29, 37, 38): '"""enabled"""', (37, 40, 37, 47): 'enabled'}, {}), "(__self__, 'enabled', enabled)", False, 'import pulumi\n'), ((40, 8, 40, 38), 'pulumi.set', 'pulumi.set', ({(40, 19, 40, 27): '__self__', (40, 29, 40, 33): '"""id"""', (40, 35, 40, 37): 'id'}, {}), "(__self__, 'id', id)", False, 'import pulumi\n'), ((43, 8, 43, 50), 'pulumi.set', 'pulumi.set', ({(43, 19, 43, 27): '__self__', (43, 29, 43, 39): '"""location"""', (43, 41, 43, 49): 'location'}, {}), "(__self__, 'location', location)", False, 'import pulumi\n'), ((46, 8, 46, 52), 'pulumi.set', 'pulumi.set', ({(46, 19, 46, 27): '__self__', (46, 29, 46, 40): '"""metric_id"""', (46, 42, 46, 51): 'metric_id'}, {}), "(__self__, 'metric_id', metric_id)", False, 'import pulumi\n'), ((49, 8, 49, 42), 'pulumi.set', 'pulumi.set', ({(49, 19, 49, 27): '__self__', (49, 29, 49, 35): '"""name"""', (49, 37, 49, 41): 'name'}, {}), "(__self__, 'name', name)", False, 'import pulumi\n'), ((52, 8, 52, 62), 'pulumi.set', 'pulumi.set', ({(52, 19, 52, 27): '__self__', (52, 29, 52, 45): '"""namespace_type"""', (52, 47, 52, 61): 'namespace_type'}, {}), "(__self__, 'namespace_type', namespace_type)", False, 'import pulumi\n'), ((55, 8, 55, 70), 'pulumi.set', 'pulumi.set', ({(55, 19, 55, 27): '__self__', (55, 29, 55, 49): '"""provisioning_state"""', (55, 51, 55, 69): 'provisioning_state'}, {}), "(__self__, 'provisioning_state', provisioning_state)", False, 'import pulumi\n'), ((58, 8, 58, 46), 'pulumi.set', 'pulumi.set', ({(58, 19, 58, 27): '__self__', (58, 29, 58, 37): '"""region"""', (58, 39, 58, 45): 'region'}, {}), "(__self__, 'region', region)", False, 'import pulumi\n'), ((61, 8, 61, 54), 'pulumi.set', 'pulumi.set', ({(61, 19, 61, 27): '__self__', (61, 29, 61, 41): '"""scale_unit"""', (61, 43, 61, 53): 'scale_unit'}, {}), "(__self__, 'scale_unit', scale_unit)", False, 'import pulumi\n'), ((64, 8, 64, 74), 'pulumi.set', 'pulumi.set', ({(64, 19, 64, 27): '__self__', (64, 29, 64, 51): '"""service_bus_endpoint"""', (64, 53, 64, 73): 'service_bus_endpoint'}, {}), "(__self__, 'service_bus_endpoint', service_bus_endpoint)", False, 'import pulumi\n'), ((67, 8, 67, 40), 'pulumi.set', 'pulumi.set', ({(67, 19, 67, 27): '__self__', (67, 29, 67, 34): '"""sku"""', (67, 36, 67, 39): 'sku'}, {}), "(__self__, 'sku', sku)", False, 'import pulumi\n'), ((70, 8, 70, 46), 'pulumi.set', 'pulumi.set', ({(70, 19, 70, 27): '__self__', (70, 29, 70, 37): '"""status"""', (70, 39, 70, 45): 'status'}, {}), "(__self__, 'status', status)", False, 'import pulumi\n'), ((73, 8, 73, 64), 'pulumi.set', 'pulumi.set', ({(73, 19, 73, 27): '__self__', (73, 29, 73, 46): '"""subscription_id"""', (73, 48, 73, 63): 'subscription_id'}, {}), "(__self__, 'subscription_id', subscription_id)", False, 'import pulumi\n'), ((76, 8, 76, 42), 'pulumi.set', 'pulumi.set', ({(76, 19, 76, 27): '__self__', (76, 29, 76, 35): '"""tags"""', (76, 37, 76, 41): 'tags'}, {}), "(__self__, 'tags', tags)", False, 'import pulumi\n'), ((79, 8, 79, 42), 'pulumi.set', 'pulumi.set', ({(79, 19, 79, 27): '__self__', (79, 29, 79, 35): '"""type"""', (79, 37, 79, 41): 'type'}, {}), "(__self__, 'type', type)", False, 'import pulumi\n'), ((82, 8, 82, 54), 'pulumi.set', 'pulumi.set', ({(82, 19, 82, 27): '__self__', (82, 29, 82, 41): '"""updated_at"""', (82, 43, 82, 53): 'updated_at'}, {}), "(__self__, 'updated_at', updated_at)", False, 'import pulumi\n'), ((90, 15, 90, 45), 'pulumi.get', 'pulumi.get', ({(90, 26, 90, 30): 'self', (90, 32, 90, 44): '"""created_at"""'}, {}), "(self, 'created_at')", False, 'import pulumi\n'), ((98, 15, 98, 43), 'pulumi.get', 'pulumi.get', ({(98, 26, 98, 30): 'self', (98, 32, 98, 42): '"""critical"""'}, {}), "(self, 'critical')", False, 'import pulumi\n'), ((106, 15, 106, 46), 'pulumi.get', 'pulumi.get', ({(106, 26, 106, 30): 'self', (106, 32, 106, 45): '"""data_center"""'}, {}), "(self, 'data_center')", False, 'import pulumi\n'), ((114, 15, 114, 42), 'pulumi.get', 'pulumi.get', ({(114, 26, 114, 30): 'self', (114, 32, 114, 41): '"""enabled"""'}, {}), "(self, 'enabled')", False, 'import pulumi\n'), ((122, 15, 122, 37), 'pulumi.get', 'pulumi.get', ({(122, 26, 122, 30): 'self', (122, 32, 122, 36): '"""id"""'}, {}), "(self, 'id')", False, 'import pulumi\n'), ((130, 15, 130, 43), 'pulumi.get', 'pulumi.get', ({(130, 26, 130, 30): 'self', (130, 32, 130, 42): '"""location"""'}, {}), "(self, 'location')", False, 'import pulumi\n'), ((138, 15, 138, 44), 'pulumi.get', 'pulumi.get', ({(138, 26, 138, 30): 'self', (138, 32, 138, 43): '"""metric_id"""'}, {}), "(self, 'metric_id')", False, 'import pulumi\n'), ((146, 15, 146, 39), 'pulumi.get', 'pulumi.get', ({(146, 26, 146, 30): 'self', (146, 32, 146, 38): '"""name"""'}, {}), "(self, 'name')", False, 'import pulumi\n'), ((154, 15, 154, 49), 'pulumi.get', 'pulumi.get', ({(154, 26, 154, 30): 'self', (154, 32, 154, 48): '"""namespace_type"""'}, {}), "(self, 'namespace_type')", False, 'import pulumi\n'), ((162, 15, 162, 53), 'pulumi.get', 'pulumi.get', ({(162, 26, 162, 30): 'self', (162, 32, 162, 52): '"""provisioning_state"""'}, {}), "(self, 'provisioning_state')", False, 'import pulumi\n'), ((170, 15, 170, 41), 'pulumi.get', 'pulumi.get', ({(170, 26, 170, 30): 'self', (170, 32, 170, 40): '"""region"""'}, {}), "(self, 'region')", False, 'import pulumi\n'), ((178, 15, 178, 45), 'pulumi.get', 'pulumi.get', ({(178, 26, 178, 30): 'self', (178, 32, 178, 44): '"""scale_unit"""'}, {}), "(self, 'scale_unit')", False, 'import pulumi\n'), ((186, 15, 186, 55), 'pulumi.get', 'pulumi.get', ({(186, 26, 186, 30): 'self', (186, 32, 186, 54): '"""service_bus_endpoint"""'}, {}), "(self, 'service_bus_endpoint')", False, 'import pulumi\n'), ((194, 15, 194, 38), 'pulumi.get', 'pulumi.get', ({(194, 26, 194, 30): 'self', (194, 32, 194, 37): '"""sku"""'}, {}), "(self, 'sku')", False, 'import pulumi\n'), ((202, 15, 202, 41), 'pulumi.get', 'pulumi.get', ({(202, 26, 202, 30): 'self', (202, 32, 202, 40): '"""status"""'}, {}), "(self, 'status')", False, 'import pulumi\n'), ((210, 15, 210, 50), 'pulumi.get', 'pulumi.get', ({(210, 26, 210, 30): 'self', (210, 32, 210, 49): '"""subscription_id"""'}, {}), "(self, 'subscription_id')", False, 'import pulumi\n'), ((218, 15, 218, 39), 'pulumi.get', 'pulumi.get', ({(218, 26, 218, 30): 'self', (218, 32, 218, 38): '"""tags"""'}, {}), "(self, 'tags')", False, 'import pulumi\n'), ((226, 15, 226, 39), 'pulumi.get', 'pulumi.get', ({(226, 26, 226, 30): 'self', (226, 32, 226, 38): '"""type"""'}, {}), "(self, 'type')", False, 'import pulumi\n'), ((234, 15, 234, 45), 'pulumi.get', 'pulumi.get', ({(234, 26, 234, 30): 'self', (234, 32, 234, 44): '"""updated_at"""'}, {}), "(self, 'updated_at')", False, 'import pulumi\n'), ((280, 15, 280, 37), 'pulumi.InvokeOptions', 'pulumi.InvokeOptions', ({}, {}), '()', False, 'import pulumi\n'), ((283, 14, 283, 133), 'pulumi.runtime.invoke', 'pulumi.runtime.invoke', (), '', False, 'import pulumi\n')]