Skip to content

Commit 5ff2b99

Browse files
authored
Remove datacatalog samples (GoogleCloudPlatform#4496)
Will not be merged until: 1. googleapis/python-datacatalog#52 is merged. 2. 326504271 is submitted and content is published
1 parent 1d9ba61 commit 5ff2b99

File tree

6 files changed

+2
-350
lines changed

6 files changed

+2
-350
lines changed
Lines changed: 2 additions & 120 deletions
Original file line numberDiff line numberDiff line change
@@ -1,121 +1,3 @@
1-
.. This file is automatically generated. Do not edit this file directly.
1+
These samples have been moved.
22

3-
Google Cloud Data Catalog Python Samples
4-
===============================================================================
5-
6-
.. image:: https://gstatic.com/cloudssh/images/open-btn.png
7-
:target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=datacatalog/cloud-client/README.rst
8-
9-
10-
This directory contains samples for Google Cloud Data Catalog. `Google Cloud Data Catalog`_ is a fully managed and scalable metadata management service that empowers organizations to quickly discover, manage, and understand all their data in Google Cloud.
11-
12-
13-
14-
15-
.. _Google Cloud Data Catalog: https://cloud.google.com/data-catalog/docs
16-
17-
Setup
18-
-------------------------------------------------------------------------------
19-
20-
21-
Authentication
22-
++++++++++++++
23-
24-
This sample requires you to have authentication setup. Refer to the
25-
`Authentication Getting Started Guide`_ for instructions on setting up
26-
credentials for applications.
27-
28-
.. _Authentication Getting Started Guide:
29-
https://cloud.google.com/docs/authentication/getting-started
30-
31-
Install Dependencies
32-
++++++++++++++++++++
33-
34-
#. Clone python-docs-samples and change directory to the sample directory you want to use.
35-
36-
.. code-block:: bash
37-
38-
$ git clone https://github.com/GoogleCloudPlatform/python-docs-samples.git
39-
40-
#. Install `pip`_ and `virtualenv`_ if you do not already have them. You may want to refer to the `Python Development Environment Setup Guide`_ for Google Cloud Platform for instructions.
41-
42-
.. _Python Development Environment Setup Guide:
43-
https://cloud.google.com/python/setup
44-
45-
#. Create a virtualenv. Samples are compatible with Python 2.7 and 3.4+.
46-
47-
.. code-block:: bash
48-
49-
$ virtualenv env
50-
$ source env/bin/activate
51-
52-
#. Install the dependencies needed to run the samples.
53-
54-
.. code-block:: bash
55-
56-
$ pip install -r requirements.txt
57-
58-
.. _pip: https://pip.pypa.io/
59-
.. _virtualenv: https://virtualenv.pypa.io/
60-
61-
Samples
62-
-------------------------------------------------------------------------------
63-
64-
Lookup entry
65-
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
66-
67-
.. image:: https://gstatic.com/cloudssh/images/open-btn.png
68-
:target: https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/GoogleCloudPlatform/python-docs-samples&page=editor&open_in_editor=datacatalog/cloud-client/lookup_entry.py,datacatalog/cloud-client/README.rst
69-
70-
71-
72-
73-
To run this sample:
74-
75-
.. code-block:: bash
76-
77-
$ python lookup_entry.py
78-
79-
usage: lookup_entry.py [-h]
80-
project_id
81-
{bigquery-dataset,bigquery-table,pubsub-topic} ...
82-
83-
This application demonstrates how to perform basic operations on entries
84-
with the Cloud Data Catalog API.
85-
86-
For more information, see the README.md under /datacatalog and the
87-
documentation at https://cloud.google.com/data-catalog/docs.
88-
89-
positional arguments:
90-
project_id Your Google Cloud project ID
91-
{bigquery-dataset,bigquery-table,pubsub-topic}
92-
bigquery-dataset Retrieves Data Catalog entry for the given BigQuery
93-
Dataset.
94-
bigquery-table Retrieves Data Catalog entry for the given BigQuery
95-
Table.
96-
pubsub-topic Retrieves Data Catalog entry for the given Pub/Sub
97-
Topic.
98-
99-
optional arguments:
100-
-h, --help show this help message and exit
101-
102-
103-
104-
105-
106-
The client library
107-
-------------------------------------------------------------------------------
108-
109-
This sample uses the `Google Cloud Client Library for Python`_.
110-
You can read the documentation for more details on API usage and use GitHub
111-
to `browse the source`_ and `report issues`_.
112-
113-
.. _Google Cloud Client Library for Python:
114-
https://googlecloudplatform.github.io/google-cloud-python/
115-
.. _browse the source:
116-
https://github.com/GoogleCloudPlatform/google-cloud-python
117-
.. _report issues:
118-
https://github.com/GoogleCloudPlatform/google-cloud-python/issues
119-
120-
121-
.. _Google Cloud SDK: https://cloud.google.com/sdk/
3+
https://github.com/googleapis/python-datacatalog/tree/master/samples

datacatalog/cloud-client/README.rst.in

Lines changed: 0 additions & 23 deletions
This file was deleted.

datacatalog/cloud-client/lookup_entry.py

Lines changed: 0 additions & 152 deletions
This file was deleted.

datacatalog/cloud-client/lookup_entry_test.py

Lines changed: 0 additions & 53 deletions
This file was deleted.

datacatalog/cloud-client/requirements-test.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

datacatalog/cloud-client/requirements.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)