Skip to content

Commit ed217b3

Browse files
1 parent 62ae78a commit ed217b3

13 files changed

Lines changed: 776 additions & 0 deletions

src/Datalineage.php

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ class Datalineage extends \Google\Service
3838
const CLOUD_PLATFORM =
3939
"https://www.googleapis.com/auth/cloud-platform";
4040

41+
public $folders_locations_config;
42+
public $organizations_locations_config;
4143
public $projects_locations;
44+
public $projects_locations_config;
4245
public $projects_locations_operations;
4346
public $projects_locations_processes;
4447
public $projects_locations_processes_runs;
@@ -62,6 +65,66 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
6265
$this->version = 'v1';
6366
$this->serviceName = 'datalineage';
6467

68+
$this->folders_locations_config = new Datalineage\Resource\FoldersLocationsConfig(
69+
$this,
70+
$this->serviceName,
71+
'config',
72+
[
73+
'methods' => [
74+
'get' => [
75+
'path' => 'v1/{+name}',
76+
'httpMethod' => 'GET',
77+
'parameters' => [
78+
'name' => [
79+
'location' => 'path',
80+
'type' => 'string',
81+
'required' => true,
82+
],
83+
],
84+
],'patch' => [
85+
'path' => 'v1/{+name}',
86+
'httpMethod' => 'PATCH',
87+
'parameters' => [
88+
'name' => [
89+
'location' => 'path',
90+
'type' => 'string',
91+
'required' => true,
92+
],
93+
],
94+
],
95+
]
96+
]
97+
);
98+
$this->organizations_locations_config = new Datalineage\Resource\OrganizationsLocationsConfig(
99+
$this,
100+
$this->serviceName,
101+
'config',
102+
[
103+
'methods' => [
104+
'get' => [
105+
'path' => 'v1/{+name}',
106+
'httpMethod' => 'GET',
107+
'parameters' => [
108+
'name' => [
109+
'location' => 'path',
110+
'type' => 'string',
111+
'required' => true,
112+
],
113+
],
114+
],'patch' => [
115+
'path' => 'v1/{+name}',
116+
'httpMethod' => 'PATCH',
117+
'parameters' => [
118+
'name' => [
119+
'location' => 'path',
120+
'type' => 'string',
121+
'required' => true,
122+
],
123+
],
124+
],
125+
]
126+
]
127+
);
65128
$this->projects_locations = new Datalineage\Resource\ProjectsLocations(
66129
$this,
67130
$this->serviceName,
@@ -106,6 +169,36 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
106169
]
107170
]
108171
);
172+
$this->projects_locations_config = new Datalineage\Resource\ProjectsLocationsConfig(
173+
$this,
174+
$this->serviceName,
175+
'config',
176+
[
177+
'methods' => [
178+
'get' => [
179+
'path' => 'v1/{+name}',
180+
'httpMethod' => 'GET',
181+
'parameters' => [
182+
'name' => [
183+
'location' => 'path',
184+
'type' => 'string',
185+
'required' => true,
186+
],
187+
],
188+
],'patch' => [
189+
'path' => 'v1/{+name}',
190+
'httpMethod' => 'PATCH',
191+
'parameters' => [
192+
'name' => [
193+
'location' => 'path',
194+
'type' => 'string',
195+
'required' => true,
196+
],
197+
],
198+
],
199+
]
200+
]
201+
);
109202
$this->projects_locations_operations = new Datalineage\Resource\ProjectsLocationsOperations(
110203
$this,
111204
$this->serviceName,
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
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;
19+
20+
class GoogleCloudDatacatalogLineageConfigmanagementV1Config extends \Google\Model
21+
{
22+
/**
23+
* Optional. `etag` is used for optimistic concurrency control as a way to
24+
* help prevent simultaneous updates of a config from overwriting each other.
25+
* It is required that systems make use of the `etag` in the read-modify-write
26+
* cycle to perform config updates in order to avoid race conditions: An
27+
* `etag` is returned in the response to `GetConfig`, and systems are expected
28+
* to put that etag in the request to `UpdateConfig` to ensure that their
29+
* change will be applied to the same version of the config. If an `etag` is
30+
* not provided in the call to `UpdateConfig`, then the existing config, if
31+
* any, will be overwritten.
32+
*
33+
* @var string
34+
*/
35+
public $etag;
36+
protected $ingestionType = GoogleCloudDatacatalogLineageConfigmanagementV1ConfigIngestion::class;
37+
protected $ingestionDataType = '';
38+
/**
39+
* Identifier. The resource name of the config. Format:
40+
* `organizations/{organization_id}/locations/global/config`
41+
* `folders/{folder_id}/locations/global/config`
42+
* `projects/{project_id}/locations/global/config`
43+
* `projects/{project_number}/locations/global/config`
44+
*
45+
* @var string
46+
*/
47+
public $name;
48+
49+
/**
50+
* Optional. `etag` is used for optimistic concurrency control as a way to
51+
* help prevent simultaneous updates of a config from overwriting each other.
52+
* It is required that systems make use of the `etag` in the read-modify-write
53+
* cycle to perform config updates in order to avoid race conditions: An
54+
* `etag` is returned in the response to `GetConfig`, and systems are expected
55+
* to put that etag in the request to `UpdateConfig` to ensure that their
56+
* change will be applied to the same version of the config. If an `etag` is
57+
* not provided in the call to `UpdateConfig`, then the existing config, if
58+
* any, will be overwritten.
59+
*
60+
* @param string $etag
61+
*/
62+
public function setEtag($etag)
63+
{
64+
$this->etag = $etag;
65+
}
66+
/**
67+
* @return string
68+
*/
69+
public function getEtag()
70+
{
71+
return $this->etag;
72+
}
73+
/**
74+
* Optional. Ingestion rule for Data Lineage ingestion.
75+
*
76+
* @param GoogleCloudDatacatalogLineageConfigmanagementV1ConfigIngestion $ingestion
77+
*/
78+
public function setIngestion(GoogleCloudDatacatalogLineageConfigmanagementV1ConfigIngestion $ingestion)
79+
{
80+
$this->ingestion = $ingestion;
81+
}
82+
/**
83+
* @return GoogleCloudDatacatalogLineageConfigmanagementV1ConfigIngestion
84+
*/
85+
public function getIngestion()
86+
{
87+
return $this->ingestion;
88+
}
89+
/**
90+
* Identifier. The resource name of the config. Format:
91+
* `organizations/{organization_id}/locations/global/config`
92+
* `folders/{folder_id}/locations/global/config`
93+
* `projects/{project_id}/locations/global/config`
94+
* `projects/{project_number}/locations/global/config`
95+
*
96+
* @param string $name
97+
*/
98+
public function setName($name)
99+
{
100+
$this->name = $name;
101+
}
102+
/**
103+
* @return string
104+
*/
105+
public function getName()
106+
{
107+
return $this->name;
108+
}
109+
}
110+
111+
// Adding a class alias for backwards compatibility with the previous class name.
112+
class_alias(GoogleCloudDatacatalogLineageConfigmanagementV1Config::class, 'Google_Service_Datalineage_GoogleCloudDatacatalogLineageConfigmanagementV1Config');
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
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;
19+
20+
class GoogleCloudDatacatalogLineageConfigmanagementV1ConfigIngestion extends \Google\Collection
21+
{
22+
protected $collection_key = 'rules';
23+
protected $rulesType = GoogleCloudDatacatalogLineageConfigmanagementV1ConfigIngestionIngestionRule::class;
24+
protected $rulesDataType = 'array';
25+
26+
/**
27+
* Optional. List of rules for Data Lineage ingestion.
28+
*
29+
* @param GoogleCloudDatacatalogLineageConfigmanagementV1ConfigIngestionIngestionRule[] $rules
30+
*/
31+
public function setRules($rules)
32+
{
33+
$this->rules = $rules;
34+
}
35+
/**
36+
* @return GoogleCloudDatacatalogLineageConfigmanagementV1ConfigIngestionIngestionRule[]
37+
*/
38+
public function getRules()
39+
{
40+
return $this->rules;
41+
}
42+
}
43+
44+
// Adding a class alias for backwards compatibility with the previous class name.
45+
class_alias(GoogleCloudDatacatalogLineageConfigmanagementV1ConfigIngestion::class, 'Google_Service_Datalineage_GoogleCloudDatacatalogLineageConfigmanagementV1ConfigIngestion');
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
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;
19+
20+
class GoogleCloudDatacatalogLineageConfigmanagementV1ConfigIngestionIngestionRule extends \Google\Model
21+
{
22+
protected $integrationSelectorType = GoogleCloudDatacatalogLineageConfigmanagementV1ConfigIngestionIngestionRuleIntegrationSelector::class;
23+
protected $integrationSelectorDataType = '';
24+
protected $lineageEnablementType = GoogleCloudDatacatalogLineageConfigmanagementV1ConfigIngestionIngestionRuleLineageEnablement::class;
25+
protected $lineageEnablementDataType = '';
26+
27+
/**
28+
* Required. Integration selector of the rule. The rule is only applied to the
29+
* Integration selected by the selector.
30+
*
31+
* @param GoogleCloudDatacatalogLineageConfigmanagementV1ConfigIngestionIngestionRuleIntegrationSelector $integrationSelector
32+
*/
33+
public function setIntegrationSelector(GoogleCloudDatacatalogLineageConfigmanagementV1ConfigIngestionIngestionRuleIntegrationSelector $integrationSelector)
34+
{
35+
$this->integrationSelector = $integrationSelector;
36+
}
37+
/**
38+
* @return GoogleCloudDatacatalogLineageConfigmanagementV1ConfigIngestionIngestionRuleIntegrationSelector
39+
*/
40+
public function getIntegrationSelector()
41+
{
42+
return $this->integrationSelector;
43+
}
44+
/**
45+
* Required. Lineage enablement configuration. Defines configurations for the
46+
* ingestion of lineage for the resource and its children. If unspecified, the
47+
* ingestion will be enabled only if it was configured in the resource's
48+
* parent.
49+
*
50+
* @param GoogleCloudDatacatalogLineageConfigmanagementV1ConfigIngestionIngestionRuleLineageEnablement $lineageEnablement
51+
*/
52+
public function setLineageEnablement(GoogleCloudDatacatalogLineageConfigmanagementV1ConfigIngestionIngestionRuleLineageEnablement $lineageEnablement)
53+
{
54+
$this->lineageEnablement = $lineageEnablement;
55+
}
56+
/**
57+
* @return GoogleCloudDatacatalogLineageConfigmanagementV1ConfigIngestionIngestionRuleLineageEnablement
58+
*/
59+
public function getLineageEnablement()
60+
{
61+
return $this->lineageEnablement;
62+
}
63+
}
64+
65+
// Adding a class alias for backwards compatibility with the previous class name.
66+
class_alias(GoogleCloudDatacatalogLineageConfigmanagementV1ConfigIngestionIngestionRule::class, 'Google_Service_Datalineage_GoogleCloudDatacatalogLineageConfigmanagementV1ConfigIngestionIngestionRule');

0 commit comments

Comments
 (0)