# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** 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, overload
from .. import _utilities

__all__ = [
    'GetRegistryResult',
    'AwaitableGetRegistryResult',
    'get_registry',
]

@pulumi.output_type
class GetRegistryResult:
    """
    A collection of values returned by getRegistry.
    """
    def __init__(__self__, admin_enabled=None, admin_password=None, admin_username=None, id=None, location=None, login_server=None, name=None, resource_group_name=None, sku=None, storage_account_id=None, tags=None):
        if admin_enabled and not isinstance(admin_enabled, bool):
            raise TypeError("Expected argument 'admin_enabled' to be a bool")
        pulumi.set(__self__, "admin_enabled", admin_enabled)
        if admin_password and not isinstance(admin_password, str):
            raise TypeError("Expected argument 'admin_password' to be a str")
        pulumi.set(__self__, "admin_password", admin_password)
        if admin_username and not isinstance(admin_username, str):
            raise TypeError("Expected argument 'admin_username' to be a str")
        pulumi.set(__self__, "admin_username", admin_username)
        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 login_server and not isinstance(login_server, str):
            raise TypeError("Expected argument 'login_server' to be a str")
        pulumi.set(__self__, "login_server", login_server)
        if name and not isinstance(name, str):
            raise TypeError("Expected argument 'name' to be a str")
        pulumi.set(__self__, "name", name)
        if resource_group_name and not isinstance(resource_group_name, str):
            raise TypeError("Expected argument 'resource_group_name' to be a str")
        pulumi.set(__self__, "resource_group_name", resource_group_name)
        if sku and not isinstance(sku, str):
            raise TypeError("Expected argument 'sku' to be a str")
        pulumi.set(__self__, "sku", sku)
        if storage_account_id and not isinstance(storage_account_id, str):
            raise TypeError("Expected argument 'storage_account_id' to be a str")
        pulumi.set(__self__, "storage_account_id", storage_account_id)
        if tags and not isinstance(tags, dict):
            raise TypeError("Expected argument 'tags' to be a dict")
        pulumi.set(__self__, "tags", tags)

    @property
    @pulumi.getter(name="adminEnabled")
    def admin_enabled(self) -> bool:
        """
        Is the Administrator account enabled for this Container Registry.
        """
        return pulumi.get(self, "admin_enabled")

    @property
    @pulumi.getter(name="adminPassword")
    def admin_password(self) -> str:
        """
        The Password associated with the Container Registry Admin account - if the admin account is enabled.
        """
        return pulumi.get(self, "admin_password")

    @property
    @pulumi.getter(name="adminUsername")
    def admin_username(self) -> str:
        """
        The Username associated with the Container Registry Admin account - if the admin account is enabled.
        """
        return pulumi.get(self, "admin_username")

    @property
    @pulumi.getter
    def id(self) -> str:
        """
        The provider-assigned unique ID for this managed resource.
        """
        return pulumi.get(self, "id")

    @property
    @pulumi.getter
    def location(self) -> str:
        """
        The Azure Region in which this Container Registry exists.
        """
        return pulumi.get(self, "location")

    @property
    @pulumi.getter(name="loginServer")
    def login_server(self) -> str:
        """
        The URL that can be used to log into the container registry.
        """
        return pulumi.get(self, "login_server")

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

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

    @property
    @pulumi.getter
    def sku(self) -> str:
        """
        The SKU of this Container Registry, such as `Basic`.
        """
        return pulumi.get(self, "sku")

    @property
    @pulumi.getter(name="storageAccountId")
    def storage_account_id(self) -> str:
        """
        The ID of the Storage Account used for this Container Registry. This is only returned for `Classic` SKU's.
        """
        return pulumi.get(self, "storage_account_id")

    @property
    @pulumi.getter
    def tags(self) -> Mapping[str, str]:
        """
        A map of tags assigned to the Container Registry.
        """
        return pulumi.get(self, "tags")


class AwaitableGetRegistryResult(GetRegistryResult):
    # pylint: disable=using-constant-test
    def __await__(self):
        if False:
            yield self
        return GetRegistryResult(
            admin_enabled=self.admin_enabled,
            admin_password=self.admin_password,
            admin_username=self.admin_username,
            id=self.id,
            location=self.location,
            login_server=self.login_server,
            name=self.name,
            resource_group_name=self.resource_group_name,
            sku=self.sku,
            storage_account_id=self.storage_account_id,
            tags=self.tags)


