class_docstr: G Suite Reports base app integration. This is subclassed for various endpoints
class_docstr_tok: ["G","Suite","Reports","base","app","integration",".","This","is","subclassed","for","various","endpoints"]
docstr: GSuite requests must be signed with the keyfile
  
  Returns:
      bool: True if the Google API discovery service was successfully established or False
          if any errors occurred during the creation of the Google discovery service,
docstr_tok: ["GSuite","requests","must","be","signed","with","the","keyfile","Returns",":","bool",":","True","if","the","Google","API","discovery","service","was","successfully","established","or","False","if","any","errors","occurred","during","the","creation","of","the","Google","discovery","service",","]
code: def _create_service(self):
      """GSuite requests must be signed with the keyfile
  
      Returns:
          bool: True if the Google API discovery service was successfully established or False
              if any errors occurred during the creation of the Google discovery service,
      """
      LOGGER.debug("[%s] Creating activities service", self)
  
      if self._activities_service:
          LOGGER.debug("[%s] Service already instantiated", self)
          return True
  
      creds = self._load_credentials(self._config.auth["keyfile"])
      if not creds:
          return False
  
      delegation = creds.with_subject(
          self._config.auth["delegation_email"]
      )
      try:
          resource = googleapiclient.discovery.build(
              "admin", "reports_v1", credentials=delegation
          )
      except self._GOOGLE_API_EXCEPTIONS:
          LOGGER.exception(
              "[%s] Failed to build discovery service", self
          )
          return False
  
      # The google discovery service 'Resource' class that is returned by
      # 'discovery.build' dynamically loads methods/attributes, so pylint will complain
      # about no 'activities' member existing without the below pylint comment
      self._activities_service = (
          resource.activities()
      )  # pylint: disable=no-member
  
      return True
  
imports: import logging
  import json
  import re
  import socket
  import ssl
  import googleapiclient.discovery
  import googleapiclient.errors
  from google.oauth2 import service_account
  from google.auth.exceptions import GoogleAuthError
  from .None import AppIntegration, StreamAlertApp, get_logger
label_desc: Use image node_id 6 for calling the GSuiteReportsApp obj's underlying member method code with example usage: obj._create_service() and returns: True, True, False, False