original_docstring: 
      Request query to get public cluster's information
      
docstring: Request query to get public cluster's information
docstring_tokens: Request query to get public cluster ' s information
code: def list_public_clusters_request(session, name):
      """
      Request query to get public cluster's information
      """
      access_token = get_user_access_token(session)
      query = {'token': access_token}
      # Get cluster whitelist and parse allowed groups
      print("Querying cluster whitelist...")
      whitelist = list_cluster_whitelist(name)
      print("Query Results: {}".format(whitelist))
      allowed_groups = [item for item in whitelist['items']]
  
      # Get cluster info and parse below
      cluster = get_cluster_info(name, nodes=True)
      print("Query Results: {}".format(cluster))
      if cluster == 504:
          cluster = {}
          storageClasses = {}
          priorityClasses = {}
          owningGroupEmail = ''
          cluster_status = "False"
          timeout = "true"
      else:
          # Get owning group information for contact info
          print("Setting owning group...")
          owningGroupName = cluster['metadata']['owningGroup']
          print("Querying owning group info for email info...")
          owningGroup = requests.get(
              slate_api_endpoint + '/v1alpha3/groups/' + owningGroupName, params=query)
          print("Query Response: {}".format(owningGroup))
          owningGroup = owningGroup.json()
          owningGroupEmail = owningGroup['metadata']['email']
  
          storageClasses = cluster['metadata']['storageClasses']
          priorityClasses = cluster['metadata']['priorityClasses']
          timeout = "false"
  
      # Get Cluster status and return as string for flask template
      print("Querying for cluster status")
      cluster_status = get_cluster_status(name)
      print("Cluster Status Response: {}".format(cluster_status))
      cluster_status = str(cluster_status)
      print("Timeout Status: {}".format(timeout))
  
      return cluster, owningGroupEmail, allowed_groups, cluster_status, storageClasses, priorityClasses, timeout
code_tokens: def list_public_clusters_request ( session , name ) : access_token = get_user_access_token ( session ) query = { 'token' : access_token } print ( "Querying cluster whitelist..." ) whitelist = list_cluster_whitelist ( name ) print ( "Query Results: {}" . format ( whitelist ) ) allowed_groups = [ item for item in whitelist [ 'items' ] ] cluster = get_cluster_info ( name , nodes = True ) print ( "Query Results: {}" . format ( cluster ) ) if cluster == 504 : cluster = { } storageClasses = { } priorityClasses = { } owningGroupEmail = '' cluster_status = "False" timeout = "true" else : print ( "Setting owning group..." ) owningGroupName = cluster [ 'metadata' ] [ 'owningGroup' ] print ( "Querying owning group info for email info..." ) owningGroup = requests . get ( slate_api_endpoint + '/v1alpha3/groups/' + owningGroupName , params = query ) print ( "Query Response: {}" . format ( owningGroup ) ) owningGroup = owningGroup . json ( ) owningGroupEmail = owningGroup [ 'metadata' ] [ 'email' ] storageClasses = cluster [ 'metadata' ] [ 'storageClasses' ] priorityClasses = cluster [ 'metadata' ] [ 'priorityClasses' ] timeout = "false" print ( "Querying for cluster status" ) cluster_status = get_cluster_status ( name ) print ( "Cluster Status Response: {}" . format ( cluster_status ) ) cluster_status = str ( cluster_status ) print ( "Timeout Status: {}" . format ( timeout ) ) return cluster , owningGroupEmail , allowed_groups , cluster_status , storageClasses , priorityClasses , timeout
short_docstring: Request query to get public cluster's information
short_docstring_tokens: Request query to get public cluster ' s information
comment: """
      Request query to get public cluster's information
      """$SEP$# Get cluster whitelist and parse allowed groups$SEP$# Get cluster info and parse below$SEP$# Get owning group information for contact info$SEP$# Get Cluster status and return as string for flask template