Skip to content

Commit

Permalink
feat: A new method SetConfig is added to service DataCatalog (#7846)
Browse files Browse the repository at this point in the history
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
gcf-owl-bot[bot] authored Nov 25, 2024
1 parent d39a112 commit 3c9a7b9
Show file tree
Hide file tree
Showing 32 changed files with 1,314 additions and 11 deletions.
Binary file modified DataCatalog/metadata/V1/Bigquery.php
Binary file not shown.
Binary file modified DataCatalog/metadata/V1/Common.php
Binary file not shown.
Binary file modified DataCatalog/metadata/V1/DataSource.php
Binary file not shown.
Binary file modified DataCatalog/metadata/V1/Datacatalog.php
Binary file not shown.
6 changes: 3 additions & 3 deletions DataCatalog/metadata/V1/DataplexSpec.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified DataCatalog/metadata/V1/DumpContent.php
Binary file not shown.
6 changes: 3 additions & 3 deletions DataCatalog/metadata/V1/GcsFilesetSpec.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified DataCatalog/metadata/V1/PhysicalSchema.php
Binary file not shown.
Binary file modified DataCatalog/metadata/V1/Policytagmanager.php
Binary file not shown.
Binary file modified DataCatalog/metadata/V1/Policytagmanagerserialization.php
Binary file not shown.
Binary file modified DataCatalog/metadata/V1/Search.php
Binary file not shown.
Binary file modified DataCatalog/metadata/V1/Tags.php
Binary file not shown.
6 changes: 3 additions & 3 deletions DataCatalog/metadata/V1/Timestamps.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

72 changes: 72 additions & 0 deletions DataCatalog/samples/V1/DataCatalogClient/retrieve_config.php
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]
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]
71 changes: 71 additions & 0 deletions DataCatalog/samples/V1/DataCatalogClient/set_config.php
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]
61 changes: 61 additions & 0 deletions DataCatalog/src/V1/CatalogUIExperience.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3c9a7b9

Please sign in to comment.