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 |
|
---|
18 | namespace Google\Service\Datalineage\Resource;
|
---|
19 |
|
---|
20 | use Google\Service\Datalineage\GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesRequest;
|
---|
21 | use Google\Service\Datalineage\GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesResponse;
|
---|
22 | use Google\Service\Datalineage\GoogleCloudDatacatalogLineageV1ProcessOpenLineageRunEventResponse;
|
---|
23 | use Google\Service\Datalineage\GoogleCloudDatacatalogLineageV1SearchLinksRequest;
|
---|
24 | use Google\Service\Datalineage\GoogleCloudDatacatalogLineageV1SearchLinksResponse;
|
---|
25 | use Google\Service\Datalineage\ProcessOpenLineageRunEventRequestContent;
|
---|
26 |
|
---|
27 | /**
|
---|
28 | * The "locations" collection of methods.
|
---|
29 | * Typical usage is:
|
---|
30 | * <code>
|
---|
31 | * $datalineageService = new Google\Service\Datalineage(...);
|
---|
32 | * $locations = $datalineageService->projects_locations;
|
---|
33 | * </code>
|
---|
34 | */
|
---|
35 | class ProjectsLocations extends \Google\Service\Resource
|
---|
36 | {
|
---|
37 | /**
|
---|
38 | * Retrieve information about LineageProcesses associated with specific links.
|
---|
39 | * LineageProcesses are transformation pipelines that result in data flowing
|
---|
40 | * from **source** to **target** assets. Links between assets represent this
|
---|
41 | * operation. If you have specific link names, you can use this method to verify
|
---|
42 | * which LineageProcesses contribute to creating those links. See the
|
---|
43 | * SearchLinks method for more information on how to retrieve link name. You can
|
---|
44 | * retrieve the LineageProcess information in every project where you have the
|
---|
45 | * `datalineage.events.get` permission. The project provided in the URL is used
|
---|
46 | * for Billing and Quota. (locations.batchSearchLinkProcesses)
|
---|
47 | *
|
---|
48 | * @param string $parent Required. The project and location where you want to
|
---|
49 | * search.
|
---|
50 | * @param GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesRequest $postBody
|
---|
51 | * @param array $optParams Optional parameters.
|
---|
52 | * @return GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesResponse
|
---|
53 | * @throws \Google\Service\Exception
|
---|
54 | */
|
---|
55 | public function batchSearchLinkProcesses($parent, GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesRequest $postBody, $optParams = [])
|
---|
56 | {
|
---|
57 | $params = ['parent' => $parent, 'postBody' => $postBody];
|
---|
58 | $params = array_merge($params, $optParams);
|
---|
59 | return $this->call('batchSearchLinkProcesses', [$params], GoogleCloudDatacatalogLineageV1BatchSearchLinkProcessesResponse::class);
|
---|
60 | }
|
---|
61 | /**
|
---|
62 | * Creates new lineage events together with their parents: process and run.
|
---|
63 | * Updates the process and run if they already exist. Mapped from Open Lineage
|
---|
64 | * specification:
|
---|
65 | * https://github.com/OpenLineage/OpenLineage/blob/main/spec/OpenLineage.json.
|
---|
66 | * (locations.processOpenLineageRunEvent)
|
---|
67 | *
|
---|
68 | * @param string $parent Required. The name of the project and its location that
|
---|
69 | * should own the process, run, and lineage event.
|
---|
70 | * @param ProcessOpenLineageRunEventRequestContent $postBody
|
---|
71 | * @param array $optParams Optional parameters.
|
---|
72 | *
|
---|
73 | * @opt_param string requestId A unique identifier for this request. Restricted
|
---|
74 | * to 36 ASCII characters. A random UUID is recommended. This request is
|
---|
75 | * idempotent only if a `request_id` is provided.
|
---|
76 | * @return GoogleCloudDatacatalogLineageV1ProcessOpenLineageRunEventResponse
|
---|
77 | * @throws \Google\Service\Exception
|
---|
78 | */
|
---|
79 | public function processOpenLineageRunEvent($parent, ProcessOpenLineageRunEventRequestContent $postBody, $optParams = [])
|
---|
80 | {
|
---|
81 | $params = ['parent' => $parent, 'postBody' => $postBody];
|
---|
82 | $params = array_merge($params, $optParams);
|
---|
83 | return $this->call('processOpenLineageRunEvent', [$params], GoogleCloudDatacatalogLineageV1ProcessOpenLineageRunEventResponse::class);
|
---|
84 | }
|
---|
85 | /**
|
---|
86 | * Retrieve a list of links connected to a specific asset. Links represent the
|
---|
87 | * data flow between **source** (upstream) and **target** (downstream) assets in
|
---|
88 | * transformation pipelines. Links are stored in the same project as the Lineage
|
---|
89 | * Events that create them. You can retrieve links in every project where you
|
---|
90 | * have the `datalineage.events.get` permission. The project provided in the URL
|
---|
91 | * is used for Billing and Quota. (locations.searchLinks)
|
---|
92 | *
|
---|
93 | * @param string $parent Required. The project and location you want search in.
|
---|
94 | * @param GoogleCloudDatacatalogLineageV1SearchLinksRequest $postBody
|
---|
95 | * @param array $optParams Optional parameters.
|
---|
96 | * @return GoogleCloudDatacatalogLineageV1SearchLinksResponse
|
---|
97 | * @throws \Google\Service\Exception
|
---|
98 | */
|
---|
99 | public function searchLinks($parent, GoogleCloudDatacatalogLineageV1SearchLinksRequest $postBody, $optParams = [])
|
---|
100 | {
|
---|
101 | $params = ['parent' => $parent, 'postBody' => $postBody];
|
---|
102 | $params = array_merge($params, $optParams);
|
---|
103 | return $this->call('searchLinks', [$params], GoogleCloudDatacatalogLineageV1SearchLinksResponse::class);
|
---|
104 | }
|
---|
105 | }
|
---|
106 |
|
---|
107 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
108 | class_alias(ProjectsLocations::class, 'Google_Service_Datalineage_Resource_ProjectsLocations');
|
---|