From b51902e26d590f52c9412756a178265850b7d516 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 19 Feb 2020 14:43:00 -0800 Subject: [PATCH] feat: add `list_entry_groups`, `list_entries`, `update_entry_group` methods to v1beta1 (via synth) (#6) --- .../gapic/data_catalog_client.py | 382 ++++++- .../gapic/data_catalog_client_config.py | 15 + .../cloud/datacatalog_v1beta1/gapic/enums.py | 20 +- .../transports/data_catalog_grpc_transport.py | 118 +- .../datacatalog_v1beta1/proto/common_pb2.py | 69 ++ .../proto/common_pb2_grpc.py | 2 + .../proto/datacatalog_pb2.py | 1016 ++++++++++++++--- .../proto/datacatalog_pb2_grpc.py | 113 +- .../proto/gcs_fileset_spec_pb2.py | 19 +- .../proto/policytagmanager_pb2.py | 6 +- .../datacatalog_v1beta1/proto/search_pb2.py | 14 +- .../datacatalog_v1beta1/proto/tags_pb2.py | 11 +- noxfile.py | 1 + synth.metadata | 27 +- .../test_data_catalog_client_v1beta1.py | 138 +++ 15 files changed, 1651 insertions(+), 300 deletions(-) create mode 100644 google/cloud/datacatalog_v1beta1/proto/common_pb2.py create mode 100644 google/cloud/datacatalog_v1beta1/proto/common_pb2_grpc.py diff --git a/google/cloud/datacatalog_v1beta1/gapic/data_catalog_client.py b/google/cloud/datacatalog_v1beta1/gapic/data_catalog_client.py index 389e8e8d..34fd3632 100644 --- a/google/cloud/datacatalog_v1beta1/gapic/data_catalog_client.py +++ b/google/cloud/datacatalog_v1beta1/gapic/data_catalog_client.py @@ -280,10 +280,10 @@ def search_catalog( return the complete resource, only the resource identifier and high level fields. Clients can subsequentally call ``Get`` methods. - Note that searches do not have full recall. There may be results that - match your query but are not returned, even in subsequent pages of - results. These missing results may vary across repeated calls to search. - Do not rely on this method if you need to guarantee full recall. + Note that Data Catalog search queries do not guarantee full recall. + Query results that match your query may not be returned, even in + subsequent result pages. Also note that results returned (and not + returned) can vary across repeated search queries. See `Data Catalog Search Syntax `__ @@ -340,9 +340,7 @@ def search_catalog( order_by (str): Specifies the ordering of results, currently supported case-sensitive choices are: - - ``relevance``, only supports desecending - - ``last_access_timestamp [asc|desc]``, defaults to descending if not - specified + - ``relevance``, only supports descending - ``last_modified_timestamp [asc|desc]``, defaults to descending if not specified @@ -408,9 +406,23 @@ def create_entry_group( metadata=None, ): """ - Alpha feature. Creates an EntryGroup. The user should enable the Data - Catalog API in the project identified by the ``parent`` parameter (see - [Data Catalog Resource Project] + Creates an EntryGroup. + + An entry group contains logically related entries together with Cloud + Identity and Access Management policies that specify the users who can + create, edit, and view entries within the entry group. + + Data Catalog automatically creates an entry group for BigQuery entries + ("@bigquery") and Pub/Sub topics ("@pubsub"). Users create their own + entry group to contain Cloud Storage fileset entries or custom type + entries, and the IAM policies associated with those entries. Entry + groups, like entries, can be searched. + + A maximum of 10,000 entry groups may be created per organization across + all locations. + + Users should enable the Data Catalog API in the project identified by + the ``parent`` parameter (see [Data Catalog Resource Project] (/data-catalog/docs/concepts/resource-project) for more information). Example: @@ -501,7 +513,6 @@ def get_entry_group( metadata=None, ): """ - Alpha feature. Gets an EntryGroup. Example: @@ -571,16 +582,17 @@ def get_entry_group( def delete_entry_group( self, name, + force=None, retry=google.api_core.gapic_v1.method.DEFAULT, timeout=google.api_core.gapic_v1.method.DEFAULT, metadata=None, ): """ - Alpha feature. Deletes an EntryGroup. Only entry groups that do not - contain entries can be deleted. The user should enable the Data Catalog - API in the project identified by the ``name`` parameter (see [Data - Catalog Resource Project] (/data-catalog/docs/concepts/resource-project) - for more information). + Deletes an EntryGroup. Only entry groups that do not contain entries can + be deleted. Users should enable the Data Catalog API in the project + identified by the ``name`` parameter (see [Data Catalog Resource + Project] (/data-catalog/docs/concepts/resource-project) for more + information). Example: >>> from google.cloud import datacatalog_v1beta1 @@ -594,6 +606,7 @@ def delete_entry_group( Args: name (str): Required. The name of the entry group. For example, ``projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}``. + force (bool): Optional. If true, deletes all entries in the entry group. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -621,7 +634,7 @@ def delete_entry_group( client_info=self._client_info, ) - request = datacatalog_pb2.DeleteEntryGroupRequest(name=name) + request = datacatalog_pb2.DeleteEntryGroupRequest(name=name, force=force) if metadata is None: metadata = [] metadata = list(metadata) @@ -649,11 +662,14 @@ def create_entry( metadata=None, ): """ - Alpha feature. Creates an entry. Currently only entries of 'FILESET' - type can be created. The user should enable the Data Catalog API in the - project identified by the ``parent`` parameter (see [Data Catalog - Resource Project] (/data-catalog/docs/concepts/resource-project) for - more information). + Creates an entry. Only entries of 'FILESET' type or user-specified type + can be created. + + Users should enable the Data Catalog API in the project identified by + the ``parent`` parameter (see [Data Catalog Resource Project] + (/data-catalog/docs/concepts/resource-project) for more information). + + A maximum of 100,000 entries may be created per entry group. Example: >>> from google.cloud import datacatalog_v1beta1 @@ -741,8 +757,8 @@ def update_entry( metadata=None, ): """ - Updates an existing entry. The user should enable the Data Catalog API - in the project identified by the ``entry.name`` parameter (see [Data + Updates an existing entry. Users should enable the Data Catalog API in + the project identified by the ``entry.name`` parameter (see [Data Catalog Resource Project] (/data-catalog/docs/concepts/resource-project) for more information). @@ -778,6 +794,16 @@ def update_entry( - ``gcs_fileset_spec`` - ``gcs_fileset_spec.file_patterns`` + - For entries with ``user_specified_type`` + + - ``schema`` + - ``display_name`` + - ``description`` + - user\_specified\_type + - user\_specified\_system + - linked\_resource + - source\_system\_timestamps + If a dict is provided, it must be of the same form as the protobuf message :class:`~google.cloud.datacatalog_v1beta1.types.FieldMask` retry (Optional[google.api_core.retry.Retry]): A retry object used @@ -838,11 +864,11 @@ def delete_entry( metadata=None, ): """ - Alpha feature. Deletes an existing entry. Only entries created through - ``CreateEntry`` method can be deleted. The user should enable the Data - Catalog API in the project identified by the ``name`` parameter (see - [Data Catalog Resource Project] - (/data-catalog/docs/concepts/resource-project) for more information). + Deletes an existing entry. Only entries created through ``CreateEntry`` + method can be deleted. Users should enable the Data Catalog API in the + project identified by the ``name`` parameter (see [Data Catalog Resource + Project] (/data-catalog/docs/concepts/resource-project) for more + information). Example: >>> from google.cloud import datacatalog_v1beta1 @@ -925,11 +951,6 @@ def get_entry( name (str): Required. The name of the entry. Example: - projects/{project\_id}/locations/{location}/entryGroups/{entry\_group\_id}/entries/{entry\_id} - - Entry groups are logical groupings of entries. Currently, users cannot - create/modify entry groups. They are created by Data Catalog; they - include ``@bigquery`` for all BigQuery entries, and ``@pubsub`` for all - Cloud Pub/Sub entries. retry (Optional[google.api_core.retry.Retry]): A retry object used to retry requests. If ``None`` is specified, requests will be retried using a default configuration. @@ -1016,7 +1037,7 @@ def lookup_entry( - ``pubsub.project_id.`topic.id.with.dots``` - ``bigquery.table.project_id.dataset_id.table_id`` - ``bigquery.dataset.project_id.dataset_id`` - - ``datacatalog.project_id.location_id.entry_group_id.entry_id`` + - ``datacatalog.entry.project_id.location_id.entry_group_id.entry_id`` ``*_id``\ s shoud satisfy the standard SQL rules for identifiers. https://cloud.google.com/bigquery/docs/reference/standard-sql/lexical. @@ -1063,6 +1084,261 @@ def lookup_entry( request, retry=retry, timeout=timeout, metadata=metadata ) + def list_entry_groups( + self, + parent, + page_size=None, + page_token=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): + """ + Lists entry groups. + + Example: + >>> from google.cloud import datacatalog_v1beta1 + >>> + >>> client = datacatalog_v1beta1.DataCatalogClient() + >>> + >>> parent = client.location_path('[PROJECT]', '[LOCATION]') + >>> + >>> response = client.list_entry_groups(parent) + + Args: + parent (str): Required. The name of the location that contains the entry groups, which + can be provided in URL format. Example: + + - projects/{project\_id}/locations/{location} + page_size (int): Optional. The maximum number of items to return. Default is 10. Max + limit is 1000. Throws an invalid argument for ``page_size > 1000``. + page_token (str): Optional. Token that specifies which page is requested. If empty, the first + page is returned. + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will + be retried using a default configuration. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.cloud.datacatalog_v1beta1.types.ListEntryGroupsResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if "list_entry_groups" not in self._inner_api_calls: + self._inner_api_calls[ + "list_entry_groups" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.list_entry_groups, + default_retry=self._method_configs["ListEntryGroups"].retry, + default_timeout=self._method_configs["ListEntryGroups"].timeout, + client_info=self._client_info, + ) + + request = datacatalog_pb2.ListEntryGroupsRequest( + parent=parent, page_size=page_size, page_token=page_token + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [("parent", parent)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( + routing_header + ) + metadata.append(routing_metadata) + + return self._inner_api_calls["list_entry_groups"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + + def list_entries( + self, + parent, + page_size=None, + page_token=None, + read_mask=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): + """ + Lists entries. + + Example: + >>> from google.cloud import datacatalog_v1beta1 + >>> + >>> client = datacatalog_v1beta1.DataCatalogClient() + >>> + >>> parent = client.entry_group_path('[PROJECT]', '[LOCATION]', '[ENTRY_GROUP]') + >>> + >>> response = client.list_entries(parent) + + Args: + parent (str): Required. The name of the entry group that contains the entries, which + can be provided in URL format. Example: + + - projects/{project\_id}/locations/{location}/entryGroups/{entry\_group\_id} + page_size (int): The maximum number of items to return. Default is 10. Max limit is 1000. + Throws an invalid argument for ``page_size > 1000``. + page_token (str): Token that specifies which page is requested. If empty, the first page is + returned. + read_mask (Union[dict, ~google.cloud.datacatalog_v1beta1.types.FieldMask]): The fields to return for each Entry. If not set or empty, all fields are + returned. For example, setting read\_mask to contain only one path + "name" will cause ListEntries to return a list of Entries with only + "name" field. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.cloud.datacatalog_v1beta1.types.FieldMask` + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will + be retried using a default configuration. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.cloud.datacatalog_v1beta1.types.ListEntriesResponse` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if "list_entries" not in self._inner_api_calls: + self._inner_api_calls[ + "list_entries" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.list_entries, + default_retry=self._method_configs["ListEntries"].retry, + default_timeout=self._method_configs["ListEntries"].timeout, + client_info=self._client_info, + ) + + request = datacatalog_pb2.ListEntriesRequest( + parent=parent, + page_size=page_size, + page_token=page_token, + read_mask=read_mask, + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [("parent", parent)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( + routing_header + ) + metadata.append(routing_metadata) + + return self._inner_api_calls["list_entries"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + + def update_entry_group( + self, + entry_group, + update_mask=None, + retry=google.api_core.gapic_v1.method.DEFAULT, + timeout=google.api_core.gapic_v1.method.DEFAULT, + metadata=None, + ): + """ + Updates an EntryGroup. The user should enable the Data Catalog API in + the project identified by the ``entry_group.name`` parameter (see [Data + Catalog Resource Project] (/data-catalog/docs/concepts/resource-project) + for more information). + + Example: + >>> from google.cloud import datacatalog_v1beta1 + >>> + >>> client = datacatalog_v1beta1.DataCatalogClient() + >>> + >>> # TODO: Initialize `entry_group`: + >>> entry_group = {} + >>> + >>> response = client.update_entry_group(entry_group) + + Args: + entry_group (Union[dict, ~google.cloud.datacatalog_v1beta1.types.EntryGroup]): Required. The updated entry group. "name" field must be set. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.cloud.datacatalog_v1beta1.types.EntryGroup` + update_mask (Union[dict, ~google.cloud.datacatalog_v1beta1.types.FieldMask]): The fields to update on the entry group. If absent or empty, all modifiable + fields are updated. + + If a dict is provided, it must be of the same form as the protobuf + message :class:`~google.cloud.datacatalog_v1beta1.types.FieldMask` + retry (Optional[google.api_core.retry.Retry]): A retry object used + to retry requests. If ``None`` is specified, requests will + be retried using a default configuration. + timeout (Optional[float]): The amount of time, in seconds, to wait + for the request to complete. Note that if ``retry`` is + specified, the timeout applies to each individual attempt. + metadata (Optional[Sequence[Tuple[str, str]]]): Additional metadata + that is provided to the method. + + Returns: + A :class:`~google.cloud.datacatalog_v1beta1.types.EntryGroup` instance. + + Raises: + google.api_core.exceptions.GoogleAPICallError: If the request + failed for any reason. + google.api_core.exceptions.RetryError: If the request failed due + to a retryable error and retry attempts failed. + ValueError: If the parameters are invalid. + """ + # Wrap the transport method to add retry and timeout logic. + if "update_entry_group" not in self._inner_api_calls: + self._inner_api_calls[ + "update_entry_group" + ] = google.api_core.gapic_v1.method.wrap_method( + self.transport.update_entry_group, + default_retry=self._method_configs["UpdateEntryGroup"].retry, + default_timeout=self._method_configs["UpdateEntryGroup"].timeout, + client_info=self._client_info, + ) + + request = datacatalog_pb2.UpdateEntryGroupRequest( + entry_group=entry_group, update_mask=update_mask + ) + if metadata is None: + metadata = [] + metadata = list(metadata) + try: + routing_header = [("entry_group.name", entry_group.name)] + except AttributeError: + pass + else: + routing_metadata = google.api_core.gapic_v1.routing_header.to_grpc_metadata( + routing_header + ) + metadata.append(routing_metadata) + + return self._inner_api_calls["update_entry_group"]( + request, retry=retry, timeout=timeout, metadata=metadata + ) + def create_tag_template( self, parent, @@ -1095,13 +1371,13 @@ def create_tag_template( >>> response = client.create_tag_template(parent, tag_template_id, tag_template) Args: - parent (str): Required. The name of the project and the location this template is in. - Example: + parent (str): Required. The name of the project and the template location + `region `__. + NOTE: Currently, only the ``us-central1 region`` is supported. - - projects/{project\_id}/locations/{location} + Example: - TagTemplate and its child resources may not actually be stored in the - location in this name. + - projects/{project\_id}/locations/us-central1 tag_template_id (str): Required. The id of the tag template to create. tag_template (Union[dict, ~google.cloud.datacatalog_v1beta1.types.TagTemplate]): Required. The tag template to create. @@ -1240,7 +1516,7 @@ def update_tag_template( Updates a tag template. This method cannot be used to update the fields of a template. The tag template fields are represented as separate resources and should be updated using their own create/update/delete - methods. The user should enable the Data Catalog API in the project + methods. Users should enable the Data Catalog API in the project identified by the ``tag_template.name`` parameter (see [Data Catalog Resource Project] (/data-catalog/docs/concepts/resource-project) for more information). @@ -1329,7 +1605,7 @@ def delete_tag_template( metadata=None, ): """ - Deletes a tag template and all tags using the template. The user should + Deletes a tag template and all tags using the template. Users should enable the Data Catalog API in the project identified by the ``name`` parameter (see [Data Catalog Resource Project] (/data-catalog/docs/concepts/resource-project) for more information). @@ -1430,12 +1706,13 @@ def create_tag_template_field( >>> response = client.create_tag_template_field(parent, tag_template_field_id, tag_template_field) Args: - parent (str): Required. The name of the project this template is in. Example: + parent (str): Required. The name of the project and the template location + `region `__. + NOTE: Currently, only the ``us-central1 region`` is supported. - - projects/{project\_id}/locations/{location}/tagTemplates/{tag\_template\_id} + Example: - Note that this TagTemplateField may not actually be stored in the - location in this name. + - projects/{project\_id}/locations/us-central1/tagTemplates/{tag\_template\_id} tag_template_field_id (str): Required. The ID of the tag template field to create. Field ids can contain letters (both uppercase and lowercase), numbers (0-9), underscores (\_) and dashes (-). Field IDs must be at least 1 character @@ -1508,8 +1785,8 @@ def update_tag_template_field( ): """ Updates a field in a tag template. This method cannot be used to update - the field type. The user should enable the Data Catalog API in the - project identified by the ``name`` parameter (see [Data Catalog Resource + the field type. Users should enable the Data Catalog API in the project + identified by the ``name`` parameter (see [Data Catalog Resource Project] (/data-catalog/docs/concepts/resource-project) for more information). @@ -1692,7 +1969,7 @@ def delete_tag_template_field( metadata=None, ): """ - Deletes a field in a tag template and all uses of that field. The user + Deletes a field in a tag template and all uses of that field. Users should enable the Data Catalog API in the project identified by the ``name`` parameter (see [Data Catalog Resource Project] (/data-catalog/docs/concepts/resource-project) for more information). @@ -2031,7 +2308,12 @@ def list_tags( Args: parent (str): Required. The name of the Data Catalog resource to list the tags of. The - resource could be an ``Entry``. + resource could be an ``Entry`` or an ``EntryGroup``. + + Examples: + + - projects/{project\_id}/locations/{location}/entryGroups/{entry\_group\_id} + - projects/{project\_id}/locations/{location}/entryGroups/{entry\_group\_id}/entries/{entry\_id} page_size (int): The maximum number of resources contained in the underlying API response. If page streaming is performed per- resource, this parameter does not affect the return value. If page diff --git a/google/cloud/datacatalog_v1beta1/gapic/data_catalog_client_config.py b/google/cloud/datacatalog_v1beta1/gapic/data_catalog_client_config.py index 065f9970..9953348b 100644 --- a/google/cloud/datacatalog_v1beta1/gapic/data_catalog_client_config.py +++ b/google/cloud/datacatalog_v1beta1/gapic/data_catalog_client_config.py @@ -62,6 +62,21 @@ "retry_codes_name": "idempotent", "retry_params_name": "default", }, + "ListEntryGroups": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default", + }, + "ListEntries": { + "timeout_millis": 60000, + "retry_codes_name": "idempotent", + "retry_params_name": "default", + }, + "UpdateEntryGroup": { + "timeout_millis": 60000, + "retry_codes_name": "non_idempotent", + "retry_params_name": "default", + }, "CreateTagTemplate": { "timeout_millis": 60000, "retry_codes_name": "non_idempotent", diff --git a/google/cloud/datacatalog_v1beta1/gapic/enums.py b/google/cloud/datacatalog_v1beta1/gapic/enums.py index 83ca9d81..9912b11a 100644 --- a/google/cloud/datacatalog_v1beta1/gapic/enums.py +++ b/google/cloud/datacatalog_v1beta1/gapic/enums.py @@ -29,18 +29,36 @@ class EntryType(enum.IntEnum): ENTRY_TYPE_UNSPECIFIED (int): Default unknown type TABLE (int): Output only. The type of entry that has a GoogleSQL schema, including logical views. + MODEL (int): Output only. The type of models. DATA_STREAM (int): Output only. An entry type which is used for streaming entries. Example: Cloud Pub/Sub topic. - FILESET (int): Alpha feature. An entry type which is a set of files or objects. Example: + FILESET (int): An entry type which is a set of files or objects. Example: Cloud Storage fileset. """ ENTRY_TYPE_UNSPECIFIED = 0 TABLE = 2 + MODEL = 5 DATA_STREAM = 3 FILESET = 4 +class IntegratedSystem(enum.IntEnum): + """ + This enum describes all the possible systems that Data Catalog integrates + with. + + Attributes: + INTEGRATED_SYSTEM_UNSPECIFIED (int): Default unknown system. + BIGQUERY (int): BigQuery. + CLOUD_PUBSUB (int): Cloud Pub/Sub. + """ + + INTEGRATED_SYSTEM_UNSPECIFIED = 0 + BIGQUERY = 1 + CLOUD_PUBSUB = 2 + + class SearchResultType(enum.IntEnum): """ The different types of resources that can be returned in search. diff --git a/google/cloud/datacatalog_v1beta1/gapic/transports/data_catalog_grpc_transport.py b/google/cloud/datacatalog_v1beta1/gapic/transports/data_catalog_grpc_transport.py index ad5c46fa..12e06c6d 100644 --- a/google/cloud/datacatalog_v1beta1/gapic/transports/data_catalog_grpc_transport.py +++ b/google/cloud/datacatalog_v1beta1/gapic/transports/data_catalog_grpc_transport.py @@ -119,10 +119,10 @@ def search_catalog(self): return the complete resource, only the resource identifier and high level fields. Clients can subsequentally call ``Get`` methods. - Note that searches do not have full recall. There may be results that - match your query but are not returned, even in subsequent pages of - results. These missing results may vary across repeated calls to search. - Do not rely on this method if you need to guarantee full recall. + Note that Data Catalog search queries do not guarantee full recall. + Query results that match your query may not be returned, even in + subsequent result pages. Also note that results returned (and not + returned) can vary across repeated search queries. See `Data Catalog Search Syntax `__ @@ -139,9 +139,23 @@ def search_catalog(self): def create_entry_group(self): """Return the gRPC stub for :meth:`DataCatalogClient.create_entry_group`. - Alpha feature. Creates an EntryGroup. The user should enable the Data - Catalog API in the project identified by the ``parent`` parameter (see - [Data Catalog Resource Project] + Creates an EntryGroup. + + An entry group contains logically related entries together with Cloud + Identity and Access Management policies that specify the users who can + create, edit, and view entries within the entry group. + + Data Catalog automatically creates an entry group for BigQuery entries + ("@bigquery") and Pub/Sub topics ("@pubsub"). Users create their own + entry group to contain Cloud Storage fileset entries or custom type + entries, and the IAM policies associated with those entries. Entry + groups, like entries, can be searched. + + A maximum of 10,000 entry groups may be created per organization across + all locations. + + Users should enable the Data Catalog API in the project identified by + the ``parent`` parameter (see [Data Catalog Resource Project] (/data-catalog/docs/concepts/resource-project) for more information). Returns: @@ -155,7 +169,6 @@ def create_entry_group(self): def get_entry_group(self): """Return the gRPC stub for :meth:`DataCatalogClient.get_entry_group`. - Alpha feature. Gets an EntryGroup. Returns: @@ -169,11 +182,11 @@ def get_entry_group(self): def delete_entry_group(self): """Return the gRPC stub for :meth:`DataCatalogClient.delete_entry_group`. - Alpha feature. Deletes an EntryGroup. Only entry groups that do not - contain entries can be deleted. The user should enable the Data Catalog - API in the project identified by the ``name`` parameter (see [Data - Catalog Resource Project] (/data-catalog/docs/concepts/resource-project) - for more information). + Deletes an EntryGroup. Only entry groups that do not contain entries can + be deleted. Users should enable the Data Catalog API in the project + identified by the ``name`` parameter (see [Data Catalog Resource + Project] (/data-catalog/docs/concepts/resource-project) for more + information). Returns: Callable: A callable which accepts the appropriate @@ -186,11 +199,14 @@ def delete_entry_group(self): def create_entry(self): """Return the gRPC stub for :meth:`DataCatalogClient.create_entry`. - Alpha feature. Creates an entry. Currently only entries of 'FILESET' - type can be created. The user should enable the Data Catalog API in the - project identified by the ``parent`` parameter (see [Data Catalog - Resource Project] (/data-catalog/docs/concepts/resource-project) for - more information). + Creates an entry. Only entries of 'FILESET' type or user-specified type + can be created. + + Users should enable the Data Catalog API in the project identified by + the ``parent`` parameter (see [Data Catalog Resource Project] + (/data-catalog/docs/concepts/resource-project) for more information). + + A maximum of 100,000 entries may be created per entry group. Returns: Callable: A callable which accepts the appropriate @@ -203,8 +219,8 @@ def create_entry(self): def update_entry(self): """Return the gRPC stub for :meth:`DataCatalogClient.update_entry`. - Updates an existing entry. The user should enable the Data Catalog API - in the project identified by the ``entry.name`` parameter (see [Data + Updates an existing entry. Users should enable the Data Catalog API in + the project identified by the ``entry.name`` parameter (see [Data Catalog Resource Project] (/data-catalog/docs/concepts/resource-project) for more information). @@ -219,11 +235,11 @@ def update_entry(self): def delete_entry(self): """Return the gRPC stub for :meth:`DataCatalogClient.delete_entry`. - Alpha feature. Deletes an existing entry. Only entries created through - ``CreateEntry`` method can be deleted. The user should enable the Data - Catalog API in the project identified by the ``name`` parameter (see - [Data Catalog Resource Project] - (/data-catalog/docs/concepts/resource-project) for more information). + Deletes an existing entry. Only entries created through ``CreateEntry`` + method can be deleted. Users should enable the Data Catalog API in the + project identified by the ``name`` parameter (see [Data Catalog Resource + Project] (/data-catalog/docs/concepts/resource-project) for more + information). Returns: Callable: A callable which accepts the appropriate @@ -260,6 +276,48 @@ def lookup_entry(self): """ return self._stubs["data_catalog_stub"].LookupEntry + @property + def list_entry_groups(self): + """Return the gRPC stub for :meth:`DataCatalogClient.list_entry_groups`. + + Lists entry groups. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs["data_catalog_stub"].ListEntryGroups + + @property + def list_entries(self): + """Return the gRPC stub for :meth:`DataCatalogClient.list_entries`. + + Lists entries. + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs["data_catalog_stub"].ListEntries + + @property + def update_entry_group(self): + """Return the gRPC stub for :meth:`DataCatalogClient.update_entry_group`. + + Updates an EntryGroup. The user should enable the Data Catalog API in + the project identified by the ``entry_group.name`` parameter (see [Data + Catalog Resource Project] (/data-catalog/docs/concepts/resource-project) + for more information). + + Returns: + Callable: A callable which accepts the appropriate + deserialized request object and returns a + deserialized response object. + """ + return self._stubs["data_catalog_stub"].UpdateEntryGroup + @property def create_tag_template(self): """Return the gRPC stub for :meth:`DataCatalogClient.create_tag_template`. @@ -297,7 +355,7 @@ def update_tag_template(self): Updates a tag template. This method cannot be used to update the fields of a template. The tag template fields are represented as separate resources and should be updated using their own create/update/delete - methods. The user should enable the Data Catalog API in the project + methods. Users should enable the Data Catalog API in the project identified by the ``tag_template.name`` parameter (see [Data Catalog Resource Project] (/data-catalog/docs/concepts/resource-project) for more information). @@ -313,7 +371,7 @@ def update_tag_template(self): def delete_tag_template(self): """Return the gRPC stub for :meth:`DataCatalogClient.delete_tag_template`. - Deletes a tag template and all tags using the template. The user should + Deletes a tag template and all tags using the template. Users should enable the Data Catalog API in the project identified by the ``name`` parameter (see [Data Catalog Resource Project] (/data-catalog/docs/concepts/resource-project) for more information). @@ -347,8 +405,8 @@ def update_tag_template_field(self): """Return the gRPC stub for :meth:`DataCatalogClient.update_tag_template_field`. Updates a field in a tag template. This method cannot be used to update - the field type. The user should enable the Data Catalog API in the - project identified by the ``name`` parameter (see [Data Catalog Resource + the field type. Users should enable the Data Catalog API in the project + identified by the ``name`` parameter (see [Data Catalog Resource Project] (/data-catalog/docs/concepts/resource-project) for more information). @@ -380,7 +438,7 @@ def rename_tag_template_field(self): def delete_tag_template_field(self): """Return the gRPC stub for :meth:`DataCatalogClient.delete_tag_template_field`. - Deletes a field in a tag template and all uses of that field. The user + Deletes a field in a tag template and all uses of that field. Users should enable the Data Catalog API in the project identified by the ``name`` parameter (see [Data Catalog Resource Project] (/data-catalog/docs/concepts/resource-project) for more information). diff --git a/google/cloud/datacatalog_v1beta1/proto/common_pb2.py b/google/cloud/datacatalog_v1beta1/proto/common_pb2.py new file mode 100644 index 00000000..75fdac7d --- /dev/null +++ b/google/cloud/datacatalog_v1beta1/proto/common_pb2.py @@ -0,0 +1,69 @@ +# -*- coding: utf-8 -*- +# Generated by the protocol buffer compiler. DO NOT EDIT! +# source: google/cloud/datacatalog_v1beta1/proto/common.proto + +import sys + +_b = sys.version_info[0] < 3 and (lambda x: x) or (lambda x: x.encode("latin1")) +from google.protobuf.internal import enum_type_wrapper +from google.protobuf import descriptor as _descriptor +from google.protobuf import message as _message +from google.protobuf import reflection as _reflection +from google.protobuf import symbol_database as _symbol_database + +# @@protoc_insertion_point(imports) + +_sym_db = _symbol_database.Default() + + +DESCRIPTOR = _descriptor.FileDescriptor( + name="google/cloud/datacatalog_v1beta1/proto/common.proto", + package="google.cloud.datacatalog.v1beta1", + syntax="proto3", + serialized_options=_b( + "\n$com.google.cloud.datacatalog.v1beta1P\001ZKgoogle.golang.org/genproto/googleapis/cloud/datacatalog/v1beta1;datacatalog\370\001\001" + ), + serialized_pb=_b( + "\n3google/cloud/datacatalog_v1beta1/proto/common.proto\x12 google.cloud.datacatalog.v1beta1*U\n\x10IntegratedSystem\x12!\n\x1dINTEGRATED_SYSTEM_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x42IGQUERY\x10\x01\x12\x10\n\x0c\x43LOUD_PUBSUB\x10\x02\x42x\n$com.google.cloud.datacatalog.v1beta1P\x01ZKgoogle.golang.org/genproto/googleapis/cloud/datacatalog/v1beta1;datacatalog\xf8\x01\x01\x62\x06proto3" + ), +) + +_INTEGRATEDSYSTEM = _descriptor.EnumDescriptor( + name="IntegratedSystem", + full_name="google.cloud.datacatalog.v1beta1.IntegratedSystem", + filename=None, + file=DESCRIPTOR, + values=[ + _descriptor.EnumValueDescriptor( + name="INTEGRATED_SYSTEM_UNSPECIFIED", + index=0, + number=0, + serialized_options=None, + type=None, + ), + _descriptor.EnumValueDescriptor( + name="BIGQUERY", index=1, number=1, serialized_options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="CLOUD_PUBSUB", index=2, number=2, serialized_options=None, type=None + ), + ], + containing_type=None, + serialized_options=None, + serialized_start=89, + serialized_end=174, +) +_sym_db.RegisterEnumDescriptor(_INTEGRATEDSYSTEM) + +IntegratedSystem = enum_type_wrapper.EnumTypeWrapper(_INTEGRATEDSYSTEM) +INTEGRATED_SYSTEM_UNSPECIFIED = 0 +BIGQUERY = 1 +CLOUD_PUBSUB = 2 + + +DESCRIPTOR.enum_types_by_name["IntegratedSystem"] = _INTEGRATEDSYSTEM +_sym_db.RegisterFileDescriptor(DESCRIPTOR) + + +DESCRIPTOR._options = None +# @@protoc_insertion_point(module_scope) diff --git a/google/cloud/datacatalog_v1beta1/proto/common_pb2_grpc.py b/google/cloud/datacatalog_v1beta1/proto/common_pb2_grpc.py new file mode 100644 index 00000000..07cb78fe --- /dev/null +++ b/google/cloud/datacatalog_v1beta1/proto/common_pb2_grpc.py @@ -0,0 +1,2 @@ +# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! +import grpc diff --git a/google/cloud/datacatalog_v1beta1/proto/datacatalog_pb2.py b/google/cloud/datacatalog_v1beta1/proto/datacatalog_pb2.py index 5a5612a5..754e8fc7 100644 --- a/google/cloud/datacatalog_v1beta1/proto/datacatalog_pb2.py +++ b/google/cloud/datacatalog_v1beta1/proto/datacatalog_pb2.py @@ -20,6 +20,9 @@ from google.api import client_pb2 as google_dot_api_dot_client__pb2 from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 from google.api import resource_pb2 as google_dot_api_dot_resource__pb2 +from google.cloud.datacatalog_v1beta1.proto import ( + common_pb2 as google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_common__pb2, +) from google.cloud.datacatalog_v1beta1.proto import ( gcs_fileset_spec_pb2 as google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_gcs__fileset__spec__pb2, ) @@ -52,13 +55,14 @@ "\n$com.google.cloud.datacatalog.v1beta1P\001ZKgoogle.golang.org/genproto/googleapis/cloud/datacatalog/v1beta1;datacatalog\370\001\001" ), serialized_pb=_b( - '\n8google/cloud/datacatalog_v1beta1/proto/datacatalog.proto\x12 google.cloud.datacatalog.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a=google/cloud/datacatalog_v1beta1/proto/gcs_fileset_spec.proto\x1a\x33google/cloud/datacatalog_v1beta1/proto/schema.proto\x1a\x33google/cloud/datacatalog_v1beta1/proto/search.proto\x1a\x37google/cloud/datacatalog_v1beta1/proto/table_spec.proto\x1a\x31google/cloud/datacatalog_v1beta1/proto/tags.proto\x1a\x37google/cloud/datacatalog_v1beta1/proto/timestamps.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto"\x9e\x02\n\x14SearchCatalogRequest\x12P\n\x05scope\x18\x06 \x01(\x0b\x32<.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.ScopeB\x03\xe0\x41\x02\x12\x12\n\x05query\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x10\n\x08order_by\x18\x05 \x01(\t\x1a\x62\n\x05Scope\x12\x17\n\x0finclude_org_ids\x18\x02 \x03(\t\x12\x1b\n\x13include_project_ids\x18\x03 \x03(\t\x12#\n\x1binclude_gcp_public_datasets\x18\x07 \x01(\x08"x\n\x15SearchCatalogResponse\x12\x46\n\x07results\x18\x01 \x03(\x0b\x32\x35.google.cloud.datacatalog.v1beta1.SearchCatalogResult\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t"\xb8\x01\n\x17\x43reateEntryGroupRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\x12%datacatalog.googleapis.com/EntryGroup\x12\x1b\n\x0e\x65ntry_group_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x41\n\x0b\x65ntry_group\x18\x02 \x01(\x0b\x32,.google.cloud.datacatalog.v1beta1.EntryGroup"\x82\x01\n\x14GetEntryGroupRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%datacatalog.googleapis.com/EntryGroup\x12-\n\tread_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"V\n\x17\x44\x65leteEntryGroupRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%datacatalog.googleapis.com/EntryGroup"\xa7\x01\n\x12\x43reateEntryRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%datacatalog.googleapis.com/EntryGroup\x12\x15\n\x08\x65ntry_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12;\n\x05\x65ntry\x18\x02 \x01(\x0b\x32\'.google.cloud.datacatalog.v1beta1.EntryB\x03\xe0\x41\x02"\x82\x01\n\x12UpdateEntryRequest\x12;\n\x05\x65ntry\x18\x01 \x01(\x0b\x32\'.google.cloud.datacatalog.v1beta1.EntryB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"L\n\x12\x44\x65leteEntryRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41"\n datacatalog.googleapis.com/Entry"I\n\x0fGetEntryRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41"\n datacatalog.googleapis.com/Entry"V\n\x12LookupEntryRequest\x12\x19\n\x0flinked_resource\x18\x01 \x01(\tH\x00\x12\x16\n\x0csql_resource\x18\x03 \x01(\tH\x00\x42\r\n\x0btarget_name"\xf4\x05\n\x05\x45ntry\x12\x38\n\x04name\x18\x01 \x01(\tB*\xfa\x41\'\n%datacatalog.googleapis.com/EntryGroup\x12\x1c\n\x0flinked_resource\x18\t \x01(\tB\x03\xe0\x41\x03\x12;\n\x04type\x18\x02 \x01(\x0e\x32+.google.cloud.datacatalog.v1beta1.EntryTypeH\x00\x12L\n\x10gcs_fileset_spec\x18\x06 \x01(\x0b\x32\x30.google.cloud.datacatalog.v1beta1.GcsFilesetSpecH\x01\x12R\n\x13\x62igquery_table_spec\x18\x0c \x01(\x0b\x32\x33.google.cloud.datacatalog.v1beta1.BigQueryTableSpecH\x01\x12_\n\x1a\x62igquery_date_sharded_spec\x18\x0f \x01(\x0b\x32\x39.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpecH\x01\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x38\n\x06schema\x18\x05 \x01(\x0b\x32(.google.cloud.datacatalog.v1beta1.Schema\x12Y\n\x18source_system_timestamps\x18\x07 \x01(\x0b\x32\x32.google.cloud.datacatalog.v1beta1.SystemTimestampsB\x03\xe0\x41\x03:x\xea\x41u\n datacatalog.googleapis.com/Entry\x12Qprojects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}B\x0c\n\nentry_typeB\x0b\n\ttype_spec"\x8e\x02\n\nEntryGroup\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12X\n\x17\x64\x61ta_catalog_timestamps\x18\x04 \x01(\x0b\x32\x32.google.cloud.datacatalog.v1beta1.SystemTimestampsB\x03\xe0\x41\x03:m\xea\x41j\n%datacatalog.googleapis.com/EntryGroup\x12\x41projects/{project}/locations/{location}/entryGroups/{entry_group}"\xc2\x01\n\x18\x43reateTagTemplateRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&datacatalog.googleapis.com/TagTemplate\x12\x1c\n\x0ftag_template_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12H\n\x0ctag_template\x18\x02 \x01(\x0b\x32-.google.cloud.datacatalog.v1beta1.TagTemplateB\x03\xe0\x41\x02"U\n\x15GetTagTemplateRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&datacatalog.googleapis.com/TagTemplate"\x95\x01\n\x18UpdateTagTemplateRequest\x12H\n\x0ctag_template\x18\x01 \x01(\x0b\x32-.google.cloud.datacatalog.v1beta1.TagTemplateB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"l\n\x18\x44\x65leteTagTemplateRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&datacatalog.googleapis.com/TagTemplate\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08\x42\x03\xe0\x41\x02"\x83\x01\n\x10\x43reateTagRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61tacatalog.googleapis.com/Tag\x12\x37\n\x03tag\x18\x02 \x01(\x0b\x32%.google.cloud.datacatalog.v1beta1.TagB\x03\xe0\x41\x02"|\n\x10UpdateTagRequest\x12\x37\n\x03tag\x18\x01 \x01(\x0b\x32%.google.cloud.datacatalog.v1beta1.TagB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"H\n\x10\x44\x65leteTagRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \x12\x1e\x64\x61tacatalog.googleapis.com/Tag"\xd8\x01\n\x1d\x43reateTagTemplateFieldRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&datacatalog.googleapis.com/TagTemplate\x12"\n\x15tag_template_field_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12S\n\x12tag_template_field\x18\x03 \x01(\x0b\x32\x32.google.cloud.datacatalog.v1beta1.TagTemplateFieldB\x03\xe0\x41\x02"\xed\x01\n\x1dUpdateTagTemplateFieldRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+datacatalog.googleapis.com/TagTemplateField\x12S\n\x12tag_template_field\x18\x02 \x01(\x0b\x32\x32.google.cloud.datacatalog.v1beta1.TagTemplateFieldB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01"\x8a\x01\n\x1dRenameTagTemplateFieldRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+datacatalog.googleapis.com/TagTemplateField\x12&\n\x19new_tag_template_field_id\x18\x02 \x01(\tB\x03\xe0\x41\x02"v\n\x1d\x44\x65leteTagTemplateFieldRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+datacatalog.googleapis.com/TagTemplateField\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08\x42\x03\xe0\x41\x02"p\n\x0fListTagsRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \x12\x1e\x64\x61tacatalog.googleapis.com/Tag\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"`\n\x10ListTagsResponse\x12\x33\n\x04tags\x18\x01 \x03(\x0b\x32%.google.cloud.datacatalog.v1beta1.Tag\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t*P\n\tEntryType\x12\x1a\n\x16\x45NTRY_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05TABLE\x10\x02\x12\x0f\n\x0b\x44\x41TA_STREAM\x10\x03\x12\x0b\n\x07\x46ILESET\x10\x04\x32\xc8+\n\x0b\x44\x61taCatalog\x12\xb2\x01\n\rSearchCatalog\x12\x36.google.cloud.datacatalog.v1beta1.SearchCatalogRequest\x1a\x37.google.cloud.datacatalog.v1beta1.SearchCatalogResponse"0\x82\xd3\xe4\x93\x02\x1c"\x17/v1beta1/catalog:search:\x01*\xda\x41\x0bscope,query\x12\xea\x01\n\x10\x43reateEntryGroup\x12\x39.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest\x1a,.google.cloud.datacatalog.v1beta1.EntryGroup"m\x82\xd3\xe4\x93\x02\x43"4/v1beta1/{parent=projects/*/locations/*}/entryGroups:\x0b\x65ntry_group\xda\x41!parent,entry_group_id,entry_group\x12\xcb\x01\n\rGetEntryGroup\x12\x36.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest\x1a,.google.cloud.datacatalog.v1beta1.EntryGroup"T\x82\xd3\xe4\x93\x02\x36\x12\x34/v1beta1/{name=projects/*/locations/*/entryGroups/*}\xda\x41\x04name\xda\x41\x0ename,read_mask\x12\xaa\x01\n\x10\x44\x65leteEntryGroup\x12\x39.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest\x1a\x16.google.protobuf.Empty"C\x82\xd3\xe4\x93\x02\x36*4/v1beta1/{name=projects/*/locations/*/entryGroups/*}\xda\x41\x04name\x12\xd3\x01\n\x0b\x43reateEntry\x12\x34.google.cloud.datacatalog.v1beta1.CreateEntryRequest\x1a\'.google.cloud.datacatalog.v1beta1.Entry"e\x82\xd3\xe4\x93\x02G">/v1beta1/{parent=projects/*/locations/*/entryGroups/*}/entries:\x05\x65ntry\xda\x41\x15parent,entry_id,entry\x12\xdd\x01\n\x0bUpdateEntry\x12\x34.google.cloud.datacatalog.v1beta1.UpdateEntryRequest\x1a\'.google.cloud.datacatalog.v1beta1.Entry"o\x82\xd3\xe4\x93\x02M2D/v1beta1/{entry.name=projects/*/locations/*/entryGroups/*/entries/*}:\x05\x65ntry\xda\x41\x05\x65ntry\xda\x41\x11\x65ntry,update_mask\x12\xaa\x01\n\x0b\x44\x65leteEntry\x12\x34.google.cloud.datacatalog.v1beta1.DeleteEntryRequest\x1a\x16.google.protobuf.Empty"M\x82\xd3\xe4\x93\x02@*>/v1beta1/{name=projects/*/locations/*/entryGroups/*/entries/*}\xda\x41\x04name\x12\xb5\x01\n\x08GetEntry\x12\x31.google.cloud.datacatalog.v1beta1.GetEntryRequest\x1a\'.google.cloud.datacatalog.v1beta1.Entry"M\x82\xd3\xe4\x93\x02@\x12>/v1beta1/{name=projects/*/locations/*/entryGroups/*/entries/*}\xda\x41\x04name\x12\x8d\x01\n\x0bLookupEntry\x12\x34.google.cloud.datacatalog.v1beta1.LookupEntryRequest\x1a\'.google.cloud.datacatalog.v1beta1.Entry"\x1f\x82\xd3\xe4\x93\x02\x19\x12\x17/v1beta1/entries:lookup\x12\xf1\x01\n\x11\x43reateTagTemplate\x12:.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest\x1a-.google.cloud.datacatalog.v1beta1.TagTemplate"q\x82\xd3\xe4\x93\x02\x45"5/v1beta1/{parent=projects/*/locations/*}/tagTemplates:\x0ctag_template\xda\x41#parent,tag_template_id,tag_template\x12\xbe\x01\n\x0eGetTagTemplate\x12\x37.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest\x1a-.google.cloud.datacatalog.v1beta1.TagTemplate"D\x82\xd3\xe4\x93\x02\x37\x12\x35/v1beta1/{name=projects/*/locations/*/tagTemplates/*}\xda\x41\x04name\x12\x83\x02\n\x11UpdateTagTemplate\x12:.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest\x1a-.google.cloud.datacatalog.v1beta1.TagTemplate"\x82\x01\x82\xd3\xe4\x93\x02R2B/v1beta1/{tag_template.name=projects/*/locations/*/tagTemplates/*}:\x0ctag_template\xda\x41\x0ctag_template\xda\x41\x18tag_template,update_mask\x12\xb3\x01\n\x11\x44\x65leteTagTemplate\x12:.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest\x1a\x16.google.protobuf.Empty"J\x82\xd3\xe4\x93\x02\x37*5/v1beta1/{name=projects/*/locations/*/tagTemplates/*}\xda\x41\nname,force\x12\x9c\x02\n\x16\x43reateTagTemplateField\x12?.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest\x1a\x32.google.cloud.datacatalog.v1beta1.TagTemplateField"\x8c\x01\x82\xd3\xe4\x93\x02T">/v1beta1/{parent=projects/*/locations/*/tagTemplates/*}/fields:\x12tag_template_field\xda\x41/parent,tag_template_field_id,tag_template_field\x12\xaa\x02\n\x16UpdateTagTemplateField\x12?.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest\x1a\x32.google.cloud.datacatalog.v1beta1.TagTemplateField"\x9a\x01\x82\xd3\xe4\x93\x02T2>/v1beta1/{name=projects/*/locations/*/tagTemplates/*/fields/*}:\x12tag_template_field\xda\x41\x17name,tag_template_field\xda\x41#name,tag_template_field,update_mask\x12\x80\x02\n\x16RenameTagTemplateField\x12?.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest\x1a\x32.google.cloud.datacatalog.v1beta1.TagTemplateField"q\x82\xd3\xe4\x93\x02J"E/v1beta1/{name=projects/*/locations/*/tagTemplates/*/fields/*}:rename:\x01*\xda\x41\x1ename,new_tag_template_field_id\x12\xc6\x01\n\x16\x44\x65leteTagTemplateField\x12?.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest\x1a\x16.google.protobuf.Empty"S\x82\xd3\xe4\x93\x02@*>/v1beta1/{name=projects/*/locations/*/tagTemplates/*/fields/*}\xda\x41\nname,force\x12\xc7\x01\n\tCreateTag\x12\x32.google.cloud.datacatalog.v1beta1.CreateTagRequest\x1a%.google.cloud.datacatalog.v1beta1.Tag"_\x82\xd3\xe4\x93\x02L"E/v1beta1/{parent=projects/*/locations/*/entryGroups/*/entries/*}/tags:\x03tag\xda\x41\nparent,tag\x12\xd6\x01\n\tUpdateTag\x12\x32.google.cloud.datacatalog.v1beta1.UpdateTagRequest\x1a%.google.cloud.datacatalog.v1beta1.Tag"n\x82\xd3\xe4\x93\x02P2I/v1beta1/{tag.name=projects/*/locations/*/entryGroups/*/entries/*/tags/*}:\x03tag\xda\x41\x03tag\xda\x41\x0ftag,update_mask\x12\xad\x01\n\tDeleteTag\x12\x32.google.cloud.datacatalog.v1beta1.DeleteTagRequest\x1a\x16.google.protobuf.Empty"T\x82\xd3\xe4\x93\x02G*E/v1beta1/{name=projects/*/locations/*/entryGroups/*/entries/*/tags/*}\xda\x41\x04name\x12\xc9\x01\n\x08ListTags\x12\x31.google.cloud.datacatalog.v1beta1.ListTagsRequest\x1a\x32.google.cloud.datacatalog.v1beta1.ListTagsResponse"V\x82\xd3\xe4\x93\x02G\x12\x45/v1beta1/{parent=projects/*/locations/*/entryGroups/*/entries/*}/tags\xda\x41\x06parent\x12\xc0\x02\n\x0cSetIamPolicy\x12".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy"\xf4\x01\x82\xd3\xe4\x93\x02\xed\x01"F/v1beta1/{resource=projects/*/locations/*/tagTemplates/*}:setIamPolicy:\x01*ZJ"E/v1beta1/{resource=projects/*/locations/*/entryGroups/*}:setIamPolicy:\x01*ZT"O/v1beta1/{resource=projects/*/locations/*/entryGroups/*/entries/*}:setIamPolicy:\x01*\x12\xc0\x02\n\x0cGetIamPolicy\x12".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy"\xf4\x01\x82\xd3\xe4\x93\x02\xed\x01"F/v1beta1/{resource=projects/*/locations/*/tagTemplates/*}:getIamPolicy:\x01*ZJ"E/v1beta1/{resource=projects/*/locations/*/entryGroups/*}:getIamPolicy:\x01*ZT"O/v1beta1/{resource=projects/*/locations/*/entryGroups/*/entries/*}:getIamPolicy:\x01*\x12\xf2\x02\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse"\x86\x02\x82\xd3\xe4\x93\x02\xff\x01"L/v1beta1/{resource=projects/*/locations/*/tagTemplates/*}:testIamPermissions:\x01*ZP"K/v1beta1/{resource=projects/*/locations/*/entryGroups/*}:testIamPermissions:\x01*ZZ"U/v1beta1/{resource=projects/*/locations/*/entryGroups/*/entries/*}:testIamPermissions:\x01*\x1aN\xca\x41\x1a\x64\x61tacatalog.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBx\n$com.google.cloud.datacatalog.v1beta1P\x01ZKgoogle.golang.org/genproto/googleapis/cloud/datacatalog/v1beta1;datacatalog\xf8\x01\x01\x62\x06proto3' + '\n8google/cloud/datacatalog_v1beta1/proto/datacatalog.proto\x12 google.cloud.datacatalog.v1beta1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x33google/cloud/datacatalog_v1beta1/proto/common.proto\x1a=google/cloud/datacatalog_v1beta1/proto/gcs_fileset_spec.proto\x1a\x33google/cloud/datacatalog_v1beta1/proto/schema.proto\x1a\x33google/cloud/datacatalog_v1beta1/proto/search.proto\x1a\x37google/cloud/datacatalog_v1beta1/proto/table_spec.proto\x1a\x31google/cloud/datacatalog_v1beta1/proto/tags.proto\x1a\x37google/cloud/datacatalog_v1beta1/proto/timestamps.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto"\x9e\x02\n\x14SearchCatalogRequest\x12P\n\x05scope\x18\x06 \x01(\x0b\x32<.google.cloud.datacatalog.v1beta1.SearchCatalogRequest.ScopeB\x03\xe0\x41\x02\x12\x12\n\x05query\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x10\n\x08order_by\x18\x05 \x01(\t\x1a\x62\n\x05Scope\x12\x17\n\x0finclude_org_ids\x18\x02 \x03(\t\x12\x1b\n\x13include_project_ids\x18\x03 \x03(\t\x12#\n\x1binclude_gcp_public_datasets\x18\x07 \x01(\x08"x\n\x15SearchCatalogResponse\x12\x46\n\x07results\x18\x01 \x03(\x0b\x32\x35.google.cloud.datacatalog.v1beta1.SearchCatalogResult\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t"\xb8\x01\n\x17\x43reateEntryGroupRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\x12%datacatalog.googleapis.com/EntryGroup\x12\x1b\n\x0e\x65ntry_group_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x41\n\x0b\x65ntry_group\x18\x02 \x01(\x0b\x32,.google.cloud.datacatalog.v1beta1.EntryGroup"\x92\x01\n\x17UpdateEntryGroupRequest\x12\x46\n\x0b\x65ntry_group\x18\x01 \x01(\x0b\x32,.google.cloud.datacatalog.v1beta1.EntryGroupB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"\x82\x01\n\x14GetEntryGroupRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%datacatalog.googleapis.com/EntryGroup\x12-\n\tread_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"j\n\x17\x44\x65leteEntryGroupRequest\x12;\n\x04name\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%datacatalog.googleapis.com/EntryGroup\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01"\x88\x01\n\x16ListEntryGroupsRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%datacatalog.googleapis.com/EntryGroup\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01"v\n\x17ListEntryGroupsResponse\x12\x42\n\x0c\x65ntry_groups\x18\x01 \x03(\x0b\x32,.google.cloud.datacatalog.v1beta1.EntryGroup\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"\xa7\x01\n\x12\x43reateEntryRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%datacatalog.googleapis.com/EntryGroup\x12\x15\n\x08\x65ntry_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12;\n\x05\x65ntry\x18\x02 \x01(\x0b\x32\'.google.cloud.datacatalog.v1beta1.EntryB\x03\xe0\x41\x02"\x82\x01\n\x12UpdateEntryRequest\x12;\n\x05\x65ntry\x18\x01 \x01(\x0b\x32\'.google.cloud.datacatalog.v1beta1.EntryB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"L\n\x12\x44\x65leteEntryRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41"\n datacatalog.googleapis.com/Entry"I\n\x0fGetEntryRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41"\n datacatalog.googleapis.com/Entry"V\n\x12LookupEntryRequest\x12\x19\n\x0flinked_resource\x18\x01 \x01(\tH\x00\x12\x16\n\x0csql_resource\x18\x03 \x01(\tH\x00\x42\r\n\x0btarget_name"\x8f\x07\n\x05\x45ntry\x12\x38\n\x04name\x18\x01 \x01(\tB*\xfa\x41\'\n%datacatalog.googleapis.com/EntryGroup\x12\x17\n\x0flinked_resource\x18\t \x01(\t\x12;\n\x04type\x18\x02 \x01(\x0e\x32+.google.cloud.datacatalog.v1beta1.EntryTypeH\x00\x12\x1d\n\x13user_specified_type\x18\x10 \x01(\tH\x00\x12T\n\x11integrated_system\x18\x11 \x01(\x0e\x32\x32.google.cloud.datacatalog.v1beta1.IntegratedSystemB\x03\xe0\x41\x03H\x01\x12\x1f\n\x15user_specified_system\x18\x12 \x01(\tH\x01\x12L\n\x10gcs_fileset_spec\x18\x06 \x01(\x0b\x32\x30.google.cloud.datacatalog.v1beta1.GcsFilesetSpecH\x02\x12R\n\x13\x62igquery_table_spec\x18\x0c \x01(\x0b\x32\x33.google.cloud.datacatalog.v1beta1.BigQueryTableSpecH\x02\x12_\n\x1a\x62igquery_date_sharded_spec\x18\x0f \x01(\x0b\x32\x39.google.cloud.datacatalog.v1beta1.BigQueryDateShardedSpecH\x02\x12\x14\n\x0c\x64isplay_name\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x38\n\x06schema\x18\x05 \x01(\x0b\x32(.google.cloud.datacatalog.v1beta1.Schema\x12Y\n\x18source_system_timestamps\x18\x07 \x01(\x0b\x32\x32.google.cloud.datacatalog.v1beta1.SystemTimestampsB\x03\xe0\x41\x03:x\xea\x41u\n datacatalog.googleapis.com/Entry\x12Qprojects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}B\x0c\n\nentry_typeB\x08\n\x06systemB\x0b\n\ttype_spec"\x8e\x02\n\nEntryGroup\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x14\n\x0c\x64isplay_name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12X\n\x17\x64\x61ta_catalog_timestamps\x18\x04 \x01(\x0b\x32\x32.google.cloud.datacatalog.v1beta1.SystemTimestampsB\x03\xe0\x41\x03:m\xea\x41j\n%datacatalog.googleapis.com/EntryGroup\x12\x41projects/{project}/locations/{location}/entryGroups/{entry_group}"\xc2\x01\n\x18\x43reateTagTemplateRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&datacatalog.googleapis.com/TagTemplate\x12\x1c\n\x0ftag_template_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12H\n\x0ctag_template\x18\x02 \x01(\x0b\x32-.google.cloud.datacatalog.v1beta1.TagTemplateB\x03\xe0\x41\x02"U\n\x15GetTagTemplateRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&datacatalog.googleapis.com/TagTemplate"\x95\x01\n\x18UpdateTagTemplateRequest\x12H\n\x0ctag_template\x18\x01 \x01(\x0b\x32-.google.cloud.datacatalog.v1beta1.TagTemplateB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"l\n\x18\x44\x65leteTagTemplateRequest\x12<\n\x04name\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&datacatalog.googleapis.com/TagTemplate\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08\x42\x03\xe0\x41\x02"\x83\x01\n\x10\x43reateTagRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64\x61tacatalog.googleapis.com/Tag\x12\x37\n\x03tag\x18\x02 \x01(\x0b\x32%.google.cloud.datacatalog.v1beta1.TagB\x03\xe0\x41\x02"|\n\x10UpdateTagRequest\x12\x37\n\x03tag\x18\x01 \x01(\x0b\x32%.google.cloud.datacatalog.v1beta1.TagB\x03\xe0\x41\x02\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"H\n\x10\x44\x65leteTagRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \x12\x1e\x64\x61tacatalog.googleapis.com/Tag"\xd8\x01\n\x1d\x43reateTagTemplateFieldRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\n&datacatalog.googleapis.com/TagTemplate\x12"\n\x15tag_template_field_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12S\n\x12tag_template_field\x18\x03 \x01(\x0b\x32\x32.google.cloud.datacatalog.v1beta1.TagTemplateFieldB\x03\xe0\x41\x02"\xed\x01\n\x1dUpdateTagTemplateFieldRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+datacatalog.googleapis.com/TagTemplateField\x12S\n\x12tag_template_field\x18\x02 \x01(\x0b\x32\x32.google.cloud.datacatalog.v1beta1.TagTemplateFieldB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01"\x8a\x01\n\x1dRenameTagTemplateFieldRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+datacatalog.googleapis.com/TagTemplateField\x12&\n\x19new_tag_template_field_id\x18\x02 \x01(\tB\x03\xe0\x41\x02"v\n\x1d\x44\x65leteTagTemplateFieldRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+datacatalog.googleapis.com/TagTemplateField\x12\x12\n\x05\x66orce\x18\x02 \x01(\x08\x42\x03\xe0\x41\x02"p\n\x0fListTagsRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \x12\x1e\x64\x61tacatalog.googleapis.com/Tag\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t"`\n\x10ListTagsResponse\x12\x33\n\x04tags\x18\x01 \x03(\x0b\x32%.google.cloud.datacatalog.v1beta1.Tag\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t"\xa9\x01\n\x12ListEntriesRequest\x12=\n\x06parent\x18\x01 \x01(\tB-\xe0\x41\x02\xfa\x41\'\n%datacatalog.googleapis.com/EntryGroup\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12-\n\tread_mask\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.FieldMask"h\n\x13ListEntriesResponse\x12\x38\n\x07\x65ntries\x18\x01 \x03(\x0b\x32\'.google.cloud.datacatalog.v1beta1.Entry\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t*[\n\tEntryType\x12\x1a\n\x16\x45NTRY_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05TABLE\x10\x02\x12\t\n\x05MODEL\x10\x05\x12\x0f\n\x0b\x44\x41TA_STREAM\x10\x03\x12\x0b\n\x07\x46ILESET\x10\x04\x32\x9f\x32\n\x0b\x44\x61taCatalog\x12\xb2\x01\n\rSearchCatalog\x12\x36.google.cloud.datacatalog.v1beta1.SearchCatalogRequest\x1a\x37.google.cloud.datacatalog.v1beta1.SearchCatalogResponse"0\x82\xd3\xe4\x93\x02\x1c"\x17/v1beta1/catalog:search:\x01*\xda\x41\x0bscope,query\x12\xea\x01\n\x10\x43reateEntryGroup\x12\x39.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest\x1a,.google.cloud.datacatalog.v1beta1.EntryGroup"m\x82\xd3\xe4\x93\x02\x43"4/v1beta1/{parent=projects/*/locations/*}/entryGroups:\x0b\x65ntry_group\xda\x41!parent,entry_group_id,entry_group\x12\xfa\x01\n\x10UpdateEntryGroup\x12\x39.google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest\x1a,.google.cloud.datacatalog.v1beta1.EntryGroup"}\x82\xd3\xe4\x93\x02O2@/v1beta1/{entry_group.name=projects/*/locations/*/entryGroups/*}:\x0b\x65ntry_group\xda\x41\x0b\x65ntry_group\xda\x41\x17\x65ntry_group,update_mask\x12\xcb\x01\n\rGetEntryGroup\x12\x36.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest\x1a,.google.cloud.datacatalog.v1beta1.EntryGroup"T\x82\xd3\xe4\x93\x02\x36\x12\x34/v1beta1/{name=projects/*/locations/*/entryGroups/*}\xda\x41\x04name\xda\x41\x0ename,read_mask\x12\xaa\x01\n\x10\x44\x65leteEntryGroup\x12\x39.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest\x1a\x16.google.protobuf.Empty"C\x82\xd3\xe4\x93\x02\x36*4/v1beta1/{name=projects/*/locations/*/entryGroups/*}\xda\x41\x04name\x12\xcd\x01\n\x0fListEntryGroups\x12\x38.google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest\x1a\x39.google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse"E\x82\xd3\xe4\x93\x02\x36\x12\x34/v1beta1/{parent=projects/*/locations/*}/entryGroups\xda\x41\x06parent\x12\xd3\x01\n\x0b\x43reateEntry\x12\x34.google.cloud.datacatalog.v1beta1.CreateEntryRequest\x1a\'.google.cloud.datacatalog.v1beta1.Entry"e\x82\xd3\xe4\x93\x02G">/v1beta1/{parent=projects/*/locations/*/entryGroups/*}/entries:\x05\x65ntry\xda\x41\x15parent,entry_id,entry\x12\xdd\x01\n\x0bUpdateEntry\x12\x34.google.cloud.datacatalog.v1beta1.UpdateEntryRequest\x1a\'.google.cloud.datacatalog.v1beta1.Entry"o\x82\xd3\xe4\x93\x02M2D/v1beta1/{entry.name=projects/*/locations/*/entryGroups/*/entries/*}:\x05\x65ntry\xda\x41\x05\x65ntry\xda\x41\x11\x65ntry,update_mask\x12\xaa\x01\n\x0b\x44\x65leteEntry\x12\x34.google.cloud.datacatalog.v1beta1.DeleteEntryRequest\x1a\x16.google.protobuf.Empty"M\x82\xd3\xe4\x93\x02@*>/v1beta1/{name=projects/*/locations/*/entryGroups/*/entries/*}\xda\x41\x04name\x12\xb5\x01\n\x08GetEntry\x12\x31.google.cloud.datacatalog.v1beta1.GetEntryRequest\x1a\'.google.cloud.datacatalog.v1beta1.Entry"M\x82\xd3\xe4\x93\x02@\x12>/v1beta1/{name=projects/*/locations/*/entryGroups/*/entries/*}\xda\x41\x04name\x12\x8d\x01\n\x0bLookupEntry\x12\x34.google.cloud.datacatalog.v1beta1.LookupEntryRequest\x1a\'.google.cloud.datacatalog.v1beta1.Entry"\x1f\x82\xd3\xe4\x93\x02\x19\x12\x17/v1beta1/entries:lookup\x12\xcb\x01\n\x0bListEntries\x12\x34.google.cloud.datacatalog.v1beta1.ListEntriesRequest\x1a\x35.google.cloud.datacatalog.v1beta1.ListEntriesResponse"O\x82\xd3\xe4\x93\x02@\x12>/v1beta1/{parent=projects/*/locations/*/entryGroups/*}/entries\xda\x41\x06parent\x12\xf1\x01\n\x11\x43reateTagTemplate\x12:.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest\x1a-.google.cloud.datacatalog.v1beta1.TagTemplate"q\x82\xd3\xe4\x93\x02\x45"5/v1beta1/{parent=projects/*/locations/*}/tagTemplates:\x0ctag_template\xda\x41#parent,tag_template_id,tag_template\x12\xbe\x01\n\x0eGetTagTemplate\x12\x37.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest\x1a-.google.cloud.datacatalog.v1beta1.TagTemplate"D\x82\xd3\xe4\x93\x02\x37\x12\x35/v1beta1/{name=projects/*/locations/*/tagTemplates/*}\xda\x41\x04name\x12\x83\x02\n\x11UpdateTagTemplate\x12:.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest\x1a-.google.cloud.datacatalog.v1beta1.TagTemplate"\x82\x01\x82\xd3\xe4\x93\x02R2B/v1beta1/{tag_template.name=projects/*/locations/*/tagTemplates/*}:\x0ctag_template\xda\x41\x0ctag_template\xda\x41\x18tag_template,update_mask\x12\xb3\x01\n\x11\x44\x65leteTagTemplate\x12:.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest\x1a\x16.google.protobuf.Empty"J\x82\xd3\xe4\x93\x02\x37*5/v1beta1/{name=projects/*/locations/*/tagTemplates/*}\xda\x41\nname,force\x12\x9c\x02\n\x16\x43reateTagTemplateField\x12?.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest\x1a\x32.google.cloud.datacatalog.v1beta1.TagTemplateField"\x8c\x01\x82\xd3\xe4\x93\x02T">/v1beta1/{parent=projects/*/locations/*/tagTemplates/*}/fields:\x12tag_template_field\xda\x41/parent,tag_template_field_id,tag_template_field\x12\xaa\x02\n\x16UpdateTagTemplateField\x12?.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest\x1a\x32.google.cloud.datacatalog.v1beta1.TagTemplateField"\x9a\x01\x82\xd3\xe4\x93\x02T2>/v1beta1/{name=projects/*/locations/*/tagTemplates/*/fields/*}:\x12tag_template_field\xda\x41\x17name,tag_template_field\xda\x41#name,tag_template_field,update_mask\x12\x80\x02\n\x16RenameTagTemplateField\x12?.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest\x1a\x32.google.cloud.datacatalog.v1beta1.TagTemplateField"q\x82\xd3\xe4\x93\x02J"E/v1beta1/{name=projects/*/locations/*/tagTemplates/*/fields/*}:rename:\x01*\xda\x41\x1ename,new_tag_template_field_id\x12\xc6\x01\n\x16\x44\x65leteTagTemplateField\x12?.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest\x1a\x16.google.protobuf.Empty"S\x82\xd3\xe4\x93\x02@*>/v1beta1/{name=projects/*/locations/*/tagTemplates/*/fields/*}\xda\x41\nname,force\x12\x8d\x02\n\tCreateTag\x12\x32.google.cloud.datacatalog.v1beta1.CreateTagRequest\x1a%.google.cloud.datacatalog.v1beta1.Tag"\xa4\x01\x82\xd3\xe4\x93\x02\x90\x01"E/v1beta1/{parent=projects/*/locations/*/entryGroups/*/entries/*}/tags:\x03tagZB";/v1beta1/{parent=projects/*/locations/*/entryGroups/*}/tags:\x03tag\xda\x41\nparent,tag\x12\xa0\x02\n\tUpdateTag\x12\x32.google.cloud.datacatalog.v1beta1.UpdateTagRequest\x1a%.google.cloud.datacatalog.v1beta1.Tag"\xb7\x01\x82\xd3\xe4\x93\x02\x98\x01\x32I/v1beta1/{tag.name=projects/*/locations/*/entryGroups/*/entries/*/tags/*}:\x03tagZF2?/v1beta1/{tag.name=projects/*/locations/*/entryGroups/*/tags/*}:\x03tag\xda\x41\x03tag\xda\x41\x0ftag,update_mask\x12\xee\x01\n\tDeleteTag\x12\x32.google.cloud.datacatalog.v1beta1.DeleteTagRequest\x1a\x16.google.protobuf.Empty"\x94\x01\x82\xd3\xe4\x93\x02\x86\x01*E/v1beta1/{name=projects/*/locations/*/entryGroups/*/entries/*/tags/*}Z=*;/v1beta1/{name=projects/*/locations/*/entryGroups/*/tags/*}\xda\x41\x04name\x12\x8a\x02\n\x08ListTags\x12\x31.google.cloud.datacatalog.v1beta1.ListTagsRequest\x1a\x32.google.cloud.datacatalog.v1beta1.ListTagsResponse"\x96\x01\x82\xd3\xe4\x93\x02\x86\x01\x12\x45/v1beta1/{parent=projects/*/locations/*/entryGroups/*/entries/*}/tagsZ=\x12;/v1beta1/{parent=projects/*/locations/*/entryGroups/*}/tags\xda\x41\x06parent\x12\xea\x01\n\x0cSetIamPolicy\x12".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy"\x9e\x01\x82\xd3\xe4\x93\x02\x97\x01"F/v1beta1/{resource=projects/*/locations/*/tagTemplates/*}:setIamPolicy:\x01*ZJ"E/v1beta1/{resource=projects/*/locations/*/entryGroups/*}:setIamPolicy:\x01*\x12\xc0\x02\n\x0cGetIamPolicy\x12".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy"\xf4\x01\x82\xd3\xe4\x93\x02\xed\x01"F/v1beta1/{resource=projects/*/locations/*/tagTemplates/*}:getIamPolicy:\x01*ZJ"E/v1beta1/{resource=projects/*/locations/*/entryGroups/*}:getIamPolicy:\x01*ZT"O/v1beta1/{resource=projects/*/locations/*/entryGroups/*/entries/*}:getIamPolicy:\x01*\x12\xf2\x02\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse"\x86\x02\x82\xd3\xe4\x93\x02\xff\x01"L/v1beta1/{resource=projects/*/locations/*/tagTemplates/*}:testIamPermissions:\x01*ZP"K/v1beta1/{resource=projects/*/locations/*/entryGroups/*}:testIamPermissions:\x01*ZZ"U/v1beta1/{resource=projects/*/locations/*/entryGroups/*/entries/*}:testIamPermissions:\x01*\x1aN\xca\x41\x1a\x64\x61tacatalog.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBx\n$com.google.cloud.datacatalog.v1beta1P\x01ZKgoogle.golang.org/genproto/googleapis/cloud/datacatalog/v1beta1;datacatalog\xf8\x01\x01\x62\x06proto3' ), dependencies=[ google_dot_api_dot_annotations__pb2.DESCRIPTOR, google_dot_api_dot_client__pb2.DESCRIPTOR, google_dot_api_dot_field__behavior__pb2.DESCRIPTOR, google_dot_api_dot_resource__pb2.DESCRIPTOR, + google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_common__pb2.DESCRIPTOR, google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_gcs__fileset__spec__pb2.DESCRIPTOR, google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_schema__pb2.DESCRIPTOR, google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_search__pb2.DESCRIPTOR, @@ -89,22 +93,26 @@ name="TABLE", index=1, number=2, serialized_options=None, type=None ), _descriptor.EnumValueDescriptor( - name="DATA_STREAM", index=2, number=3, serialized_options=None, type=None + name="MODEL", index=2, number=5, serialized_options=None, type=None + ), + _descriptor.EnumValueDescriptor( + name="DATA_STREAM", index=3, number=3, serialized_options=None, type=None ), _descriptor.EnumValueDescriptor( - name="FILESET", index=3, number=4, serialized_options=None, type=None + name="FILESET", index=4, number=4, serialized_options=None, type=None ), ], containing_type=None, serialized_options=None, - serialized_start=4873, - serialized_end=4953, + serialized_start=5787, + serialized_end=5878, ) _sym_db.RegisterEnumDescriptor(_ENTRYTYPE) EntryType = enum_type_wrapper.EnumTypeWrapper(_ENTRYTYPE) ENTRY_TYPE_UNSPECIFIED = 0 TABLE = 2 +MODEL = 5 DATA_STREAM = 3 FILESET = 4 @@ -179,8 +187,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=855, - serialized_end=953, + serialized_start=908, + serialized_end=1006, ) _SEARCHCATALOGREQUEST = _descriptor.Descriptor( @@ -289,8 +297,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=667, - serialized_end=953, + serialized_start=720, + serialized_end=1006, ) @@ -346,8 +354,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=955, - serialized_end=1075, + serialized_start=1008, + serialized_end=1128, ) @@ -423,8 +431,65 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1078, - serialized_end=1262, + serialized_start=1131, + serialized_end=1315, +) + + +_UPDATEENTRYGROUPREQUEST = _descriptor.Descriptor( + name="UpdateEntryGroupRequest", + full_name="google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="entry_group", + full_name="google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest.entry_group", + index=0, + number=1, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=_b("\340A\002"), + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="update_mask", + full_name="google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest.update_mask", + index=1, + number=2, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1318, + serialized_end=1464, ) @@ -482,8 +547,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1265, - serialized_end=1395, + serialized_start=1467, + serialized_end=1597, ) @@ -513,7 +578,25 @@ "\340A\002\372A'\n%datacatalog.googleapis.com/EntryGroup" ), file=DESCRIPTOR, - ) + ), + _descriptor.FieldDescriptor( + name="force", + full_name="google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest.force", + index=1, + number=2, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=_b("\340A\001"), + file=DESCRIPTOR, + ), ], extensions=[], nested_types=[], @@ -523,8 +606,142 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1397, - serialized_end=1483, + serialized_start=1599, + serialized_end=1705, +) + + +_LISTENTRYGROUPSREQUEST = _descriptor.Descriptor( + name="ListEntryGroupsRequest", + full_name="google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="parent", + full_name="google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest.parent", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=_b( + "\340A\002\372A'\n%datacatalog.googleapis.com/EntryGroup" + ), + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_size", + full_name="google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest.page_size", + index=1, + number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=_b("\340A\001"), + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest.page_token", + index=2, + number=3, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=_b("\340A\001"), + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1708, + serialized_end=1844, +) + + +_LISTENTRYGROUPSRESPONSE = _descriptor.Descriptor( + name="ListEntryGroupsResponse", + full_name="google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="entry_groups", + full_name="google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse.entry_groups", + index=0, + number=1, + type=11, + cpp_type=10, + label=3, + has_default_value=False, + default_value=[], + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="next_page_token", + full_name="google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse.next_page_token", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=1846, + serialized_end=1964, ) @@ -600,8 +817,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1486, - serialized_end=1653, + serialized_start=1967, + serialized_end=2134, ) @@ -657,8 +874,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1656, - serialized_end=1786, + serialized_start=2137, + serialized_end=2267, ) @@ -696,8 +913,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1788, - serialized_end=1864, + serialized_start=2269, + serialized_end=2345, ) @@ -735,8 +952,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=1866, - serialized_end=1939, + serialized_start=2347, + serialized_end=2420, ) @@ -800,8 +1017,8 @@ fields=[], ) ], - serialized_start=1941, - serialized_end=2027, + serialized_start=2422, + serialized_end=2508, ) @@ -845,7 +1062,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\003"), + serialized_options=None, file=DESCRIPTOR, ), _descriptor.FieldDescriptor( @@ -866,10 +1083,64 @@ serialized_options=None, file=DESCRIPTOR, ), + _descriptor.FieldDescriptor( + name="user_specified_type", + full_name="google.cloud.datacatalog.v1beta1.Entry.user_specified_type", + index=3, + number=16, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="integrated_system", + full_name="google.cloud.datacatalog.v1beta1.Entry.integrated_system", + index=4, + number=17, + type=14, + cpp_type=8, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=_b("\340A\003"), + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="user_specified_system", + full_name="google.cloud.datacatalog.v1beta1.Entry.user_specified_system", + index=5, + number=18, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), _descriptor.FieldDescriptor( name="gcs_fileset_spec", full_name="google.cloud.datacatalog.v1beta1.Entry.gcs_fileset_spec", - index=3, + index=6, number=6, type=11, cpp_type=10, @@ -887,7 +1158,7 @@ _descriptor.FieldDescriptor( name="bigquery_table_spec", full_name="google.cloud.datacatalog.v1beta1.Entry.bigquery_table_spec", - index=4, + index=7, number=12, type=11, cpp_type=10, @@ -905,7 +1176,7 @@ _descriptor.FieldDescriptor( name="bigquery_date_sharded_spec", full_name="google.cloud.datacatalog.v1beta1.Entry.bigquery_date_sharded_spec", - index=5, + index=8, number=15, type=11, cpp_type=10, @@ -923,7 +1194,7 @@ _descriptor.FieldDescriptor( name="display_name", full_name="google.cloud.datacatalog.v1beta1.Entry.display_name", - index=6, + index=9, number=3, type=9, cpp_type=9, @@ -941,7 +1212,7 @@ _descriptor.FieldDescriptor( name="description", full_name="google.cloud.datacatalog.v1beta1.Entry.description", - index=7, + index=10, number=4, type=9, cpp_type=9, @@ -959,7 +1230,7 @@ _descriptor.FieldDescriptor( name="schema", full_name="google.cloud.datacatalog.v1beta1.Entry.schema", - index=8, + index=11, number=5, type=11, cpp_type=10, @@ -977,7 +1248,7 @@ _descriptor.FieldDescriptor( name="source_system_timestamps", full_name="google.cloud.datacatalog.v1beta1.Entry.source_system_timestamps", - index=9, + index=12, number=7, type=11, cpp_type=10, @@ -1010,16 +1281,23 @@ containing_type=None, fields=[], ), + _descriptor.OneofDescriptor( + name="system", + full_name="google.cloud.datacatalog.v1beta1.Entry.system", + index=1, + containing_type=None, + fields=[], + ), _descriptor.OneofDescriptor( name="type_spec", full_name="google.cloud.datacatalog.v1beta1.Entry.type_spec", - index=1, + index=2, containing_type=None, fields=[], ), ], - serialized_start=2030, - serialized_end=2786, + serialized_start=2511, + serialized_end=3422, ) @@ -1113,8 +1391,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=2789, - serialized_end=3059, + serialized_start=3425, + serialized_end=3695, ) @@ -1190,8 +1468,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=3062, - serialized_end=3256, + serialized_start=3698, + serialized_end=3892, ) @@ -1231,8 +1509,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=3258, - serialized_end=3343, + serialized_start=3894, + serialized_end=3979, ) @@ -1288,8 +1566,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=3346, - serialized_end=3495, + serialized_start=3982, + serialized_end=4131, ) @@ -1347,8 +1625,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=3497, - serialized_end=3605, + serialized_start=4133, + serialized_end=4241, ) @@ -1406,8 +1684,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=3608, - serialized_end=3739, + serialized_start=4244, + serialized_end=4375, ) @@ -1463,8 +1741,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=3741, - serialized_end=3865, + serialized_start=4377, + serialized_end=4501, ) @@ -1504,8 +1782,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=3867, - serialized_end=3939, + serialized_start=4503, + serialized_end=4575, ) @@ -1581,8 +1859,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=3942, - serialized_end=4158, + serialized_start=4578, + serialized_end=4794, ) @@ -1640,13 +1918,131 @@ cpp_type=10, label=1, has_default_value=False, - default_value=None, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=_b("\340A\001"), + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=4797, + serialized_end=5034, +) + + +_RENAMETAGTEMPLATEFIELDREQUEST = _descriptor.Descriptor( + name="RenameTagTemplateFieldRequest", + full_name="google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=_b( + "\340A\002\372A-\n+datacatalog.googleapis.com/TagTemplateField" + ), + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="new_tag_template_field_id", + full_name="google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest.new_tag_template_field_id", + index=1, + number=2, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=_b("\340A\002"), + file=DESCRIPTOR, + ), + ], + extensions=[], + nested_types=[], + enum_types=[], + serialized_options=None, + is_extendable=False, + syntax="proto3", + extension_ranges=[], + oneofs=[], + serialized_start=5037, + serialized_end=5175, +) + + +_DELETETAGTEMPLATEFIELDREQUEST = _descriptor.Descriptor( + name="DeleteTagTemplateFieldRequest", + full_name="google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest", + filename=None, + file=DESCRIPTOR, + containing_type=None, + fields=[ + _descriptor.FieldDescriptor( + name="name", + full_name="google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest.name", + index=0, + number=1, + type=9, + cpp_type=9, + label=1, + has_default_value=False, + default_value=_b("").decode("utf-8"), + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=_b( + "\340A\002\372A-\n+datacatalog.googleapis.com/TagTemplateField" + ), + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="force", + full_name="google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest.force", + index=1, + number=2, + type=8, + cpp_type=7, + label=1, + has_default_value=False, + default_value=False, message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\001"), + serialized_options=_b("\340A\002"), file=DESCRIPTOR, ), ], @@ -1658,21 +2054,21 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=4161, - serialized_end=4398, + serialized_start=5177, + serialized_end=5295, ) -_RENAMETAGTEMPLATEFIELDREQUEST = _descriptor.Descriptor( - name="RenameTagTemplateFieldRequest", - full_name="google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest", +_LISTTAGSREQUEST = _descriptor.Descriptor( + name="ListTagsRequest", + full_name="google.cloud.datacatalog.v1beta1.ListTagsRequest", filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name="name", - full_name="google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest.name", + name="parent", + full_name="google.cloud.datacatalog.v1beta1.ListTagsRequest.parent", index=0, number=1, type=9, @@ -1686,15 +2082,33 @@ is_extension=False, extension_scope=None, serialized_options=_b( - "\340A\002\372A-\n+datacatalog.googleapis.com/TagTemplateField" + "\340A\002\372A \022\036datacatalog.googleapis.com/Tag" ), file=DESCRIPTOR, ), _descriptor.FieldDescriptor( - name="new_tag_template_field_id", - full_name="google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest.new_tag_template_field_id", + name="page_size", + full_name="google.cloud.datacatalog.v1beta1.ListTagsRequest.page_size", index=1, number=2, + type=5, + cpp_type=1, + label=1, + has_default_value=False, + default_value=0, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), + _descriptor.FieldDescriptor( + name="page_token", + full_name="google.cloud.datacatalog.v1beta1.ListTagsRequest.page_token", + index=2, + number=3, type=9, cpp_type=9, label=1, @@ -1705,7 +2119,7 @@ containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=None, file=DESCRIPTOR, ), ], @@ -1717,54 +2131,52 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=4401, - serialized_end=4539, + serialized_start=5297, + serialized_end=5409, ) -_DELETETAGTEMPLATEFIELDREQUEST = _descriptor.Descriptor( - name="DeleteTagTemplateFieldRequest", - full_name="google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest", +_LISTTAGSRESPONSE = _descriptor.Descriptor( + name="ListTagsResponse", + full_name="google.cloud.datacatalog.v1beta1.ListTagsResponse", filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name="name", - full_name="google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest.name", + name="tags", + full_name="google.cloud.datacatalog.v1beta1.ListTagsResponse.tags", index=0, number=1, - type=9, - cpp_type=9, - label=1, + type=11, + cpp_type=10, + label=3, has_default_value=False, - default_value=_b("").decode("utf-8"), + default_value=[], message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b( - "\340A\002\372A-\n+datacatalog.googleapis.com/TagTemplateField" - ), + serialized_options=None, file=DESCRIPTOR, ), _descriptor.FieldDescriptor( - name="force", - full_name="google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest.force", + name="next_page_token", + full_name="google.cloud.datacatalog.v1beta1.ListTagsResponse.next_page_token", index=1, number=2, - type=8, - cpp_type=7, + type=9, + cpp_type=9, label=1, has_default_value=False, - default_value=False, + default_value=_b("").decode("utf-8"), message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, - serialized_options=_b("\340A\002"), + serialized_options=None, file=DESCRIPTOR, ), ], @@ -1776,21 +2188,21 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=4541, - serialized_end=4659, + serialized_start=5411, + serialized_end=5507, ) -_LISTTAGSREQUEST = _descriptor.Descriptor( - name="ListTagsRequest", - full_name="google.cloud.datacatalog.v1beta1.ListTagsRequest", +_LISTENTRIESREQUEST = _descriptor.Descriptor( + name="ListEntriesRequest", + full_name="google.cloud.datacatalog.v1beta1.ListEntriesRequest", filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( name="parent", - full_name="google.cloud.datacatalog.v1beta1.ListTagsRequest.parent", + full_name="google.cloud.datacatalog.v1beta1.ListEntriesRequest.parent", index=0, number=1, type=9, @@ -1804,13 +2216,13 @@ is_extension=False, extension_scope=None, serialized_options=_b( - "\340A\002\372A \022\036datacatalog.googleapis.com/Tag" + "\340A\002\372A'\n%datacatalog.googleapis.com/EntryGroup" ), file=DESCRIPTOR, ), _descriptor.FieldDescriptor( name="page_size", - full_name="google.cloud.datacatalog.v1beta1.ListTagsRequest.page_size", + full_name="google.cloud.datacatalog.v1beta1.ListEntriesRequest.page_size", index=1, number=2, type=5, @@ -1828,7 +2240,7 @@ ), _descriptor.FieldDescriptor( name="page_token", - full_name="google.cloud.datacatalog.v1beta1.ListTagsRequest.page_token", + full_name="google.cloud.datacatalog.v1beta1.ListEntriesRequest.page_token", index=2, number=3, type=9, @@ -1844,6 +2256,24 @@ serialized_options=None, file=DESCRIPTOR, ), + _descriptor.FieldDescriptor( + name="read_mask", + full_name="google.cloud.datacatalog.v1beta1.ListEntriesRequest.read_mask", + index=3, + number=4, + type=11, + cpp_type=10, + label=1, + has_default_value=False, + default_value=None, + message_type=None, + enum_type=None, + containing_type=None, + is_extension=False, + extension_scope=None, + serialized_options=None, + file=DESCRIPTOR, + ), ], extensions=[], nested_types=[], @@ -1853,21 +2283,21 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=4661, - serialized_end=4773, + serialized_start=5510, + serialized_end=5679, ) -_LISTTAGSRESPONSE = _descriptor.Descriptor( - name="ListTagsResponse", - full_name="google.cloud.datacatalog.v1beta1.ListTagsResponse", +_LISTENTRIESRESPONSE = _descriptor.Descriptor( + name="ListEntriesResponse", + full_name="google.cloud.datacatalog.v1beta1.ListEntriesResponse", filename=None, file=DESCRIPTOR, containing_type=None, fields=[ _descriptor.FieldDescriptor( - name="tags", - full_name="google.cloud.datacatalog.v1beta1.ListTagsResponse.tags", + name="entries", + full_name="google.cloud.datacatalog.v1beta1.ListEntriesResponse.entries", index=0, number=1, type=11, @@ -1885,7 +2315,7 @@ ), _descriptor.FieldDescriptor( name="next_page_token", - full_name="google.cloud.datacatalog.v1beta1.ListTagsResponse.next_page_token", + full_name="google.cloud.datacatalog.v1beta1.ListEntriesResponse.next_page_token", index=1, number=2, type=9, @@ -1910,8 +2340,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=4775, - serialized_end=4871, + serialized_start=5681, + serialized_end=5785, ) _SEARCHCATALOGREQUEST_SCOPE.containing_type = _SEARCHCATALOGREQUEST @@ -1922,9 +2352,14 @@ google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_search__pb2._SEARCHCATALOGRESULT ) _CREATEENTRYGROUPREQUEST.fields_by_name["entry_group"].message_type = _ENTRYGROUP +_UPDATEENTRYGROUPREQUEST.fields_by_name["entry_group"].message_type = _ENTRYGROUP +_UPDATEENTRYGROUPREQUEST.fields_by_name[ + "update_mask" +].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK _GETENTRYGROUPREQUEST.fields_by_name[ "read_mask" ].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_LISTENTRYGROUPSRESPONSE.fields_by_name["entry_groups"].message_type = _ENTRYGROUP _CREATEENTRYREQUEST.fields_by_name["entry"].message_type = _ENTRY _UPDATEENTRYREQUEST.fields_by_name["entry"].message_type = _ENTRY _UPDATEENTRYREQUEST.fields_by_name[ @@ -1943,6 +2378,11 @@ "sql_resource" ].containing_oneof = _LOOKUPENTRYREQUEST.oneofs_by_name["target_name"] _ENTRY.fields_by_name["type"].enum_type = _ENTRYTYPE +_ENTRY.fields_by_name[ + "integrated_system" +].enum_type = ( + google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_common__pb2._INTEGRATEDSYSTEM +) _ENTRY.fields_by_name[ "gcs_fileset_spec" ].message_type = ( @@ -1970,6 +2410,24 @@ ) _ENTRY.oneofs_by_name["entry_type"].fields.append(_ENTRY.fields_by_name["type"]) _ENTRY.fields_by_name["type"].containing_oneof = _ENTRY.oneofs_by_name["entry_type"] +_ENTRY.oneofs_by_name["entry_type"].fields.append( + _ENTRY.fields_by_name["user_specified_type"] +) +_ENTRY.fields_by_name["user_specified_type"].containing_oneof = _ENTRY.oneofs_by_name[ + "entry_type" +] +_ENTRY.oneofs_by_name["system"].fields.append( + _ENTRY.fields_by_name["integrated_system"] +) +_ENTRY.fields_by_name["integrated_system"].containing_oneof = _ENTRY.oneofs_by_name[ + "system" +] +_ENTRY.oneofs_by_name["system"].fields.append( + _ENTRY.fields_by_name["user_specified_system"] +) +_ENTRY.fields_by_name["user_specified_system"].containing_oneof = _ENTRY.oneofs_by_name[ + "system" +] _ENTRY.oneofs_by_name["type_spec"].fields.append( _ENTRY.fields_by_name["gcs_fileset_spec"] ) @@ -2031,11 +2489,18 @@ _LISTTAGSRESPONSE.fields_by_name[ "tags" ].message_type = google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_tags__pb2._TAG +_LISTENTRIESREQUEST.fields_by_name[ + "read_mask" +].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK +_LISTENTRIESRESPONSE.fields_by_name["entries"].message_type = _ENTRY DESCRIPTOR.message_types_by_name["SearchCatalogRequest"] = _SEARCHCATALOGREQUEST DESCRIPTOR.message_types_by_name["SearchCatalogResponse"] = _SEARCHCATALOGRESPONSE DESCRIPTOR.message_types_by_name["CreateEntryGroupRequest"] = _CREATEENTRYGROUPREQUEST +DESCRIPTOR.message_types_by_name["UpdateEntryGroupRequest"] = _UPDATEENTRYGROUPREQUEST DESCRIPTOR.message_types_by_name["GetEntryGroupRequest"] = _GETENTRYGROUPREQUEST DESCRIPTOR.message_types_by_name["DeleteEntryGroupRequest"] = _DELETEENTRYGROUPREQUEST +DESCRIPTOR.message_types_by_name["ListEntryGroupsRequest"] = _LISTENTRYGROUPSREQUEST +DESCRIPTOR.message_types_by_name["ListEntryGroupsResponse"] = _LISTENTRYGROUPSRESPONSE DESCRIPTOR.message_types_by_name["CreateEntryRequest"] = _CREATEENTRYREQUEST DESCRIPTOR.message_types_by_name["UpdateEntryRequest"] = _UPDATEENTRYREQUEST DESCRIPTOR.message_types_by_name["DeleteEntryRequest"] = _DELETEENTRYREQUEST @@ -2064,6 +2529,8 @@ ] = _DELETETAGTEMPLATEFIELDREQUEST DESCRIPTOR.message_types_by_name["ListTagsRequest"] = _LISTTAGSREQUEST DESCRIPTOR.message_types_by_name["ListTagsResponse"] = _LISTTAGSRESPONSE +DESCRIPTOR.message_types_by_name["ListEntriesRequest"] = _LISTENTRIESREQUEST +DESCRIPTOR.message_types_by_name["ListEntriesResponse"] = _LISTENTRIESRESPONSE DESCRIPTOR.enum_types_by_name["EntryType"] = _ENTRYTYPE _sym_db.RegisterFileDescriptor(DESCRIPTOR) @@ -2135,10 +2602,9 @@ order_by: Specifies the ordering of results, currently supported case- sensitive choices are: - ``relevance``, only supports - desecending - ``last_access_timestamp [asc|desc]``, defaults - to descending if not specified - ``last_modified_timestamp - [asc|desc]``, defaults to descending if not specified If - not specified, defaults to ``relevance`` descending. + descending - ``last_modified_timestamp [asc|desc]``, defaults + to descending if not specified If not specified, defaults + to ``relevance`` descending. """, # @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.SearchCatalogRequest) ), @@ -2197,6 +2663,28 @@ ) _sym_db.RegisterMessage(CreateEntryGroupRequest) +UpdateEntryGroupRequest = _reflection.GeneratedProtocolMessageType( + "UpdateEntryGroupRequest", + (_message.Message,), + dict( + DESCRIPTOR=_UPDATEENTRYGROUPREQUEST, + __module__="google.cloud.datacatalog_v1beta1.proto.datacatalog_pb2", + __doc__="""Request message for + [UpdateEntryGroup][google.cloud.datacatalog.v1beta1.DataCatalog.UpdateEntryGroup]. + + + Attributes: + entry_group: + Required. The updated entry group. "name" field must be set. + update_mask: + The fields to update on the entry group. If absent or empty, + all modifiable fields are updated. + """, + # @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.UpdateEntryGroupRequest) + ), +) +_sym_db.RegisterMessage(UpdateEntryGroupRequest) + GetEntryGroupRequest = _reflection.GeneratedProtocolMessageType( "GetEntryGroupRequest", (_message.Message,), @@ -2236,12 +2724,64 @@ Required. The name of the entry group. For example, ``projects /{project_id}/locations/{location}/entryGroups/{entry_group_id }``. + force: + Optional. If true, deletes all entries in the entry group. """, # @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest) ), ) _sym_db.RegisterMessage(DeleteEntryGroupRequest) +ListEntryGroupsRequest = _reflection.GeneratedProtocolMessageType( + "ListEntryGroupsRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTENTRYGROUPSREQUEST, + __module__="google.cloud.datacatalog_v1beta1.proto.datacatalog_pb2", + __doc__="""Request message for + [ListEntryGroups][google.cloud.datacatalog.v1beta1.DataCatalog.ListEntryGroups]. + + + Attributes: + parent: + Required. The name of the location that contains the entry + groups, which can be provided in URL format. Example: - + projects/{project\_id}/locations/{location} + page_size: + Optional. The maximum number of items to return. Default is + 10. Max limit is 1000. Throws an invalid argument for + ``page_size > 1000``. + page_token: + Optional. Token that specifies which page is requested. If + empty, the first page is returned. + """, + # @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.ListEntryGroupsRequest) + ), +) +_sym_db.RegisterMessage(ListEntryGroupsRequest) + +ListEntryGroupsResponse = _reflection.GeneratedProtocolMessageType( + "ListEntryGroupsResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTENTRYGROUPSRESPONSE, + __module__="google.cloud.datacatalog_v1beta1.proto.datacatalog_pb2", + __doc__="""Response message for + [ListEntryGroups][google.cloud.datacatalog.v1beta1.DataCatalog.ListEntryGroups]. + + + Attributes: + entry_groups: + EntryGroup details. + next_page_token: + Token to retrieve the next page of results. It is set to empty + if no items remain in results. + """, + # @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.ListEntryGroupsResponse) + ), +) +_sym_db.RegisterMessage(ListEntryGroupsResponse) + CreateEntryRequest = _reflection.GeneratedProtocolMessageType( "CreateEntryRequest", (_message.Message,), @@ -2288,7 +2828,11 @@ modifiable: \* For entries with type ``DATA_STREAM``: \* ``schema`` \* For entries with type ``FILESET`` \* ``schema`` \* ``display_name`` \* ``description`` \* ``gcs_fileset_spec`` - \* ``gcs_fileset_spec.file_patterns`` + \* ``gcs_fileset_spec.file_patterns`` \* For entries with + ``user_specified_type`` \* ``schema`` \* ``display_name`` \* + ``description`` \* user\_specified\_type \* + user\_specified\_system \* linked\_resource \* + source\_system\_timestamps """, # @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.UpdateEntryRequest) ), @@ -2330,11 +2874,7 @@ name: Required. The name of the entry. Example: - projects/{projec t\_id}/locations/{location}/entryGroups/{entry\_group\_id}/ent - ries/{entry\_id} Entry groups are logical groupings of - entries. Currently, users cannot create/modify entry groups. - They are created by Data Catalog; they include ``@bigquery`` - for all BigQuery entries, and ``@pubsub`` for all Cloud - Pub/Sub entries. + ries/{entry\_id} """, # @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.GetEntryRequest) ), @@ -2367,8 +2907,8 @@ Examples: - ``cloud_pubsub.project_id.topic_id`` - ``pubsub.project_id.`topic.id.with.dots``` - ``bigquery.table.project_id.dataset_id.table_id`` - - ``bigquery.dataset.project_id.dataset_id`` - - ``datacatalog.project_id.location_id.entry_group_id.entry_id`` + ``bigquery.dataset.project_id.dataset_id`` - ``datacatalog.en + try.project_id.location_id.entry_group_id.entry_id`` ``*_id``\ s shoud satisfy the standard SQL rules for identifiers. https://cloud.google.com/bigquery/docs/reference/standard- @@ -2386,10 +2926,10 @@ DESCRIPTOR=_ENTRY, __module__="google.cloud.datacatalog_v1beta1.proto.datacatalog_pb2", __doc__="""Entry Metadata. A Data Catalog Entry resource represents - another resource in Google Cloud Platform, such as a BigQuery dataset or - a Cloud Pub/Sub topic. Clients can use the ``linked_resource`` field in - the Entry resource to refer to the original resource ID of the source - system. + another resource in Google Cloud Platform (such as a BigQuery dataset or + a Cloud Pub/Sub topic), or outside of Google Cloud Platform. Clients can + use the ``linked_resource`` field in the Entry resource to refer to the + original resource ID of the source system. An Entry resource contains resource details, such as its schema. An Entry can also be used to attach flexible metadata, such as a @@ -2404,17 +2944,45 @@ Entry and its child resources may not actually be stored in the location in this name. linked_resource: - Output only. The resource this metadata entry refers to. For - Google Cloud Platform resources, ``linked_resource`` is the - `full name of the resource `__. For example, the + The resource this metadata entry refers to. For Google Cloud + Platform resources, ``linked_resource`` is the `full name of + the resource `__. For example, the ``linked_resource`` for a table resource from BigQuery is: - //bigquery.googleapis.com/projects/projectId/datasets/datasetI - d/tables/tableId + d/tables/tableId Output only when Entry is of type in the + EntryType enum. For entries with user\_specified\_type, this + field is optional and defaults to an empty string. entry_type: Required. Entry type. type: - The type of the entry. + The type of the entry. Only used for Entries with types in the + EntryType enum. + user_specified_type: + Entry type if it does not fit any of the input-allowed values + listed in ``EntryType`` enum above. When creating an entry, + users should check the enum values first, if nothing matches + the entry to be created, then provide a custom value, for + example "my\_special\_type". ``user_specified_type`` strings + must begin with a letter or underscore and can only contain + letters, numbers, and underscores; are case insensitive; must + be at least 1 character and at most 64 characters long. + Currently, only FILESET enum value is allowed. All other + entries created through Data Catalog must use + ``user_specified_type``. + system: + The source system of the entry. + integrated_system: + Output only. This field indicates the entry's source system + that Data Catalog integrates with, such as BigQuery or Cloud + Pub/Sub. + user_specified_system: + This field indicates the entry's source system that Data + Catalog does not integrate with. ``user_specified_system`` + strings must begin with a letter or underscore and can only + contain letters, numbers, and underscores; are case + insensitive; must be at least 1 character and at most 64 + characters long. type_spec: Type specification information. gcs_fileset_spec: @@ -2440,8 +3008,11 @@ Schema of the entry. An entry might not have any schema attached to it. source_system_timestamps: - Output only. Timestamps about the underlying Google Cloud - Platform resource, not about this Data Catalog Entry. + Output only. Timestamps about the underlying resource, not + about this Data Catalog entry. Output only when Entry is of + type in the EntryType enum. For entries with + user\_specified\_type, this field is optional and defaults to + an empty timestamp. """, # @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.Entry) ), @@ -2494,11 +3065,10 @@ Attributes: parent: - Required. The name of the project and the location this - template is in. Example: - - projects/{project\_id}/locations/{location} TagTemplate and - its child resources may not actually be stored in the location - in this name. + Required. The name of the project and the template location + `region `__. NOTE: + Currently, only the ``us-central1 region`` is supported. + Example: - projects/{project\_id}/locations/us-central1 tag_template_id: Required. The id of the tag template to create. tag_template: @@ -2661,10 +3231,11 @@ Attributes: parent: - Required. The name of the project this template is in. - Example: - projects/{project\_id}/locations/{location}/tagTe - mplates/{tag\_template\_id} Note that this TagTemplateField - may not actually be stored in the location in this name. + Required. The name of the project and the template location + `region `__. NOTE: + Currently, only the ``us-central1 region`` is supported. + Example: - projects/{project\_id}/locations/us- + central1/tagTemplates/{tag\_template\_id} tag_template_field_id: Required. The ID of the tag template field to create. Field ids can contain letters (both uppercase and lowercase), @@ -2776,7 +3347,11 @@ parent: Required. The name of the Data Catalog resource to list the tags of. The resource could be an - [Entry][google.cloud.datacatalog.v1beta1.Entry]. + [Entry][google.cloud.datacatalog.v1beta1.Entry] or an + [EntryGroup][google.cloud.datacatalog.v1beta1.EntryGroup]. + Examples: - projects/{project\_id}/locations/{location}/entr + yGroups/{entry\_group\_id} - projects/{project\_id}/locations + /{location}/entryGroups/{entry\_group\_id}/entries/{entry\_id} page_size: The maximum number of tags to return. Default is 10. Max limit is 1000. @@ -2811,6 +3386,62 @@ ) _sym_db.RegisterMessage(ListTagsResponse) +ListEntriesRequest = _reflection.GeneratedProtocolMessageType( + "ListEntriesRequest", + (_message.Message,), + dict( + DESCRIPTOR=_LISTENTRIESREQUEST, + __module__="google.cloud.datacatalog_v1beta1.proto.datacatalog_pb2", + __doc__="""Request message for + [ListEntries][google.cloud.datacatalog.v1beta1.DataCatalog.ListEntries]. + + + Attributes: + parent: + Required. The name of the entry group that contains the + entries, which can be provided in URL format. Example: - pro + jects/{project\_id}/locations/{location}/entryGroups/{entry\_g + roup\_id} + page_size: + The maximum number of items to return. Default is 10. Max + limit is 1000. Throws an invalid argument for ``page_size > + 1000``. + page_token: + Token that specifies which page is requested. If empty, the + first page is returned. + read_mask: + The fields to return for each Entry. If not set or empty, all + fields are returned. For example, setting read\_mask to + contain only one path "name" will cause ListEntries to return + a list of Entries with only "name" field. + """, + # @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.ListEntriesRequest) + ), +) +_sym_db.RegisterMessage(ListEntriesRequest) + +ListEntriesResponse = _reflection.GeneratedProtocolMessageType( + "ListEntriesResponse", + (_message.Message,), + dict( + DESCRIPTOR=_LISTENTRIESRESPONSE, + __module__="google.cloud.datacatalog_v1beta1.proto.datacatalog_pb2", + __doc__="""Response message for + [ListEntries][google.cloud.datacatalog.v1beta1.DataCatalog.ListEntries]. + + + Attributes: + entries: + Entry details. + next_page_token: + Token to retrieve the next page of results. It is set to empty + if no items remain in results. + """, + # @@protoc_insertion_point(class_scope:google.cloud.datacatalog.v1beta1.ListEntriesResponse) + ), +) +_sym_db.RegisterMessage(ListEntriesResponse) + DESCRIPTOR._options = None _SEARCHCATALOGREQUEST.fields_by_name["scope"]._options = None @@ -2818,8 +3449,13 @@ _SEARCHCATALOGREQUEST.fields_by_name["page_token"]._options = None _CREATEENTRYGROUPREQUEST.fields_by_name["parent"]._options = None _CREATEENTRYGROUPREQUEST.fields_by_name["entry_group_id"]._options = None +_UPDATEENTRYGROUPREQUEST.fields_by_name["entry_group"]._options = None _GETENTRYGROUPREQUEST.fields_by_name["name"]._options = None _DELETEENTRYGROUPREQUEST.fields_by_name["name"]._options = None +_DELETEENTRYGROUPREQUEST.fields_by_name["force"]._options = None +_LISTENTRYGROUPSREQUEST.fields_by_name["parent"]._options = None +_LISTENTRYGROUPSREQUEST.fields_by_name["page_size"]._options = None +_LISTENTRYGROUPSREQUEST.fields_by_name["page_token"]._options = None _CREATEENTRYREQUEST.fields_by_name["parent"]._options = None _CREATEENTRYREQUEST.fields_by_name["entry_id"]._options = None _CREATEENTRYREQUEST.fields_by_name["entry"]._options = None @@ -2827,7 +3463,7 @@ _DELETEENTRYREQUEST.fields_by_name["name"]._options = None _GETENTRYREQUEST.fields_by_name["name"]._options = None _ENTRY.fields_by_name["name"]._options = None -_ENTRY.fields_by_name["linked_resource"]._options = None +_ENTRY.fields_by_name["integrated_system"]._options = None _ENTRY.fields_by_name["source_system_timestamps"]._options = None _ENTRY._options = None _ENTRYGROUP.fields_by_name["data_catalog_timestamps"]._options = None @@ -2856,6 +3492,7 @@ _DELETETAGTEMPLATEFIELDREQUEST.fields_by_name["name"]._options = None _DELETETAGTEMPLATEFIELDREQUEST.fields_by_name["force"]._options = None _LISTTAGSREQUEST.fields_by_name["parent"]._options = None +_LISTENTRIESREQUEST.fields_by_name["parent"]._options = None _DATACATALOG = _descriptor.ServiceDescriptor( name="DataCatalog", @@ -2865,8 +3502,8 @@ serialized_options=_b( "\312A\032datacatalog.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platform" ), - serialized_start=4956, - serialized_end=10532, + serialized_start=5881, + serialized_end=12312, methods=[ _descriptor.MethodDescriptor( name="SearchCatalog", @@ -2890,10 +3527,21 @@ '\202\323\344\223\002C"4/v1beta1/{parent=projects/*/locations/*}/entryGroups:\013entry_group\332A!parent,entry_group_id,entry_group' ), ), + _descriptor.MethodDescriptor( + name="UpdateEntryGroup", + full_name="google.cloud.datacatalog.v1beta1.DataCatalog.UpdateEntryGroup", + index=2, + containing_service=None, + input_type=_UPDATEENTRYGROUPREQUEST, + output_type=_ENTRYGROUP, + serialized_options=_b( + "\202\323\344\223\002O2@/v1beta1/{entry_group.name=projects/*/locations/*/entryGroups/*}:\013entry_group\332A\013entry_group\332A\027entry_group,update_mask" + ), + ), _descriptor.MethodDescriptor( name="GetEntryGroup", full_name="google.cloud.datacatalog.v1beta1.DataCatalog.GetEntryGroup", - index=2, + index=3, containing_service=None, input_type=_GETENTRYGROUPREQUEST, output_type=_ENTRYGROUP, @@ -2904,7 +3552,7 @@ _descriptor.MethodDescriptor( name="DeleteEntryGroup", full_name="google.cloud.datacatalog.v1beta1.DataCatalog.DeleteEntryGroup", - index=3, + index=4, containing_service=None, input_type=_DELETEENTRYGROUPREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, @@ -2912,10 +3560,21 @@ "\202\323\344\223\0026*4/v1beta1/{name=projects/*/locations/*/entryGroups/*}\332A\004name" ), ), + _descriptor.MethodDescriptor( + name="ListEntryGroups", + full_name="google.cloud.datacatalog.v1beta1.DataCatalog.ListEntryGroups", + index=5, + containing_service=None, + input_type=_LISTENTRYGROUPSREQUEST, + output_type=_LISTENTRYGROUPSRESPONSE, + serialized_options=_b( + "\202\323\344\223\0026\0224/v1beta1/{parent=projects/*/locations/*}/entryGroups\332A\006parent" + ), + ), _descriptor.MethodDescriptor( name="CreateEntry", full_name="google.cloud.datacatalog.v1beta1.DataCatalog.CreateEntry", - index=4, + index=6, containing_service=None, input_type=_CREATEENTRYREQUEST, output_type=_ENTRY, @@ -2926,7 +3585,7 @@ _descriptor.MethodDescriptor( name="UpdateEntry", full_name="google.cloud.datacatalog.v1beta1.DataCatalog.UpdateEntry", - index=5, + index=7, containing_service=None, input_type=_UPDATEENTRYREQUEST, output_type=_ENTRY, @@ -2937,7 +3596,7 @@ _descriptor.MethodDescriptor( name="DeleteEntry", full_name="google.cloud.datacatalog.v1beta1.DataCatalog.DeleteEntry", - index=6, + index=8, containing_service=None, input_type=_DELETEENTRYREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, @@ -2948,7 +3607,7 @@ _descriptor.MethodDescriptor( name="GetEntry", full_name="google.cloud.datacatalog.v1beta1.DataCatalog.GetEntry", - index=7, + index=9, containing_service=None, input_type=_GETENTRYREQUEST, output_type=_ENTRY, @@ -2959,7 +3618,7 @@ _descriptor.MethodDescriptor( name="LookupEntry", full_name="google.cloud.datacatalog.v1beta1.DataCatalog.LookupEntry", - index=8, + index=10, containing_service=None, input_type=_LOOKUPENTRYREQUEST, output_type=_ENTRY, @@ -2967,10 +3626,21 @@ "\202\323\344\223\002\031\022\027/v1beta1/entries:lookup" ), ), + _descriptor.MethodDescriptor( + name="ListEntries", + full_name="google.cloud.datacatalog.v1beta1.DataCatalog.ListEntries", + index=11, + containing_service=None, + input_type=_LISTENTRIESREQUEST, + output_type=_LISTENTRIESRESPONSE, + serialized_options=_b( + "\202\323\344\223\002@\022>/v1beta1/{parent=projects/*/locations/*/entryGroups/*}/entries\332A\006parent" + ), + ), _descriptor.MethodDescriptor( name="CreateTagTemplate", full_name="google.cloud.datacatalog.v1beta1.DataCatalog.CreateTagTemplate", - index=9, + index=12, containing_service=None, input_type=_CREATETAGTEMPLATEREQUEST, output_type=google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_tags__pb2._TAGTEMPLATE, @@ -2981,7 +3651,7 @@ _descriptor.MethodDescriptor( name="GetTagTemplate", full_name="google.cloud.datacatalog.v1beta1.DataCatalog.GetTagTemplate", - index=10, + index=13, containing_service=None, input_type=_GETTAGTEMPLATEREQUEST, output_type=google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_tags__pb2._TAGTEMPLATE, @@ -2992,7 +3662,7 @@ _descriptor.MethodDescriptor( name="UpdateTagTemplate", full_name="google.cloud.datacatalog.v1beta1.DataCatalog.UpdateTagTemplate", - index=11, + index=14, containing_service=None, input_type=_UPDATETAGTEMPLATEREQUEST, output_type=google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_tags__pb2._TAGTEMPLATE, @@ -3003,7 +3673,7 @@ _descriptor.MethodDescriptor( name="DeleteTagTemplate", full_name="google.cloud.datacatalog.v1beta1.DataCatalog.DeleteTagTemplate", - index=12, + index=15, containing_service=None, input_type=_DELETETAGTEMPLATEREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, @@ -3014,7 +3684,7 @@ _descriptor.MethodDescriptor( name="CreateTagTemplateField", full_name="google.cloud.datacatalog.v1beta1.DataCatalog.CreateTagTemplateField", - index=13, + index=16, containing_service=None, input_type=_CREATETAGTEMPLATEFIELDREQUEST, output_type=google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_tags__pb2._TAGTEMPLATEFIELD, @@ -3025,7 +3695,7 @@ _descriptor.MethodDescriptor( name="UpdateTagTemplateField", full_name="google.cloud.datacatalog.v1beta1.DataCatalog.UpdateTagTemplateField", - index=14, + index=17, containing_service=None, input_type=_UPDATETAGTEMPLATEFIELDREQUEST, output_type=google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_tags__pb2._TAGTEMPLATEFIELD, @@ -3036,7 +3706,7 @@ _descriptor.MethodDescriptor( name="RenameTagTemplateField", full_name="google.cloud.datacatalog.v1beta1.DataCatalog.RenameTagTemplateField", - index=15, + index=18, containing_service=None, input_type=_RENAMETAGTEMPLATEFIELDREQUEST, output_type=google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_tags__pb2._TAGTEMPLATEFIELD, @@ -3047,7 +3717,7 @@ _descriptor.MethodDescriptor( name="DeleteTagTemplateField", full_name="google.cloud.datacatalog.v1beta1.DataCatalog.DeleteTagTemplateField", - index=16, + index=19, containing_service=None, input_type=_DELETETAGTEMPLATEFIELDREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, @@ -3058,62 +3728,62 @@ _descriptor.MethodDescriptor( name="CreateTag", full_name="google.cloud.datacatalog.v1beta1.DataCatalog.CreateTag", - index=17, + index=20, containing_service=None, input_type=_CREATETAGREQUEST, output_type=google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_tags__pb2._TAG, serialized_options=_b( - '\202\323\344\223\002L"E/v1beta1/{parent=projects/*/locations/*/entryGroups/*/entries/*}/tags:\003tag\332A\nparent,tag' + '\202\323\344\223\002\220\001"E/v1beta1/{parent=projects/*/locations/*/entryGroups/*/entries/*}/tags:\003tagZB";/v1beta1/{parent=projects/*/locations/*/entryGroups/*}/tags:\003tag\332A\nparent,tag' ), ), _descriptor.MethodDescriptor( name="UpdateTag", full_name="google.cloud.datacatalog.v1beta1.DataCatalog.UpdateTag", - index=18, + index=21, containing_service=None, input_type=_UPDATETAGREQUEST, output_type=google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_tags__pb2._TAG, serialized_options=_b( - "\202\323\344\223\002P2I/v1beta1/{tag.name=projects/*/locations/*/entryGroups/*/entries/*/tags/*}:\003tag\332A\003tag\332A\017tag,update_mask" + "\202\323\344\223\002\230\0012I/v1beta1/{tag.name=projects/*/locations/*/entryGroups/*/entries/*/tags/*}:\003tagZF2?/v1beta1/{tag.name=projects/*/locations/*/entryGroups/*/tags/*}:\003tag\332A\003tag\332A\017tag,update_mask" ), ), _descriptor.MethodDescriptor( name="DeleteTag", full_name="google.cloud.datacatalog.v1beta1.DataCatalog.DeleteTag", - index=19, + index=22, containing_service=None, input_type=_DELETETAGREQUEST, output_type=google_dot_protobuf_dot_empty__pb2._EMPTY, serialized_options=_b( - "\202\323\344\223\002G*E/v1beta1/{name=projects/*/locations/*/entryGroups/*/entries/*/tags/*}\332A\004name" + "\202\323\344\223\002\206\001*E/v1beta1/{name=projects/*/locations/*/entryGroups/*/entries/*/tags/*}Z=*;/v1beta1/{name=projects/*/locations/*/entryGroups/*/tags/*}\332A\004name" ), ), _descriptor.MethodDescriptor( name="ListTags", full_name="google.cloud.datacatalog.v1beta1.DataCatalog.ListTags", - index=20, + index=23, containing_service=None, input_type=_LISTTAGSREQUEST, output_type=_LISTTAGSRESPONSE, serialized_options=_b( - "\202\323\344\223\002G\022E/v1beta1/{parent=projects/*/locations/*/entryGroups/*/entries/*}/tags\332A\006parent" + "\202\323\344\223\002\206\001\022E/v1beta1/{parent=projects/*/locations/*/entryGroups/*/entries/*}/tagsZ=\022;/v1beta1/{parent=projects/*/locations/*/entryGroups/*}/tags\332A\006parent" ), ), _descriptor.MethodDescriptor( name="SetIamPolicy", full_name="google.cloud.datacatalog.v1beta1.DataCatalog.SetIamPolicy", - index=21, + index=24, containing_service=None, input_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._SETIAMPOLICYREQUEST, output_type=google_dot_iam_dot_v1_dot_policy__pb2._POLICY, serialized_options=_b( - '\202\323\344\223\002\355\001"F/v1beta1/{resource=projects/*/locations/*/tagTemplates/*}:setIamPolicy:\001*ZJ"E/v1beta1/{resource=projects/*/locations/*/entryGroups/*}:setIamPolicy:\001*ZT"O/v1beta1/{resource=projects/*/locations/*/entryGroups/*/entries/*}:setIamPolicy:\001*' + '\202\323\344\223\002\227\001"F/v1beta1/{resource=projects/*/locations/*/tagTemplates/*}:setIamPolicy:\001*ZJ"E/v1beta1/{resource=projects/*/locations/*/entryGroups/*}:setIamPolicy:\001*' ), ), _descriptor.MethodDescriptor( name="GetIamPolicy", full_name="google.cloud.datacatalog.v1beta1.DataCatalog.GetIamPolicy", - index=22, + index=25, containing_service=None, input_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._GETIAMPOLICYREQUEST, output_type=google_dot_iam_dot_v1_dot_policy__pb2._POLICY, @@ -3124,7 +3794,7 @@ _descriptor.MethodDescriptor( name="TestIamPermissions", full_name="google.cloud.datacatalog.v1beta1.DataCatalog.TestIamPermissions", - index=23, + index=26, containing_service=None, input_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._TESTIAMPERMISSIONSREQUEST, output_type=google_dot_iam_dot_v1_dot_iam__policy__pb2._TESTIAMPERMISSIONSRESPONSE, diff --git a/google/cloud/datacatalog_v1beta1/proto/datacatalog_pb2_grpc.py b/google/cloud/datacatalog_v1beta1/proto/datacatalog_pb2_grpc.py index 3364f7f2..c84f45d5 100644 --- a/google/cloud/datacatalog_v1beta1/proto/datacatalog_pb2_grpc.py +++ b/google/cloud/datacatalog_v1beta1/proto/datacatalog_pb2_grpc.py @@ -33,6 +33,11 @@ def __init__(self, channel): request_serializer=google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_datacatalog__pb2.CreateEntryGroupRequest.SerializeToString, response_deserializer=google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_datacatalog__pb2.EntryGroup.FromString, ) + self.UpdateEntryGroup = channel.unary_unary( + "/google.cloud.datacatalog.v1beta1.DataCatalog/UpdateEntryGroup", + request_serializer=google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_datacatalog__pb2.UpdateEntryGroupRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_datacatalog__pb2.EntryGroup.FromString, + ) self.GetEntryGroup = channel.unary_unary( "/google.cloud.datacatalog.v1beta1.DataCatalog/GetEntryGroup", request_serializer=google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_datacatalog__pb2.GetEntryGroupRequest.SerializeToString, @@ -43,6 +48,11 @@ def __init__(self, channel): request_serializer=google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_datacatalog__pb2.DeleteEntryGroupRequest.SerializeToString, response_deserializer=google_dot_protobuf_dot_empty__pb2.Empty.FromString, ) + self.ListEntryGroups = channel.unary_unary( + "/google.cloud.datacatalog.v1beta1.DataCatalog/ListEntryGroups", + request_serializer=google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_datacatalog__pb2.ListEntryGroupsRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_datacatalog__pb2.ListEntryGroupsResponse.FromString, + ) self.CreateEntry = channel.unary_unary( "/google.cloud.datacatalog.v1beta1.DataCatalog/CreateEntry", request_serializer=google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_datacatalog__pb2.CreateEntryRequest.SerializeToString, @@ -68,6 +78,11 @@ def __init__(self, channel): request_serializer=google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_datacatalog__pb2.LookupEntryRequest.SerializeToString, response_deserializer=google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_datacatalog__pb2.Entry.FromString, ) + self.ListEntries = channel.unary_unary( + "/google.cloud.datacatalog.v1beta1.DataCatalog/ListEntries", + request_serializer=google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_datacatalog__pb2.ListEntriesRequest.SerializeToString, + response_deserializer=google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_datacatalog__pb2.ListEntriesResponse.FromString, + ) self.CreateTagTemplate = channel.unary_unary( "/google.cloud.datacatalog.v1beta1.DataCatalog/CreateTagTemplate", request_serializer=google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_datacatalog__pb2.CreateTagTemplateRequest.SerializeToString, @@ -159,10 +174,10 @@ def SearchCatalog(self, request, context): the complete resource, only the resource identifier and high level fields. Clients can subsequentally call `Get` methods. - Note that searches do not have full recall. There may be results that match - your query but are not returned, even in subsequent pages of results. These - missing results may vary across repeated calls to search. Do not rely on - this method if you need to guarantee full recall. + Note that Data Catalog search queries do not guarantee full recall. Query + results that match your query may not be returned, even in subsequent + result pages. Also note that results returned (and not returned) can vary + across repeated search queries. See [Data Catalog Search Syntax](/data-catalog/docs/how-to/search-reference) for more information. @@ -172,9 +187,22 @@ def SearchCatalog(self, request, context): raise NotImplementedError("Method not implemented!") def CreateEntryGroup(self, request, context): - """Alpha feature. - Creates an EntryGroup. - The user should enable the Data Catalog API in the project identified by + """Creates an EntryGroup. + + An entry group contains logically related entries together with Cloud + Identity and Access Management policies that specify the users who can + create, edit, and view entries within the entry group. + + Data Catalog automatically creates an entry group for BigQuery entries + ("@bigquery") and Pub/Sub topics ("@pubsub"). Users create their own entry + group to contain Cloud Storage fileset entries or custom type entries, + and the IAM policies associated with those entries. Entry groups, like + entries, can be searched. + + A maximum of 10,000 entry groups may be created per organization across all + locations. + + Users should enable the Data Catalog API in the project identified by the `parent` parameter (see [Data Catalog Resource Project] (/data-catalog/docs/concepts/resource-project) for more information). """ @@ -182,18 +210,26 @@ def CreateEntryGroup(self, request, context): context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") + def UpdateEntryGroup(self, request, context): + """Updates an EntryGroup. The user should enable the Data Catalog API in the + project identified by the `entry_group.name` parameter (see [Data Catalog + Resource Project] (/data-catalog/docs/concepts/resource-project) for more + information). + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") + def GetEntryGroup(self, request, context): - """Alpha feature. - Gets an EntryGroup. + """Gets an EntryGroup. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") def DeleteEntryGroup(self, request, context): - """Alpha feature. - Deletes an EntryGroup. Only entry groups that do not contain entries can be - deleted. The user should enable the Data Catalog API in the project + """Deletes an EntryGroup. Only entry groups that do not contain entries can be + deleted. Users should enable the Data Catalog API in the project identified by the `name` parameter (see [Data Catalog Resource Project] (/data-catalog/docs/concepts/resource-project) for more information). """ @@ -201,12 +237,22 @@ def DeleteEntryGroup(self, request, context): context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") + def ListEntryGroups(self, request, context): + """Lists entry groups. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") + def CreateEntry(self, request, context): - """Alpha feature. - Creates an entry. Currently only entries of 'FILESET' type can be created. - The user should enable the Data Catalog API in the project identified by + """Creates an entry. Only entries of 'FILESET' type or user-specified type can + be created. + + Users should enable the Data Catalog API in the project identified by the `parent` parameter (see [Data Catalog Resource Project] (/data-catalog/docs/concepts/resource-project) for more information). + + A maximum of 100,000 entries may be created per entry group. """ context.set_code(grpc.StatusCode.UNIMPLEMENTED) context.set_details("Method not implemented!") @@ -214,7 +260,7 @@ def CreateEntry(self, request, context): def UpdateEntry(self, request, context): """Updates an existing entry. - The user should enable the Data Catalog API in the project identified by + Users should enable the Data Catalog API in the project identified by the `entry.name` parameter (see [Data Catalog Resource Project] (/data-catalog/docs/concepts/resource-project) for more information). """ @@ -223,11 +269,10 @@ def UpdateEntry(self, request, context): raise NotImplementedError("Method not implemented!") def DeleteEntry(self, request, context): - """Alpha feature. - Deletes an existing entry. Only entries created through + """Deletes an existing entry. Only entries created through [CreateEntry][google.cloud.datacatalog.v1beta1.DataCatalog.CreateEntry] method can be deleted. - The user should enable the Data Catalog API in the project identified by + Users should enable the Data Catalog API in the project identified by the `name` parameter (see [Data Catalog Resource Project] (/data-catalog/docs/concepts/resource-project) for more information). """ @@ -251,6 +296,13 @@ def LookupEntry(self, request, context): context.set_details("Method not implemented!") raise NotImplementedError("Method not implemented!") + def ListEntries(self, request, context): + """Lists entries. + """ + context.set_code(grpc.StatusCode.UNIMPLEMENTED) + context.set_details("Method not implemented!") + raise NotImplementedError("Method not implemented!") + def CreateTagTemplate(self, request, context): """Creates a tag template. The user should enable the Data Catalog API in the project identified by the `parent` parameter (see [Data Catalog @@ -272,7 +324,7 @@ def UpdateTagTemplate(self, request, context): """Updates a tag template. This method cannot be used to update the fields of a template. The tag template fields are represented as separate resources and should be updated using their own create/update/delete methods. - The user should enable the Data Catalog API in the project identified by + Users should enable the Data Catalog API in the project identified by the `tag_template.name` parameter (see [Data Catalog Resource Project] (/data-catalog/docs/concepts/resource-project) for more information). """ @@ -282,7 +334,7 @@ def UpdateTagTemplate(self, request, context): def DeleteTagTemplate(self, request, context): """Deletes a tag template and all tags using the template. - The user should enable the Data Catalog API in the project identified by + Users should enable the Data Catalog API in the project identified by the `name` parameter (see [Data Catalog Resource Project] (/data-catalog/docs/concepts/resource-project) for more information). """ @@ -303,7 +355,7 @@ def CreateTagTemplateField(self, request, context): def UpdateTagTemplateField(self, request, context): """Updates a field in a tag template. This method cannot be used to update the - field type. The user should enable the Data Catalog API in the project + field type. Users should enable the Data Catalog API in the project identified by the `name` parameter (see [Data Catalog Resource Project] (/data-catalog/docs/concepts/resource-project) for more information). """ @@ -323,7 +375,7 @@ def RenameTagTemplateField(self, request, context): def DeleteTagTemplateField(self, request, context): """Deletes a field in a tag template and all uses of that field. - The user should enable the Data Catalog API in the project identified by + Users should enable the Data Catalog API in the project identified by the `name` parameter (see [Data Catalog Resource Project] (/data-catalog/docs/concepts/resource-project) for more information). """ @@ -442,6 +494,11 @@ def add_DataCatalogServicer_to_server(servicer, server): request_deserializer=google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_datacatalog__pb2.CreateEntryGroupRequest.FromString, response_serializer=google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_datacatalog__pb2.EntryGroup.SerializeToString, ), + "UpdateEntryGroup": grpc.unary_unary_rpc_method_handler( + servicer.UpdateEntryGroup, + request_deserializer=google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_datacatalog__pb2.UpdateEntryGroupRequest.FromString, + response_serializer=google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_datacatalog__pb2.EntryGroup.SerializeToString, + ), "GetEntryGroup": grpc.unary_unary_rpc_method_handler( servicer.GetEntryGroup, request_deserializer=google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_datacatalog__pb2.GetEntryGroupRequest.FromString, @@ -452,6 +509,11 @@ def add_DataCatalogServicer_to_server(servicer, server): request_deserializer=google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_datacatalog__pb2.DeleteEntryGroupRequest.FromString, response_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString, ), + "ListEntryGroups": grpc.unary_unary_rpc_method_handler( + servicer.ListEntryGroups, + request_deserializer=google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_datacatalog__pb2.ListEntryGroupsRequest.FromString, + response_serializer=google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_datacatalog__pb2.ListEntryGroupsResponse.SerializeToString, + ), "CreateEntry": grpc.unary_unary_rpc_method_handler( servicer.CreateEntry, request_deserializer=google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_datacatalog__pb2.CreateEntryRequest.FromString, @@ -477,6 +539,11 @@ def add_DataCatalogServicer_to_server(servicer, server): request_deserializer=google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_datacatalog__pb2.LookupEntryRequest.FromString, response_serializer=google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_datacatalog__pb2.Entry.SerializeToString, ), + "ListEntries": grpc.unary_unary_rpc_method_handler( + servicer.ListEntries, + request_deserializer=google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_datacatalog__pb2.ListEntriesRequest.FromString, + response_serializer=google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_datacatalog__pb2.ListEntriesResponse.SerializeToString, + ), "CreateTagTemplate": grpc.unary_unary_rpc_method_handler( servicer.CreateTagTemplate, request_deserializer=google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_datacatalog__pb2.CreateTagTemplateRequest.FromString, diff --git a/google/cloud/datacatalog_v1beta1/proto/gcs_fileset_spec_pb2.py b/google/cloud/datacatalog_v1beta1/proto/gcs_fileset_spec_pb2.py index 695ebcdd..ba119bc0 100644 --- a/google/cloud/datacatalog_v1beta1/proto/gcs_fileset_spec_pb2.py +++ b/google/cloud/datacatalog_v1beta1/proto/gcs_fileset_spec_pb2.py @@ -192,7 +192,7 @@ file_patterns: Required. Patterns to identify a set of files in Google Cloud Storage. See `Cloud Storage documentation - `__ for more + `__ for more information. Note that bucket wildcards are currently not supported. Examples of valid file\_patterns: - ``gs://bucket_name/dir/*``: matches all files within @@ -200,10 +200,19 @@ matches all files in ``bucket_name/dir`` spanning all subdirectories. - ``gs://bucket_name/file*``: matches files prefixed by ``file`` in ``bucket_name`` - - ``gs://bucket_name/a/*/b``: matches all files in - ``bucket_name`` that match ``a/*/b`` pattern, such as - ``a/c/b``, ``a/d/b`` - ``gs://another_bucket/a.txt``: matches - ``gs://another_bucket/a.txt`` + ``gs://bucket_name/??.txt``: matches files with two characters + followed by ``.txt`` in ``bucket_name`` - + ``gs://bucket_name/[aeiou].txt``: matches files that contain a + single vowel character followed by ``.txt`` in + ``bucket_name`` - ``gs://bucket_name/[a-m].txt``: matches + files that contain ``a``, ``b``, ... or ``m`` followed by + ``.txt`` in ``bucket_name`` - ``gs://bucket_name/a/*/b``: + matches all files in ``bucket_name`` that match ``a/*/b`` + pattern, such as ``a/c/b``, ``a/d/b`` - + ``gs://another_bucket/a.txt``: matches + ``gs://another_bucket/a.txt`` You can combine wildcards to + provide more powerful matches, for example: - + ``gs://bucket_name/[a-m]??.j*g`` sample_gcs_file_specs: Output only. Sample files contained in this fileset, not all files contained in this fileset are represented here. diff --git a/google/cloud/datacatalog_v1beta1/proto/policytagmanager_pb2.py b/google/cloud/datacatalog_v1beta1/proto/policytagmanager_pb2.py index 9aefa451..ef97ea55 100644 --- a/google/cloud/datacatalog_v1beta1/proto/policytagmanager_pb2.py +++ b/google/cloud/datacatalog_v1beta1/proto/policytagmanager_pb2.py @@ -1027,9 +1027,9 @@ __module__="google.cloud.datacatalog_v1beta1.proto.policytagmanager_pb2", __doc__="""Denotes one policy tag in a taxonomy (e.g. ssn). Policy Tags can be defined in a hierarchy. For example, consider the following - hierachy: Geolocation \| ------------------------------------ \| \| \| - LatLong City ZipCode PolicyTag "Geolocation" contains three child policy - tags: "LatLong", "City", and "ZipCode". + hierarchy: Geolocation -> (LatLong, City, ZipCode). PolicyTag + "Geolocation" contains three child policy tags: "LatLong", "City", and + "ZipCode". Attributes: diff --git a/google/cloud/datacatalog_v1beta1/proto/search_pb2.py b/google/cloud/datacatalog_v1beta1/proto/search_pb2.py index 77a5f5e2..f5cde2e1 100644 --- a/google/cloud/datacatalog_v1beta1/proto/search_pb2.py +++ b/google/cloud/datacatalog_v1beta1/proto/search_pb2.py @@ -17,6 +17,9 @@ from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2 +from google.cloud.datacatalog_v1beta1.proto import ( + common_pb2 as google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_common__pb2, +) from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 @@ -28,10 +31,11 @@ "\n$com.google.cloud.datacatalog.v1beta1P\001ZKgoogle.golang.org/genproto/googleapis/cloud/datacatalog/v1beta1;datacatalog\370\001\001" ), serialized_pb=_b( - '\n3google/cloud/datacatalog_v1beta1/proto/search.proto\x12 google.cloud.datacatalog.v1beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xbd\x01\n\x13SearchCatalogResult\x12N\n\x12search_result_type\x18\x01 \x01(\x0e\x32\x32.google.cloud.datacatalog.v1beta1.SearchResultType\x12\x1d\n\x15search_result_subtype\x18\x02 \x01(\t\x12\x1e\n\x16relative_resource_name\x18\x03 \x01(\t\x12\x17\n\x0flinked_resource\x18\x04 \x01(\t*d\n\x10SearchResultType\x12"\n\x1eSEARCH_RESULT_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x45NTRY\x10\x01\x12\x10\n\x0cTAG_TEMPLATE\x10\x02\x12\x0f\n\x0b\x45NTRY_GROUP\x10\x03\x42x\n$com.google.cloud.datacatalog.v1beta1P\x01ZKgoogle.golang.org/genproto/googleapis/cloud/datacatalog/v1beta1;datacatalog\xf8\x01\x01\x62\x06proto3' + '\n3google/cloud/datacatalog_v1beta1/proto/search.proto\x12 google.cloud.datacatalog.v1beta1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x33google/cloud/datacatalog_v1beta1/proto/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto"\xbd\x01\n\x13SearchCatalogResult\x12N\n\x12search_result_type\x18\x01 \x01(\x0e\x32\x32.google.cloud.datacatalog.v1beta1.SearchResultType\x12\x1d\n\x15search_result_subtype\x18\x02 \x01(\t\x12\x1e\n\x16relative_resource_name\x18\x03 \x01(\t\x12\x17\n\x0flinked_resource\x18\x04 \x01(\t*d\n\x10SearchResultType\x12"\n\x1eSEARCH_RESULT_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05\x45NTRY\x10\x01\x12\x10\n\x0cTAG_TEMPLATE\x10\x02\x12\x0f\n\x0b\x45NTRY_GROUP\x10\x03\x42x\n$com.google.cloud.datacatalog.v1beta1P\x01ZKgoogle.golang.org/genproto/googleapis/cloud/datacatalog/v1beta1;datacatalog\xf8\x01\x01\x62\x06proto3' ), dependencies=[ google_dot_api_dot_field__behavior__pb2.DESCRIPTOR, + google_dot_cloud_dot_datacatalog__v1beta1_dot_proto_dot_common__pb2.DESCRIPTOR, google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR, ], ) @@ -61,8 +65,8 @@ ], containing_type=None, serialized_options=None, - serialized_start=347, - serialized_end=447, + serialized_start=400, + serialized_end=500, ) _sym_db.RegisterEnumDescriptor(_SEARCHRESULTTYPE) @@ -161,8 +165,8 @@ syntax="proto3", extension_ranges=[], oneofs=[], - serialized_start=156, - serialized_end=345, + serialized_start=209, + serialized_end=398, ) _SEARCHCATALOGRESULT.fields_by_name["search_result_type"].enum_type = _SEARCHRESULTTYPE diff --git a/google/cloud/datacatalog_v1beta1/proto/tags_pb2.py b/google/cloud/datacatalog_v1beta1/proto/tags_pb2.py index 40d947d7..4bb2509a 100644 --- a/google/cloud/datacatalog_v1beta1/proto/tags_pb2.py +++ b/google/cloud/datacatalog_v1beta1/proto/tags_pb2.py @@ -980,10 +980,13 @@ ), DESCRIPTOR=_TAGTEMPLATE, __module__="google.cloud.datacatalog_v1beta1.proto.tags_pb2", - __doc__="""A tag template defines the schema of the tags used to - attach to Data Catalog resources. It defines the mapping of accepted - field names and types that can be used within the tag. The tag template - also controls the access to the tag. + __doc__="""A tag template defines a tag, which can have one or more + typed fields. The template is used to create and attach the tag to GCP + resources. `Tag template + roles `__ provide + permissions to create, edit, and use the template (see, for example, the + `TagTemplate User `__ role, + which includes permission to use the tag template to tag resources. Attributes: diff --git a/noxfile.py b/noxfile.py index e6b163a9..b7e0c258 100644 --- a/noxfile.py +++ b/noxfile.py @@ -72,6 +72,7 @@ def default(session): session.run( "py.test", "--quiet", + "--cov=google.cloud.datacatalog ", "--cov=google.cloud", "--cov=tests.unit", "--cov-append", diff --git a/synth.metadata b/synth.metadata index bae1b6f8..35a1daee 100644 --- a/synth.metadata +++ b/synth.metadata @@ -1,26 +1,41 @@ { - "updateTime": "2020-01-31T20:49:59.852081Z", + "updateTime": "2020-02-19T02:20:31.997986Z", "sources": [ { "generator": { "name": "artman", - "version": "0.44.4", - "dockerImage": "googleapis/artman@sha256:19e945954fc960a4bdfee6cb34695898ab21a8cf0bac063ee39b91f00a1faec8" + "version": "0.45.0", + "dockerImage": "googleapis/artman@sha256:6aec9c34db0e4be221cdaf6faba27bdc07cfea846808b3d3b964dfce3a9a0f9b" + } + }, + { + "git": { + "name": ".", + "remote": "https://github.com/googleapis/python-datacatalog.git", + "sha": "22374c9ec227f5f403d25b67b174ff6bbf729914" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "2717b8a1c762b26911b45ecc2e4ee01d98401b28", - "internalRef": "292555664" + "sha": "ce4f4c21d9dd2bfab18873a80449b9d9851efde8", + "internalRef": "295861722", + "log": "ce4f4c21d9dd2bfab18873a80449b9d9851efde8\nasset: v1p1beta1 remove SearchResources and SearchIamPolicies\n\nPiperOrigin-RevId: 295861722\n\ncb61d6c2d070b589980c779b68ffca617f789116\nasset: v1p1beta1 remove SearchResources and SearchIamPolicies\n\nPiperOrigin-RevId: 295855449\n\nab2685d8d3a0e191dc8aef83df36773c07cb3d06\nfix: Dataproc v1 - AutoscalingPolicy annotation\n\nThis adds the second resource name pattern to the\nAutoscalingPolicy resource.\n\nCommitter: @lukesneeringer\nPiperOrigin-RevId: 295738415\n\n8a1020bf6828f6e3c84c3014f2c51cb62b739140\nUpdate cloud asset api v1p4beta1.\n\nPiperOrigin-RevId: 295286165\n\n5cfa105206e77670369e4b2225597386aba32985\nAdd service control related proto build rule.\n\nPiperOrigin-RevId: 295262088\n\nee4dddf805072004ab19ac94df2ce669046eec26\nmonitoring v3: Add prefix \"https://cloud.google.com/\" into the link for global access\ncl 295167522, get ride of synth.py hacks\n\nPiperOrigin-RevId: 295238095\n\nd9835e922ea79eed8497db270d2f9f85099a519c\nUpdate some minor docs changes about user event proto\n\nPiperOrigin-RevId: 295185610\n\n5f311e416e69c170243de722023b22f3df89ec1c\nfix: use correct PHP package name in gapic configuration\n\nPiperOrigin-RevId: 295161330\n\n6cdd74dcdb071694da6a6b5a206e3a320b62dd11\npubsub: v1 add client config annotations and retry config\n\nPiperOrigin-RevId: 295158776\n\n5169f46d9f792e2934d9fa25c36d0515b4fd0024\nAdded cloud asset api v1p4beta1.\n\nPiperOrigin-RevId: 295026522\n\n56b55aa8818cd0a532a7d779f6ef337ba809ccbd\nFix: Resource annotations for CreateTimeSeriesRequest and ListTimeSeriesRequest should refer to valid resources. TimeSeries is not a named resource.\n\nPiperOrigin-RevId: 294931650\n\n0646bc775203077226c2c34d3e4d50cc4ec53660\nRemove unnecessary languages from bigquery-related artman configuration files.\n\nPiperOrigin-RevId: 294809380\n\n8b78aa04382e3d4147112ad6d344666771bb1909\nUpdate backend.proto for schemes and protocol\n\nPiperOrigin-RevId: 294788800\n\n80b8f8b3de2359831295e24e5238641a38d8488f\nAdds artman config files for bigquerystorage endpoints v1beta2, v1alpha2, v1\n\nPiperOrigin-RevId: 294763931\n\n2c17ac33b226194041155bb5340c3f34733f1b3a\nAdd parameter to sample generated for UpdateInstance. Related to https://github.com/googleapis/python-redis/issues/4\n\nPiperOrigin-RevId: 294734008\n\nd5e8a8953f2acdfe96fb15e85eb2f33739623957\nMove bigquery datatransfer to gapic v2.\n\nPiperOrigin-RevId: 294703703\n\nefd36705972cfcd7d00ab4c6dfa1135bafacd4ae\nfix: Add two annotations that we missed.\n\nPiperOrigin-RevId: 294664231\n\n8a36b928873ff9c05b43859b9d4ea14cd205df57\nFix: Define the \"bigquery.googleapis.com/Table\" resource in the BigQuery Storage API (v1beta2).\n\nPiperOrigin-RevId: 294459768\n\nc7a3caa2c40c49f034a3c11079dd90eb24987047\nFix: Define the \"bigquery.googleapis.com/Table\" resource in the BigQuery Storage API (v1).\n\nPiperOrigin-RevId: 294456889\n\n5006247aa157e59118833658084345ee59af7c09\nFix: Make deprecated fields optional\nFix: Deprecate SetLoggingServiceRequest.zone in line with the comments\nFeature: Add resource name method signatures where appropriate\n\nPiperOrigin-RevId: 294383128\n\neabba40dac05c5cbe0fca3a35761b17e372036c4\nFix: C# and PHP package/namespace capitalization for BigQuery Storage v1.\n\nPiperOrigin-RevId: 294382444\n\nf8d9a858a7a55eba8009a23aa3f5cc5fe5e88dde\nfix: artman configuration file for bigtable-admin\n\nPiperOrigin-RevId: 294322616\n\n0f29555d1cfcf96add5c0b16b089235afbe9b1a9\nAPI definition for (not-yet-launched) GCS gRPC.\n\nPiperOrigin-RevId: 294321472\n\nfcc86bee0e84dc11e9abbff8d7c3529c0626f390\nfix: Bigtable Admin v2\n\nChange LRO metadata from PartialUpdateInstanceMetadata\nto UpdateInstanceMetadata. (Otherwise, it will not build.)\n\nPiperOrigin-RevId: 294264582\n\n6d9361eae2ebb3f42d8c7ce5baf4bab966fee7c0\nrefactor: Add annotations to Bigtable Admin v2.\n\nPiperOrigin-RevId: 294243406\n\nad7616f3fc8e123451c8b3a7987bc91cea9e6913\nFix: Resource type in CreateLogMetricRequest should use logging.googleapis.com.\nFix: ListLogEntries should have a method signature for convenience of calling it.\n\nPiperOrigin-RevId: 294222165\n\n63796fcbb08712676069e20a3e455c9f7aa21026\nFix: Remove extraneous resource definition for cloudkms.googleapis.com/CryptoKey.\n\nPiperOrigin-RevId: 294176658\n\ne7d8a694f4559201e6913f6610069cb08b39274e\nDepend on the latest gapic-generator and resource names plugin.\n\nThis fixes the very old an very annoying bug: https://github.com/googleapis/gapic-generator/pull/3087\n\nPiperOrigin-RevId: 293903652\n\n806b2854a966d55374ee26bb0cef4e30eda17b58\nfix: correct capitalization of Ruby namespaces in SecurityCenter V1p1beta1\n\nPiperOrigin-RevId: 293903613\n\n1b83c92462b14d67a7644e2980f723112472e03a\nPublish annotations and grpc service config for Logging API.\n\nPiperOrigin-RevId: 293893514\n\ne46f761cd6ec15a9e3d5ed4ff321a4bcba8e8585\nGenerate the Bazel build file for recommendengine public api\n\nPiperOrigin-RevId: 293710856\n\n68477017c4173c98addac0373950c6aa9d7b375f\nMake `language_code` optional for UpdateIntentRequest and BatchUpdateIntentsRequest.\n\nThe comments and proto annotations describe this parameter as optional.\n\nPiperOrigin-RevId: 293703548\n\n16f823f578bca4e845a19b88bb9bc5870ea71ab2\nAdd BUILD.bazel files for managedidentities API\n\nPiperOrigin-RevId: 293698246\n\n2f53fd8178c9a9de4ad10fae8dd17a7ba36133f2\nAdd v1p1beta1 config file\n\nPiperOrigin-RevId: 293696729\n\n052b274138fce2be80f97b6dcb83ab343c7c8812\nAdd source field for user event and add field behavior annotations\n\nPiperOrigin-RevId: 293693115\n\n1e89732b2d69151b1b3418fff3d4cc0434f0dded\ndatacatalog: v1beta1 add three new RPCs to gapic v1beta1 config\n\nPiperOrigin-RevId: 293692823\n\n9c8bd09bbdc7c4160a44f1fbab279b73cd7a2337\nchange the name of AccessApproval service to AccessApprovalAdmin\n\nPiperOrigin-RevId: 293690934\n\n2e23b8fbc45f5d9e200572ca662fe1271bcd6760\nAdd ListEntryGroups method, add http bindings to support entry group tagging, and update some comments.\n\nPiperOrigin-RevId: 293666452\n\n0275e38a4ca03a13d3f47a9613aac8c8b0d3f1f2\nAdd proto_package field to managedidentities API. It is needed for APIs that still depend on artman generation.\n\nPiperOrigin-RevId: 293643323\n\n4cdfe8278cb6f308106580d70648001c9146e759\nRegenerating public protos for Data Catalog to add new Custom Type Entry feature.\n\nPiperOrigin-RevId: 293614782\n\n45d2a569ab526a1fad3720f95eefb1c7330eaada\nEnable client generation for v1 ManagedIdentities API.\n\nPiperOrigin-RevId: 293515675\n\n2c17086b77e6f3bcf04a1f65758dfb0c3da1568f\nAdd the Actions on Google common types (//google/actions/type/*).\n\nPiperOrigin-RevId: 293478245\n\n781aadb932e64a12fb6ead7cd842698d99588433\nDialogflow weekly v2/v2beta1 library update:\n- Documentation updates\nImportant updates are also posted at\nhttps://cloud.google.com/dialogflow/docs/release-notes\n\nPiperOrigin-RevId: 293443396\n\ne2602608c9138c2fca24162720e67f9307c30b95\nDialogflow weekly v2/v2beta1 library update:\n- Documentation updates\nImportant updates are also posted at\nhttps://cloud.google.com/dialogflow/docs/release-notes\n\nPiperOrigin-RevId: 293442964\n\nc8aef82028d06b7992278fa9294c18570dc86c3d\nAdd cc_proto_library and cc_grpc_library targets for Bigtable protos.\n\nAlso fix indentation of cc_grpc_library targets in Spanner and IAM protos.\n\nPiperOrigin-RevId: 293440538\n\ne2faab04f4cb7f9755072330866689b1943a16e9\ncloudtasks: v2 replace non-standard retry params in gapic config v2\n\nPiperOrigin-RevId: 293424055\n\ndfb4097ea628a8470292c6590a4313aee0c675bd\nerrorreporting: v1beta1 add legacy artman config for php\n\nPiperOrigin-RevId: 293423790\n\nb18aed55b45bfe5b62476292c72759e6c3e573c6\nasset: v1p1beta1 updated comment for `page_size` limit.\n\nPiperOrigin-RevId: 293421386\n\nc9ef36b7956d9859a2fc86ad35fcaa16958ab44f\nbazel: Refactor CI build scripts\n\nPiperOrigin-RevId: 293387911\n\na8ed9d921fdddc61d8467bfd7c1668f0ad90435c\nfix: set Ruby module name for OrgPolicy\n\nPiperOrigin-RevId: 293257997\n\n6c7d28509bd8315de8af0889688ee20099594269\nredis: v1beta1 add UpgradeInstance and connect_mode field to Instance\n\nPiperOrigin-RevId: 293242878\n\nae0abed4fcb4c21f5cb67a82349a049524c4ef68\nredis: v1 add connect_mode field to Instance\n\nPiperOrigin-RevId: 293241914\n\n3f7a0d29b28ee9365771da2b66edf7fa2b4e9c56\nAdds service config definition for bigqueryreservation v1beta1\n\nPiperOrigin-RevId: 293234418\n\n0c88168d5ed6fe353a8cf8cbdc6bf084f6bb66a5\naddition of BUILD & configuration for accessapproval v1\n\nPiperOrigin-RevId: 293219198\n\n39bedc2e30f4778ce81193f6ba1fec56107bcfc4\naccessapproval: v1 publish protos\n\nPiperOrigin-RevId: 293167048\n\n69d9945330a5721cd679f17331a78850e2618226\nAdd file-level `Session` resource definition\n\nPiperOrigin-RevId: 293080182\n\nf6a1a6b417f39694275ca286110bc3c1ca4db0dc\nAdd file-level `Session` resource definition\n\nPiperOrigin-RevId: 293080178\n\n29d40b78e3dc1579b0b209463fbcb76e5767f72a\nExpose managedidentities/v1beta1/ API for client library usage.\n\nPiperOrigin-RevId: 292979741\n\na22129a1fb6e18056d576dfb7717aef74b63734a\nExpose managedidentities/v1/ API for client library usage.\n\nPiperOrigin-RevId: 292968186\n\nb5cbe4a4ba64ab19e6627573ff52057a1657773d\nSecurityCenter v1p1beta1: move file-level option on top to workaround protobuf.js bug.\n\nPiperOrigin-RevId: 292647187\n\nb224b317bf20c6a4fbc5030b4a969c3147f27ad3\nAdds API definitions for bigqueryreservation v1beta1.\n\nPiperOrigin-RevId: 292634722\n\nc1468702f9b17e20dd59007c0804a089b83197d2\nSynchronize new proto/yaml changes.\n\nPiperOrigin-RevId: 292626173\n\nffdfa4f55ab2f0afc11d0eb68f125ccbd5e404bd\nvision: v1p3beta1 publish annotations and retry config\n\nPiperOrigin-RevId: 292605599\n\n78f61482cd028fc1d9892aa5d89d768666a954cd\nvision: v1p1beta1 publish annotations and retry config\n\nPiperOrigin-RevId: 292605125\n\n60bb5a294a604fd1778c7ec87b265d13a7106171\nvision: v1p2beta1 publish annotations and retry config\n\nPiperOrigin-RevId: 292604980\n\n3bcf7aa79d45eb9ec29ab9036e9359ea325a7fc3\nvision: v1p4beta1 publish annotations and retry config\n\nPiperOrigin-RevId: 292604656\n\n" + } + }, + { + "git": { + "name": "synthtool", + "remote": "rpc://devrel/cloud/libraries/tools/autosynth", + "sha": "b4b7af4a16a07b40bfd8dcdda89f9f193ff4e2ed" } }, { "template": { "name": "python_split_library", "origin": "synthtool.gcp", - "version": "2019.10.17" + "version": "2020.2.4" } } ], diff --git a/tests/unit/gapic/v1beta1/test_data_catalog_client_v1beta1.py b/tests/unit/gapic/v1beta1/test_data_catalog_client_v1beta1.py index 0c2d7ed4..7077f28c 100644 --- a/tests/unit/gapic/v1beta1/test_data_catalog_client_v1beta1.py +++ b/tests/unit/gapic/v1beta1/test_data_catalog_client_v1beta1.py @@ -241,11 +241,15 @@ def test_create_entry(self): # Setup Expected Response name = "name3373707" linked_resource = "linkedResource1544625012" + user_specified_type = "userSpecifiedType-940364963" + user_specified_system = "userSpecifiedSystem-1776119406" display_name = "displayName1615086568" description = "description-1724546052" expected_response = { "name": name, "linked_resource": linked_resource, + "user_specified_type": user_specified_type, + "user_specified_system": user_specified_system, "display_name": display_name, "description": description, } @@ -293,11 +297,15 @@ def test_update_entry(self): # Setup Expected Response name = "name3373707" linked_resource = "linkedResource1544625012" + user_specified_type = "userSpecifiedType-940364963" + user_specified_system = "userSpecifiedSystem-1776119406" display_name = "displayName1615086568" description = "description-1724546052" expected_response = { "name": name, "linked_resource": linked_resource, + "user_specified_type": user_specified_type, + "user_specified_system": user_specified_system, "display_name": display_name, "description": description, } @@ -370,11 +378,15 @@ def test_get_entry(self): # Setup Expected Response name_2 = "name2-1052831874" linked_resource = "linkedResource1544625012" + user_specified_type = "userSpecifiedType-940364963" + user_specified_system = "userSpecifiedSystem-1776119406" display_name = "displayName1615086568" description = "description-1724546052" expected_response = { "name": name_2, "linked_resource": linked_resource, + "user_specified_type": user_specified_type, + "user_specified_system": user_specified_system, "display_name": display_name, "description": description, } @@ -416,11 +428,15 @@ def test_lookup_entry(self): # Setup Expected Response name = "name3373707" linked_resource = "linkedResource1544625012" + user_specified_type = "userSpecifiedType-940364963" + user_specified_system = "userSpecifiedSystem-1776119406" display_name = "displayName1615086568" description = "description-1724546052" expected_response = { "name": name, "linked_resource": linked_resource, + "user_specified_type": user_specified_type, + "user_specified_system": user_specified_system, "display_name": display_name, "description": description, } @@ -452,6 +468,128 @@ def test_lookup_entry_exception(self): with pytest.raises(CustomException): client.lookup_entry() + def test_list_entry_groups(self): + # Setup Expected Response + next_page_token = "nextPageToken-1530815211" + expected_response = {"next_page_token": next_page_token} + expected_response = datacatalog_pb2.ListEntryGroupsResponse(**expected_response) + + # Mock the API response + channel = ChannelStub(responses=[expected_response]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = datacatalog_v1beta1.DataCatalogClient() + + # Setup Request + parent = client.location_path("[PROJECT]", "[LOCATION]") + + response = client.list_entry_groups(parent) + assert expected_response == response + + assert len(channel.requests) == 1 + expected_request = datacatalog_pb2.ListEntryGroupsRequest(parent=parent) + actual_request = channel.requests[0][1] + assert expected_request == actual_request + + def test_list_entry_groups_exception(self): + # Mock the API response + channel = ChannelStub(responses=[CustomException()]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = datacatalog_v1beta1.DataCatalogClient() + + # Setup request + parent = client.location_path("[PROJECT]", "[LOCATION]") + + with pytest.raises(CustomException): + client.list_entry_groups(parent) + + def test_list_entries(self): + # Setup Expected Response + next_page_token = "nextPageToken-1530815211" + expected_response = {"next_page_token": next_page_token} + expected_response = datacatalog_pb2.ListEntriesResponse(**expected_response) + + # Mock the API response + channel = ChannelStub(responses=[expected_response]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = datacatalog_v1beta1.DataCatalogClient() + + # Setup Request + parent = client.entry_group_path("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]") + + response = client.list_entries(parent) + assert expected_response == response + + assert len(channel.requests) == 1 + expected_request = datacatalog_pb2.ListEntriesRequest(parent=parent) + actual_request = channel.requests[0][1] + assert expected_request == actual_request + + def test_list_entries_exception(self): + # Mock the API response + channel = ChannelStub(responses=[CustomException()]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = datacatalog_v1beta1.DataCatalogClient() + + # Setup request + parent = client.entry_group_path("[PROJECT]", "[LOCATION]", "[ENTRY_GROUP]") + + with pytest.raises(CustomException): + client.list_entries(parent) + + def test_update_entry_group(self): + # Setup Expected Response + name = "name3373707" + display_name = "displayName1615086568" + description = "description-1724546052" + expected_response = { + "name": name, + "display_name": display_name, + "description": description, + } + expected_response = datacatalog_pb2.EntryGroup(**expected_response) + + # Mock the API response + channel = ChannelStub(responses=[expected_response]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = datacatalog_v1beta1.DataCatalogClient() + + # Setup Request + entry_group = {} + + response = client.update_entry_group(entry_group) + assert expected_response == response + + assert len(channel.requests) == 1 + expected_request = datacatalog_pb2.UpdateEntryGroupRequest( + entry_group=entry_group + ) + actual_request = channel.requests[0][1] + assert expected_request == actual_request + + def test_update_entry_group_exception(self): + # Mock the API response + channel = ChannelStub(responses=[CustomException()]) + patch = mock.patch("google.api_core.grpc_helpers.create_channel") + with patch as create_channel: + create_channel.return_value = channel + client = datacatalog_v1beta1.DataCatalogClient() + + # Setup request + entry_group = {} + + with pytest.raises(CustomException): + client.update_entry_group(entry_group) + def test_create_tag_template(self): # Setup Expected Response name = "name3373707"