diff --git a/translate/google/cloud/translate_v3beta1/gapic/translation_service_client.py b/translate/google/cloud/translate_v3beta1/gapic/translation_service_client.py index 5977262b3f35..f90d86a77d22 100644 --- a/translate/google/cloud/translate_v3beta1/gapic/translation_service_client.py +++ b/translate/google/cloud/translate_v3beta1/gapic/translation_service_client.py @@ -76,22 +76,22 @@ def from_service_account_file(cls, filename, *args, **kwargs): from_service_account_json = from_service_account_file @classmethod - def location_path(cls, project, location): - """Return a fully-qualified location string.""" + def glossary_path(cls, project, location, glossary): + """Return a fully-qualified glossary string.""" return google.api_core.path_template.expand( - "projects/{project}/locations/{location}", + "projects/{project}/locations/{location}/glossaries/{glossary}", project=project, location=location, + glossary=glossary, ) @classmethod - def glossary_path(cls, project, location, glossary): - """Return a fully-qualified glossary string.""" + def location_path(cls, project, location): + """Return a fully-qualified location string.""" return google.api_core.path_template.expand( - "projects/{project}/locations/{location}/glossaries/{glossary}", + "projects/{project}/locations/{location}", project=project, location=location, - glossary=glossary, ) def __init__( diff --git a/translate/noxfile.py b/translate/noxfile.py index 755db8e2ec41..6ee03ef540e0 100644 --- a/translate/noxfile.py +++ b/translate/noxfile.py @@ -140,12 +140,12 @@ def cover(session): session.run("coverage", "erase") -@nox.session(python='3.6') +@nox.session(python="3.7") def docs(session): - """Build the docs.""" + """Build the docs for this library.""" - session.install('sphinx', 'alabaster', 'recommonmark') session.install('-e', '.') + session.install('sphinx', 'alabaster', 'recommonmark') shutil.rmtree(os.path.join('docs', '_build'), ignore_errors=True) session.run( diff --git a/translate/synth.metadata b/translate/synth.metadata index d4194a55308a..e6453c7c4b72 100644 --- a/translate/synth.metadata +++ b/translate/synth.metadata @@ -1,26 +1,26 @@ { - "updateTime": "2019-04-08T22:42:12.391231Z", + "updateTime": "2019-04-23T12:32:43.079835Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.25", - "dockerImage": "googleapis/artman@sha256:d9597f983d1d4e61272c63cb97b7d8f8234da9999526c35d357de3d781f0ec1b" + "version": "0.17.0", + "dockerImage": "googleapis/artman@sha256:c58f4ec3838eb4e0718eb1bccc6512bd6850feaa85a360a9e38f6f848ec73bc2" } }, { "git": { "name": "googleapis", - "remote": "git@github.com:googleapis/googleapis.git", - "sha": "9a02c5acecb43f38fae4fa52c6420f21c335b888", - "internalRef": "242170119" + "remote": "https://github.com/googleapis/googleapis.git", + "sha": "547e19e7df398e9290e8e3674d7351efc500f9b0", + "internalRef": "244712781" } }, { "template": { "name": "python_library", "origin": "synthtool.gcp", - "version": "2019.2.26" + "version": "2019.4.10" } } ], diff --git a/translate/synth.py b/translate/synth.py index 553d4a9d7479..37ef0f24849a 100644 --- a/translate/synth.py +++ b/translate/synth.py @@ -38,6 +38,7 @@ s.move(library / f'google/cloud/translate_{version}', excludes=excludes) s.move(library / 'tests') s.move(library / f"docs/gapic/{version}") + s.move(library / "docs/conf.py") # translation -> translate s.replace(