Skip to content
This repository was archived by the owner on Sep 5, 2023. It is now read-only.

Commit 7a890c2

Browse files
feat: add restricted_locations to v1; add order to TagField and TagTemplateField in v1beta1; rename field_path to tag_template_field_path in v1beta1; add pagination support to list_taxonomies in v1beta1 (#20)
* [CHANGE ME] Re-generated to pick up changes in the API or client library generator. * docs: add multiprocessing Co-authored-by: Bu Sun Kim <[email protected]>
1 parent 4ed1e33 commit 7a890c2

32 files changed

+2793
-2712
lines changed

.kokoro/publish-docs.sh

-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515

16-
#!/bin/bash
17-
1816
set -eo pipefail
1917

2018
# Disable buffering, so that the logs stream through.

docs/index.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.. include:: README.rst
22

3-
3+
.. include:: multiprocessing.rst
44

55
v1
66
-------------

docs/multiprocessing.rst

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.. note::
2+
3+
Because this client uses :mod:`grpcio` library, it is safe to
4+
share instances across threads. In multiprocessing scenarios, the best
5+
practice is to create client instances *after* the invocation of
6+
:func:`os.fork` by :class:`multiprocessing.Pool` or
7+
:class:`multiprocessing.Process`.

google/cloud/datacatalog_v1/gapic/data_catalog_client.py

+341-550
Large diffs are not rendered by default.

google/cloud/datacatalog_v1/gapic/enums.py

+6-11
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121

2222
class EntryType(enum.IntEnum):
2323
"""
24-
Request message for ``DeleteTag``.
24+
Entry resources in Data Catalog can be of different types e.g. a
25+
BigQuery Table entry is of type ``TABLE``. This enum describes all the
26+
possible types Data Catalog contains.
2527
2628
Attributes:
2729
ENTRY_TYPE_UNSPECIFIED (int): Default unknown type.
@@ -64,16 +66,9 @@ class SearchResultType(enum.IntEnum):
6466
6567
Attributes:
6668
SEARCH_RESULT_TYPE_UNSPECIFIED (int): Default unknown type.
67-
ENTRY (int): Request message for ``GetEntryGroup``.
68-
TAG_TEMPLATE (int): An indicator of the behavior of a given field (for example, that a
69-
field is required in requests, or given as output but ignored as input).
70-
This **does not** change the behavior in protocol buffers itself; it
71-
only denotes the behavior and may affect how API tooling handles the
72-
field.
73-
74-
Note: This enum **may** receive new values in the future.
75-
ENTRY_GROUP (int): Required. The name of the entry group. For example,
76-
``projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}``.
69+
ENTRY (int): An ``Entry``.
70+
TAG_TEMPLATE (int): A ``TagTemplate``.
71+
ENTRY_GROUP (int): An ``EntryGroup``.
7772
"""
7873

7974
SEARCH_RESULT_TYPE_UNSPECIFIED = 0

google/cloud/datacatalog_v1/gapic/transports/data_catalog_grpc_transport.py

+159-98
Large diffs are not rendered by default.

google/cloud/datacatalog_v1/proto/datacatalog_pb2.py

+139-79
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

google/cloud/datacatalog_v1/proto/datacatalog_pb2_grpc.py

+33-20
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,8 @@ def SearchCatalog(self, request, context):
180180
across repeated search queries.
181181
182182
See [Data Catalog Search
183-
Syntax](/data-catalog/docs/how-to/search-reference) for more information.
183+
Syntax](https://cloud.google.com/data-catalog/docs/how-to/search-reference)
184+
for more information.
184185
"""
185186
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
186187
context.set_details("Method not implemented!")
@@ -204,7 +205,8 @@ def CreateEntryGroup(self, request, context):
204205
205206
Users should enable the Data Catalog API in the project identified by
206207
the `parent` parameter (see [Data Catalog Resource Project]
207-
(/data-catalog/docs/concepts/resource-project) for more information).
208+
(https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
209+
more information).
208210
"""
209211
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
210212
context.set_details("Method not implemented!")
@@ -220,8 +222,9 @@ def GetEntryGroup(self, request, context):
220222
def UpdateEntryGroup(self, request, context):
221223
"""Updates an EntryGroup. The user should enable the Data Catalog API in the
222224
project identified by the `entry_group.name` parameter (see [Data Catalog
223-
Resource Project] (/data-catalog/docs/concepts/resource-project) for more
224-
information).
225+
Resource Project]
226+
(https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
227+
more information).
225228
"""
226229
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
227230
context.set_details("Method not implemented!")
@@ -231,7 +234,8 @@ def DeleteEntryGroup(self, request, context):
231234
"""Deletes an EntryGroup. Only entry groups that do not contain entries can be
232235
deleted. Users should enable the Data Catalog API in the project
233236
identified by the `name` parameter (see [Data Catalog Resource Project]
234-
(/data-catalog/docs/concepts/resource-project) for more information).
237+
(https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
238+
more information).
235239
"""
236240
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
237241
context.set_details("Method not implemented!")
@@ -250,7 +254,8 @@ def CreateEntry(self, request, context):
250254
251255
Users should enable the Data Catalog API in the project identified by
252256
the `parent` parameter (see [Data Catalog Resource Project]
253-
(/data-catalog/docs/concepts/resource-project) for more information).
257+
(https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
258+
more information).
254259
255260
A maximum of 100,000 entries may be created per entry group.
256261
"""
@@ -262,7 +267,8 @@ def UpdateEntry(self, request, context):
262267
"""Updates an existing entry.
263268
Users should enable the Data Catalog API in the project identified by
264269
the `entry.name` parameter (see [Data Catalog Resource Project]
265-
(/data-catalog/docs/concepts/resource-project) for more information).
270+
(https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
271+
more information).
266272
"""
267273
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
268274
context.set_details("Method not implemented!")
@@ -274,7 +280,8 @@ def DeleteEntry(self, request, context):
274280
method can be deleted.
275281
Users should enable the Data Catalog API in the project identified by
276282
the `name` parameter (see [Data Catalog Resource Project]
277-
(/data-catalog/docs/concepts/resource-project) for more information).
283+
(https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
284+
more information).
278285
"""
279286
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
280287
context.set_details("Method not implemented!")
@@ -306,8 +313,9 @@ def ListEntries(self, request, context):
306313
def CreateTagTemplate(self, request, context):
307314
"""Creates a tag template. The user should enable the Data Catalog API in
308315
the project identified by the `parent` parameter (see [Data Catalog
309-
Resource Project](/data-catalog/docs/concepts/resource-project) for more
310-
information).
316+
Resource
317+
Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project)
318+
for more information).
311319
"""
312320
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
313321
context.set_details("Method not implemented!")
@@ -326,7 +334,8 @@ def UpdateTagTemplate(self, request, context):
326334
and should be updated using their own create/update/delete methods.
327335
Users should enable the Data Catalog API in the project identified by
328336
the `tag_template.name` parameter (see [Data Catalog Resource Project]
329-
(/data-catalog/docs/concepts/resource-project) for more information).
337+
(https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
338+
more information).
330339
"""
331340
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
332341
context.set_details("Method not implemented!")
@@ -336,7 +345,8 @@ def DeleteTagTemplate(self, request, context):
336345
"""Deletes a tag template and all tags using the template.
337346
Users should enable the Data Catalog API in the project identified by
338347
the `name` parameter (see [Data Catalog Resource Project]
339-
(/data-catalog/docs/concepts/resource-project) for more information).
348+
(https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
349+
more information).
340350
"""
341351
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
342352
context.set_details("Method not implemented!")
@@ -346,8 +356,8 @@ def CreateTagTemplateField(self, request, context):
346356
"""Creates a field in a tag template. The user should enable the Data Catalog
347357
API in the project identified by the `parent` parameter (see
348358
[Data Catalog Resource
349-
Project](/data-catalog/docs/concepts/resource-project) for more
350-
information).
359+
Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project)
360+
for more information).
351361
"""
352362
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
353363
context.set_details("Method not implemented!")
@@ -357,7 +367,8 @@ def UpdateTagTemplateField(self, request, context):
357367
"""Updates a field in a tag template. This method cannot be used to update the
358368
field type. Users should enable the Data Catalog API in the project
359369
identified by the `name` parameter (see [Data Catalog Resource Project]
360-
(/data-catalog/docs/concepts/resource-project) for more information).
370+
(https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
371+
more information).
361372
"""
362373
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
363374
context.set_details("Method not implemented!")
@@ -366,8 +377,9 @@ def UpdateTagTemplateField(self, request, context):
366377
def RenameTagTemplateField(self, request, context):
367378
"""Renames a field in a tag template. The user should enable the Data Catalog
368379
API in the project identified by the `name` parameter (see [Data Catalog
369-
Resource Project](/data-catalog/docs/concepts/resource-project) for more
370-
information).
380+
Resource
381+
Project](https://cloud.google.com/data-catalog/docs/concepts/resource-project)
382+
for more information).
371383
"""
372384
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
373385
context.set_details("Method not implemented!")
@@ -377,7 +389,8 @@ def DeleteTagTemplateField(self, request, context):
377389
"""Deletes a field in a tag template and all uses of that field.
378390
Users should enable the Data Catalog API in the project identified by
379391
the `name` parameter (see [Data Catalog Resource Project]
380-
(/data-catalog/docs/concepts/resource-project) for more information).
392+
(https://cloud.google.com/data-catalog/docs/concepts/resource-project) for
393+
more information).
381394
"""
382395
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
383396
context.set_details("Method not implemented!")
@@ -386,10 +399,10 @@ def DeleteTagTemplateField(self, request, context):
386399
def CreateTag(self, request, context):
387400
"""Creates a tag on an [Entry][google.cloud.datacatalog.v1.Entry].
388401
Note: The project identified by the `parent` parameter for the
389-
[tag](/data-catalog/docs/reference/rest/v1/projects.locations.entryGroups.entries.tags/create#path-parameters)
402+
[tag](https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.entryGroups.entries.tags/create#path-parameters)
390403
and the
391404
[tag
392-
template](/data-catalog/docs/reference/rest/v1/projects.locations.tagTemplates/create#path-parameters)
405+
template](https://cloud.google.com/data-catalog/docs/reference/rest/v1/projects.locations.tagTemplates/create#path-parameters)
393406
used to create the tag must be from the same organization.
394407
"""
395408
context.set_code(grpc.StatusCode.UNIMPLEMENTED)

google/cloud/datacatalog_v1/proto/tags_pb2.py

+8-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

google/cloud/datacatalog_v1/proto/timestamps_pb2.py

+1-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)