Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translation v3beta1 samples #2084

Merged
merged 12 commits into from
Apr 6, 2019
37 changes: 37 additions & 0 deletions translate/cloud-client/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,43 @@ To run this sample:



Beta Snippets
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

.. image:: https://gstatic.com/cloudssh/images/open-btn.png
:target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=translate/cloud-client/beta_snippets.py,translate/cloud-client/README.rst




To run this sample:

.. code-block:: bash

$ python beta_snippets.py

usage: beta_snippets.py [-h]
{translate-text,batch-translate-text,detect-language,list-languages,list-languages-with-target,create-glossary,get-glossary,list-glossaries,delete-glossary,translate-with-glossary}
...

positional arguments:
{translate-text,batch-translate-text,detect-language,list-languages,list-languages-with-target,create-glossary,get-glossary,list-glossaries,delete-glossary,translate-with-glossary}
translate-text
batch-translate-text
detect-language
list-languages
list-languages-with-target
create-glossary
get-glossary
list-glossaries
delete-glossary
translate-with-glossary

optional arguments:
-h, --help show this help message and exit





The client library
Expand Down
3 changes: 3 additions & 0 deletions translate/cloud-client/README.rst.in
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ samples:
- name: Snippets
file: snippets.py
show_help: true
- name: Beta Snippets
file: beta_snippets.py
show_help: true

cloud_client_library: true

Expand Down
Loading