Beispiel #1
0
    def logging_api(self):
        """Helper for logging-related API calls.

        See
        https://cloud.google.com/logging/docs/reference/v2/rest/v2/entries
        https://cloud.google.com/logging/docs/reference/v2/rest/v2/projects.logs
        """
        if self._logging_api is None:
            if self._use_grpc:
                self._logging_api = make_gax_logging_api(self)
            else:
                self._logging_api = JSONLoggingAPI(self)
        return self._logging_api
Beispiel #2
0
    def logging_api(self):
        """Helper for logging-related API calls.

        See:
        https://cloud.google.com/logging/docs/api/reference/rest/v2/entries
        https://cloud.google.com/logging/docs/api/reference/rest/v2/projects.logs
        """
        if self._logging_api is None:
            if self._use_gax:
                self._logging_api = make_gax_logging_api(self)
            else:
                self._logging_api = JSONLoggingAPI(self)
        return self._logging_api
 def _call_fut(self, client):
     from google.cloud.logging._gax import make_gax_logging_api
     return make_gax_logging_api(client)
Beispiel #4
0
 def _call_fut(self, client):
     from google.cloud.logging._gax import make_gax_logging_api
     return make_gax_logging_api(client)