Esempio n. 1
0
    def _make_data_stub(self):
        """Creates gRPC stub to make requests to the Data API.

        :rtype: :class:`grpc.beta._stub._AutoIntermediary`
        :returns: A gRPC stub object.
        """
        return make_stub(self, DATA_STUB_FACTORY, DATA_API_HOST, DATA_API_PORT)
Esempio n. 2
0
    def _make_table_stub(self):
        """Creates gRPC stub to make requests to the Table Admin API.

        :rtype: :class:`grpc.early_adopter.implementations._Stub`
        :returns: A gRPC stub object.
        """
        return make_stub(self, TABLE_STUB_FACTORY,
                         TABLE_ADMIN_HOST, TABLE_ADMIN_PORT)
Esempio n. 3
0
    def _make_cluster_stub(self):
        """Creates gRPC stub to make requests to the Cluster Admin API.

        :rtype: :class:`grpc.early_adopter.implementations._Stub`
        :returns: A gRPC stub object.
        """
        return make_stub(self, CLUSTER_STUB_FACTORY,
                         CLUSTER_ADMIN_HOST, CLUSTER_ADMIN_PORT)
Esempio n. 4
0
    def _make_data_stub(self):
        """Creates gRPC stub to make requests to the Data API.

        :rtype: :class:`grpc.early_adopter.implementations._Stub`
        :returns: A gRPC stub object.
        """
        return make_stub(self, DATA_STUB_FACTORY,
                         DATA_API_HOST, DATA_API_PORT)
Esempio n. 5
0
    def _make_table_stub(self):
        """Creates gRPC stub to make requests to the Table Admin API.

        :rtype: :class:`grpc.beta._stub._AutoIntermediary`
        :returns: A gRPC stub object.
        """
        return make_stub(self, TABLE_STUB_FACTORY,
                         TABLE_ADMIN_HOST, TABLE_ADMIN_PORT)
Esempio n. 6
0
    def _make_cluster_stub(self):
        """Creates gRPC stub to make requests to the Cluster Admin API.

        :rtype: :class:`grpc.beta._stub._AutoIntermediary`
        :returns: A gRPC stub object.
        """
        return make_stub(self, CLUSTER_STUB_FACTORY,
                         CLUSTER_ADMIN_HOST, CLUSTER_ADMIN_PORT)
Esempio n. 7
0
    def _make_data_stub(self):
        """Creates gRPC stub to make requests to the Data API.

        :rtype: :class:`grpc.beta._stub._AutoIntermediary`
        :returns: A gRPC stub object.
        """
        return make_stub(self, DATA_STUB_FACTORY,
                         DATA_API_HOST, DATA_API_PORT)
Esempio n. 8
0
    def _make_table_stub(self):
        """Creates gRPC stub to make requests to the Table Admin API.

        :rtype: :class:`grpc.beta._stub._AutoIntermediary`
        :returns: A gRPC stub object.
        """
        return make_stub(self, TABLE_STUB_FACTORY, TABLE_ADMIN_HOST,
                         TABLE_ADMIN_PORT)
Esempio n. 9
0
    def _make_cluster_stub(self):
        """Creates gRPC stub to make requests to the Cluster Admin API.

        :rtype: :class:`grpc.beta._stub._AutoIntermediary`
        :returns: A gRPC stub object.
        """
        return make_stub(self, CLUSTER_STUB_FACTORY, CLUSTER_ADMIN_HOST,
                         CLUSTER_ADMIN_PORT)
Esempio n. 10
0
    def _make_operations_stub(self):
        """Creates gRPC stub to make requests to the Operations API.

        These are for long-running operations of the Cluster Admin API,
        hence the host and port matching.

        :rtype: :class:`grpc.early_adopter.implementations._Stub`
        :returns: A gRPC stub object.
        """
        return make_stub(self, OPERATIONS_STUB_FACTORY,
                         CLUSTER_ADMIN_HOST, CLUSTER_ADMIN_PORT)
Esempio n. 11
0
    def _make_operations_stub(self):
        """Creates gRPC stub to make requests to the Operations API.

        These are for long-running operations of the Cluster Admin API,
        hence the host and port matching.

        :rtype: :class:`grpc.beta._stub._AutoIntermediary`
        :returns: A gRPC stub object.
        """
        return make_stub(self, OPERATIONS_STUB_FACTORY, CLUSTER_ADMIN_HOST,
                         CLUSTER_ADMIN_PORT)
Esempio n. 12
0
 def _callFUT(self, *args, **kwargs):
     from gcloud.bigtable._helpers import make_stub
     return make_stub(*args, **kwargs)
Esempio n. 13
0
 def _callFUT(self, *args, **kwargs):
     from gcloud.bigtable._helpers import make_stub
     return make_stub(*args, **kwargs)