From 9f4068cf8eb4351c02a4862380547ecf2564d838 Mon Sep 17 00:00:00 2001 From: HemangChothani <50404902+HemangChothani@users.noreply.github.com> Date: Tue, 26 May 2020 19:47:10 +0530 Subject: [PATCH] docs(bigtable): clean up (#32) --- google/cloud/bigtable/cluster.py | 12 ------------ google/cloud/bigtable/instance.py | 3 --- google/cloud/bigtable/table.py | 9 +++------ 3 files changed, 3 insertions(+), 21 deletions(-) diff --git a/google/cloud/bigtable/cluster.py b/google/cloud/bigtable/cluster.py index 5ff1d0404..edb5d261b 100644 --- a/google/cloud/bigtable/cluster.py +++ b/google/cloud/bigtable/cluster.py @@ -286,18 +286,6 @@ def update(self): before calling :meth:`update`. - :type location: :str:``CreationOnly`` - :param location: The location where this cluster's nodes and storage - reside. For best performance, clients should be located as - close as possible to this cluster. Currently only zones are - supported, so values should be of the form - ``projects//locations/``. - - :type serve_nodes: :int - :param serve_nodes: The number of nodes allocated to this cluster. - More nodes enable higher throughput and more consistent - performance. - :rtype: :class:`Operation` :returns: The long-running operation corresponding to the update operation. diff --git a/google/cloud/bigtable/instance.py b/google/cloud/bigtable/instance.py index dbdd20640..e0a30590b 100644 --- a/google/cloud/bigtable/instance.py +++ b/google/cloud/bigtable/instance.py @@ -537,9 +537,6 @@ def cluster( :type cluster_id: str :param cluster_id: The ID of the cluster. - :type instance: :class:`~google.cloud.bigtable.instance.Instance` - :param instance: The instance where the cluster resides. - :type location_id: str :param location_id: (Creation Only) The location where this cluster's nodes and storage reside. For best performance, diff --git a/google/cloud/bigtable/table.py b/google/cloud/bigtable/table.py index 69379b21d..4852ff6e1 100644 --- a/google/cloud/bigtable/table.py +++ b/google/cloud/bigtable/table.py @@ -359,7 +359,7 @@ def create(self, initial_split_keys=[], column_families={}): into several tablets. :type column_families: dict - :param column_failies: (Optional) A map columns to create. The key is + :param column_families: (Optional) A map columns to create. The key is the column_id str and the value is a :class:`GarbageCollectionRule` """ @@ -734,8 +734,8 @@ def drop_by_prefix(self, row_key_prefix, timeout=None): :start-after: [START bigtable_drop_by_prefix] :end-before: [END bigtable_drop_by_prefix] - :type row_prefix: bytes - :param row_prefix: Delete all rows that start with this row key + :type row_key_prefix: bytes + :param row_key_prefix: Delete all rows that start with this row key prefix. Prefix cannot be zero length. :type timeout: float @@ -768,9 +768,6 @@ def mutations_batcher(self, flush_count=FLUSH_COUNT, max_row_bytes=MAX_ROW_BYTES :start-after: [START bigtable_mutations_batcher] :end-before: [END bigtable_mutations_batcher] - :type table: class - :param table: class:`~google.cloud.bigtable.table.Table`. - :type flush_count: int :param flush_count: (Optional) Maximum number of rows per batch. If it reaches the max number of rows it calls finish_batch() to