(api_name, api_version, credentials=None)
return googleapiclient.discovery.build(
      api_name, api_version, cache_discovery=False, credentials=credentials)
Configures genomics API client.

  Args:
    api_name: Name of the Google API (for example: "genomics")
    api_version: Version of the API (for example: "v2alpha1")
    credentials: Credentials to be used for the gcloud API calls.

  Returns:
    A configured Google Genomics API client with appropriate credentials.
Configures genomics API client.
Configures genomics API client .
def setup_service(api_name, api_version, credentials=None):
  """Configures genomics API client.

  Args:
    api_name: Name of the Google API (for example: "genomics")
    api_version: Version of the API (for example: "v2alpha1")
    credentials: Credentials to be used for the gcloud API calls.

  Returns:
    A configured Google Genomics API client with appropriate credentials.
  """
  # dsub is not a server application, so it is ok to filter this warning.
  warnings.filterwarnings(
      'ignore', 'Your application has authenticated using end user credentials')
  if not credentials:
    credentials, _ = google.auth.default()
  # Set cache_discovery to False because we use google-auth
  # See https://github.com/googleapis/google-api-python-client/issues/299
  return googleapiclient.discovery.build(
      api_name, api_version, cache_discovery=False, credentials=credentials)
def setup_service ( api_name , api_version , credentials = None ) : # dsub is not a server application, so it is ok to filter this warning. warnings . filterwarnings ( 'ignore' , 'Your application has authenticated using end user credentials' ) if not credentials : credentials , _ = google . auth . default ( ) # Set cache_discovery to False because we use google-auth # See https://github.com/googleapis/google-api-python-client/issues/299 return googleapiclient . discovery . build ( api_name , api_version , cache_discovery = False , credentials = credentials )