def reload(self): """Reload the metadata for this cluster.""" request_pb = messages_v2_pb2.GetClusterRequest(name=self.name) # We expect a `._generated.instance_pb2.Cluster`. cluster_pb = self._instance._client._instance_stub.GetCluster( request_pb) # NOTE: _update_from_pb does not check that the project, instance and # cluster ID on the response match the request. self._update_from_pb(cluster_pb)
def _GetClusterRequestPB(*args, **kw): from google.cloud.bigtable._generated import (bigtable_instance_admin_pb2 as messages_v2_pb2) return messages_v2_pb2.GetClusterRequest(*args, **kw)