def get_registry(name: Optional[str] = None,
                 resource_group_name: Optional[str] = None,
                 opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetRegistryResult:
    """
    Use this data source to access information about an existing Container Registry.

    ## Example Usage

    ```python
    import pulumi
    import pulumi_azure as azure

    example = azure.containerservice.get_registry(name="testacr",
        resource_group_name="test")
    pulumi.export("loginServer", example.login_server)
    ```


    :param str name: The name of the Container Registry.
    :param str resource_group_name: The Name of the Resource Group where this Container Registry exists.
    """
    __args__ = dict()
    __args__['name'] = 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:containerservice/getRegistry:getRegistry', __args__, opts=opts, typ=GetRegistryResult).value

    return AwaitableGetRegistryResult(
        admin_enabled=__ret__.admin_enabled,
        admin_password=__ret__.admin_password,
        admin_username=__ret__.admin_username,
        id=__ret__.id,
        location=__ret__.location,
        login_server=__ret__.login_server,
        name=__ret__.name,
        resource_group_name=__ret__.resource_group_name,
        sku=__ret__.sku,
        storage_account_id=__ret__.storage_account_id,
        tags=__ret__.tags)

[((58, 5, 58, 39), 'pulumi.getter', 'pulumi.getter', (), '', False, 'import pulumi\n'), ((66, 5, 66, 40), 'pulumi.getter', 'pulumi.getter', (), '', False, 'import pulumi\n'), ((74, 5, 74, 40), 'pulumi.getter', 'pulumi.getter', (), '', False, 'import pulumi\n'), ((98, 5, 98, 38), 'pulumi.getter', 'pulumi.getter', (), '', False, 'import pulumi\n'), ((111, 5, 111, 44), 'pulumi.getter', 'pulumi.getter', (), '', False, 'import pulumi\n'), ((124, 5, 124, 43), 'pulumi.getter', 'pulumi.getter', (), '', False, 'import pulumi\n'), ((25, 8, 25, 60), 'pulumi.set', 'pulumi.set', ({(25, 19, 25, 27): '__self__', (25, 29, 25, 44): '"""admin_enabled"""', (25, 46, 25, 59): 'admin_enabled'}, {}), "(__self__, 'admin_enabled', admin_enabled)", False, 'import pulumi\n'), ((28, 8, 28, 62), 'pulumi.set', 'pulumi.set', ({(28, 19, 28, 27): '__self__', (28, 29, 28, 45): '"""admin_password"""', (28, 47, 28, 61): 'admin_password'}, {}), "(__self__, 'admin_password', admin_password)", False, 'import pulumi\n'), ((31, 8, 31, 62), 'pulumi.set', 'pulumi.set', ({(31, 19, 31, 27): '__self__', (31, 29, 31, 45): '"""admin_username"""', (31, 47, 31, 61): 'admin_username'}, {}), "(__self__, 'admin_username', admin_username)", False, 'import pulumi\n'), ((34, 8, 34, 38), 'pulumi.set', 'pulumi.set', ({(34, 19, 34, 27): '__self__', (34, 29, 34, 33): '"""id"""', (34, 35, 34, 37): 'id'}, {}), "(__self__, 'id', id)", False, 'import pulumi\n'), ((37, 8, 37, 50), 'pulumi.set', 'pulumi.set', ({(37, 19, 37, 27): '__self__', (37, 29, 37, 39): '"""location"""', (37, 41, 37, 49): 'location'}, {}), "(__self__, 'location', location)", False, 'import pulumi\n'), ((40, 8, 40, 58), 'pulumi.set', 'pulumi.set', ({(40, 19, 40, 27): '__self__', (40, 29, 40, 43): '"""login_server"""', (40, 45, 40, 57): 'login_server'}, {}), "(__self__, 'login_server', login_server)", False, 'import pulumi\n'), ((43, 8, 43, 42), 'pulumi.set', 'pulumi.set', ({(43, 19, 43, 27): '__self__', (43, 29, 43, 35): '"""name"""', (43, 37, 43, 41): 'name'}, {}), "(__self__, 'name', name)", False, 'import pulumi\n'), ((46, 8, 46, 72), 'pulumi.set', 'pulumi.set', ({(46, 19, 46, 27): '__self__', (46, 29, 46, 50): '"""resource_group_name"""', (46, 52, 46, 71): 'resource_group_name'}, {}), "(__self__, 'resource_group_name', resource_group_name)", False, 'import pulumi\n'), ((49, 8, 49, 40), 'pulumi.set', 'pulumi.set', ({(49, 19, 49, 27): '__self__', (49, 29, 49, 34): '"""sku"""', (49, 36, 49, 39): 'sku'}, {}), "(__self__, 'sku', sku)", False, 'import pulumi\n'), ((52, 8, 52, 70), 'pulumi.set', 'pulumi.set', ({(52, 19, 52, 27): '__self__', (52, 29, 52, 49): '"""storage_account_id"""', (52, 51, 52, 69): 'storage_account_id'}, {}), "(__self__, 'storage_account_id', storage_account_id)", False, 'import pulumi\n'), ((55, 8, 55, 42), 'pulumi.set', 'pulumi.set', ({(55, 19, 55, 27): '__self__', (55, 29, 55, 35): '"""tags"""', (55, 37, 55, 41): 'tags'}, {}), "(__self__, 'tags', tags)", False, 'import pulumi\n'), ((63, 15, 63, 48), 'pulumi.get', 'pulumi.get', ({(63, 26, 63, 30): 'self', (63, 32, 63, 47): '"""admin_enabled"""'}, {}), "(self, 'admin_enabled')", False, 'import pulumi\n'), ((71, 15, 71, 49), 'pulumi.get', 'pulumi.get', ({(71, 26, 71, 30): 'self', (71, 32, 71, 48): '"""admin_password"""'}, {}), "(self, 'admin_password')", False, 'import pulumi\n'), ((79, 15, 79, 49), 'pulumi.get', 'pulumi.get', ({(79, 26, 79, 30): 'self', (79, 32, 79, 48): '"""admin_username"""'}, {}), "(self, 'admin_username')", False, 'import pulumi\n'), ((87, 15, 87, 37), 'pulumi.get', 'pulumi.get', ({(87, 26, 87, 30): 'self', (87, 32, 87, 36): '"""id"""'}, {}), "(self, 'id')", False, 'import pulumi\n'), ((95, 15, 95, 43), 'pulumi.get', 'pulumi.get', ({(95, 26, 95, 30): 'self', (95, 32, 95, 42): '"""location"""'}, {}), "(self, 'location')", False, 'import pulumi\n'), ((103, 15, 103, 47), 'pulumi.get', 'pulumi.get', ({(103, 26, 103, 30): 'self', (103, 32, 103, 46): '"""login_server"""'}, {}), "(self, 'login_server')", False, 'import pulumi\n'), ((108, 15, 108, 39), 'pulumi.get', 'pulumi.get', ({(108, 26, 108, 30): 'self', (108, 32, 108, 38): '"""name"""'}, {}), "(self, 'name')", False, 'import pulumi\n'), ((113, 15, 113, 54), 'pulumi.get', 'pulumi.get', ({(113, 26, 113, 30): 'self', (113, 32, 113, 53): '"""resource_group_name"""'}, {}), "(self, 'resource_group_name')", False, 'import pulumi\n'), ((121, 15, 121, 38), 'pulumi.get', 'pulumi.get', ({(121, 26, 121, 30): 'self', (121, 32, 121, 37): '"""sku"""'}, {}), "(self, 'sku')", False, 'import pulumi\n'), ((129, 15, 129, 53), 'pulumi.get', 'pulumi.get', ({(129, 26, 129, 30): 'self', (129, 32, 129, 52): '"""storage_account_id"""'}, {}), "(self, 'storage_account_id')", False, 'import pulumi\n'), ((137, 15, 137, 39), 'pulumi.get', 'pulumi.get', ({(137, 26, 137, 30): 'self', (137, 32, 137, 38): '"""tags"""'}, {}), "(self, 'tags')", False, 'import pulumi\n'), ((184, 15, 184, 37), 'pulumi.InvokeOptions', 'pulumi.InvokeOptions', ({}, {}), '()', False, 'import pulumi\n'), ((187, 14, 187, 129), 'pulumi.runtime.invoke', 'pulumi.runtime.invoke', (), '', False, 'import pulumi\n')]