Skip to content

Commit 0da9e0a

Browse files
feat: [google-cloud-dataplex] A new field force is added to message .google.cloud.dataplex.v1.DeleteDataScanRequest (googleapis#13387)
- [ ] Regenerate this pull request now. BEGIN_COMMIT_OVERRIDE feat: A new field `force` is added to message `.google.cloud.dataplex.v1.DeleteDataScanRequest` docs: miscellaneous doc updates END_COMMIT_OVERRIDE PiperOrigin-RevId: 709139776 Source-Link: googleapis/googleapis@9e96614 Source-Link: https://github.com/googleapis/googleapis-gen/commit/ef1103d3dc3d293694e12fc83d9aa116196160d4 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRhdGFwbGV4Ly5Pd2xCb3QueWFtbCIsImgiOiJlZjExMDNkM2RjM2QyOTM2OTRlMTJmYzgzZDlhYTExNjE5NjE2MGQ0In0= --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 651dcb6 commit 0da9e0a

File tree

10 files changed

+49
-27
lines changed

10 files changed

+49
-27
lines changed

packages/google-cloud-dataplex/google/cloud/dataplex/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "2.5.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-dataplex/google/cloud/dataplex_v1/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "2.5.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-dataplex/google/cloud/dataplex_v1/services/catalog_service/async_client.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2976,8 +2976,10 @@ async def sample_search_entries():
29762976
on the ``request`` instance; if ``request`` is provided, this
29772977
should not be set.
29782978
query (:class:`str`):
2979-
Required. The query against which
2980-
entries in scope should be matched.
2979+
Required. The query against which entries in scope
2980+
should be matched. The query syntax is defined in
2981+
`Search syntax for Dataplex
2982+
Catalog <https://cloud.google.com/dataplex/docs/search-syntax>`__.
29812983
29822984
This corresponds to the ``query`` field
29832985
on the ``request`` instance; if ``request`` is provided, this

packages/google-cloud-dataplex/google/cloud/dataplex_v1/services/catalog_service/client.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3394,8 +3394,10 @@ def sample_search_entries():
33943394
on the ``request`` instance; if ``request`` is provided, this
33953395
should not be set.
33963396
query (str):
3397-
Required. The query against which
3398-
entries in scope should be matched.
3397+
Required. The query against which entries in scope
3398+
should be matched. The query syntax is defined in
3399+
`Search syntax for Dataplex
3400+
Catalog <https://cloud.google.com/dataplex/docs/search-syntax>`__.
33993401
34003402
This corresponds to the ``query`` field
34013403
on the ``request`` instance; if ``request`` is provided, this

packages/google-cloud-dataplex/google/cloud/dataplex_v1/services/data_scan_service/async_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ async def sample_update_data_scan():
542542
on the ``request`` instance; if ``request`` is provided, this
543543
should not be set.
544544
update_mask (:class:`google.protobuf.field_mask_pb2.FieldMask`):
545-
Required. Mask of fields to update.
545+
Optional. Mask of fields to update.
546546
This corresponds to the ``update_mask`` field
547547
on the ``request`` instance; if ``request`` is provided, this
548548
should not be set.

packages/google-cloud-dataplex/google/cloud/dataplex_v1/services/data_scan_service/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ def sample_update_data_scan():
10121012
on the ``request`` instance; if ``request`` is provided, this
10131013
should not be set.
10141014
update_mask (google.protobuf.field_mask_pb2.FieldMask):
1015-
Required. Mask of fields to update.
1015+
Optional. Mask of fields to update.
10161016
This corresponds to the ``update_mask`` field
10171017
on the ``request`` instance; if ``request`` is provided, this
10181018
should not be set.

packages/google-cloud-dataplex/google/cloud/dataplex_v1/types/catalog.py

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1625,7 +1625,7 @@ class UpdateEntryRequest(proto.Message):
16251625
an aspect to a field that is specified by the ``schema``
16261626
aspect, the path should have the format
16271627
``Schema.<field_name>``.
1628-
- ``<aspect_type_reference>*`` - matches aspects of the
1628+
- ``<aspect_type_reference>@*`` - matches aspects of the
16291629
given type for all paths.
16301630
- ``*@path`` - matches aspects of all types on the given
16311631
path.
@@ -1860,8 +1860,10 @@ class SearchEntriesRequest(proto.Message):
18601860
attributed in the following form:
18611861
``projects/{project}/locations/{location}``.
18621862
query (str):
1863-
Required. The query against which entries in
1864-
scope should be matched.
1863+
Required. The query against which entries in scope should be
1864+
matched. The query syntax is defined in `Search syntax for
1865+
Dataplex
1866+
Catalog <https://cloud.google.com/dataplex/docs/search-syntax>`__.
18651867
page_size (int):
18661868
Optional. Number of results in the search page. If <=0, then
18671869
defaults to 10. Max limit for page_size is 1000. Throws an
@@ -1871,7 +1873,12 @@ class SearchEntriesRequest(proto.Message):
18711873
``SearchEntries`` call. Provide this to retrieve the
18721874
subsequent page.
18731875
order_by (str):
1874-
Optional. Specifies the ordering of results.
1876+
Optional. Specifies the ordering of results. Supported
1877+
values are:
1878+
1879+
- ``relevance`` (default)
1880+
- ``last_modified_timestamp``
1881+
- ``last_modified_timestamp asc``
18751882
scope (str):
18761883
Optional. The scope under which the search should be
18771884
operating. It must either be ``organizations/<org_id>`` or
@@ -2035,12 +2042,12 @@ class ImportItem(proto.Message):
20352042
the entry.
20362043
- ``{aspect_type_reference}@{path}``: matches aspects that
20372044
belong to the specified aspect type and path.
2038-
- ``{aspect_type_reference}@*``: matches aspects that
2039-
belong to the specified aspect type for all paths.
2040-
2041-
Replace ``{aspect_type_reference}`` with a reference to the
2042-
aspect type, in the format
2043-
``{project_id_or_number}.{location_id}.{aspect_type_id}``.
2045+
- ``<aspect_type_reference>@*`` : matches aspects of the
2046+
given type for all paths.
2047+
- ``*@path`` : matches aspects of all types on the given
2048+
path. Replace ``{aspect_type_reference}`` with a
2049+
reference to the aspect type, in the format
2050+
``{project_id_or_number}.{location_id}.{aspect_type_id}``.
20442051
20452052
If you leave this field empty, it is treated as specifying
20462053
exactly those aspects that are present within the specified

packages/google-cloud-dataplex/google/cloud/dataplex_v1/types/datascans.py

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ class UpdateDataScanRequest(proto.Message):
123123
124124
Only fields specified in ``update_mask`` are updated.
125125
update_mask (google.protobuf.field_mask_pb2.FieldMask):
126-
Required. Mask of fields to update.
126+
Optional. Mask of fields to update.
127127
validate_only (bool):
128128
Optional. Only validate the request, but do not perform
129129
mutations. The default is ``false``.
@@ -154,12 +154,21 @@ class DeleteDataScanRequest(proto.Message):
154154
``projects/{project}/locations/{location_id}/dataScans/{data_scan_id}``
155155
where ``project`` refers to a *project_id* or
156156
*project_number* and ``location_id`` refers to a GCP region.
157+
force (bool):
158+
Optional. If set to true, any child resources
159+
of this data scan will also be deleted.
160+
(Otherwise, the request will only work if the
161+
data scan has no child resources.)
157162
"""
158163

159164
name: str = proto.Field(
160165
proto.STRING,
161166
number=1,
162167
)
168+
force: bool = proto.Field(
169+
proto.BOOL,
170+
number=2,
171+
)
163172

164173

165174
class GetDataScanRequest(proto.Message):
@@ -506,8 +515,8 @@ class DataScan(proto.Message):
506515
507516
Attributes:
508517
name (str):
509-
Output only. The relative resource name of the scan, of the
510-
form:
518+
Output only. Identifier. The relative resource name of the
519+
scan, of the form:
511520
``projects/{project}/locations/{location_id}/dataScans/{datascan_id}``,
512521
where ``project`` refers to a *project_id* or
513522
*project_number* and ``location_id`` refers to a GCP region.
@@ -615,9 +624,11 @@ class ExecutionStatus(proto.Message):
615624
616625
Attributes:
617626
latest_job_start_time (google.protobuf.timestamp_pb2.Timestamp):
618-
The time when the latest DataScanJob started.
627+
Optional. The time when the latest
628+
DataScanJob started.
619629
latest_job_end_time (google.protobuf.timestamp_pb2.Timestamp):
620-
The time when the latest DataScanJob ended.
630+
Optional. The time when the latest
631+
DataScanJob ended.
621632
latest_job_create_time (google.protobuf.timestamp_pb2.Timestamp):
622633
Optional. The time when the DataScanJob
623634
execution was created.
@@ -745,8 +756,8 @@ class DataScanJob(proto.Message):
745756
746757
Attributes:
747758
name (str):
748-
Output only. The relative resource name of the DataScanJob,
749-
of the form:
759+
Output only. Identifier. The relative resource name of the
760+
DataScanJob, of the form:
750761
``projects/{project}/locations/{location_id}/dataScans/{datascan_id}/jobs/{job_id}``,
751762
where ``project`` refers to a *project_id* or
752763
*project_number* and ``location_id`` refers to a GCP region.

packages/google-cloud-dataplex/samples/generated_samples/snippet_metadata_google.cloud.dataplex.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-dataplex",
11-
"version": "2.5.0"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

packages/google-cloud-dataplex/scripts/fixup_dataplex_v1_keywords.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ class dataplexCallTransformer(cst.CSTTransformer):
6363
'delete_content': ('name', ),
6464
'delete_data_attribute': ('name', 'etag', ),
6565
'delete_data_attribute_binding': ('name', 'etag', ),
66-
'delete_data_scan': ('name', ),
66+
'delete_data_scan': ('name', 'force', ),
6767
'delete_data_taxonomy': ('name', 'etag', ),
6868
'delete_entity': ('name', 'etag', ),
6969
'delete_entry': ('name', ),

0 commit comments

Comments
 (0)