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__ = [
      'GetSqlPoolWorkloadGroupResult',
      'AwaitableGetSqlPoolWorkloadGroupResult',
      'get_sql_pool_workload_group',
  ]
  
  warnings.warn("""The 'latest' version is deprecated. Please migrate to the function in the top-level module: 'azure-native:synapse:getSqlPoolWorkloadGroup'.""", DeprecationWarning)
  
  @pulumi.output_type
  class GetSqlPoolWorkloadGroupResult:
      """
      Workload group operations for a sql pool
      """
      def __init__(__self__, id=None, importance=None, max_resource_percent=None, max_resource_percent_per_request=None, min_resource_percent=None, min_resource_percent_per_request=None, name=None, query_execution_timeout=None, type=None):
          if id and not isinstance(id, str):
              raise TypeError("Expected argument 'id' to be a str")
          pulumi.set(__self__, "id", id)
          if importance and not isinstance(importance, str):
              raise TypeError("Expected argument 'importance' to be a str")
          pulumi.set(__self__, "importance", importance)
          if max_resource_percent and not isinstance(max_resource_percent, int):
              raise TypeError("Expected argument 'max_resource_percent' to be a int")
          pulumi.set(__self__, "max_resource_percent", max_resource_percent)
          if max_resource_percent_per_request and not isinstance(max_resource_percent_per_request, float):
              raise TypeError("Expected argument 'max_resource_percent_per_request' to be a float")
          pulumi.set(__self__, "max_resource_percent_per_request", max_resource_percent_per_request)
          if min_resource_percent and not isinstance(min_resource_percent, int):
              raise TypeError("Expected argument 'min_resource_percent' to be a int")
          pulumi.set(__self__, "min_resource_percent", min_resource_percent)
          if min_resource_percent_per_request and not isinstance(min_resource_percent_per_request, float):
              raise TypeError("Expected argument 'min_resource_percent_per_request' to be a float")
          pulumi.set(__self__, "min_resource_percent_per_request", min_resource_percent_per_request)
          if name and not isinstance(name, str):
              raise TypeError("Expected argument 'name' to be a str")
          pulumi.set(__self__, "name", name)
          if query_execution_timeout and not isinstance(query_execution_timeout, int):
              raise TypeError("Expected argument 'query_execution_timeout' to be a int")
          pulumi.set(__self__, "query_execution_timeout", query_execution_timeout)
          if type and not isinstance(type, str):
              raise TypeError("Expected argument 'type' to be a str")
          pulumi.set(__self__, "type", type)
  
      @property
      @pulumi.getter
      def id(self) -> str:
          """
          Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
          """
          return pulumi.get(self, "id")
  
      @property
      @pulumi.getter
      def importance(self) -> Optional[str]:
          """
          The workload group importance level.
          """
          return pulumi.get(self, "importance")
  
      @property
      @pulumi.getter(name="maxResourcePercent")
      def max_resource_percent(self) -> int:
          """
          The workload group cap percentage resource.
          """
          return pulumi.get(self, "max_resource_percent")
  
      @property
      @pulumi.getter(name="maxResourcePercentPerRequest")
      def max_resource_percent_per_request(self) -> Optional[float]:
          """
          The workload group request maximum grant percentage.
          """
          return pulumi.get(self, "max_resource_percent_per_request")
  
      @property
      @pulumi.getter(name="minResourcePercent")
      def min_resource_percent(self) -> int:
          """
          The workload group minimum percentage resource.
          """
          return pulumi.get(self, "min_resource_percent")
  
      @property
      @pulumi.getter(name="minResourcePercentPerRequest")
      def min_resource_percent_per_request(self) -> float:
          """
          The workload group request minimum grant percentage.
          """
          return pulumi.get(self, "min_resource_percent_per_request")
  
      @property
      @pulumi.getter
      def name(self) -> str:
          """
          The name of the resource
          """
          return pulumi.get(self, "name")
  
      @property
      @pulumi.getter(name="queryExecutionTimeout")
      def query_execution_timeout(self) -> Optional[int]:
          """
          The workload group query execution timeout.
          """
          return pulumi.get(self, "query_execution_timeout")
  
      @property
      @pulumi.getter
      def type(self) -> str:
          """
          The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
          """
          return pulumi.get(self, "type")
  
  
  class AwaitableGetSqlPoolWorkloadGroupResult(GetSqlPoolWorkloadGroupResult):
      # pylint: disable=using-constant-test
      def __await__(self):
          if False:
              yield self
          return GetSqlPoolWorkloadGroupResult(
              id=self.id,
              importance=self.importance,
              max_resource_percent=self.max_resource_percent,
              max_resource_percent_per_request=self.max_resource_percent_per_request,
              min_resource_percent=self.min_resource_percent,
              min_resource_percent_per_request=self.min_resource_percent_per_request,
              name=self.name,
              query_execution_timeout=self.query_execution_timeout,
              type=self.type)
  
  
  def get_sql_pool_workload_group(resource_group_name: Optional[str] = None,
                                  sql_pool_name: Optional[str] = None,
                                  workload_group_name: Optional[str] = None,
                                  workspace_name: Optional[str] = None,
                                  opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetSqlPoolWorkloadGroupResult:
      """
      Workload group operations for a sql pool
      Latest API Version: 2020-12-01.
  
  
      :param str resource_group_name: The name of the resource group. The name is case insensitive.
      :param str sql_pool_name: SQL pool name
      :param str workload_group_name: The name of the workload group.
      :param str workspace_name: The name of the workspace
      """
      pulumi.log.warn("""get_sql_pool_workload_group is deprecated: The 'latest' version is deprecated. Please migrate to the function in the top-level module: 'azure-native:synapse:getSqlPoolWorkloadGroup'.""")
      __args__ = dict()
      __args__['resourceGroupName'] = resource_group_name
      __args__['sqlPoolName'] = sql_pool_name
      __args__['workloadGroupName'] = workload_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:synapse/latest:getSqlPoolWorkloadGroup', __args__, opts=opts, typ=GetSqlPoolWorkloadGroupResult).value
  
      return AwaitableGetSqlPoolWorkloadGroupResult(
          id=__ret__.id,
          importance=__ret__.importance,
          max_resource_percent=__ret__.max_resource_percent,
          max_resource_percent_per_request=__ret__.max_resource_percent_per_request,
          min_resource_percent=__ret__.min_resource_percent,
          min_resource_percent_per_request=__ret__.min_resource_percent_per_request,
          name=__ret__.name,
          query_execution_timeout=__ret__.query_execution_timeout,
          type=__ret__.type)
  