This directory contains samples for {{ metadata['repo']['name_pretty'] }}, which may be used as a refererence for how to use this product. {% if metadata['repo']['custom_content'] is defined %} {{ metadata['repo']['custom_content']}}{% endif %}{% if metadata['repo']['samples']|length %} Samples, quickstarts, and other documentation are available at cloud.google.com. {% for sample in range(metadata['repo']['samples']|length) %}
{{ metadata['repo']['samples'][sample]['description']}} {% if metadata['repo']['samples'][sample]['runnable'] %}
To run this sample:
-
If this is your first time working with GCP products, you will need to set up the Cloud SDK or utilize Google Cloud Shell. This sample may require authetication{% if metadata['repo']['requires_billing'] %} and you will need to enable billing{% endif %}.
-
Make a fork of this repo and clone the branch locally, then navigate to the sample directory you want to use.
-
Install the dependencies needed to run the samples.
pip install -r requirements.txt -
Run the sample using
python {{ metadata['repo']['samples'][sample]['file']}}
{% endif %} {% if 'show_help' in metadata['repo']['samples'][sample] and metadata['repo']['samples'][sample]['show_help'] and 'abs_path' in metadata['repo']['samples'][sample] %}{{get_help(metadata['repo']['samples'][sample]['abs_path'])|indent}}{% endif %} {% if metadata['repo']['samples'][sample]['custom_content'] is defined %}{{ metadata['repo']['samples'][sample]['custom_content'] }}{% endif %}{% endfor %}{% endif %}
{% if metadata['repo']|length %}{% if metadata['repo']['client_library'] %} These samples use the Google Cloud Client Library for Python.{% endif %} You can read the documentation for more details on API usage and use GitHub to browse the source and report issues.{% endif %}
View the contributing guidelines, the Python style guide for more information.