diff --git a/Dataplex/metadata/V1/Datascans.php b/Dataplex/metadata/V1/Datascans.php
index 3c7017edb1c8..3f0c223ca621 100644
Binary files a/Dataplex/metadata/V1/Datascans.php and b/Dataplex/metadata/V1/Datascans.php differ
diff --git a/Dataplex/samples/V1/CatalogServiceClient/search_entries.php b/Dataplex/samples/V1/CatalogServiceClient/search_entries.php
index 277668d2fbb1..e93588c97df5 100644
--- a/Dataplex/samples/V1/CatalogServiceClient/search_entries.php
+++ b/Dataplex/samples/V1/CatalogServiceClient/search_entries.php
@@ -36,6 +36,8 @@
* following form: `projects/{project}/locations/{location}`. Please see
* {@see CatalogServiceClient::locationName()} for help formatting this field.
* @param string $query The query against which entries in scope should be matched.
+ * The query syntax is defined in [Search syntax for Dataplex
+ * Catalog](https://cloud.google.com/dataplex/docs/search-syntax).
*/
function search_entries_sample(string $formattedName, string $query): void
{
diff --git a/Dataplex/samples/V1/DataScanServiceClient/update_data_scan.php b/Dataplex/samples/V1/DataScanServiceClient/update_data_scan.php
index a72a6a8a64f5..277eb4057257 100644
--- a/Dataplex/samples/V1/DataScanServiceClient/update_data_scan.php
+++ b/Dataplex/samples/V1/DataScanServiceClient/update_data_scan.php
@@ -29,7 +29,6 @@
use Google\Cloud\Dataplex\V1\DataScan;
use Google\Cloud\Dataplex\V1\DataSource;
use Google\Cloud\Dataplex\V1\UpdateDataScanRequest;
-use Google\Protobuf\FieldMask;
use Google\Rpc\Status;
/**
@@ -50,10 +49,8 @@ function update_data_scan_sample(): void
$dataScanData = new DataSource();
$dataScan = (new DataScan())
->setData($dataScanData);
- $updateMask = new FieldMask();
$request = (new UpdateDataScanRequest())
- ->setDataScan($dataScan)
- ->setUpdateMask($updateMask);
+ ->setDataScan($dataScan);
// Call the API and handle any network failures.
try {
diff --git a/Dataplex/src/V1/DataScan.php b/Dataplex/src/V1/DataScan.php
index 8564e293463c..57658a627181 100644
--- a/Dataplex/src/V1/DataScan.php
+++ b/Dataplex/src/V1/DataScan.php
@@ -23,19 +23,19 @@
class DataScan extends \Google\Protobuf\Internal\Message
{
/**
- * Output only. The relative resource name of the scan, of the form:
- * `projects/{project}/locations/{location_id}/dataScans/{datascan_id}`,
+ * Output only. Identifier. The relative resource name of the scan, of the
+ * form: `projects/{project}/locations/{location_id}/dataScans/{datascan_id}`,
* where `project` refers to a *project_id* or *project_number* and
* `location_id` refers to a GCP region.
*
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
*/
protected $name = '';
/**
* Output only. System generated globally unique ID for the scan. This ID will
* be different if the scan is deleted and re-created with the same name.
*
- * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = {
*/
protected $uid = '';
/**
@@ -111,8 +111,8 @@ class DataScan extends \Google\Protobuf\Internal\Message
* Optional. Data for populating the Message object.
*
* @type string $name
- * Output only. The relative resource name of the scan, of the form:
- * `projects/{project}/locations/{location_id}/dataScans/{datascan_id}`,
+ * Output only. Identifier. The relative resource name of the scan, of the
+ * form: `projects/{project}/locations/{location_id}/dataScans/{datascan_id}`,
* where `project` refers to a *project_id* or *project_number* and
* `location_id` refers to a GCP region.
* @type string $uid
@@ -161,12 +161,12 @@ public function __construct($data = NULL) {
}
/**
- * Output only. The relative resource name of the scan, of the form:
- * `projects/{project}/locations/{location_id}/dataScans/{datascan_id}`,
+ * Output only. Identifier. The relative resource name of the scan, of the
+ * form: `projects/{project}/locations/{location_id}/dataScans/{datascan_id}`,
* where `project` refers to a *project_id* or *project_number* and
* `location_id` refers to a GCP region.
*
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
* @return string
*/
public function getName()
@@ -175,12 +175,12 @@ public function getName()
}
/**
- * Output only. The relative resource name of the scan, of the form:
- * `projects/{project}/locations/{location_id}/dataScans/{datascan_id}`,
+ * Output only. Identifier. The relative resource name of the scan, of the
+ * form: `projects/{project}/locations/{location_id}/dataScans/{datascan_id}`,
* where `project` refers to a *project_id* or *project_number* and
* `location_id` refers to a GCP region.
*
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
* @param string $var
* @return $this
*/
@@ -196,7 +196,7 @@ public function setName($var)
* Output only. System generated globally unique ID for the scan. This ID will
* be different if the scan is deleted and re-created with the same name.
*
- * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = {
* @return string
*/
public function getUid()
@@ -208,7 +208,7 @@ public function getUid()
* Output only. System generated globally unique ID for the scan. This ID will
* be different if the scan is deleted and re-created with the same name.
*
- * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = {
* @param string $var
* @return $this
*/
diff --git a/Dataplex/src/V1/DataScan/ExecutionStatus.php b/Dataplex/src/V1/DataScan/ExecutionStatus.php
index 3ffe1ed23e80..586ee5d62dc1 100644
--- a/Dataplex/src/V1/DataScan/ExecutionStatus.php
+++ b/Dataplex/src/V1/DataScan/ExecutionStatus.php
@@ -16,15 +16,15 @@
class ExecutionStatus extends \Google\Protobuf\Internal\Message
{
/**
- * The time when the latest DataScanJob started.
+ * Optional. The time when the latest DataScanJob started.
*
- * Generated from protobuf field .google.protobuf.Timestamp latest_job_start_time = 4;
+ * Generated from protobuf field .google.protobuf.Timestamp latest_job_start_time = 4 [(.google.api.field_behavior) = OPTIONAL];
*/
protected $latest_job_start_time = null;
/**
- * The time when the latest DataScanJob ended.
+ * Optional. The time when the latest DataScanJob ended.
*
- * Generated from protobuf field .google.protobuf.Timestamp latest_job_end_time = 5;
+ * Generated from protobuf field .google.protobuf.Timestamp latest_job_end_time = 5 [(.google.api.field_behavior) = OPTIONAL];
*/
protected $latest_job_end_time = null;
/**
@@ -41,9 +41,9 @@ class ExecutionStatus extends \Google\Protobuf\Internal\Message
* Optional. Data for populating the Message object.
*
* @type \Google\Protobuf\Timestamp $latest_job_start_time
- * The time when the latest DataScanJob started.
+ * Optional. The time when the latest DataScanJob started.
* @type \Google\Protobuf\Timestamp $latest_job_end_time
- * The time when the latest DataScanJob ended.
+ * Optional. The time when the latest DataScanJob ended.
* @type \Google\Protobuf\Timestamp $latest_job_create_time
* Optional. The time when the DataScanJob execution was created.
* }
@@ -54,9 +54,9 @@ public function __construct($data = NULL) {
}
/**
- * The time when the latest DataScanJob started.
+ * Optional. The time when the latest DataScanJob started.
*
- * Generated from protobuf field .google.protobuf.Timestamp latest_job_start_time = 4;
+ * Generated from protobuf field .google.protobuf.Timestamp latest_job_start_time = 4 [(.google.api.field_behavior) = OPTIONAL];
* @return \Google\Protobuf\Timestamp|null
*/
public function getLatestJobStartTime()
@@ -75,9 +75,9 @@ public function clearLatestJobStartTime()
}
/**
- * The time when the latest DataScanJob started.
+ * Optional. The time when the latest DataScanJob started.
*
- * Generated from protobuf field .google.protobuf.Timestamp latest_job_start_time = 4;
+ * Generated from protobuf field .google.protobuf.Timestamp latest_job_start_time = 4 [(.google.api.field_behavior) = OPTIONAL];
* @param \Google\Protobuf\Timestamp $var
* @return $this
*/
@@ -90,9 +90,9 @@ public function setLatestJobStartTime($var)
}
/**
- * The time when the latest DataScanJob ended.
+ * Optional. The time when the latest DataScanJob ended.
*
- * Generated from protobuf field .google.protobuf.Timestamp latest_job_end_time = 5;
+ * Generated from protobuf field .google.protobuf.Timestamp latest_job_end_time = 5 [(.google.api.field_behavior) = OPTIONAL];
* @return \Google\Protobuf\Timestamp|null
*/
public function getLatestJobEndTime()
@@ -111,9 +111,9 @@ public function clearLatestJobEndTime()
}
/**
- * The time when the latest DataScanJob ended.
+ * Optional. The time when the latest DataScanJob ended.
*
- * Generated from protobuf field .google.protobuf.Timestamp latest_job_end_time = 5;
+ * Generated from protobuf field .google.protobuf.Timestamp latest_job_end_time = 5 [(.google.api.field_behavior) = OPTIONAL];
* @param \Google\Protobuf\Timestamp $var
* @return $this
*/
diff --git a/Dataplex/src/V1/DataScanJob.php b/Dataplex/src/V1/DataScanJob.php
index 4a02706e3001..1ef4c79928fe 100644
--- a/Dataplex/src/V1/DataScanJob.php
+++ b/Dataplex/src/V1/DataScanJob.php
@@ -16,18 +16,19 @@
class DataScanJob extends \Google\Protobuf\Internal\Message
{
/**
- * Output only. The relative resource name of the DataScanJob, of the form:
+ * Output only. Identifier. The relative resource name of the DataScanJob, of
+ * the form:
* `projects/{project}/locations/{location_id}/dataScans/{datascan_id}/jobs/{job_id}`,
* where `project` refers to a *project_id* or *project_number* and
* `location_id` refers to a GCP region.
*
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
*/
protected $name = '';
/**
* Output only. System generated globally unique ID for the DataScanJob.
*
- * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = {
*/
protected $uid = '';
/**
@@ -76,7 +77,8 @@ class DataScanJob extends \Google\Protobuf\Internal\Message
* Optional. Data for populating the Message object.
*
* @type string $name
- * Output only. The relative resource name of the DataScanJob, of the form:
+ * Output only. Identifier. The relative resource name of the DataScanJob, of
+ * the form:
* `projects/{project}/locations/{location_id}/dataScans/{datascan_id}/jobs/{job_id}`,
* where `project` refers to a *project_id* or *project_number* and
* `location_id` refers to a GCP region.
@@ -114,12 +116,13 @@ public function __construct($data = NULL) {
}
/**
- * Output only. The relative resource name of the DataScanJob, of the form:
+ * Output only. Identifier. The relative resource name of the DataScanJob, of
+ * the form:
* `projects/{project}/locations/{location_id}/dataScans/{datascan_id}/jobs/{job_id}`,
* where `project` refers to a *project_id* or *project_number* and
* `location_id` refers to a GCP region.
*
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
* @return string
*/
public function getName()
@@ -128,12 +131,13 @@ public function getName()
}
/**
- * Output only. The relative resource name of the DataScanJob, of the form:
+ * Output only. Identifier. The relative resource name of the DataScanJob, of
+ * the form:
* `projects/{project}/locations/{location_id}/dataScans/{datascan_id}/jobs/{job_id}`,
* where `project` refers to a *project_id* or *project_number* and
* `location_id` refers to a GCP region.
*
- * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER];
* @param string $var
* @return $this
*/
@@ -148,7 +152,7 @@ public function setName($var)
/**
* Output only. System generated globally unique ID for the DataScanJob.
*
- * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = {
* @return string
*/
public function getUid()
@@ -159,7 +163,7 @@ public function getUid()
/**
* Output only. System generated globally unique ID for the DataScanJob.
*
- * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
+ * Generated from protobuf field string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = {
* @param string $var
* @return $this
*/
diff --git a/Dataplex/src/V1/DeleteDataScanRequest.php b/Dataplex/src/V1/DeleteDataScanRequest.php
index 613ef402d4ea..ca8703dff7a7 100644
--- a/Dataplex/src/V1/DeleteDataScanRequest.php
+++ b/Dataplex/src/V1/DeleteDataScanRequest.php
@@ -24,6 +24,14 @@ class DeleteDataScanRequest extends \Google\Protobuf\Internal\Message
* Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = {
*/
protected $name = '';
+ /**
+ * Optional. If set to true, any child resources of this data scan will also
+ * be deleted. (Otherwise, the request will only work if the data scan has no
+ * child resources.)
+ *
+ * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL];
+ */
+ protected $force = false;
/**
* @param string $name Required. The resource name of the dataScan:
@@ -53,6 +61,10 @@ public static function build(string $name): self
* `projects/{project}/locations/{location_id}/dataScans/{data_scan_id}`
* where `project` refers to a *project_id* or *project_number* and
* `location_id` refers to a GCP region.
+ * @type bool $force
+ * Optional. If set to true, any child resources of this data scan will also
+ * be deleted. (Otherwise, the request will only work if the data scan has no
+ * child resources.)
* }
*/
public function __construct($data = NULL) {
@@ -92,5 +104,35 @@ public function setName($var)
return $this;
}
+ /**
+ * Optional. If set to true, any child resources of this data scan will also
+ * be deleted. (Otherwise, the request will only work if the data scan has no
+ * child resources.)
+ *
+ * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL];
+ * @return bool
+ */
+ public function getForce()
+ {
+ return $this->force;
+ }
+
+ /**
+ * Optional. If set to true, any child resources of this data scan will also
+ * be deleted. (Otherwise, the request will only work if the data scan has no
+ * child resources.)
+ *
+ * Generated from protobuf field bool force = 2 [(.google.api.field_behavior) = OPTIONAL];
+ * @param bool $var
+ * @return $this
+ */
+ public function setForce($var)
+ {
+ GPBUtil::checkBool($var);
+ $this->force = $var;
+
+ return $this;
+ }
+
}
diff --git a/Dataplex/src/V1/ImportItem.php b/Dataplex/src/V1/ImportItem.php
index 15420b56d731..7da200146853 100644
--- a/Dataplex/src/V1/ImportItem.php
+++ b/Dataplex/src/V1/ImportItem.php
@@ -52,8 +52,9 @@ class ImportItem extends \Google\Protobuf\Internal\Message
* aspect type and are attached directly to the entry.
* * `{aspect_type_reference}@{path}`: matches aspects that belong to the
* specified aspect type and path.
- * * `{aspect_type_reference}@*`: matches aspects that belong to the specified
- * aspect type for all paths.
+ * * `@*` : matches aspects of the given type for all
+ * paths.
+ * * `*@path` : matches aspects of all types on the given path.
* Replace `{aspect_type_reference}` with a reference to the aspect type, in
* the format
* `{project_id_or_number}.{location_id}.{aspect_type_id}`.
@@ -95,8 +96,9 @@ class ImportItem extends \Google\Protobuf\Internal\Message
* aspect type and are attached directly to the entry.
* * `{aspect_type_reference}@{path}`: matches aspects that belong to the
* specified aspect type and path.
- * * `{aspect_type_reference}@*`: matches aspects that belong to the specified
- * aspect type for all paths.
+ * * `@*` : matches aspects of the given type for all
+ * paths.
+ * * `*@path` : matches aspects of all types on the given path.
* Replace `{aspect_type_reference}` with a reference to the aspect type, in
* the format
* `{project_id_or_number}.{location_id}.{aspect_type_id}`.
@@ -215,8 +217,9 @@ public function setUpdateMask($var)
* aspect type and are attached directly to the entry.
* * `{aspect_type_reference}@{path}`: matches aspects that belong to the
* specified aspect type and path.
- * * `{aspect_type_reference}@*`: matches aspects that belong to the specified
- * aspect type for all paths.
+ * * `@*` : matches aspects of the given type for all
+ * paths.
+ * * `*@path` : matches aspects of all types on the given path.
* Replace `{aspect_type_reference}` with a reference to the aspect type, in
* the format
* `{project_id_or_number}.{location_id}.{aspect_type_id}`.
@@ -239,8 +242,9 @@ public function getAspectKeys()
* aspect type and are attached directly to the entry.
* * `{aspect_type_reference}@{path}`: matches aspects that belong to the
* specified aspect type and path.
- * * `{aspect_type_reference}@*`: matches aspects that belong to the specified
- * aspect type for all paths.
+ * * `@*` : matches aspects of the given type for all
+ * paths.
+ * * `*@path` : matches aspects of all types on the given path.
* Replace `{aspect_type_reference}` with a reference to the aspect type, in
* the format
* `{project_id_or_number}.{location_id}.{aspect_type_id}`.
diff --git a/Dataplex/src/V1/SearchEntriesRequest.php b/Dataplex/src/V1/SearchEntriesRequest.php
index e20d3397e1cf..a0813c2a3933 100644
--- a/Dataplex/src/V1/SearchEntriesRequest.php
+++ b/Dataplex/src/V1/SearchEntriesRequest.php
@@ -22,6 +22,8 @@ class SearchEntriesRequest extends \Google\Protobuf\Internal\Message
protected $name = '';
/**
* Required. The query against which entries in scope should be matched.
+ * The query syntax is defined in [Search syntax for Dataplex
+ * Catalog](https://cloud.google.com/dataplex/docs/search-syntax).
*
* Generated from protobuf field string query = 2 [(.google.api.field_behavior) = REQUIRED];
*/
@@ -43,6 +45,10 @@ class SearchEntriesRequest extends \Google\Protobuf\Internal\Message
protected $page_token = '';
/**
* Optional. Specifies the ordering of results.
+ * Supported values are:
+ * * `relevance` (default)
+ * * `last_modified_timestamp`
+ * * `last_modified_timestamp asc`
*
* Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
*/
@@ -62,6 +68,8 @@ class SearchEntriesRequest extends \Google\Protobuf\Internal\Message
* following form: `projects/{project}/locations/{location}`. Please see
* {@see CatalogServiceClient::locationName()} for help formatting this field.
* @param string $query Required. The query against which entries in scope should be matched.
+ * The query syntax is defined in [Search syntax for Dataplex
+ * Catalog](https://cloud.google.com/dataplex/docs/search-syntax).
*
* @return \Google\Cloud\Dataplex\V1\SearchEntriesRequest
*
@@ -85,6 +93,8 @@ public static function build(string $name, string $query): self
* following form: `projects/{project}/locations/{location}`.
* @type string $query
* Required. The query against which entries in scope should be matched.
+ * The query syntax is defined in [Search syntax for Dataplex
+ * Catalog](https://cloud.google.com/dataplex/docs/search-syntax).
* @type int $page_size
* Optional. Number of results in the search page. If <=0, then defaults
* to 10. Max limit for page_size is 1000. Throws an invalid argument for
@@ -94,6 +104,10 @@ public static function build(string $name, string $query): self
* this to retrieve the subsequent page.
* @type string $order_by
* Optional. Specifies the ordering of results.
+ * Supported values are:
+ * * `relevance` (default)
+ * * `last_modified_timestamp`
+ * * `last_modified_timestamp asc`
* @type string $scope
* Optional. The scope under which the search should be operating. It must
* either be `organizations/` or `projects/`. If it is
@@ -136,6 +150,8 @@ public function setName($var)
/**
* Required. The query against which entries in scope should be matched.
+ * The query syntax is defined in [Search syntax for Dataplex
+ * Catalog](https://cloud.google.com/dataplex/docs/search-syntax).
*
* Generated from protobuf field string query = 2 [(.google.api.field_behavior) = REQUIRED];
* @return string
@@ -147,6 +163,8 @@ public function getQuery()
/**
* Required. The query against which entries in scope should be matched.
+ * The query syntax is defined in [Search syntax for Dataplex
+ * Catalog](https://cloud.google.com/dataplex/docs/search-syntax).
*
* Generated from protobuf field string query = 2 [(.google.api.field_behavior) = REQUIRED];
* @param string $var
@@ -220,6 +238,10 @@ public function setPageToken($var)
/**
* Optional. Specifies the ordering of results.
+ * Supported values are:
+ * * `relevance` (default)
+ * * `last_modified_timestamp`
+ * * `last_modified_timestamp asc`
*
* Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
* @return string
@@ -231,6 +253,10 @@ public function getOrderBy()
/**
* Optional. Specifies the ordering of results.
+ * Supported values are:
+ * * `relevance` (default)
+ * * `last_modified_timestamp`
+ * * `last_modified_timestamp asc`
*
* Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL];
* @param string $var
diff --git a/Dataplex/src/V1/UpdateDataScanRequest.php b/Dataplex/src/V1/UpdateDataScanRequest.php
index 5604a49c4fcd..ba67384b005c 100644
--- a/Dataplex/src/V1/UpdateDataScanRequest.php
+++ b/Dataplex/src/V1/UpdateDataScanRequest.php
@@ -23,9 +23,9 @@ class UpdateDataScanRequest extends \Google\Protobuf\Internal\Message
*/
protected $data_scan = null;
/**
- * Required. Mask of fields to update.
+ * Optional. Mask of fields to update.
*
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
+ * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
*/
protected $update_mask = null;
/**
@@ -40,7 +40,7 @@ class UpdateDataScanRequest extends \Google\Protobuf\Internal\Message
* @param \Google\Cloud\Dataplex\V1\DataScan $dataScan Required. DataScan resource to be updated.
*
* Only fields specified in `update_mask` are updated.
- * @param \Google\Protobuf\FieldMask $updateMask Required. Mask of fields to update.
+ * @param \Google\Protobuf\FieldMask $updateMask Optional. Mask of fields to update.
*
* @return \Google\Cloud\Dataplex\V1\UpdateDataScanRequest
*
@@ -63,7 +63,7 @@ public static function build(\Google\Cloud\Dataplex\V1\DataScan $dataScan, \Goog
* Required. DataScan resource to be updated.
* Only fields specified in `update_mask` are updated.
* @type \Google\Protobuf\FieldMask $update_mask
- * Required. Mask of fields to update.
+ * Optional. Mask of fields to update.
* @type bool $validate_only
* Optional. Only validate the request, but do not perform mutations.
* The default is `false`.
@@ -113,9 +113,9 @@ public function setDataScan($var)
}
/**
- * Required. Mask of fields to update.
+ * Optional. Mask of fields to update.
*
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
+ * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
* @return \Google\Protobuf\FieldMask|null
*/
public function getUpdateMask()
@@ -134,9 +134,9 @@ public function clearUpdateMask()
}
/**
- * Required. Mask of fields to update.
+ * Optional. Mask of fields to update.
*
- * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED];
+ * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL];
* @param \Google\Protobuf\FieldMask $var
* @return $this
*/
diff --git a/Dataplex/src/V1/UpdateEntryRequest.php b/Dataplex/src/V1/UpdateEntryRequest.php
index 7b1b52534d6f..dd74121cbcde 100644
--- a/Dataplex/src/V1/UpdateEntryRequest.php
+++ b/Dataplex/src/V1/UpdateEntryRequest.php
@@ -54,7 +54,7 @@ class UpdateEntryRequest extends \Google\Protobuf\Internal\Message
* specified path. For example, to attach an aspect to a field that is
* specified by the `schema` aspect, the path should have the format
* `Schema.`.
- * * `*` - matches aspects of the given type for all
+ * * `@*` - matches aspects of the given type for all
* paths.
* * `*@path` - matches aspects of all types on the given path.
* The service will not remove existing aspects matching the syntax unless
@@ -114,7 +114,7 @@ public static function build(\Google\Cloud\Dataplex\V1\Entry $entry, \Google\Pro
* specified path. For example, to attach an aspect to a field that is
* specified by the `schema` aspect, the path should have the format
* `Schema.`.
- * * `*` - matches aspects of the given type for all
+ * * `@*` - matches aspects of the given type for all
* paths.
* * `*@path` - matches aspects of all types on the given path.
* The service will not remove existing aspects matching the syntax unless
@@ -273,7 +273,7 @@ public function setDeleteMissingAspects($var)
* specified path. For example, to attach an aspect to a field that is
* specified by the `schema` aspect, the path should have the format
* `Schema.`.
- * * `*` - matches aspects of the given type for all
+ * * `@*` - matches aspects of the given type for all
* paths.
* * `*@path` - matches aspects of all types on the given path.
* The service will not remove existing aspects matching the syntax unless
@@ -298,7 +298,7 @@ public function getAspectKeys()
* specified path. For example, to attach an aspect to a field that is
* specified by the `schema` aspect, the path should have the format
* `Schema.`.
- * * `*` - matches aspects of the given type for all
+ * * `@*` - matches aspects of the given type for all
* paths.
* * `*@path` - matches aspects of all types on the given path.
* The service will not remove existing aspects matching the syntax unless
diff --git a/Dataplex/src/V1/resources/data_scan_service_rest_client_config.php b/Dataplex/src/V1/resources/data_scan_service_rest_client_config.php
index 416aa04726f0..160450f306df 100644
--- a/Dataplex/src/V1/resources/data_scan_service_rest_client_config.php
+++ b/Dataplex/src/V1/resources/data_scan_service_rest_client_config.php
@@ -136,9 +136,6 @@
],
],
],
- 'queryParams' => [
- 'update_mask',
- ],
],
],
'google.cloud.location.Locations' => [
diff --git a/Dataplex/tests/Unit/V1/Client/DataScanServiceClientTest.php b/Dataplex/tests/Unit/V1/Client/DataScanServiceClientTest.php
index 6fa6771eea7c..e491e9a3baee 100644
--- a/Dataplex/tests/Unit/V1/Client/DataScanServiceClientTest.php
+++ b/Dataplex/tests/Unit/V1/Client/DataScanServiceClientTest.php
@@ -56,7 +56,6 @@
use Google\LongRunning\GetOperationRequest;
use Google\LongRunning\Operation;
use Google\Protobuf\Any;
-use Google\Protobuf\FieldMask;
use Google\Protobuf\GPBEmpty;
use Google\Rpc\Code;
use stdClass;
@@ -810,8 +809,7 @@ public function updateDataScanTest()
$dataScan = new DataScan();
$dataScanData = new DataSource();
$dataScan->setData($dataScanData);
- $updateMask = new FieldMask();
- $request = (new UpdateDataScanRequest())->setDataScan($dataScan)->setUpdateMask($updateMask);
+ $request = (new UpdateDataScanRequest())->setDataScan($dataScan);
$response = $gapicClient->updateDataScan($request);
$this->assertFalse($response->isDone());
$this->assertNull($response->getResult());
@@ -824,8 +822,6 @@ public function updateDataScanTest()
$this->assertSame('/google.cloud.dataplex.v1.DataScanService/UpdateDataScan', $actualApiFuncCall);
$actualValue = $actualApiRequestObject->getDataScan();
$this->assertProtobufEquals($dataScan, $actualValue);
- $actualValue = $actualApiRequestObject->getUpdateMask();
- $this->assertProtobufEquals($updateMask, $actualValue);
$expectedOperationsRequestObject = new GetOperationRequest();
$expectedOperationsRequestObject->setName('operations/updateDataScanTest');
$response->pollUntilComplete([
@@ -883,8 +879,7 @@ public function updateDataScanExceptionTest()
$dataScan = new DataScan();
$dataScanData = new DataSource();
$dataScan->setData($dataScanData);
- $updateMask = new FieldMask();
- $request = (new UpdateDataScanRequest())->setDataScan($dataScan)->setUpdateMask($updateMask);
+ $request = (new UpdateDataScanRequest())->setDataScan($dataScan);
$response = $gapicClient->updateDataScan($request);
$this->assertFalse($response->isDone());
$this->assertNull($response->getResult());