-
Notifications
You must be signed in to change notification settings - Fork 438
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: A new method `RetrieveConfig` is added to service `DataCatalog` feat: A new method `RetrieveEffectiveConfig` is added to service `DataCatalog` feat: A new field `transferred_to_dataplex` is added to message `.google.cloud.datacatalog.v1.EntryGroup` feat: A new message `SetConfigRequest` is added feat: A new message `RetrieveConfigRequest` is added feat: A new message `RetrieveEffectiveConfigRequest` is added feat: A new enum `TagTemplateMigration` is added feat: A new enum `CatalogUIExperience` is added feat: A new message `OrganizationConfig` is added feat: A new message `MigrationConfig` is added feat: A new field `dataplex_transfer_status` is added to message `.google.cloud.datacatalog.v1.Tag` feat: A new value `TRANSFERRED` is added to enum `DataplexTransferStatus` docs: A comment for message `EntryGroup` is changed PiperOrigin-RevId: 698288089 Source-Link: googleapis/googleapis@6731adf Source-Link: googleapis/googleapis-gen@d2bda98 Copy-Tag: eyJwIjoiRGF0YUNhdGFsb2cvLk93bEJvdC55YW1sIiwiaCI6ImQyYmRhOTgwYjBlMjY4N2E3ODc2M2VkNjM5ODg1MzI0YjM4OWEyNDkifQ==
- Loading branch information
1 parent
d39a112
commit 3c9a7b9
Showing
32 changed files
with
1,314 additions
and
11 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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.
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.
Binary file not shown.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
72 changes: 72 additions & 0 deletions
72
DataCatalog/samples/V1/DataCatalogClient/retrieve_config.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,72 @@ | ||
<?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 datacatalog_v1_generated_DataCatalog_RetrieveConfig_sync] | ||
use Google\ApiCore\ApiException; | ||
use Google\Cloud\DataCatalog\V1\Client\DataCatalogClient; | ||
use Google\Cloud\DataCatalog\V1\OrganizationConfig; | ||
use Google\Cloud\DataCatalog\V1\RetrieveConfigRequest; | ||
|
||
/** | ||
* Retrieves the configuration related to the migration from Data Catalog to | ||
* Dataplex for a specific organization, including all the projects under it | ||
* which have a separate configuration set. | ||
* | ||
* @param string $name The organization whose config is being retrieved. | ||
*/ | ||
function retrieve_config_sample(string $name): void | ||
{ | ||
// Create a client. | ||
$dataCatalogClient = new DataCatalogClient(); | ||
|
||
// Prepare the request message. | ||
$request = (new RetrieveConfigRequest()) | ||
->setName($name); | ||
|
||
// Call the API and handle any network failures. | ||
try { | ||
/** @var OrganizationConfig $response */ | ||
$response = $dataCatalogClient->retrieveConfig($request); | ||
printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); | ||
} 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 | ||
{ | ||
$name = '[NAME]'; | ||
|
||
retrieve_config_sample($name); | ||
} | ||
// [END datacatalog_v1_generated_DataCatalog_RetrieveConfig_sync] |
74 changes: 74 additions & 0 deletions
74
DataCatalog/samples/V1/DataCatalogClient/retrieve_effective_config.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,74 @@ | ||
<?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 datacatalog_v1_generated_DataCatalog_RetrieveEffectiveConfig_sync] | ||
use Google\ApiCore\ApiException; | ||
use Google\Cloud\DataCatalog\V1\Client\DataCatalogClient; | ||
use Google\Cloud\DataCatalog\V1\MigrationConfig; | ||
use Google\Cloud\DataCatalog\V1\RetrieveEffectiveConfigRequest; | ||
|
||
/** | ||
* Retrieves the effective configuration related to the migration from Data | ||
* Catalog to Dataplex for a specific organization or project. If there is no | ||
* specific configuration set for the resource, the setting is checked | ||
* hierarchicahlly through the ancestors of the resource, starting from the | ||
* resource itself. | ||
* | ||
* @param string $name The resource whose effective config is being retrieved. | ||
*/ | ||
function retrieve_effective_config_sample(string $name): void | ||
{ | ||
// Create a client. | ||
$dataCatalogClient = new DataCatalogClient(); | ||
|
||
// Prepare the request message. | ||
$request = (new RetrieveEffectiveConfigRequest()) | ||
->setName($name); | ||
|
||
// Call the API and handle any network failures. | ||
try { | ||
/** @var MigrationConfig $response */ | ||
$response = $dataCatalogClient->retrieveEffectiveConfig($request); | ||
printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); | ||
} 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 | ||
{ | ||
$name = '[NAME]'; | ||
|
||
retrieve_effective_config_sample($name); | ||
} | ||
// [END datacatalog_v1_generated_DataCatalog_RetrieveEffectiveConfig_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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<?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 datacatalog_v1_generated_DataCatalog_SetConfig_sync] | ||
use Google\ApiCore\ApiException; | ||
use Google\Cloud\DataCatalog\V1\Client\DataCatalogClient; | ||
use Google\Cloud\DataCatalog\V1\MigrationConfig; | ||
use Google\Cloud\DataCatalog\V1\SetConfigRequest; | ||
|
||
/** | ||
* Sets the configuration related to the migration to Dataplex for an | ||
* organization or project. | ||
* | ||
* @param string $name The organization or project whose config is being specified. | ||
*/ | ||
function set_config_sample(string $name): void | ||
{ | ||
// Create a client. | ||
$dataCatalogClient = new DataCatalogClient(); | ||
|
||
// Prepare the request message. | ||
$request = (new SetConfigRequest()) | ||
->setName($name); | ||
|
||
// Call the API and handle any network failures. | ||
try { | ||
/** @var MigrationConfig $response */ | ||
$response = $dataCatalogClient->setConfig($request); | ||
printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); | ||
} 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 | ||
{ | ||
$name = '[NAME]'; | ||
|
||
set_config_sample($name); | ||
} | ||
// [END datacatalog_v1_generated_DataCatalog_SetConfig_sync] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.