-
Notifications
You must be signed in to change notification settings - Fork 436
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update Go Datastore import path (#7839)
feat: update Go Bigtable import path feat: release MetadataJob APIs and related resources in GA feat: expose create time in DataScanJobAPI docs: correct API documentation feat: release metadata export in private preview feat: Add data_version field to AspectSource docs: add info about schema changes for BigQuery metadata in Dataplex Catalog docs: Add Identifier for `name` in message `.google.cloud.dataplex.v1.MetadataJob` per https://google.aip.dev/cloud/2510 docs: Add comment for field `type` in message `.google.cloud.dataplex.v1.MetadataJob` per https://linter.aip.dev/192/has-comments docs: Add comment for field `status` in message `.google.cloud.dataplex.v1.MetadataJob` per https://linter.aip.dev/192/has-comments docs: Add link to fully qualified names documentation feat: add annotations in CreateMetadataJob, GetMetadataJob, ListMetaDataJobs and CancelMetadataJob for cloud audit logging feat: Add new Data Discovery scan type in Datascan docs: Scrub descriptions for standalone discovery scans docs: correct the dimensions for data quality rules feat: A new field `suspended` is added to DataScans feat: expose create time to customers feat: Add a TABLE_PUBLISHED field in DiscoveryEvent feat: Add a TABLE_UPDATED field in DiscoveryEvent feat: Add a TABLE_IGNORED field in DiscoveryEvent feat: Add a TABLE_DELETED field in DiscoveryEvent feat: Add a DATA_DISCOVERY enum type in DataScanEvent feat: Add a DataDiscoveryAppliedConfigs message docs: A comment for message `DataScanEvent` is changed feat: Add an Issue field to DiscoveryEvent.ActionDetails to output the action message in Cloud Logs feat: A new enum `TableType` is added feat: A new message `TableDetails` is added feat: A new field `datascan_id` is added to message `.google.cloud.dataplex.v1.DiscoveryEvent` feat: A new field `table` is added to message `.google.cloud.dataplex.v1.DiscoveryEvent` docs: Dataplex Tasks do not support Dataplex Content path as a direct input anymore PiperOrigin-RevId: 696600248 Source-Link: googleapis/googleapis@43e5337 Source-Link: googleapis/googleapis-gen@1f67afb Copy-Tag: eyJwIjoiRGF0YXBsZXgvLk93bEJvdC55YW1sIiwiaCI6IjFmNjdhZmI0OTcwZWE0YzNmZTUzNTAyMWE1ZmM4YmExNjk2OGEwMjYifQ==
- Loading branch information
1 parent
a91f524
commit 5e8cbaf
Showing
119 changed files
with
7,259 additions
and
1,094 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
75 changes: 75 additions & 0 deletions
75
Dataplex/samples/V1/CatalogServiceClient/cancel_metadata_job.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
<?php | ||
/* | ||
* Copyright 2024 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
/* | ||
* GENERATED CODE WARNING | ||
* This file was automatically generated - do not edit! | ||
*/ | ||
|
||
require_once __DIR__ . '/../../../vendor/autoload.php'; | ||
|
||
// [START dataplex_v1_generated_CatalogService_CancelMetadataJob_sync] | ||
use Google\ApiCore\ApiException; | ||
use Google\Cloud\Dataplex\V1\CancelMetadataJobRequest; | ||
use Google\Cloud\Dataplex\V1\Client\CatalogServiceClient; | ||
|
||
/** | ||
* Cancels a metadata job. | ||
* | ||
* If you cancel a metadata import job that is in progress, the changes in the | ||
* job might be partially applied. We recommend that you reset the state of | ||
* the entry groups in your project by running another metadata job that | ||
* reverts the changes from the canceled job. | ||
* | ||
* @param string $formattedName The resource name of the job, in the format | ||
* `projects/{project_id_or_number}/locations/{location_id}/metadataJobs/{metadata_job_id}` | ||
* Please see {@see CatalogServiceClient::metadataJobName()} for help formatting this field. | ||
*/ | ||
function cancel_metadata_job_sample(string $formattedName): void | ||
{ | ||
// Create a client. | ||
$catalogServiceClient = new CatalogServiceClient(); | ||
|
||
// Prepare the request message. | ||
$request = (new CancelMetadataJobRequest()) | ||
->setName($formattedName); | ||
|
||
// Call the API and handle any network failures. | ||
try { | ||
$catalogServiceClient->cancelMetadataJob($request); | ||
printf('Call completed successfully.' . PHP_EOL); | ||
} catch (ApiException $ex) { | ||
printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); | ||
} | ||
} | ||
|
||
/** | ||
* Helper to execute the sample. | ||
* | ||
* This sample has been automatically generated and should be regarded as a code | ||
* template only. It will require modifications to work: | ||
* - It may require correct/in-range values for request initialization. | ||
* - It may require specifying regional endpoints when creating the service client, | ||
* please see the apiEndpoint client configuration option for more details. | ||
*/ | ||
function callSample(): void | ||
{ | ||
$formattedName = CatalogServiceClient::metadataJobName('[PROJECT]', '[LOCATION]', '[METADATAJOB]'); | ||
|
||
cancel_metadata_job_sample($formattedName); | ||
} | ||
// [END dataplex_v1_generated_CatalogService_CancelMetadataJob_sync] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.