From a62931abc51cb37c2205870ff126b86b23a10842 Mon Sep 17 00:00:00 2001 From: Danny Hermes Date: Tue, 19 Dec 2017 16:33:15 -0800 Subject: [PATCH] Fix build issue with datastore docs. (#4633) Also: - Fix an ambiguous name (`type`) in Pub / Sub (was introduced because I merged with the docs build failing) - Marking the `dataproc` version as `.dev1` --- .../gapic/cluster_controller_client.py | 38 +++++++------------ dataproc/setup.py | 2 +- .../cloud/pubsub_v1/publisher/client.py | 2 +- 3 files changed, 16 insertions(+), 26 deletions(-) diff --git a/dataproc/google/cloud/dataproc_v1/gapic/cluster_controller_client.py b/dataproc/google/cloud/dataproc_v1/gapic/cluster_controller_client.py index adcefd0eb5d8..b0c22bc62660 100644 --- a/dataproc/google/cloud/dataproc_v1/gapic/cluster_controller_client.py +++ b/dataproc/google/cloud/dataproc_v1/gapic/cluster_controller_client.py @@ -276,6 +276,7 @@ def update_cluster(self, } } } + Similarly, to change the number of preemptible workers in a cluster to 5, the ``update_mask`` parameter would be ``config.secondary_worker_config.num_instances``, and the ``PATCH`` request @@ -290,30 +291,19 @@ def update_cluster(self, } } } - Note: Currently, only the following fields can be updated: - - - - - - - - - - - - - - - - - - - - -
MaskPurpose
labelsUpdate labels
config.worker_config.num_instancesResize primary worker group
config.secondary_worker_config.num_instancesResize secondary worker group
- If a dict is provided, it must be of the same form as the protobuf - message :class:`~google.cloud.dataproc_v1.types.FieldMask` + + .. note:: + + Currently, only the following fields can be updated: + + * ``labels``: Update labels + * ``config.worker_config.num_instances``: Resize primary + worker group + * ``config.secondary_worker_config.num_instances``: Resize + secondary worker group + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.cloud.dataproc_v1.types.FieldMask` retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will not be retried. diff --git a/dataproc/setup.py b/dataproc/setup.py index 30714a4b0df9..b335626786ac 100644 --- a/dataproc/setup.py +++ b/dataproc/setup.py @@ -34,7 +34,7 @@ setup( name='google-cloud-dataproc', - version='0.1.0', + version='0.1.0.dev1', author='Google LLC', author_email='googleapis-packages@google.com', classifiers=[ diff --git a/pubsub/google/cloud/pubsub_v1/publisher/client.py b/pubsub/google/cloud/pubsub_v1/publisher/client.py index d2faedad1d8a..b38393c198ae 100644 --- a/pubsub/google/cloud/pubsub_v1/publisher/client.py +++ b/pubsub/google/cloud/pubsub_v1/publisher/client.py @@ -43,7 +43,7 @@ class Client(object): Args: batch_settings (~google.cloud.pubsub_v1.types.BatchSettings): The settings for batch publishing. - batch_class (Optional[type]): A class that describes how to handle + batch_class (Optional[Type]): A class that describes how to handle batches. You may subclass the :class:`.pubsub_v1.publisher.batch.base.BaseBatch` class in order to define your own batcher. This is primarily provided to