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
  
  __all__ = [
      'GetWorkspaceResult',
      'AwaitableGetWorkspaceResult',
      'get_workspace',
  ]
  
  @pulumi.output_type
  class GetWorkspaceResult:
      """
      Batch AI Workspace information.
      """
      def __init__(__self__, creation_time=None, id=None, location=None, name=None, provisioning_state=None, provisioning_state_transition_time=None, tags=None, type=None):
          if creation_time and not isinstance(creation_time, str):
              raise TypeError("Expected argument 'creation_time' to be a str")
          pulumi.set(__self__, "creation_time", creation_time)
          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 name and not isinstance(name, str):
              raise TypeError("Expected argument 'name' to be a str")
          pulumi.set(__self__, "name", name)
          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 provisioning_state_transition_time and not isinstance(provisioning_state_transition_time, str):
              raise TypeError("Expected argument 'provisioning_state_transition_time' to be a str")
          pulumi.set(__self__, "provisioning_state_transition_time", provisioning_state_transition_time)
          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)
  
      @property
      @pulumi.getter(name="creationTime")
      def creation_time(self) -> str:
          """
          Time when the Workspace was created.
          """
          return pulumi.get(self, "creation_time")
  
      @property
      @pulumi.getter
      def id(self) -> str:
          """
          The ID of the resource
          """
          return pulumi.get(self, "id")
  
      @property
      @pulumi.getter
      def location(self) -> str:
          """
          The location of the resource
          """
          return pulumi.get(self, "location")
  
      @property
      @pulumi.getter
      def name(self) -> str:
          """
          The name of the resource
          """
          return pulumi.get(self, "name")
  
      @property
      @pulumi.getter(name="provisioningState")
      def provisioning_state(self) -> str:
          """
          The provisioned state of the Workspace
          """
          return pulumi.get(self, "provisioning_state")
  
      @property
      @pulumi.getter(name="provisioningStateTransitionTime")
      def provisioning_state_transition_time(self) -> str:
          """
          The time at which the workspace entered its current provisioning state.
          """
          return pulumi.get(self, "provisioning_state_transition_time")
  
      @property
      @pulumi.getter
      def tags(self) -> Mapping[str, str]:
          """
          The tags of the resource
          """
          return pulumi.get(self, "tags")
  
      @property
      @pulumi.getter
      def type(self) -> str:
          """
          The type of the resource
          """
          return pulumi.get(self, "type")
  
  
  class AwaitableGetWorkspaceResult(GetWorkspaceResult):
      # pylint: disable=using-constant-test
      def __await__(self):
          if False:
              yield self
          return GetWorkspaceResult(
              creation_time=self.creation_time,
              id=self.id,
              location=self.location,
              name=self.name,
              provisioning_state=self.provisioning_state,
              provisioning_state_transition_time=self.provisioning_state_transition_time,
              tags=self.tags,
              type=self.type)
  
  
  def get_workspace(resource_group_name: Optional[str] = None,
                    workspace_name: Optional[str] = None,
                    opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetWorkspaceResult:
      """
      Batch AI Workspace information.
  
  
      :param str resource_group_name: Name of the resource group to which the resource belongs.
      :param str workspace_name: The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name must be from 1 through 64 characters long.
      """
      __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-nextgen:batchai/v20180501:getWorkspace', __args__, opts=opts, typ=GetWorkspaceResult).value
  
      return AwaitableGetWorkspaceResult(
          creation_time=__ret__.creation_time,
          id=__ret__.id,
          location=__ret__.location,
          name=__ret__.name,
          provisioning_state=__ret__.provisioning_state,
          provisioning_state_transition_time=__ret__.provisioning_state_transition_time,
          tags=__ret__.tags,
          type=__ret__.type)
  