コード例 #1
0
ファイル: client.py プロジェクト: Parthi10/gcloud-python-1
    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
ファイル: client.py プロジェクト: mpeg/gcloud-python
    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
ファイル: client.py プロジェクト: mpeg/gcloud-python
    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
ファイル: client.py プロジェクト: mpeg/gcloud-python
    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
ファイル: client.py プロジェクト: Regner/gcloud-python
    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
ファイル: client.py プロジェクト: Regner/gcloud-python
    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
ファイル: client.py プロジェクト: Regner/gcloud-python
    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
ファイル: client.py プロジェクト: Parthi10/gcloud-python-1
    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
ファイル: client.py プロジェクト: Parthi10/gcloud-python-1
    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
ファイル: client.py プロジェクト: mpeg/gcloud-python
    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
ファイル: client.py プロジェクト: Parthi10/gcloud-python-1
    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
ファイル: test__helpers.py プロジェクト: bitcpf/GoopleAppWeb
 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)