source: vendor/google/apiclient-services/src/Datalineage/Resource/ProjectsLocationsProcessesRunsLineageEvents.php@ f9c482b

Last change on this file since f9c482b was f9c482b, checked in by Vlado 222039 <vlado.popovski@…>, 9 days ago

Upload new project files

  • Property mode set to 100644
File size: 4.7 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\Datalineage\Resource;
19
20use Google\Service\Datalineage\GoogleCloudDatacatalogLineageV1LineageEvent;
21use Google\Service\Datalineage\GoogleCloudDatacatalogLineageV1ListLineageEventsResponse;
22use Google\Service\Datalineage\GoogleProtobufEmpty;
23
24/**
25 * The "lineageEvents" collection of methods.
26 * Typical usage is:
27 * <code>
28 * $datalineageService = new Google\Service\Datalineage(...);
29 * $lineageEvents = $datalineageService->projects_locations_processes_runs_lineageEvents;
30 * </code>
31 */
32class ProjectsLocationsProcessesRunsLineageEvents extends \Google\Service\Resource
33{
34 /**
35 * Creates a new lineage event. (lineageEvents.create)
36 *
37 * @param string $parent Required. The name of the run that should own the
38 * lineage event.
39 * @param GoogleCloudDatacatalogLineageV1LineageEvent $postBody
40 * @param array $optParams Optional parameters.
41 *
42 * @opt_param string requestId A unique identifier for this request. Restricted
43 * to 36 ASCII characters. A random UUID is recommended. This request is
44 * idempotent only if a `request_id` is provided.
45 * @return GoogleCloudDatacatalogLineageV1LineageEvent
46 * @throws \Google\Service\Exception
47 */
48 public function create($parent, GoogleCloudDatacatalogLineageV1LineageEvent $postBody, $optParams = [])
49 {
50 $params = ['parent' => $parent, 'postBody' => $postBody];
51 $params = array_merge($params, $optParams);
52 return $this->call('create', [$params], GoogleCloudDatacatalogLineageV1LineageEvent::class);
53 }
54 /**
55 * Deletes the lineage event with the specified name. (lineageEvents.delete)
56 *
57 * @param string $name Required. The name of the lineage event to delete.
58 * @param array $optParams Optional parameters.
59 *
60 * @opt_param bool allowMissing If set to true and the lineage event is not
61 * found, the request succeeds but the server doesn't perform any actions.
62 * @return GoogleProtobufEmpty
63 * @throws \Google\Service\Exception
64 */
65 public function delete($name, $optParams = [])
66 {
67 $params = ['name' => $name];
68 $params = array_merge($params, $optParams);
69 return $this->call('delete', [$params], GoogleProtobufEmpty::class);
70 }
71 /**
72 * Gets details of a specified lineage event. (lineageEvents.get)
73 *
74 * @param string $name Required. The name of the lineage event to get.
75 * @param array $optParams Optional parameters.
76 * @return GoogleCloudDatacatalogLineageV1LineageEvent
77 * @throws \Google\Service\Exception
78 */
79 public function get($name, $optParams = [])
80 {
81 $params = ['name' => $name];
82 $params = array_merge($params, $optParams);
83 return $this->call('get', [$params], GoogleCloudDatacatalogLineageV1LineageEvent::class);
84 }
85 /**
86 * Lists lineage events in the given project and location. The list order is not
87 * defined. (lineageEvents.listProjectsLocationsProcessesRunsLineageEvents)
88 *
89 * @param string $parent Required. The name of the run that owns the collection
90 * of lineage events to get.
91 * @param array $optParams Optional parameters.
92 *
93 * @opt_param int pageSize The maximum number of lineage events to return. The
94 * service may return fewer events than this value. If unspecified, at most 50
95 * events are returned. The maximum value is 100; values greater than 100 are
96 * cut to 100.
97 * @opt_param string pageToken The page token received from a previous
98 * `ListLineageEvents` call. Specify it to get the next page. When paginating,
99 * all other parameters specified in this call must match the parameters of the
100 * call that provided the page token.
101 * @return GoogleCloudDatacatalogLineageV1ListLineageEventsResponse
102 * @throws \Google\Service\Exception
103 */
104 public function listProjectsLocationsProcessesRunsLineageEvents($parent, $optParams = [])
105 {
106 $params = ['parent' => $parent];
107 $params = array_merge($params, $optParams);
108 return $this->call('list', [$params], GoogleCloudDatacatalogLineageV1ListLineageEventsResponse::class);
109 }
110}
111
112// Adding a class alias for backwards compatibility with the previous class name.
113class_alias(ProjectsLocationsProcessesRunsLineageEvents::class, 'Google_Service_Datalineage_Resource_ProjectsLocationsProcessesRunsLineageEvents');
Note: See TracBrowser for help on using the repository browser.