Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #12
0
 def _callFUT(self, *args, **kwargs):
     from gcloud.bigtable._helpers import make_stub
     return make_stub(*args, **kwargs)
Пример #13
0
 def _callFUT(self, *args, **kwargs):
     from gcloud.bigtable._helpers import make_stub
     return make_stub(*args, **kwargs)