How to use the grafeas.grafeas_v1.GrafeasClient function in grafeas

To help you get started, we’ve selected a few grafeas examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github googleapis / google-cloud-python / containeranalysis / google / cloud / devtools / containeranalysis_v1 / gapic / container_analysis_client.py View on Github external
def get_grafeas_client(self):
        """Returns an equivalent grafeas client.

        Returns:
            A :class:`~grafeas.grafeas_v1.GrafeasClient` instance.
        """
        grafeas_transport = grafeas_grpc_transport.GrafeasGrpcTransport(
            self.SERVICE_ADDRESS, self.transport._OAUTH_SCOPES
        )

        return grafeas_v1.GrafeasClient(grafeas_transport)