text: # 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__ = [
      'ListWorkspaceKeysResult',
      'AwaitableListWorkspaceKeysResult',
      'list_workspace_keys',
  ]
  
  warnings.warn("""The 'latest' version is deprecated. Please migrate to the function in the top-level module: 'azure-native:machinelearningservices:listWorkspaceKeys'.""", DeprecationWarning)
  
  @pulumi.output_type
  class ListWorkspaceKeysResult:
      def __init__(__self__, app_insights_instrumentation_key=None, container_registry_credentials=None, notebook_access_keys=None, user_storage_key=None, user_storage_resource_id=None):
          if app_insights_instrumentation_key and not isinstance(app_insights_instrumentation_key, str):
              raise TypeError("Expected argument 'app_insights_instrumentation_key' to be a str")
          pulumi.set(__self__, "app_insights_instrumentation_key", app_insights_instrumentation_key)
          if container_registry_credentials and not isinstance(container_registry_credentials, dict):
              raise TypeError("Expected argument 'container_registry_credentials' to be a dict")
          pulumi.set(__self__, "container_registry_credentials", container_registry_credentials)
          if notebook_access_keys and not isinstance(notebook_access_keys, dict):
              raise TypeError("Expected argument 'notebook_access_keys' to be a dict")
          pulumi.set(__self__, "notebook_access_keys", notebook_access_keys)
          if user_storage_key and not isinstance(user_storage_key, str):
              raise TypeError("Expected argument 'user_storage_key' to be a str")
          pulumi.set(__self__, "user_storage_key", user_storage_key)
          if user_storage_resource_id and not isinstance(user_storage_resource_id, str):
              raise TypeError("Expected argument 'user_storage_resource_id' to be a str")
          pulumi.set(__self__, "user_storage_resource_id", user_storage_resource_id)
  
      @property
      @pulumi.getter(name="appInsightsInstrumentationKey")
      def app_insights_instrumentation_key(self) -> str:
          return pulumi.get(self, "app_insights_instrumentation_key")
  
      @property
      @pulumi.getter(name="containerRegistryCredentials")
      def container_registry_credentials(self) -> 'outputs.RegistryListCredentialsResultResponseResult':
          return pulumi.get(self, "container_registry_credentials")
  
      @property
      @pulumi.getter(name="notebookAccessKeys")
      def notebook_access_keys(self) -> 'outputs.ListNotebookKeysResultResponseResult':
          return pulumi.get(self, "notebook_access_keys")
  
      @property
      @pulumi.getter(name="userStorageKey")
      def user_storage_key(self) -> str:
          return pulumi.get(self, "user_storage_key")
  
      @property
      @pulumi.getter(name="userStorageResourceId")
      def user_storage_resource_id(self) -> str:
          return pulumi.get(self, "user_storage_resource_id")
  
  
  class AwaitableListWorkspaceKeysResult(ListWorkspaceKeysResult):
      # pylint: disable=using-constant-test
      def __await__(self):
          if False:
              yield self
          return ListWorkspaceKeysResult(
              app_insights_instrumentation_key=self.app_insights_instrumentation_key,
              container_registry_credentials=self.container_registry_credentials,
              notebook_access_keys=self.notebook_access_keys,
              user_storage_key=self.user_storage_key,
              user_storage_resource_id=self.user_storage_resource_id)
  
  
  def list_workspace_keys(resource_group_name: Optional[str] = None,
                          workspace_name: Optional[str] = None,
                          opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableListWorkspaceKeysResult:
      """
      Latest API Version: 2021-01-01.
  
  
      :param str resource_group_name: Name of the resource group in which workspace is located.
      :param str workspace_name: Name of Azure Machine Learning workspace.
      """
      pulumi.log.warn("""list_workspace_keys is deprecated: The 'latest' version is deprecated. Please migrate to the function in the top-level module: 'azure-native:machinelearningservices:listWorkspaceKeys'.""")
      __args__ = dict()
      __args__['resourceGroupName'] = resource_group_name
      __args__['workspaceName'] = workspace_name
      if opts is None:
          opts = pulumi.InvokeOptions()
      if opts.version is None:
          opts.version = _utilities.get_version()
      __ret__ = pulumi.runtime.invoke('azure-native:machinelearningservices/latest:listWorkspaceKeys', __args__, opts=opts, typ=ListWorkspaceKeysResult).value
  
      return AwaitableListWorkspaceKeysResult(
          app_insights_instrumentation_key=__ret__.app_insights_instrumentation_key,
          container_registry_credentials=__ret__.container_registry_credentials,
          notebook_access_keys=__ret__.notebook_access_keys,
          user_storage_key=__ret__.user_storage_key,
          user_storage_resource_id=__ret__.user_storage_resource_id)
  