source: vendor/google/apiclient-services/src/DataCatalog/Resource/ProjectsLocations.php

Last change on this file was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 6 weeks ago

Upload project files

  • Property mode set to 100644
File size: 2.8 KB
Line 
1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service\DataCatalog\Resource;
19
20use Google\Service\DataCatalog\GoogleCloudDatacatalogV1MigrationConfig;
21use Google\Service\DataCatalog\GoogleCloudDatacatalogV1SetConfigRequest;
22
23/**
24 * The "locations" collection of methods.
25 * Typical usage is:
26 * <code>
27 * $datacatalogService = new Google\Service\DataCatalog(...);
28 * $locations = $datacatalogService->projects_locations;
29 * </code>
30 */
31class ProjectsLocations extends \Google\Service\Resource
32{
33 /**
34 * Retrieves the effective configuration related to the migration from Data
35 * Catalog to Dataplex for a specific organization or project. If there is no
36 * specific configuration set for the resource, the setting is checked
37 * hierarchicahlly through the ancestors of the resource, starting from the
38 * resource itself. (locations.retrieveEffectiveConfig)
39 *
40 * @param string $name Required. The resource whose effective config is being
41 * retrieved.
42 * @param array $optParams Optional parameters.
43 * @return GoogleCloudDatacatalogV1MigrationConfig
44 * @throws \Google\Service\Exception
45 */
46 public function retrieveEffectiveConfig($name, $optParams = [])
47 {
48 $params = ['name' => $name];
49 $params = array_merge($params, $optParams);
50 return $this->call('retrieveEffectiveConfig', [$params], GoogleCloudDatacatalogV1MigrationConfig::class);
51 }
52 /**
53 * Sets the configuration related to the migration to Dataplex for an
54 * organization or project. (locations.setConfig)
55 *
56 * @param string $name Required. The organization or project whose config is
57 * being specified.
58 * @param GoogleCloudDatacatalogV1SetConfigRequest $postBody
59 * @param array $optParams Optional parameters.
60 * @return GoogleCloudDatacatalogV1MigrationConfig
61 * @throws \Google\Service\Exception
62 */
63 public function setConfig($name, GoogleCloudDatacatalogV1SetConfigRequest $postBody, $optParams = [])
64 {
65 $params = ['name' => $name, 'postBody' => $postBody];
66 $params = array_merge($params, $optParams);
67 return $this->call('setConfig', [$params], GoogleCloudDatacatalogV1MigrationConfig::class);
68 }
69}
70
71// Adding a class alias for backwards compatibility with the previous class name.
72class_alias(ProjectsLocations::class, 'Google_Service_DataCatalog_Resource_ProjectsLocations');
Note: See TracBrowser for help on using the repository browser.