diff --git a/iam/docs/conf.py b/iam/docs/conf.py index 37859cfde5e1..9ef8af141d77 100644 --- a/iam/docs/conf.py +++ b/iam/docs/conf.py @@ -45,6 +45,7 @@ autodoc_default_flags = ["members"] autosummary_generate = True + # Add any paths that contain templates here, relative to this directory. templates_path = ["_templates"] @@ -121,6 +122,7 @@ # If true, `todo` and `todoList` produce output, else they produce nothing. todo_include_todos = True + # -- Options for HTML output ---------------------------------------------- # The theme to use for HTML and HTML Help pages. See the documentation for @@ -229,6 +231,7 @@ # -- Options for warnings ------------------------------------------------------ + suppress_warnings = [ # Temporarily suppress this to avoid "more than one target found for # cross-reference" warning, which are intractable for us to avoid while in @@ -284,6 +287,7 @@ # If false, no module index is generated. # latex_domain_indices = True + # -- Options for manual page output --------------------------------------- # One entry per manual page. List of tuples @@ -295,6 +299,7 @@ # If true, show URL addresses after external links. # man_show_urls = False + # -- Options for Texinfo output ------------------------------------------- # Grouping the document tree into Texinfo files. List of tuples @@ -324,6 +329,7 @@ # If true, do not generate a @detailmenu in the "Top" node's menu. # texinfo_no_detailmenu = False + # Example configuration for intersphinx: refer to the Python standard library. intersphinx_mapping = { "python": ("http://python.readthedocs.org/en/latest/", None), @@ -340,6 +346,7 @@ "pandas": ("https://pandas.pydata.org/pandas-docs/stable/", None), } + # Napoleon settings napoleon_google_docstring = True napoleon_numpy_docstring = True diff --git a/iam/google/cloud/iam_credentials.py b/iam/google/cloud/iam_credentials.py index 4b0e36faa9a1..db9dc42d2ed9 100644 --- a/iam/google/cloud/iam_credentials.py +++ b/iam/google/cloud/iam_credentials.py @@ -14,9 +14,11 @@ # See the License for the specific language governing permissions and # limitations under the License. + from __future__ import absolute_import from google.cloud.iam_credentials_v1 import IAMCredentialsClient from google.cloud.iam_credentials_v1 import types + __all__ = ("types", "IAMCredentialsClient") diff --git a/iam/google/cloud/iam_credentials_v1/__init__.py b/iam/google/cloud/iam_credentials_v1/__init__.py index 7953c552fc32..f9937de935f6 100644 --- a/iam/google/cloud/iam_credentials_v1/__init__.py +++ b/iam/google/cloud/iam_credentials_v1/__init__.py @@ -14,6 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. + from __future__ import absolute_import from google.cloud.iam_credentials_v1 import types diff --git a/iam/google/cloud/iam_credentials_v1/gapic/iam_credentials_client.py b/iam/google/cloud/iam_credentials_v1/gapic/iam_credentials_client.py index aaeee06b14f8..e98040335efd 100644 --- a/iam/google/cloud/iam_credentials_v1/gapic/iam_credentials_client.py +++ b/iam/google/cloud/iam_credentials_v1/gapic/iam_credentials_client.py @@ -13,6 +13,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + """Accesses the google.iam.credentials.v1 IAMCredentials API.""" import pkg_resources @@ -35,6 +36,7 @@ from google.cloud.iam_credentials_v1.proto import iamcredentials_pb2_grpc from google.protobuf import duration_pb2 + _GAPIC_LIBRARY_VERSION = pkg_resources.get_distribution("google-cloud-iam").version diff --git a/iam/google/cloud/iam_credentials_v1/gapic/transports/iam_credentials_grpc_transport.py b/iam/google/cloud/iam_credentials_v1/gapic/transports/iam_credentials_grpc_transport.py index 4849bfd07508..952b98f1fa43 100644 --- a/iam/google/cloud/iam_credentials_v1/gapic/transports/iam_credentials_grpc_transport.py +++ b/iam/google/cloud/iam_credentials_v1/gapic/transports/iam_credentials_grpc_transport.py @@ -14,6 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. + import google.api_core.grpc_helpers from google.cloud.iam_credentials_v1.proto import iamcredentials_pb2_grpc diff --git a/iam/google/cloud/iam_credentials_v1/types.py b/iam/google/cloud/iam_credentials_v1/types.py index c1cab6bebb99..ee6a83baa6fa 100644 --- a/iam/google/cloud/iam_credentials_v1/types.py +++ b/iam/google/cloud/iam_credentials_v1/types.py @@ -14,6 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. + from __future__ import absolute_import import sys @@ -23,6 +24,7 @@ from google.protobuf import duration_pb2 from google.protobuf import timestamp_pb2 + _shared_modules = [duration_pb2, timestamp_pb2] _local_modules = [common_pb2] @@ -39,4 +41,5 @@ setattr(sys.modules[__name__], name, message) names.append(name) + __all__ = tuple(sorted(names)) diff --git a/iam/synth.metadata b/iam/synth.metadata index d0657fcac406..ad10f0c85afa 100644 --- a/iam/synth.metadata +++ b/iam/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-05-10T12:24:10.890924Z", + "updateTime": "2019-05-21T12:21:22.773525Z", "sources": [ { "generator": { "name": "artman", - "version": "0.19.0", - "dockerImage": "googleapis/artman@sha256:d3df563538225ac6caac45d8ad86499500211d1bcb2536955a6dbda15e1b368e" + "version": "0.20.0", + "dockerImage": "googleapis/artman@sha256:3246adac900f4bdbd62920e80de2e5877380e44036b3feae13667ec255ebf5ec" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "07883be5bf3c3233095e99d8e92b8094f5d7084a", - "internalRef": "247530843" + "sha": "32a10f69e2c9ce15bba13ab1ff928bacebb25160", + "internalRef": "249058354" } }, { diff --git a/iam/tests/unit/gapic/v1/test_iam_credentials_client_v1.py b/iam/tests/unit/gapic/v1/test_iam_credentials_client_v1.py index 4007c6e027c9..130e77b78baf 100644 --- a/iam/tests/unit/gapic/v1/test_iam_credentials_client_v1.py +++ b/iam/tests/unit/gapic/v1/test_iam_credentials_client_v1.py @@ -13,6 +13,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. + """Unit tests.""" import mock